From 529ce04b77b7227b9f36d69d663c5fded8c1a575 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 26 Feb 2026 10:26:53 +0100 Subject: [PATCH 01/10] Refactor: Refactored the use of api.ts on the frontend to the openAPI client --- console/src/components/app-sidebar.tsx | 5 +- console/src/components/provider/select.tsx | 15 +- console/src/oapi/client.ts | 64 +- console/src/oapi/management.generated.ts | 3325 +++++------------ console/src/views/auth/Login.tsx | 14 +- console/src/views/auth/LoginCallback.tsx | 7 +- .../src/views/campaign/CampaignDetails.tsx | 37 +- console/src/views/campaign/CreateCampaign.tsx | 20 +- console/src/views/campaign/setup/Setup.tsx | 50 +- .../src/views/campaign/template/Content.tsx | 21 +- .../src/views/campaign/template/Review.tsx | 30 +- .../src/views/campaign/template/Template.tsx | 91 +- .../views/campaign/template/UserSelection.tsx | 19 +- .../views/campaign/template/mail/Setup.tsx | 12 +- .../views/campaign/template/push/Setup.tsx | 12 +- .../views/campaign/template/text/Setup.tsx | 12 +- .../src/views/settings/IntegrationModal.tsx | 70 +- .../v1/management/oapi/resources.yml | 2 +- package-lock.json | 1889 ++++++++++ package.json | 5 + 20 files changed, 3125 insertions(+), 2575 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/console/src/components/app-sidebar.tsx b/console/src/components/app-sidebar.tsx index d631abfc4..5565d6166 100644 --- a/console/src/components/app-sidebar.tsx +++ b/console/src/components/app-sidebar.tsx @@ -21,7 +21,7 @@ import type { SidebarLink } from "@/types/sidebar" import { useContext } from "react" import { AdminContext, ProjectContext } from "@/contexts" import { useResolver } from "@/hooks" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { UserDropdown } from "./user-dropdown" import type { Admin } from "@/types" import { BookIcon } from "./icons" @@ -50,7 +50,8 @@ export function AppSidebar({ const [allProjects] = useResolver( React.useCallback(async () => { try { - return (await api.projects.all()).results + const result = await oapiClient.GET("/api/admin/projects") + return result.data?.results ?? [] } catch (error) { console.error("Failed to fetch projects:", error) return [] diff --git a/console/src/components/provider/select.tsx b/console/src/components/provider/select.tsx index c02fddc1a..690441376 100644 --- a/console/src/components/provider/select.tsx +++ b/console/src/components/provider/select.tsx @@ -1,6 +1,6 @@ import { useState, useEffect, useContext } from "react" import { ProjectContext } from "@/contexts" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import type { Provider, ProviderGroup } from "@/types" import { useTranslation } from "react-i18next" @@ -28,8 +28,17 @@ export function ProviderSelect({ value, onChange, channel }: ProviderSelectProps const fetchProviders = async () => { setIsLoading(true) try { - const result = await api.providers.all(project.id) - const filteredProviders = result.filter((provider) => provider.channel === channel) + const result = await oapiClient.GET("/api/admin/projects/{projectID}/providers", { + params: { + path: { + projectID: project.id, + }, + }, + }) + + const filteredProviders = (result.data?.results ?? []).filter( + (provider) => provider.channel === channel + ) setProviders(filteredProviders) if (filteredProviders.length > 0 && !value) { diff --git a/console/src/oapi/client.ts b/console/src/oapi/client.ts index 6809d8f75..617035f3b 100644 --- a/console/src/oapi/client.ts +++ b/console/src/oapi/client.ts @@ -1,43 +1,43 @@ -import createClient from "openapi-fetch" -import type { paths, components } from "./management.generated" +import createClient from "openapi-fetch"; +import type { paths, components } from "./management.generated"; // Create the openapi-fetch client // Note: OpenAPI paths already include /api prefix, so we use empty baseUrl export const oapiClient = createClient({ - baseUrl: "", - credentials: "include", -}) + baseUrl: "", + credentials: "include", +}); // Add response interceptor for 401 handling oapiClient.use({ - async onResponse({ response }) { - const isLoginPage = window.location.pathname.startsWith("/login") - if (response.status === 401 && !isLoginPage) { - window.location.href = `/login?r=${encodeURIComponent(window.location.href)}` - } - return response - }, -}) + async onResponse({ response }) { + const isLoginPage = window.location.pathname.startsWith("/login"); + if (response.status === 401 && !isLoginPage) { + window.location.href = `/login?r=${encodeURIComponent(window.location.href)}`; + } + return response; + }, +}); // Export schema types for convenience -export type Organization = components["schemas"]["Organization"] -export type OrganizationList = components["schemas"]["OrganizationList"] -export type UpsertOrganization = components["schemas"]["UpsertOrganization"] -export type UpdateOrganization = components["schemas"]["UpdateOrganization"] -export type OrganizationMember = components["schemas"]["OrganizationMember"] -export type OrganizationMemberList = components["schemas"]["OrganizationMemberList"] -export type AddOrganizationMember = components["schemas"]["AddOrganizationMember"] -export type User = components["schemas"]["User"] -export type UserList = components["schemas"]["UserList"] +export type Organization = components["schemas"]["Organization"]; +export type OrganizationList = components["schemas"]["OrganizationList"]; +export type UpsertOrganization = components["schemas"]["UpsertOrganization"]; +export type UpdateOrganization = components["schemas"]["UpdateOrganization"]; +export type OrganizationMember = components["schemas"]["OrganizationMember"]; +export type OrganizationMemberList = components["schemas"]["OrganizationMemberList"]; +export type AddOrganizationMember = components["schemas"]["AddOrganizationMember"]; +export type User = components["schemas"]["User"]; +export type UserList = components["schemas"]["UserList"]; -export type Action = components["schemas"]["Action"] -export type CreateAction = components["schemas"]["CreateAction"] -export type UpdateAction = components["schemas"]["UpdateAction"] -export type ActionMeta = components["schemas"]["ActionMeta"] -export type ActionFunction = components["schemas"]["ActionFunction"] -export type TestActionRequest = components["schemas"]["TestActionRequest"] -export type TestActionResult = components["schemas"]["TestActionResult"] -export type TestActionFunctionRequest = components["schemas"]["TestActionFunctionRequest"] -export type TestActionFunctionResult = components["schemas"]["TestActionFunctionResult"] +export type Action = components["schemas"]["Action"]; +export type CreateAction = components["schemas"]["CreateAction"]; +export type UpdateAction = components["schemas"]["UpdateAction"]; +export type ActionMeta = components["schemas"]["ActionMeta"]; +export type ActionFunction = components["schemas"]["ActionFunction"]; +export type TestActionRequest = components["schemas"]["TestActionRequest"]; +export type TestActionResult = components["schemas"]["TestActionResult"]; +export type TestActionFunctionRequest = components["schemas"]["TestActionFunctionRequest"]; +export type TestActionFunctionResult = components["schemas"]["TestActionFunctionResult"]; -export default oapiClient +export default oapiClient; diff --git a/console/src/oapi/management.generated.ts b/console/src/oapi/management.generated.ts index 108a95f2b..7364feb29 100644 --- a/console/src/oapi/management.generated.ts +++ b/console/src/oapi/management.generated.ts @@ -289,26 +289,6 @@ export interface paths { */ get: operations["getListUsers"]; put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/lists/{listID}/users/preview": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Preview list users - * @description Returns a limited preview of users that match the list's draft rule without modifying list membership - */ - get: operations["previewListUsers"]; - put?: never; /** * Import list users * @description Imports users to a static list from a CSV file @@ -358,11 +338,7 @@ export interface paths { get: operations["getProject"]; put?: never; post?: never; - /** - * Delete project - * @description Soft deletes a project by setting its deleted_at timestamp - */ - delete: operations["deleteProject"]; + delete?: never; options?: never; head?: never; /** @@ -424,54 +400,6 @@ export interface paths { patch: operations["updateJourney"]; trace?: never; }; - "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get user journey state - * @description Retrieves the current state of a user in a journey - */ - get: operations["getUserJourneyState"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Stream user journey steps - * @description Streams the current steps and progress of a specific user in a journey in real-time using Server-Sent Events (SSE) - */ - get: operations["streamUserJourneySteps"]; - /** - * Advance user step - * @description Advances the current step for a user in a journey and moves to the next step - */ - put: operations["AdvanceUserStep"]; - /** - * Trigger a user into a journey - * @description Triggers a user into a journey at a specific entrance step, typically used for testing or manual overrides - */ - post: operations["triggerUser"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/admin/projects/{projectID}/journeys/{journeyID}/steps": { parameters: { query?: never; @@ -576,7 +504,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/tenant/admins": { + "/api/admin/organizations/admins": { parameters: { query?: never; header?: never; @@ -600,7 +528,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/tenant/admins/{adminID}": { + "/api/admin/organizations/admins/{adminID}": { parameters: { query?: never; header?: never; @@ -628,7 +556,7 @@ export interface paths { patch: operations["updateAdmin"]; trace?: never; }; - "/api/admin/tenant/whoami": { + "/api/admin/organizations/whoami": { parameters: { query?: never; header?: never; @@ -648,7 +576,55 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users": { + "/api/admin/organizations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get current organization + * @description Retrieves the current organization for the authenticated admin + */ + get: operations["getOrganization"]; + put?: never; + post?: never; + /** + * Delete organization + * @description Soft deletes the current organization (requires owner role) + */ + delete: operations["deleteOrganization"]; + options?: never; + head?: never; + /** + * Update organization + * @description Updates organization properties (requires owner role) + */ + patch: operations["updateOrganization"]; + trace?: never; + }; + "/api/admin/organizations/integrations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get organization integrations + * @description Retrieves all provider integrations for the organization + */ + get: operations["getOrganizationIntegrations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/users": { parameters: { query?: never; header?: never; @@ -672,7 +648,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/import": { + "/api/admin/projects/{projectID}/users/import": { parameters: { query?: never; header?: never; @@ -692,7 +668,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}": { + "/api/admin/projects/{projectID}/users/{userID}": { parameters: { query?: never; header?: never; @@ -720,7 +696,7 @@ export interface paths { patch: operations["updateUser"]; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/events": { + "/api/admin/projects/{projectID}/users/{userID}/events": { parameters: { query?: never; header?: never; @@ -740,7 +716,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions": { + "/api/admin/projects/{projectID}/users/{userID}/subscriptions": { parameters: { query?: never; header?: never; @@ -764,7 +740,7 @@ export interface paths { patch: operations["updateUserSubscriptions"]; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/journeys": { + "/api/admin/projects/{projectID}/users/{userID}/journeys": { parameters: { query?: never; header?: never; @@ -784,7 +760,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/devices": { + "/api/admin/projects/{projectID}/events/schema": { parameters: { query?: never; header?: never; @@ -792,10 +768,10 @@ export interface paths { cookie?: never; }; /** - * Get user devices - * @description Retrieves registered devices for a specific user + * List events with schemas + * @description Retrieves all events and their schema paths for a project */ - get: operations["getUserDevices"]; + get: operations["listEvents"]; put?: never; post?: never; delete?: never; @@ -804,27 +780,27 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}": { + "/api/admin/projects/{projectID}/users/schema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; - put?: never; - post?: never; /** - * Delete user device - * @description Soft deletes a registered device for a specific user + * List user schemas + * @description Retrieves all user data schema paths for a project */ - delete: operations["deleteUserDevice"]; + get: operations["listUserSchemas"]; + put?: never; + post?: never; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/user/events/schema": { + "/api/admin/projects/{projectID}/tags": { parameters: { query?: never; header?: never; @@ -832,19 +808,23 @@ export interface paths { cookie?: never; }; /** - * List user event schemas - * @description Retrieves all user events and their schema paths for a project + * List tags + * @description Retrieves a list of tags with optional search filtering */ - get: operations["listUserEventSchemas"]; + get: operations["listTags"]; put?: never; - post?: never; + /** + * Create tag + * @description Creates a new tag + */ + post: operations["createTag"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/schema": { + "/api/admin/projects/{projectID}/tags/{tagID}": { parameters: { query?: never; header?: never; @@ -852,19 +832,27 @@ export interface paths { cookie?: never; }; /** - * List user schemas - * @description Retrieves all user data schema paths for a project + * Get tag by ID + * @description Retrieves a specific tag */ - get: operations["listUserSchemas"]; + get: operations["getTag"]; put?: never; post?: never; - delete?: never; + /** + * Delete tag + * @description Deletes a specific tag + */ + delete: operations["deleteTag"]; options?: never; head?: never; - patch?: never; + /** + * Update tag + * @description Updates a specific tag + */ + patch: operations["updateTag"]; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations": { + "/api/admin/projects/{projectID}/subscriptions": { parameters: { query?: never; header?: never; @@ -872,23 +860,23 @@ export interface paths { cookie?: never; }; /** - * List subject organizations - * @description Retrieves a paginated list of organizations (subjects) in a project + * List subscriptions + * @description Retrieves a list of subscription types for a project */ - get: operations["listOrganizations"]; + get: operations["listSubscriptions"]; put?: never; /** - * Create or update subject organization - * @description Creates or updates an organization (subject) by external_id + * Create subscription type + * @description Creates a new subscription type */ - post: operations["upsertOrganization"]; + post: operations["createSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}": { + "/api/admin/projects/{projectID}/subscriptions/{subscriptionID}": { parameters: { query?: never; header?: never; @@ -896,27 +884,23 @@ export interface paths { cookie?: never; }; /** - * Get subject organization by ID - * @description Retrieves a specific organization (subject) + * Get subscription by ID + * @description Retrieves a specific subscription type */ - get: operations["getOrganization"]; + get: operations["getSubscription"]; put?: never; post?: never; - /** - * Delete subject organization - * @description Deletes an organization and removes all user memberships - */ - delete: operations["deleteOrganization"]; + delete?: never; options?: never; head?: never; /** - * Update subject organization - * @description Updates organization properties + * Update subscription type + * @description Updates a specific subscription type */ - patch: operations["updateOrganization"]; + patch: operations["updateSubscription"]; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users": { + "/api/admin/projects/{projectID}/locales": { parameters: { query?: never; header?: never; @@ -924,43 +908,47 @@ export interface paths { cookie?: never; }; /** - * List organization users - * @description Retrieves users belonging to an organization with their org-specific data + * List locales + * @description Retrieves a paginated list of locales for a project */ - get: operations["listOrganizationMembers"]; + get: operations["listLocales"]; put?: never; /** - * Add user to organization - * @description Adds a user to an organization with optional org-specific data + * Create locale + * @description Creates a new locale for a project */ - post: operations["addOrganizationMember"]; + post: operations["createLocale"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}": { + "/api/admin/projects/{projectID}/locales/{localeID}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** + * Get locale by ID + * @description Retrieves a specific locale + */ + get: operations["getLocale"]; put?: never; post?: never; /** - * Remove user from organization - * @description Removes a user from an organization + * Delete locale + * @description Deletes a locale from a project */ - delete: operations["removeOrganizationMember"]; + delete: operations["deleteLocale"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events": { + "/api/admin/projects/{projectID}/documents": { parameters: { query?: never; header?: never; @@ -968,19 +956,23 @@ export interface paths { cookie?: never; }; /** - * Get organization events - * @description Retrieves events for a specific organization + * List documents + * @description Retrieves a paginated list of documents for a project */ - get: operations["getOrganizationEvents"]; + get: operations["listDocuments"]; put?: never; - post?: never; + /** + * Upload documents + * @description Uploads one or more documents using multipart/form-data + */ + post: operations["uploadDocuments"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organization/events/schema": { + "/api/admin/projects/{projectID}/documents/{documentID}": { parameters: { query?: never; header?: never; @@ -988,19 +980,23 @@ export interface paths { cookie?: never; }; /** - * List organization event schemas - * @description Retrieves all organization events and their schema paths for a project + * Retrieve a document + * @description Retrieves a document file by ID */ - get: operations["listOrganizationEventSchemas"]; + get: operations["getDocument"]; put?: never; post?: never; - delete?: never; + /** + * Delete document + * @description Soft deletes a document + */ + delete: operations["deleteDocument"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/schema": { + "/api/admin/projects/{projectID}/documents/{documentID}/metadata": { parameters: { query?: never; header?: never; @@ -1008,10 +1004,10 @@ export interface paths { cookie?: never; }; /** - * List organization schemas - * @description Retrieves all organization data schema paths for a project + * Get document metadata + * @description Retrieves detailed metadata about a document without downloading the file */ - get: operations["listOrganizationSchemas"]; + get: operations["getDocumentMetadata"]; put?: never; post?: never; delete?: never; @@ -1020,7 +1016,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/organizations/users/schema": { + "/api/admin/projects/{projectID}/admins": { parameters: { query?: never; header?: never; @@ -1028,10 +1024,10 @@ export interface paths { cookie?: never; }; /** - * List organization user schemas - * @description Retrieves all organization user data schema paths for a project + * List project admins + * @description Retrieves a list of admins for a project with optional filtering */ - get: operations["listOrganizationMemberSchemas"]; + get: operations["listProjectAdmins"]; put?: never; post?: never; delete?: never; @@ -1040,7 +1036,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations": { + "/api/admin/projects/{projectID}/admins/{adminID}": { parameters: { query?: never; header?: never; @@ -1048,19 +1044,27 @@ export interface paths { cookie?: never; }; /** - * Get user organizations - * @description Retrieves all organizations a user belongs to + * Get project admin + * @description Retrieves a specific project admin by ID */ - get: operations["getUserOrganizations"]; + get: operations["getProjectAdmin"]; put?: never; post?: never; - delete?: never; + /** + * Remove admin from project + * @description Removes an admin from a project (soft delete) + */ + delete: operations["deleteProjectAdmin"]; options?: never; head?: never; - patch?: never; + /** + * Update project admin role + * @description Updates the role of an admin in a project + */ + patch: operations["updateProjectAdmin"]; trace?: never; }; - "/api/admin/projects/{projectID}/tags": { + "/api/admin/projects/{projectID}/keys": { parameters: { query?: never; header?: never; @@ -1068,23 +1072,23 @@ export interface paths { cookie?: never; }; /** - * List tags - * @description Retrieves a list of tags with optional search filtering + * List API keys + * @description Retrieves a paginated list of API keys for a project */ - get: operations["listTags"]; + get: operations["listApiKeys"]; put?: never; /** - * Create tag - * @description Creates a new tag + * Create API key + * @description Creates a new API key for a project */ - post: operations["createTag"]; + post: operations["createApiKey"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/tags/{tagID}": { + "/api/admin/projects/{projectID}/keys/{keyID}": { parameters: { query?: never; header?: never; @@ -1092,27 +1096,27 @@ export interface paths { cookie?: never; }; /** - * Get tag by ID - * @description Retrieves a specific tag + * Get API key by ID + * @description Retrieves a specific API key */ - get: operations["getTag"]; + get: operations["getApiKey"]; put?: never; post?: never; /** - * Delete tag - * @description Deletes a specific tag + * Delete API key + * @description Deletes an API key, revoking access */ - delete: operations["deleteTag"]; + delete: operations["deleteApiKey"]; options?: never; head?: never; /** - * Update tag - * @description Updates a specific tag + * Update API key + * @description Updates an API key's name or description (scope cannot be changed) */ - patch: operations["updateTag"]; + patch: operations["updateApiKey"]; trace?: never; }; - "/api/admin/projects/{projectID}/subscriptions": { + "/api/admin/projects/{projectID}/providers": { parameters: { query?: never; header?: never; @@ -1120,23 +1124,19 @@ export interface paths { cookie?: never; }; /** - * List subscriptions - * @description Retrieves a list of subscription types for a project + * List providers + * @description Retrieves a paginated list of providers for a project */ - get: operations["listSubscriptions"]; + get: operations["listProviders"]; put?: never; - /** - * Create subscription type - * @description Creates a new subscription type - */ - post: operations["createSubscription"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subscriptions/{subscriptionID}": { + "/api/admin/projects/{projectID}/providers/all": { parameters: { query?: never; header?: never; @@ -1144,47 +1144,19 @@ export interface paths { cookie?: never; }; /** - * Get subscription by ID - * @description Retrieves a specific subscription type + * List all providers + * @description Retrieves all providers for a project without pagination */ - get: operations["getSubscription"]; + get: operations["listAllProviders"]; put?: never; post?: never; delete?: never; options?: never; head?: never; - /** - * Update subscription type - * @description Updates a specific subscription type - */ - patch: operations["updateSubscription"]; - trace?: never; - }; - "/api/admin/projects/{projectID}/locales": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List locales - * @description Retrieves a paginated list of locales for a project - */ - get: operations["listLocales"]; - put?: never; - /** - * Create locale - * @description Creates a new locale for a project - */ - post: operations["createLocale"]; - delete?: never; - options?: never; - head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/locales/{localeID}": { + "/api/admin/projects/{projectID}/providers/meta": { parameters: { query?: never; header?: never; @@ -1192,91 +1164,39 @@ export interface paths { cookie?: never; }; /** - * Get locale by ID - * @description Retrieves a specific locale + * List available provider modules + * @description Retrieves all available provider modules (integrations) that can be configured */ - get: operations["getLocale"]; + get: operations["listProviderMeta"]; put?: never; post?: never; - /** - * Delete locale - * @description Deletes a locale from a project - */ - delete: operations["deleteLocale"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/documents": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List documents - * @description Retrieves a paginated list of documents for a project - */ - get: operations["listDocuments"]; - put?: never; - /** - * Upload documents - * @description Uploads one or more documents using multipart/form-data - */ - post: operations["uploadDocuments"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/documents/{documentID}": { + "/api/admin/projects/{projectID}/providers/{group}/{type}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** - * Retrieve a document - * @description Retrieves a document file by ID - */ - get: operations["getDocument"]; + get?: never; put?: never; - post?: never; - /** - * Delete document - * @description Soft deletes a document - */ - delete: operations["deleteDocument"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/documents/{documentID}/metadata": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; /** - * Get document metadata - * @description Retrieves detailed metadata about a document without downloading the file + * Create provider + * @description Creates a new provider configuration */ - get: operations["getDocumentMetadata"]; - put?: never; - post?: never; + post: operations["createProvider"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/admins": { + "/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}": { parameters: { query?: never; header?: never; @@ -1284,568 +1204,103 @@ export interface paths { cookie?: never; }; /** - * List project admins - * @description Retrieves a list of admins for a project with optional filtering + * Get provider by ID + * @description Retrieves a specific provider */ - get: operations["listProjectAdmins"]; + get: operations["getProvider"]; put?: never; post?: never; delete?: never; options?: never; head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/admins/{adminID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get project admin - * @description Retrieves a specific project admin by ID - */ - get: operations["getProjectAdmin"]; - put?: never; - post?: never; - /** - * Remove admin from project - * @description Removes an admin from a project (soft delete) - */ - delete: operations["deleteProjectAdmin"]; - options?: never; - head?: never; /** - * Update project admin role - * @description Updates the role of an admin in a project + * Update provider + * @description Updates provider configuration */ - patch: operations["updateProjectAdmin"]; + patch: operations["updateProvider"]; trace?: never; }; - "/api/admin/projects/{projectID}/keys": { + "/api/admin/projects/{projectID}/providers/{providerID}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** - * List API keys - * @description Retrieves a paginated list of API keys for a project - */ - get: operations["listApiKeys"]; + get?: never; put?: never; + post?: never; /** - * Create API key - * @description Creates a new API key for a project + * Delete provider + * @description Soft deletes a provider */ - post: operations["createApiKey"]; - delete?: never; + delete: operations["deleteProvider"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/keys/{keyID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get API key by ID - * @description Retrieves a specific API key - */ - get: operations["getApiKey"]; - put?: never; - post?: never; +} +export type webhooks = Record; +export interface components { + schemas: { /** - * Delete API key - * @description Deletes an API key, revoking access + * @description Communication channel type + * @example email + * @enum {string} */ - delete: operations["deleteApiKey"]; - options?: never; - head?: never; + Channel: "email" | "text" | "push" | "webhook"; /** - * Update API key - * @description Updates an API key's name or description (scope cannot be changed) + * @description Journey step type + * @example entrance + * @enum {string} */ - patch: operations["updateApiKey"]; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; + JourneyStepType: "entrance" | "exit" | "delay" | "action" | "gate" | "experiment" | "link" | "sticky" | "balancer" | "update" | "event"; + /** @description Data for entrance step - entry point into journey */ + EntranceStepData: { + /** + * @description Trigger type for entrance + * @example event + * @enum {string} + */ + trigger?: "none" | "event" | "schedule"; + /** + * @description Event name that triggers entrance + * @example user_signup + */ + event_name?: string; + /** @description Rule for filtering events */ + rule?: { + [key: string]: unknown; + }; + /** + * @description Allow multiple entries + * @example false + */ + multiple?: boolean; + /** + * @description Allow concurrent journey runs + * @example false + */ + concurrent?: boolean; + /** + * Format: uuid + * @description List ID for scheduled entrance + */ + list_id?: string; + /** + * @description RRule schedule string + * @example FREQ=DAILY;BYHOUR=9;BYMINUTE=0 + */ + schedule?: string; }; - /** - * List actions - * @description Retrieves a paginated list of actions for a project - */ - get: operations["listActions"]; - put?: never; - /** - * Create action - * @description Creates a new action for a project - */ - post: operations["createAction"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/{actionID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get action by ID - * @description Retrieves a specific action - */ - get: operations["getAction"]; - put?: never; - post?: never; - /** - * Delete action - * @description Deletes an action - */ - delete: operations["deleteAction"]; - options?: never; - head?: never; - /** - * Update action - * @description Updates an action's name, type, or config - */ - patch: operations["updateAction"]; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/meta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List available action modules - * @description Retrieves all available action modules that can be configured - */ - get: operations["listActionMeta"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/meta/{actionType}/preview": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get action module preview - * @description Returns raw HTML preview for a specific action module - */ - get: operations["getActionPreview"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/test": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Test an action configuration - * @description Validates an action's configuration (e.g. API keys, OAuth credentials, bearer tokens) by calling the module's validate function. Does not require the action to be saved first. - */ - post: operations["testAction"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List action function schemas - * @description Retrieves the schema paths for an action function's execution result metadata - */ - get: operations["listActionSchemas"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Test action function execution - * @description Tests executing an action function with the given input, useful for validating function calls in the journey editor - */ - post: operations["testActionFunction"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List providers - * @description Retrieves a paginated list of providers for a project - */ - get: operations["listProviders"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers/all": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List all providers - * @description Retrieves all providers for a project without pagination - */ - get: operations["listAllProviders"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers/meta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List available provider modules - * @description Retrieves all available provider modules (integrations) that can be configured - */ - get: operations["listProviderMeta"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers/{group}/{type}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Create provider - * @description Creates a new provider configuration - */ - post: operations["createProvider"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get provider by ID - * @description Retrieves a specific provider - */ - get: operations["getProvider"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - /** - * Update provider - * @description Updates provider configuration - */ - patch: operations["updateProvider"]; - trace?: never; - }; - "/api/admin/projects/{projectID}/providers/{providerID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * Delete provider - * @description Soft deletes a provider - */ - delete: operations["deleteProvider"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - /** - * @description Communication channel type - * @example email - * @enum {string} - */ - Channel: "email" | "text" | "push"; - /** - * @description Type of action (module ID from registered action modules) - * @example webhook - */ - ActionType: string; - Action: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - project_id: string; - /** @example My Webhook Action */ - name: string; - type: components["schemas"]["ActionType"]; - /** @description Action configuration (varies by type) */ - config: { - [key: string]: unknown; - }; - /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z - */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z - */ - updated_at: string; - }; - CreateAction: { - /** @example My Webhook Action */ - name: string; - type: components["schemas"]["ActionType"]; - /** @description Action configuration (varies by type) */ - config?: { - [key: string]: unknown; - }; - }; - UpdateAction: { - /** @example Updated Action Name */ - name?: string; - type?: components["schemas"]["ActionType"]; - /** @description Action configuration (varies by type) */ - config?: { - [key: string]: unknown; - }; - }; - ActionMeta: { - /** - * @description Module ID - * @example webhook - */ - type: string; - /** - * @description Human-readable module name - * @example Webhook - */ - name: string; - /** - * @description Module description - * @example Send HTTP webhooks to external services - */ - description?: string; - /** @description JSON Schema for module-level configuration (API keys, etc.) */ - config_schema?: { - [key: string]: unknown; - }; - /** @description Available functions in this action module */ - functions: components["schemas"]["ActionFunction"][]; - /** @description Whether this module is hidden from the UI */ - hidden?: boolean; - }; - ActionFunction: { - /** - * @description Function identifier - * @example send_request - */ - id: string; - /** - * @description Human-readable function name - * @example Send Request - */ - title: string; - /** - * @description Function description - * @example Send an HTTP request to an external endpoint - */ - description?: string; - /** @description JSON Schema for function input */ - input_schema?: { - [key: string]: unknown; - }; - }; - TestActionRequest: { - type: components["schemas"]["ActionType"]; - /** @description Action configuration to validate (API keys, OAuth tokens, etc.) */ - config?: { - [key: string]: unknown; - }; - }; - TestActionResult: { - /** - * @description Status code returned by the validation (e.g. 200 for success, 400/401/500 for errors) - * @example 200 - */ - status_code: number; - /** - * @description Human-readable validation message - * @example Configuration is valid - */ - message?: string; - }; - TestActionFunctionRequest: { - /** @description Input parameters for the function execution */ - input?: { - [key: string]: unknown; - }; - }; - TestActionFunctionResult: { - /** - * @description Status code returned by the function execution (e.g. 200 for success, 400/500 for errors) - * @example 200 - */ - status_code: number; - /** - * @description Metadata returned by the function execution - * @example { - * "response_body": "OK" - * } - */ - metadata?: { - [key: string]: unknown; - }; - }; - /** - * @description Journey step type - * @example entrance - * @enum {string} - */ - JourneyStepType: "entrance" | "exit" | "delay" | "action" | "campaign" | "gate" | "experiment" | "link" | "sticky" | "balancer" | "update" | "event"; - /** @description Data for entrance step - entry point into journey */ - EntranceStepData: { - /** - * @description Trigger type for entrance - * @example event - * @enum {string} - */ - trigger?: "none" | "event"; - /** - * @description Event name that triggers entrance - * @example user_signup - */ - event_name?: string; - /** @description Rule for filtering events */ - rule?: { - [key: string]: unknown; - }; - /** @description Rule for filtering users (used with organization events) */ - user_rule?: { - [key: string]: unknown; - }; - /** - * @description Allow multiple entries - * @example false - */ - multiple?: boolean; - /** - * @description Allow concurrent journey runs - * @example false - */ - concurrent?: boolean; - }; - /** @description Data for exit step - exits user from journey */ - ExitStepData: { - /** - * @description External ID of entrance to exit from - * @example step_abc123 - */ - entrance_uuid: string; + /** @description Data for exit step - exits user from journey */ + ExitStepData: { + /** + * @description External ID of entrance to exit from + * @example step_abc123 + */ + entrance_uuid: string; }; /** @description Data for delay step - wait before proceeding */ DelayStepData: { @@ -1883,8 +1338,8 @@ export interface components { /** @description Days to exclude (0=Sunday, 6=Saturday) */ exclusion_days?: number[]; }; - /** @description Data for campaign step - send campaign */ - CampaignStepData: { + /** @description Data for action step - send campaign */ + ActionStepData: { /** * Format: uuid * @description Campaign to send @@ -1892,15 +1347,6 @@ export interface components { */ campaign_id: string; }; - /** @description Data for action step - execute WASM action */ - ActionStepData: { - /** - * Format: uuid - * @description Action to execute - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa - */ - action_id: string; - }; /** @description Data for gate step - conditional branching */ GateStepData: { /** @description Rule set for conditional evaluation */ @@ -1989,7 +1435,7 @@ export interface components { * @example admin * @enum {string} */ - ProjectRole: "support" | "client" | "editor" | "admin"; + ProjectRole: "support" | "editor" | "publisher" | "admin"; /** * @description User subscription state * @example subscribed @@ -2063,6 +1509,13 @@ export interface components { link_wrap_email?: boolean; /** @example false */ link_wrap_push?: boolean; + /** + * @example [ + * "analytics", + * "reporting" + * ] + */ + tools?: string[]; /** @example 3 */ integrations_count?: number; /** @example 12 */ @@ -2101,6 +1554,12 @@ export interface components { link_wrap_email?: boolean; /** @example false */ link_wrap_push?: boolean; + /** + * @example [ + * "analytics" + * ] + */ + tools?: string[]; }; UpdateProject: { /** @example Updated Project Name */ @@ -2119,6 +1578,13 @@ export interface components { link_wrap_email?: boolean; /** @example true */ link_wrap_push?: boolean; + /** + * @example [ + * "analytics", + * "reporting" + * ] + */ + tools?: string[]; }; CreateCampaign: { /** @example Welcome Campaign */ @@ -2144,7 +1610,7 @@ export interface components { CreateTemplate: { /** * @description The locale/language code for the template - * @example en-US + * @example en */ locale: string; /** @description Template-specific data based on type. Structure varies by template type. */ @@ -2252,7 +1718,6 @@ export interface components { [key: string]: unknown; }; tags?: string[]; - /** @description When true, publishes the current draft rule making it active */ published?: boolean; }; List: { @@ -2271,24 +1736,15 @@ export interface components { */ type: "static" | "dynamic"; /** - * @description draft = not yet published, ready = published and active, loading = recomputing - * @example draft + * @example ready * @enum {string} */ state: "draft" | "ready" | "loading"; - /** @description Published rule definition (from the published version) */ + /** Format: uuid */ + rule_id?: string; rule?: { [key: string]: unknown; }; - /** @description Draft rule definition (from the draft version, if one exists) */ - draft_rule?: { - [key: string]: unknown; - }; - /** - * @description Current version number of the active list version - * @example 1 - */ - version_number?: number; /** @example 1 */ version: number; /** @example 1250 */ @@ -2326,6 +1782,13 @@ export interface components { data?: components["schemas"]["EmailProviderData"] | components["schemas"]["SmsProviderData"] | components["schemas"]["PushProviderData"]; /** @example true */ is_default: boolean; + /** @example 0 */ + rate_limit?: number; + /** + * @example second + * @enum {string} + */ + rate_interval?: "second" | "minute" | "hour" | "day"; /** * Format: date-time * @example 2025-11-05T13:38:03.861Z @@ -2345,6 +1808,9 @@ export interface components { }; /** @example false */ is_default?: boolean; + rate_limit?: number; + /** @enum {string} */ + rate_interval?: "second" | "minute" | "hour" | "day"; }; UpdateProvider: { /** @example My Email Provider */ @@ -2353,6 +1819,9 @@ export interface components { [key: string]: unknown; }; is_default?: boolean; + rate_limit?: number; + /** @enum {string} */ + rate_interval?: "second" | "minute" | "hour" | "day"; }; ProviderMeta: { /** @@ -2372,8 +1841,6 @@ export interface components { schema: { [key: string]: unknown; }; - /** @description Whether this module is hidden from the UI */ - hidden?: boolean; }; Template: { /** @@ -2403,7 +1870,7 @@ export interface components { campaign_id: string; type: components["schemas"]["Channel"]; data: components["schemas"]["EmailTemplateData"] | components["schemas"]["SmsTemplateData"] | components["schemas"]["PushTemplateData"]; - /** @example en-US */ + /** @example en */ locale: string; }; EmailTemplateData: { @@ -2512,6 +1979,33 @@ export interface components { /** @example Smith */ last_name?: string; }; + Organization: { + /** + * Format: uuid + * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b + */ + id: string; + /** @example Acme Corporation */ + name: string; + /** @example https://acme.com/track */ + tracking_deeplink_mirror_url?: string; + /** Format: uuid */ + notification_provider_id?: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + UpdateOrganization: { + /** @example https://acme.com/track */ + tracking_deeplink_mirror_url?: string; + }; User: { /** * Format: uuid @@ -2614,203 +2108,8 @@ export interface components { locale?: string; /** * @example { - * "first_name": "Jane", - * "last_name": "Smith" - * } - */ - data?: { - [key: string]: unknown; - }; - }; - Organization: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - project_id: string; - /** - * @description External identifier for the organization from your system - * @example org_123 - */ - external_id: string; - /** @example Acme Corp */ - name?: string; - /** - * @example { - * "industry": "technology", - * "size": "enterprise" - * } - */ - data: { - [key: string]: unknown; - }; - /** @example 1 */ - version: number; - /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z - */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z - */ - updated_at: string; - }; - OrganizationList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Organization"][]; - }; - OrganizationEvent: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - project_id: string; - /** - * Format: uuid - * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b - */ - organization_id: string; - /** @example subscription_upgraded */ - name: string; - /** - * @example { - * "plan": "enterprise", - * "seats": 50 - * } - */ - data?: { - [key: string]: unknown; - }; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.000Z - */ - created_at: string; - }; - OrganizationEventList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["OrganizationEvent"][]; - }; - UpsertOrganization: { - /** - * @description External identifier for the organization from your system - * @example org_123 - */ - external_id: string; - /** @example Acme Corp */ - name?: string; - /** - * @example { - * "industry": "technology", - * "size": "enterprise" - * } - */ - data?: { - [key: string]: unknown; - }; - }; - UpdateOrganization: { - /** @example Acme Corporation */ - name?: string; - /** - * @example { - * "industry": "technology", - * "size": "enterprise" - * } - */ - data?: { - [key: string]: unknown; - }; - }; - OrganizationMember: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - project_id: string; - /** @example anon_abc123xyz */ - anonymous_id: string; - /** @example user_123 */ - external_id?: string; - /** - * Format: email - * @example user@example.com - */ - email?: string; - /** - * Format: phone - * @description E.164 formatted phone number - * @example +1234567890 - */ - phone?: string; - /** - * @example { - * "first_name": "John", - * "last_name": "Doe" - * } - */ - data: { - [key: string]: unknown; - }; - /** @example America/New_York */ - timezone?: string; - /** @example en-US */ - locale?: string; - /** @example false */ - has_push_device: boolean; - /** @example 1 */ - version: number; - /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z - */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z - */ - updated_at: string; - /** - * @description Organization-specific data for this user - * @example { - * "role": "admin", - * "department": "engineering" - * } - */ - organization_data: { - [key: string]: unknown; - }; - }; - OrganizationMemberList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["OrganizationMember"][]; - }; - AddOrganizationMember: { - /** - * Format: uuid - * @description The user ID to add to the organization - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - user_id: string; - /** - * @description Organization-specific data for this user - * @example { - * "role": "member", - * "department": "sales" + * "first_name": "Jane", + * "last_name": "Smith" * } */ data?: { @@ -2858,40 +2157,6 @@ export interface components { UserEventList: components["schemas"]["PaginatedResponse"] & { results: components["schemas"]["UserEvent"][]; }; - UserDevice: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** @example AB12CD34-EF56-GH78-IJ90 */ - device_id: string; - /** @example fcm_token_abc123 */ - token?: string | null; - /** @example iOS */ - os?: string | null; - /** @example 17.2 */ - os_version?: string | null; - /** @example iPhone 15 Pro */ - model?: string | null; - /** @example 142 */ - app_build?: string | null; - /** @example 2.1.0 */ - app_version?: string | null; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.000Z - */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.000Z - */ - updated_at: string; - }; - UserDeviceList: { - results: components["schemas"]["UserDevice"][]; - }; UserSubscription: { /** * Format: uuid @@ -3146,13 +2411,13 @@ export interface components { /** Format: uuid */ project_id: string; /** - * @description Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") - * @example en-US + * @description Locale key (e.g., language code) + * @example en */ key: string; /** * @description Human-readable locale label - * @example English (United States) + * @example English */ label: string; /** @@ -3168,13 +2433,13 @@ export interface components { }; CreateLocale: { /** - * @description Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") - * @example en-US + * @description Locale key (e.g., language code) + * @example en */ key: string; /** * @description Human-readable locale label - * @example English (United States) + * @example English */ label: string; }; @@ -3398,9 +2663,6 @@ export interface components { */ types: string[]; }; - ActionSchemaListResponse: { - results: components["schemas"]["SchemaPath"][]; - }; AuthCallbackRequest: { /** * Format: email @@ -3417,535 +2679,209 @@ export interface components { * @description URL to redirect after successful auth * @example / */ - redirect?: string; - }; - }; - responses: { - /** @description Error response */ - Error: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Problem"]; - }; - }; - /** @description Campaigns retrieved successfully */ - CampaignListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Campaign"][]; - }; - }; - }; - /** @description Journeys retrieved successfully */ - JourneyListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Journey"][]; - }; - }; - }; - /** @description Tags retrieved successfully */ - TagListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Tag"][]; - }; - }; - }; - /** @description Subscriptions retrieved successfully */ - SubscriptionListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Subscription"][]; - }; - }; - }; - /** @description Documents retrieved successfully */ - DocumentListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Document"][]; - }; - }; - }; - /** @description Lists retrieved successfully */ - ListListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["List"][]; - }; - }; - }; - /** @description Events retrieved successfully */ - EventListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - results: components["schemas"]["EventWithSchema"][]; - }; - }; - }; - /** @description Providers retrieved successfully */ - ProviderListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Provider"][]; - }; - }; - }; - /** @description API keys retrieved successfully */ - ApiKeyListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["ApiKey"][]; - }; - }; - }; - /** @description Actions retrieved successfully */ - ActionListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Action"][]; - }; - }; - }; - }; - parameters: { - /** @description Maximum number of items to return */ - Limit: number; - /** @description Number of items to skip */ - Offset: number; - /** @description Search query string */ - Search: string; - }; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - getAuthMethods: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Auth methods retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string[]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - authCallback: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The authentication driver */ - driver: "basic" | "clerk"; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["AuthCallbackRequest"]; - }; - }; - responses: { - /** @description Authentication successful */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - default: components["responses"]["Error"]; - }; - }; - authWebhook: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The authentication driver */ - driver: "clerk"; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Webhook processed successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - default: components["responses"]["Error"]; - }; - }; - listCampaigns: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["CampaignListResponse"]; - default: components["responses"]["Error"]; - }; - }; - createCampaign: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; + redirect?: string; }; - requestBody: { + }; + responses: { + /** @description Error response */ + Error: { + headers: { + [name: string]: unknown; + }; content: { - "application/json": components["schemas"]["CreateCampaign"]; + "application/json": components["schemas"]["Problem"]; }; }; - responses: { - /** @description Campaign created successfully */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Campaign"]; + /** @description Campaigns retrieved successfully */ + CampaignListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Campaign"][]; }; }; - default: components["responses"]["Error"]; }; - }; - getCampaign: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description Journeys retrieved successfully */ + JourneyListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Campaign retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data: components["schemas"]["Campaign"]; - }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Journey"][]; }; }; - default: components["responses"]["Error"]; }; - }; - deleteCampaign: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description Tags retrieved successfully */ + TagListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Campaign deleted successfully */ - 204: { - headers: { - [name: string]: unknown; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Tag"][]; }; - content?: never; }; - default: components["responses"]["Error"]; }; - }; - updateCampaign: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description Subscriptions retrieved successfully */ + SubscriptionListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody: { content: { - "application/json": components["schemas"]["UpdateCampaign"]; + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Subscription"][]; + }; }; }; - responses: { - /** @description Campaign updated successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Campaign"]; + /** @description Documents retrieved successfully */ + DocumentListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Document"][]; }; }; - default: components["responses"]["Error"]; }; - }; - createTemplate: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description Lists retrieved successfully */ + ListListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody: { content: { - "application/json": components["schemas"]["CreateTemplate"]; + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["List"][]; + }; }; }; - responses: { - /** @description Template created successfully */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Template"]; + /** @description Events retrieved successfully */ + EventListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + results: components["schemas"]["EventWithSchema"][]; }; }; - default: components["responses"]["Error"]; }; - }; - getTemplate: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; + /** @description Providers retrieved successfully */ + ProviderListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Template retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data: components["schemas"]["Template"]; - }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Provider"][]; }; }; - default: components["responses"]["Error"]; }; - }; - deleteTemplate: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; + /** @description API keys retrieved successfully */ + ApiKeyListResponse: { + headers: { + [name: string]: unknown; }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Template deleted successfully */ - 204: { - headers: { - [name: string]: unknown; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["ApiKey"][]; }; - content?: never; }; - default: components["responses"]["Error"]; }; }; - updateTemplate: { + parameters: { + /** @description Maximum number of items to return */ + Limit: number; + /** @description Number of items to skip */ + Offset: number; + /** @description Search query string */ + Search: string; + }; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + getAuthMethods: { parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTemplate"]; - }; + query?: never; + header?: never; + path?: never; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Template updated successfully */ + /** @description Auth methods retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Template"]; + "application/json": string[]; }; }; default: components["responses"]["Error"]; }; }; - duplicateCampaign: { + authCallback: { parameters: { query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID to duplicate */ - campaignID: string; + /** @description The authentication driver */ + driver: "basic" | "clerk"; }; cookie?: never; }; - requestBody?: never; + requestBody?: { + content: { + "application/json": components["schemas"]["AuthCallbackRequest"]; + }; + }; responses: { - /** @description Campaign duplicated successfully */ - 201: { + /** @description Authentication successful */ + 200: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["Campaign"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - getCampaignUsers: { + authWebhook: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description The authentication driver */ + driver: "clerk"; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Campaign users retrieved successfully */ + /** @description Webhook processed successfully */ 200: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["CampaignUser"][]; - total: number; - limit: number; - offset: number; - }; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - listLists: { + listCampaigns: { parameters: { query?: { /** @description Maximum number of items to return */ limit?: components["parameters"]["Limit"]; /** @description Number of items to skip */ offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; }; header?: never; path: { @@ -3956,11 +2892,11 @@ export interface operations { }; requestBody?: never; responses: { - 200: components["responses"]["ListListResponse"]; + 200: components["responses"]["CampaignListResponse"]; default: components["responses"]["Error"]; }; }; - createList: { + createCampaign: { parameters: { query?: never; header?: never; @@ -3972,63 +2908,65 @@ export interface operations { }; requestBody: { content: { - "application/json": components["schemas"]["CreateList"]; + "application/json": components["schemas"]["CreateCampaign"]; }; }; responses: { - /** @description List created successfully */ + /** @description Campaign created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["List"]; + "application/json": components["schemas"]["Campaign"]; }; }; default: components["responses"]["Error"]; }; }; - getList: { + getCampaign: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The campaign ID */ + campaignID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description List retrieved successfully */ + /** @description Campaign retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["List"]; + "application/json": { + data: components["schemas"]["Campaign"]; + }; }; }; default: components["responses"]["Error"]; }; }; - deleteList: { + deleteCampaign: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The campaign ID */ + campaignID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description List deleted successfully */ + /** @description Campaign deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -4038,248 +2976,113 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateList: { + updateCampaign: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The campaign ID */ + campaignID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateList"]; - }; - }; - responses: { - /** @description List updated successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["List"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - duplicateList: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The list ID to duplicate */ - listID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description List duplicated successfully */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["List"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - getListUsers: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The list ID */ - listID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description List users retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UserList"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - previewListUsers: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The list ID */ - listID: string; + "application/json": components["schemas"]["UpdateCampaign"]; }; - cookie?: never; }; - requestBody?: never; responses: { - /** @description Preview users retrieved successfully */ + /** @description Campaign updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserList"]; + "application/json": components["schemas"]["Campaign"]; }; }; default: components["responses"]["Error"]; }; }; - importListUsers: { + createTemplate: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description CSV file containing user data. Must include external_id column. - */ - file: string; - }; - }; - }; - responses: { - /** @description Users imported successfully */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - default: components["responses"]["Error"]; - }; - }; - listProjects: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Projects retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectList"]; - }; + /** @description The campaign ID */ + campaignID: string; }; - default: components["responses"]["Error"]; - }; - }; - createProject: { - parameters: { - query?: never; - header?: never; - path?: never; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["CreateProject"]; + "application/json": components["schemas"]["CreateTemplate"]; }; }; responses: { - /** @description Project created successfully */ + /** @description Template created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": components["schemas"]["Template"]; }; }; default: components["responses"]["Error"]; }; }; - getProject: { + getTemplate: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Project retrieved successfully */ + /** @description Template retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": { + data: components["schemas"]["Template"]; + }; }; }; default: components["responses"]["Error"]; }; }; - deleteProject: { + deleteTemplate: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Project deleted successfully */ + /** @description Template deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -4289,545 +3092,515 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateProject: { + updateTemplate: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateProject"]; + "application/json": components["schemas"]["UpdateTemplate"]; }; }; responses: { - /** @description Project updated successfully */ + /** @description Template updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": components["schemas"]["Template"]; }; }; default: components["responses"]["Error"]; }; }; - listJourneys: { + duplicateCampaign: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The campaign ID to duplicate */ + campaignID: string; }; cookie?: never; }; requestBody?: never; responses: { - 200: components["responses"]["JourneyListResponse"]; - default: components["responses"]["Error"]; - }; - }; - createJourney: { - parameters: { - query?: { - /** @description If true, immediately publish the journey after creation */ - publish?: boolean; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateJourney"]; - }; - }; - responses: { - /** @description Journey created successfully */ + /** @description Campaign duplicated successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["Campaign"]; }; }; default: components["responses"]["Error"]; }; }; - getJourney: { + getCampaignUsers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The campaign ID */ + campaignID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey retrieved successfully */ + /** @description Campaign users retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": { + data: components["schemas"]["CampaignUser"][]; + total: number; + limit: number; + offset: number; + }; }; }; default: components["responses"]["Error"]; }; }; - deleteJourney: { + listLists: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey deleted successfully */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; + 200: components["responses"]["ListListResponse"]; default: components["responses"]["Error"]; }; }; - updateJourney: { + createList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateJourney"]; + "application/json": components["schemas"]["CreateList"]; }; }; responses: { - /** @description Journey updated successfully */ - 200: { + /** @description List created successfully */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["List"]; }; }; default: components["responses"]["Error"]; }; }; - getUserJourneyState: { + getList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The user ID */ - userID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User journey state retrieved successfully */ + /** @description List retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - external_step_id?: string; - step_type?: string; - is_completed?: boolean; - }[]; + "application/json": components["schemas"]["List"]; }; }; default: components["responses"]["Error"]; }; }; - streamUserJourneySteps: { + deleteList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The user ID to check journey status for */ - userID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Server-Sent Event stream of user journey step updates */ - 200: { + /** @description List deleted successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "text/event-stream": string; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - AdvanceUserStep: { + updateList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The user ID whose current step should be advanced */ - userID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": { - /** - * Format: uuid - * @description The external ID of the current step to advance - */ - externalStepID: string; - }; + "application/json": components["schemas"]["UpdateList"]; }; }; responses: { - /** @description Current step advanced successfully */ + /** @description List updated successfully */ 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["List"]; + }; }; default: components["responses"]["Error"]; }; }; - triggerUser: { + duplicateList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The user ID to enroll in the journey */ - userID: string; + /** @description The list ID to duplicate */ + listID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": { - /** - * Format: uuid - * @description The ID of the journey entry to enroll the user in - */ - externalStepID: string; - }; - }; - }; + requestBody?: never; responses: { - /** @description User enrolled in journey successfully */ - 200: { + /** @description List duplicated successfully */ + 201: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["List"]; + }; }; default: components["responses"]["Error"]; }; }; - getJourneySteps: { + getListUsers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey steps retrieved successfully */ + /** @description List users retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["JourneyStepMap"]; + "application/json": components["schemas"]["UserList"]; }; }; default: components["responses"]["Error"]; }; }; - setJourneySteps: { + importListUsers: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["JourneyStepMap"]; + "multipart/form-data": { + /** + * Format: binary + * @description CSV file containing user data. Must include external_id column. + */ + file: string; + }; }; }; responses: { - /** @description Journey steps updated successfully */ - 200: { + /** @description Users imported successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["JourneyStepMap"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - versionJourney: { + listProjects: { parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; }; + header?: never; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey version created successfully */ - 201: { + /** @description Projects retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["ProjectList"]; }; }; default: components["responses"]["Error"]; }; }; - duplicateJourney: { + createProject: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateProject"]; }; - cookie?: never; }; - requestBody?: never; responses: { - /** @description Journey duplicated successfully */ + /** @description Project created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - publishJourney: { + getProject: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey published successfully */ + /** @description Project retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - getProfile: { + updateProject: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateProject"]; + }; + }; responses: { - /** @description Profile retrieved successfully */ + /** @description Project updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - listAdmins: { + listJourneys: { parameters: { query?: { /** @description Maximum number of items to return */ limit?: components["parameters"]["Limit"]; /** @description Number of items to skip */ offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; }; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Admins retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AdminList"]; - }; - }; + 200: components["responses"]["JourneyListResponse"]; default: components["responses"]["Error"]; }; }; - createAdmin: { + createJourney: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["CreateAdmin"]; + "application/json": components["schemas"]["CreateJourney"]; }; }; responses: { - /** @description Admin created successfully */ + /** @description Journey created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - getAdmin: { + getJourney: { parameters: { query?: never; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Admin retrieved successfully */ + /** @description Journey retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - deleteAdmin: { + deleteJourney: { parameters: { query?: never; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Admin deleted successfully */ + /** @description Journey deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -4837,227 +3610,192 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateAdmin: { + updateJourney: { parameters: { query?: never; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateAdmin"]; + "application/json": components["schemas"]["UpdateJourney"]; }; }; responses: { - /** @description Admin updated successfully */ + /** @description Journey updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - whoami: { + getJourneySteps: { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Current admin retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Admin"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - listUsers: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; - header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Users retrieved successfully */ + /** @description Journey steps retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserList"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; }; default: components["responses"]["Error"]; }; }; - identifyUser: { + setJourneySteps: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["IdentifyUser"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; }; responses: { - /** @description User identified successfully */ + /** @description Journey steps updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; }; default: components["responses"]["Error"]; }; }; - importUsers: { + versionJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; - requestBody: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description CSV file with user data (must include external_id column) - */ - file: string; - }; - }; - }; + requestBody?: never; responses: { - /** @description Users imported successfully */ - 204: { + /** @description Journey version created successfully */ + 201: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Journey"]; + }; }; default: components["responses"]["Error"]; }; }; - getUser: { + duplicateJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User retrieved successfully */ - 200: { + /** @description Journey duplicated successfully */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - deleteUser: { + publishJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User deleted successfully */ - 204: { + /** @description Journey published successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["Journey"]; + }; }; default: components["responses"]["Error"]; }; }; - updateUser: { + getProfile: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; - }; + path?: never; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateUser"]; - }; - }; + requestBody?: never; responses: { - /** @description User updated successfully */ + /** @description Profile retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - getUserEvents: { + listAdmins: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -5068,163 +3806,174 @@ export interface operations { search?: components["parameters"]["Search"]; }; header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Admins retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AdminList"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + createAdmin: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateAdmin"]; + }; + }; + responses: { + /** @description Admin created successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Admin"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + getAdmin: { + parameters: { + query?: never; + header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User events retrieved successfully */ + /** @description Admin retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserEventList"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - getUserSubscriptions: { + deleteAdmin: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User subscriptions retrieved successfully */ - 200: { + /** @description Admin deleted successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["UserSubscriptionList"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - updateUserSubscriptions: { + updateAdmin: { parameters: { query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateUserSubscriptions"]; + "application/json": components["schemas"]["UpdateAdmin"]; }; }; responses: { - /** @description User subscriptions updated successfully */ + /** @description Admin updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - getUserJourneys: { + whoami: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; - }; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description User journeys retrieved successfully */ + /** @description Current admin retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserJourneyList"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - getUserDevices: { + getOrganization: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; - }; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description User devices retrieved successfully */ + /** @description Organization retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserDeviceList"]; + "application/json": components["schemas"]["Organization"]; }; }; default: components["responses"]["Error"]; }; }; - deleteUserDevice: { + deleteOrganization: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The user ID */ - userID: string; - /** @description The device ID */ - deviceID: string; - }; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description Device deleted successfully */ + /** @description Organization deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -5234,49 +3983,53 @@ export interface operations { default: components["responses"]["Error"]; }; }; - listUserEventSchemas: { + updateOrganization: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; + path?: never; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateOrganization"]; + }; + }; responses: { - 200: components["responses"]["EventListResponse"]; + /** @description Organization updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Organization"]; + }; + }; default: components["responses"]["Error"]; }; }; - listUserSchemas: { + getOrganizationIntegrations: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description User schemas retrieved successfully */ + /** @description Integrations retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - results: components["schemas"]["SchemaPath"][]; - }; + "application/json": components["schemas"]["Provider"][]; }; }; default: components["responses"]["Error"]; }; }; - listOrganizations: { + listUsers: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -5295,19 +4048,19 @@ export interface operations { }; requestBody?: never; responses: { - /** @description Organizations retrieved successfully */ + /** @description Users retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["OrganizationList"]; + "application/json": components["schemas"]["UserList"]; }; }; default: components["responses"]["Error"]; }; }; - upsertOrganization: { + identifyUser: { parameters: { query?: never; header?: never; @@ -5319,63 +4072,45 @@ export interface operations { }; requestBody: { content: { - "application/json": components["schemas"]["UpsertOrganization"]; + "application/json": components["schemas"]["IdentifyUser"]; }; }; responses: { - /** @description Organization upserted successfully */ + /** @description User identified successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Organization"]; + "application/json": components["schemas"]["User"]; }; }; default: components["responses"]["Error"]; }; }; - getOrganization: { + importUsers: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; }; cookie?: never; }; - requestBody?: never; - responses: { - /** @description Organization retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Organization"]; + requestBody: { + content: { + "multipart/form-data": { + /** + * Format: binary + * @description CSV file with user data (must include external_id column) + */ + file: string; }; }; - default: components["responses"]["Error"]; - }; - }; - deleteOrganization: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The organization ID */ - organizationID: string; - }; - cookie?: never; }; - requestBody?: never; responses: { - /** @description Organization deleted successfully */ + /** @description Users imported successfully */ 204: { headers: { [name: string]: unknown; @@ -5385,104 +4120,98 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateOrganization: { + getUser: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateOrganization"]; - }; - }; + requestBody?: never; responses: { - /** @description Organization updated successfully */ + /** @description User retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Organization"]; + "application/json": components["schemas"]["User"]; }; }; default: components["responses"]["Error"]; }; }; - listOrganizationMembers: { + deleteUser: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Organization users retrieved successfully */ - 200: { + /** @description User deleted successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["OrganizationMemberList"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - addOrganizationMember: { + updateUser: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["AddOrganizationMember"]; + "application/json": components["schemas"]["UpdateUser"]; }; }; responses: { - /** @description User added to organization successfully */ + /** @description User updated successfully */ 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["User"]; + }; }; default: components["responses"]["Error"]; }; }; - removeOrganizationMember: { + getUserEvents: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; /** @description The user ID */ userID: string; }; @@ -5490,17 +4219,19 @@ export interface operations { }; requestBody?: never; responses: { - /** @description User removed from organization successfully */ - 204: { + /** @description User events retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["UserEventList"]; + }; }; default: components["responses"]["Error"]; }; }; - getOrganizationEvents: { + getUserSubscriptions: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -5512,68 +4243,87 @@ export interface operations { path: { /** @description The project ID */ projectID: string; - /** @description The organization ID */ - organizationID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Organization events retrieved successfully */ + /** @description User subscriptions retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["OrganizationEventList"]; + "application/json": components["schemas"]["UserSubscriptionList"]; }; }; default: components["responses"]["Error"]; }; }; - listOrganizationEventSchemas: { + updateUserSubscriptions: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateUserSubscriptions"]; + }; + }; responses: { - 200: components["responses"]["EventListResponse"]; + /** @description User subscriptions updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["User"]; + }; + }; default: components["responses"]["Error"]; }; }; - listOrganizationSchemas: { + getUserJourneys: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Organization schemas retrieved successfully */ + /** @description User journeys retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - results: components["schemas"]["SchemaPath"][]; - }; + "application/json": components["schemas"]["UserJourneyList"]; }; }; default: components["responses"]["Error"]; }; }; - listOrganizationMemberSchemas: { + listEvents: { parameters: { query?: never; header?: never; @@ -5585,52 +4335,30 @@ export interface operations { }; requestBody?: never; responses: { - /** @description Organization user schemas retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - results: components["schemas"]["SchemaPath"][]; - }; - }; - }; + 200: components["responses"]["EventListResponse"]; default: components["responses"]["Error"]; }; }; - getUserOrganizations: { + listUserSchemas: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User organizations retrieved successfully */ + /** @description User schemas retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - results: components["schemas"]["Organization"][]; - total: number; - limit: number; - offset: number; + results: components["schemas"]["SchemaPath"][]; }; }; }; @@ -6359,275 +5087,6 @@ export interface operations { default: components["responses"]["Error"]; }; }; - listActions: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["ActionListResponse"]; - default: components["responses"]["Error"]; - }; - }; - createAction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateAction"]; - }; - }; - responses: { - /** @description Action created successfully */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Action"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - getAction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action ID */ - actionID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Action retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Action"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - deleteAction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action ID */ - actionID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Action deleted successfully */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - default: components["responses"]["Error"]; - }; - }; - updateAction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action ID */ - actionID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateAction"]; - }; - }; - responses: { - /** @description Action updated successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Action"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - listActionMeta: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Action modules retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ActionMeta"][]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - getActionPreview: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action module type (module ID) */ - actionType: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Action preview HTML retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/html": string; - }; - }; - default: components["responses"]["Error"]; - }; - }; - testAction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TestActionRequest"]; - }; - }; - responses: { - /** @description Action test executed successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TestActionResult"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - listActionSchemas: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action ID */ - actionID: string; - /** @description The function ID within the action module */ - functionID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Action schemas retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ActionSchemaListResponse"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - testActionFunction: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The action ID */ - actionID: string; - /** @description The function ID within the action module */ - functionID: string; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TestActionFunctionRequest"]; - }; - }; - responses: { - /** @description Action function test executed successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TestActionFunctionResult"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; listProviders: { parameters: { query?: { diff --git a/console/src/views/auth/Login.tsx b/console/src/views/auth/Login.tsx index 657229aee..31e1462f7 100644 --- a/console/src/views/auth/Login.tsx +++ b/console/src/views/auth/Login.tsx @@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next" import { Loader2, Mail, Lock, ArrowLeft } from "lucide-react" import { useForm } from "react-hook-form" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { type AuthDriver, AUTH_DRIVERS } from "../../types" import { Button } from "@/components/ui/button" @@ -57,7 +57,10 @@ export default function Login() { setIsSubmitting(true) try { - await api.auth.basicAuth(data.email, data.password) + await oapiClient.POST("/api/auth/login/{driver}/callback", { + params: { path: { driver: AUTH_DRIVERS.BASIC } }, + body: { email: data.email, password: data.password }, + }) window.location.href = redirect } catch (err) { console.error("Basic auth failed:", err) @@ -67,9 +70,10 @@ export default function Login() { } useEffect(() => { - api.auth - .methods() - .then((methods) => { + oapiClient + .GET("/api/auth/methods") + .then((result) => { + const methods = result.data ?? [] const supportedDrivers = methods.filter((driver) => SUPPORTED_DRIVERS.includes(driver), ) diff --git a/console/src/views/auth/LoginCallback.tsx b/console/src/views/auth/LoginCallback.tsx index 640899cf7..6dc877f28 100644 --- a/console/src/views/auth/LoginCallback.tsx +++ b/console/src/views/auth/LoginCallback.tsx @@ -1,7 +1,7 @@ import { useParams, useSearchParams } from "react-router" import { useEffect, useState } from "react" import { useClerk } from "@clerk/clerk-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { AUTH_DRIVERS } from "../../types" import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert" import { useTranslation } from "react-i18next" @@ -30,7 +30,10 @@ export default function LoginCallback() { return } // Call our backend to complete the auth flow - await api.auth.clerkAuth(token, redirect) + await oapiClient.POST("/api/auth/login/{driver}/callback", { + params: { path: { driver: "clerk" } }, + body: { redirect }, + }) break } default: diff --git a/console/src/views/campaign/CampaignDetails.tsx b/console/src/views/campaign/CampaignDetails.tsx index ac0d0d8d3..9e8e1ce5d 100644 --- a/console/src/views/campaign/CampaignDetails.tsx +++ b/console/src/views/campaign/CampaignDetails.tsx @@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next" import { Controller, useForm } from "react-hook-form" import { z } from "zod" import { zodResolver } from "@hookform/resolvers/zod" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { channels } from "./template/channels" @@ -50,12 +50,24 @@ function CampaignReview({ campaign, template }: { campaign: Campaign; template: setIsSubmitting(true) try { - const updatedCampaign = await api.campaigns.update(project.id, campaign.id, { - name: data.name, - provider_id: data.provider_id, + const res = await oapiClient.PATCH('/api/admin/projects/{projectID}/campaigns/{campaignID}', { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + } + }, + body: { + name: data.name, + provider_id: data.provider_id, + } }) - setCampaign(updatedCampaign) + if (!res.response.ok) { + return + } + + setCampaign(res.data) } finally { setIsSubmitting(false) } @@ -155,9 +167,18 @@ export default function CampaignDetails() { useEffect(() => { if (!selectedUser && project?.id) { - api.users.search(project.id, { limit: 1 }).then((result) => { - if (result.results && result.results.length > 0) { - setSelectedUser(result.results[0]) + oapiClient.GET('/api/admin/projects/{projectID}/users', { + params: { + path: { + projectID: project.id, + }, + query: { + limit: 1, + } + } + }).then((result) => { + if (result.data?.results && result.data.results.length > 0) { + setSelectedUser(result.data.results[0]) } }) } diff --git a/console/src/views/campaign/CreateCampaign.tsx b/console/src/views/campaign/CreateCampaign.tsx index 4d32ccb10..2172d011e 100644 --- a/console/src/views/campaign/CreateCampaign.tsx +++ b/console/src/views/campaign/CreateCampaign.tsx @@ -25,7 +25,7 @@ import { DialogTitle, DialogTrigger, } from "@/components/ui/dialog" -import api from "@/api" +import { oapiClient } from "@/oapi/client" interface Channel { key: ChannelType @@ -51,11 +51,20 @@ export function CreateCampaign({ open = false, onBeforeCreate, trigger }: Create if (onBeforeCreate) { await onBeforeCreate() } - const campaign = await api.campaigns.create(project.id, { - name: generateProjectName(), - channel: channel, + const campaign = await oapiClient.POST("/api/admin/projects/{projectID}/campaigns", { + params: { + path: { + projectID: project?.id ?? "", + } + }, + body: { + name: generateProjectName(), + channel: channel, + }, }) - await navigate(`/projects/${project.id}/campaigns/${campaign.id}/setup`) + if (campaign.data?.id) { + navigate(`/projects/${project?.id}/campaigns/${campaign.data.id}/setup`) + } } const channels: Array = [ @@ -82,6 +91,7 @@ export function CreateCampaign({ open = false, onBeforeCreate, trigger }: Create }, ] + return ( setIsOpen(!isOpen)}> diff --git a/console/src/views/campaign/setup/Setup.tsx b/console/src/views/campaign/setup/Setup.tsx index 66c5387eb..36dadd494 100644 --- a/console/src/views/campaign/setup/Setup.tsx +++ b/console/src/views/campaign/setup/Setup.tsx @@ -2,7 +2,7 @@ import { Controller, useForm } from "react-hook-form" import { useContext, useState } from "react" import { CampaignContext, ProjectContext } from "@/contexts" import { useTranslation } from "react-i18next" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { z } from "zod" import { zodResolver } from "@hookform/resolvers/zod" @@ -37,23 +37,49 @@ export default function CampaignSetup() { const onSubmit = async (data: FormData) => { setIsSubmitting(true) try { - const updated = await api.campaigns.update(project.id, campaign.id, { - name: data.name, - provider_id: data.provider_id, + const updated = await oapiClient.PATCH("/api/admin/projects/{projectID}/campaigns/{campaignID}", { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + } + }, + body: { + name: data.name, + provider_id: data.provider_id, + } }) - setCampaign(updated) + if (!updated.data) { + return + } + + setCampaign(updated.data) if (campaign.templates?.length === 0) { - const template = await api.campaigns.templates.create(project.id, campaign.id, { - locale: project.locale, - data: {}, + const template = await oapiClient.POST("/api/admin/projects/{projectID}/campaigns/{campaignID}/templates", { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + } + }, + body: { + locale: project.locale, + data: {}, + } }) - setCampaign({ - ...campaign, - templates: [template], - }) + if (template.data?.id) { + setCampaign({ + ...campaign, + templates: [template.data], + }) + await navigate( + `/projects/${project.id}/campaigns/${campaign.id.toString()}/templates/${template.data.id.toString()}`, + ) + return + } } const template = diff --git a/console/src/views/campaign/template/Content.tsx b/console/src/views/campaign/template/Content.tsx index b5e5b4e94..23535896d 100644 --- a/console/src/views/campaign/template/Content.tsx +++ b/console/src/views/campaign/template/Content.tsx @@ -5,7 +5,7 @@ import { TemplateContext as CurrentTemplateContext, } from "@/contexts" import { useTranslation } from "react-i18next" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { channels } from "./channels" import { TemplateWorkflowContext } from "./contexts" @@ -44,11 +44,24 @@ export default function TemplateContent() { } const data = form.getValues() - const updated = await api.campaigns.templates.update(project.id, campaign.id, template.id, { - data: { ...template.data, ...data }, + const updated = await oapiClient.PATCH("/api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}", { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + templateID: template.id, + } + }, + body: { + data: { ...template.data, ...data }, + } }) - setTemplate(updated) + if (!updated.data) { + return false + } + + setTemplate(updated.data) return true }) diff --git a/console/src/views/campaign/template/Review.tsx b/console/src/views/campaign/template/Review.tsx index 72953c440..a714cd294 100644 --- a/console/src/views/campaign/template/Review.tsx +++ b/console/src/views/campaign/template/Review.tsx @@ -6,7 +6,7 @@ import { } from "@/contexts" import type { User } from "@/types" import { useTranslation } from "react-i18next" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { channels } from "./channels" @@ -24,9 +24,19 @@ export default function TemplateReview() { useEffect(() => { if (!selectedUser && project?.id) { - api.users.search(project.id, { limit: 1 }).then((result) => { - if (result.results && result.results.length > 0) { - setSelectedUser(result.results[0]) + oapiClient.GET("/api/admin/projects/{projectID}/users", { + params: { + path: { + projectID: project.id, + }, + query: { + limit: 1, + }, + }, + }).then((res) => { + const users = res.data?.results || [] + if (users.length > 0) { + setSelectedUser(users[0]) } }) } @@ -51,8 +61,16 @@ export default function TemplateReview() { return false } - await api.campaigns.update(project.id, campaign.id, { - state: "running", + await oapiClient.PATCH("/api/admin/projects/{projectID}/campaigns/{campaignID}", { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + } + }, + body: { + state: "running", + } }) return true diff --git a/console/src/views/campaign/template/Template.tsx b/console/src/views/campaign/template/Template.tsx index 643fbeb36..2c1c9460f 100644 --- a/console/src/views/campaign/template/Template.tsx +++ b/console/src/views/campaign/template/Template.tsx @@ -2,7 +2,7 @@ import { ChevronRight, Loader2 } from "lucide-react" import { Link, Outlet, useLocation, useNavigate, useParams } from "react-router" import { useCallback, useContext, useMemo, memo, useState, useEffect, useRef } from "react" import { CampaignContext, LocaleContext, ProjectContext, type LocaleSelection } from "@/contexts" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { Pagination, PaginationContent, PaginationItem } from "@/components/ui/pagination" @@ -10,6 +10,7 @@ import { LocaleSelect } from "@/components/locale/select" import { Button } from "@/components/ui/button" import { TemplateWorkflowContext } from "./contexts" import { t } from "i18next" +import { set } from "date-fns" interface CampaignStepProps { steps: Array<{ name: string; href: string }> @@ -150,17 +151,27 @@ export default function Template() { } setPageLoading(true) - const template = await api.campaigns.templates.create(project.id, campaign.id, { - locale: localeKey, - data: {}, + const template = await oapiClient.POST("/api/admin/projects/{projectID}/campaigns/{campaignID}/templates", { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + } + }, + body: { + locale: localeKey, + data: {}, + } }) - setCampaign({ - ...campaign, - templates: [...campaign.templates, template], - }) + if (template.data) { + setCampaign({ + ...campaign, + templates: [...campaign.templates, template.data], + }) - navigateToTemplate(template.id) + navigateToTemplate(template.data.id) + } setPageLoading(false) }, [campaign, project?.id, setCampaign, navigateToTemplate], @@ -173,35 +184,47 @@ export default function Template() { setPageLoading(true) - const allLocalesResult = await api.locales.search(project.id, { - limit: 5, - }) - if (currentTemplate) { - try { - const selectedLocale = await api.locales.getByKey( - project.id, - currentTemplate.locale, - ) - setLocaleSelection({ - currentLocale: selectedLocale, - allLocales: allLocalesResult.results, - }) - } catch { - // Locale not found, use default or first available locale - console.warn(`Locale ${currentTemplate.locale} not found, using default`) + try { + const allLocalesResult = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + } + } + }) + if (currentTemplate) { + try { + const selectedLocale = await oapiClient.GET("/api/admin/projects/{projectID}/locales/{localeID}", { + params: { + path: { + projectID: project.id, + localeID: currentTemplate.locale, + } + } + }) + setLocaleSelection({ + currentLocale: selectedLocale.data, + allLocales: allLocalesResult.data?.results ?? [], + }) + } catch { + // Locale not found, use default or first available locale + console.warn(`Locale ${currentTemplate.locale} not found, using default`) + setLocaleSelection({ + currentLocale: allLocalesResult.data?.results?.[0], + allLocales: allLocalesResult.data?.results ?? [], + }) + } + } else { setLocaleSelection({ - currentLocale: allLocalesResult.results[0], - allLocales: allLocalesResult.results, + currentLocale: undefined, + allLocales: allLocalesResult.data?.results ?? [], }) } - } else { - setLocaleSelection({ - currentLocale: undefined, - allLocales: allLocalesResult.results, - }) + } catch (error) { + console.error("Failed to fetch locales:", error) + } finally { + setPageLoading(false) } - - setPageLoading(false) } fetchLocales() diff --git a/console/src/views/campaign/template/UserSelection.tsx b/console/src/views/campaign/template/UserSelection.tsx index 6cd6c4d03..9efeb81ad 100644 --- a/console/src/views/campaign/template/UserSelection.tsx +++ b/console/src/views/campaign/template/UserSelection.tsx @@ -1,7 +1,7 @@ import { useState, useCallback, useEffect } from "react" import type { User } from "@/types" import { cn } from "@/utils" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { Check, ChevronsUpDown } from "lucide-react" import { Button } from "@/components/ui/button" @@ -29,12 +29,19 @@ export function UserSelection({ projectId, value, onChange }: UserSelectionProps const [users, setUsers] = useState([]) const fetchUsers = useCallback(async () => { - const users = await api.users.search(projectId, { - search: search, - limit: 50, + const result = await oapiClient.GET("/api/admin/projects/{projectID}/users", { + params: { + path: { + projectID: projectId, + }, + query: { + search: search, + limit: 50, + } + }, }) - setUsers(users.results) + setUsers(result.data?.results || []) }, [projectId, search]) useEffect(() => { @@ -70,7 +77,7 @@ export function UserSelection({ projectId, value, onChange }: UserSelectionProps No user found. - {users.map((user) => ( + {users?.map((user) => ( { const fetchLocales = async () => { if (project?.id) { - const result = await api.locales.search(project.id, { limit: 100 }) - setLocales(result.results) + const result = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + } + } + }) + setLocales(result.data?.results ?? []) } } fetchLocales() diff --git a/console/src/views/campaign/template/push/Setup.tsx b/console/src/views/campaign/template/push/Setup.tsx index d6a702a04..91e73a92a 100644 --- a/console/src/views/campaign/template/push/Setup.tsx +++ b/console/src/views/campaign/template/push/Setup.tsx @@ -7,7 +7,7 @@ import { useContext, useState, useEffect } from "react" import { ProjectContext, TemplateContext } from "@/contexts" import { useNavigate } from "react-router" import { Button } from "@/components/ui/button" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import * as z from "zod" import { Field, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field" @@ -134,8 +134,14 @@ export function PushPreview({ campaign, form, edit = false }: PushSetupProps) { useEffect(() => { const fetchLocales = async () => { if (project?.id) { - const result = await api.locales.search(project.id, { limit: 100 }) - setLocales(result.results) + const res = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + }, + }, + }) + setLocales(res.data?.results || []) } } fetchLocales() diff --git a/console/src/views/campaign/template/text/Setup.tsx b/console/src/views/campaign/template/text/Setup.tsx index 8f1c70972..053384d64 100644 --- a/console/src/views/campaign/template/text/Setup.tsx +++ b/console/src/views/campaign/template/text/Setup.tsx @@ -4,7 +4,7 @@ import { Ellipsis, UserRound } from "lucide-react" import type { Campaign, Template, User, Locale } from "@/types" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import * as z from "zod" import { Field, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field" @@ -117,8 +117,14 @@ export function TextPreview({ campaign, form, edit = false }: TextSetupProps) { useEffect(() => { const fetchLocales = async () => { if (project?.id) { - const result = await api.locales.search(project.id, { limit: 100 }) - setLocales(result.results) + const res = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + }, + }, + }) + setLocales(res.data?.results ?? []) } } fetchLocales() diff --git a/console/src/views/settings/IntegrationModal.tsx b/console/src/views/settings/IntegrationModal.tsx index 1875cc183..cec883998 100644 --- a/console/src/views/settings/IntegrationModal.tsx +++ b/console/src/views/settings/IntegrationModal.tsx @@ -2,7 +2,7 @@ import { useCallback, useContext, useEffect, useMemo, useState } from "react" import { useForm } from "react-hook-form" import { useTranslation } from "react-i18next" import { ChevronLeft } from "lucide-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import { useResolver } from "../../hooks" import { snakeToTitle } from "../../utils" @@ -44,14 +44,17 @@ export function IntegrationForm({ useEffect(() => { if (defaultProvider) { - api.providers - .get( - project.id, - defaultProvider.channel, - defaultProvider.module, - defaultProvider.id, - ) - .then((provider) => setProvider(provider)) + oapiClient.GET("/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}", { + params: { + path: { + projectID: project.id, + group: defaultProvider.channel, + type: defaultProvider.module, + providerID: defaultProvider.id, + }, + }, + }) + .then((res) => setProvider(res.data)) .catch(() => {}) } }, [project.id, defaultProvider]) @@ -71,9 +74,41 @@ export function IntegrationForm({ setIsSaving(true) try { const params = { ...values, module, channel } - const result = provider?.id - ? await api.providers.update(project.id, provider.id, params) - : await api.providers.create(project.id, params) + let result: Provider + + if (provider?.id) { + const res = await oapiClient.PATCH("/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}", { + params: { + path: { + projectID: project.id, + group: channel, + type: module, + providerID: provider.id, + }, + }, + body: params, + }) + if (!res.data) { + throw new Error("Failed to update provider") + } + result = res.data + } else { + const res = await oapiClient.POST("/api/admin/projects/{projectID}/providers/{group}/{type}", { + params: { + path: { + projectID: project.id, + group: channel, + type: module, + }, + }, + body: params, + }) + if (!res.data) { + throw new Error("Failed to create provider") + } + result = res.data + } + onChange(result) } finally { setIsSaving(false) @@ -154,7 +189,16 @@ export default function IntegrationModal({ const { t } = useTranslation() const [project] = useContext(ProjectContext) const [options] = useResolver( - useCallback(async () => await api.providers.options(project.id), [project]), + useCallback(async () => { + const res = await oapiClient.GET("/api/admin/projects/{projectID}/providers/meta", { + params: { + path: { + projectID: project.id, + }, + }, + }) + return res.data ?? [] + }, [project]), ) const [meta, setMeta] = useState() diff --git a/internal/http/controllers/v1/management/oapi/resources.yml b/internal/http/controllers/v1/management/oapi/resources.yml index e8dad9d0e..6b5aa8d64 100644 --- a/internal/http/controllers/v1/management/oapi/resources.yml +++ b/internal/http/controllers/v1/management/oapi/resources.yml @@ -4242,7 +4242,7 @@ components: schemas: Channel: type: string - enum: [email, text, push] + enum: [email, text, push, webhook] description: Communication channel type example: email diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..6aa4b3c66 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1889 @@ +{ + "name": "platform", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@openapitools/openapi-generator-cli": "^2.29.0" + } + }, + "node_modules/@borewit/text-codec": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.1.tgz", + "integrity": "sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@inquirer/external-editor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.3.tgz", + "integrity": "sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==", + "license": "MIT", + "dependencies": { + "chardet": "^2.1.1", + "iconv-lite": "^0.7.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@nestjs/axios": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.1.tgz", + "integrity": "sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==", + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "axios": "^1.3.1", + "rxjs": "^7.0.0" + } + }, + "node_modules/@nestjs/common": { + "version": "11.1.13", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.13.tgz", + "integrity": "sha512-ieqWtipT+VlyDWLz5Rvz0f3E5rXcVAnaAi+D53DEHLjc1kmFxCgZ62qVfTX2vwkywwqNkTNXvBgGR72hYqV//Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "file-type": "21.3.0", + "iterare": "1.2.1", + "load-esm": "1.0.3", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "class-transformer": ">=0.4.1", + "class-validator": ">=0.13.2", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/core": { + "version": "11.1.13", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.13.tgz", + "integrity": "sha512-Tq9EIKiC30EBL8hLK93tNqaToy0hzbuVGYt29V8NhkVJUsDzlmiVf6c3hSPtzx2krIUVbTgQ2KFeaxr72rEyzQ==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@nuxt/opencollective": "0.4.1", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "8.3.0", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "engines": { + "node": ">= 20" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/microservices": "^11.0.0", + "@nestjs/platform-express": "^11.0.0", + "@nestjs/websockets": "^11.0.0", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } + } + }, + "node_modules/@nuxt/opencollective": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@nuxt/opencollective/-/opencollective-0.4.1.tgz", + "integrity": "sha512-GXD3wy50qYbxCJ652bDrDzgMr3NFEkIS374+IgFQKkCvk9yiYcLvX2XDYr7UyQxf4wK0e+yqDYRubZ0DtOxnmQ==", + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": "^14.18.0 || >=16.10.0", + "npm": ">=5.10.0" + } + }, + "node_modules/@nuxtjs/opencollective": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz", + "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "consola": "^2.15.0", + "node-fetch": "^2.6.1" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "license": "MIT" + }, + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.29.0.tgz", + "integrity": "sha512-qk0ccFLK653U/+dmIzlUK1Qr7edG6EkFapF9rgvTbgJvzu9y50nU6iGgu5+zElSB24GmRUysDbgJSkqSnk26Iw==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@nestjs/axios": "4.0.1", + "@nestjs/common": "11.1.13", + "@nestjs/core": "11.1.13", + "@nuxtjs/opencollective": "0.3.2", + "axios": "1.13.5", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "6.1.1", + "concurrently": "9.2.1", + "console.table": "0.10.0", + "fs-extra": "11.3.3", + "glob": "13.0.3", + "inquirer": "8.2.7", + "proxy-agent": "6.5.0", + "reflect-metadata": "0.2.2", + "rxjs": "7.8.2", + "tslib": "2.8.1" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" + } + }, + "node_modules/@tokenizer/inflate": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz", + "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "token-types": "^6.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "license": "MIT" + }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "license": "MIT" + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", + "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/basic-ftp": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.1.0.tgz", + "integrity": "sha512-RkaJzeJKDbaDWTIPiJwubyljaEPwpVWkm9Rt5h9Nd6h7tEXTJ3VB4qxdZBioV7JO5yLUaOKwz7vDOzlncUsegw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.3.tgz", + "integrity": "sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chardet": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz", + "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==", + "license": "MIT" + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "license": "ISC", + "engines": { + "node": ">= 10" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "license": "MIT" + }, + "node_modules/concurrently": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", + "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", + "license": "MIT", + "dependencies": { + "chalk": "4.1.2", + "rxjs": "7.8.2", + "shell-quote": "1.8.3", + "supports-color": "8.1.1", + "tree-kill": "1.2.2", + "yargs": "17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", + "license": "MIT", + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "license": "MIT", + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", + "license": "MIT", + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "license": "MIT" + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/file-type": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.0.tgz", + "integrity": "sha512-8kPJMIGz1Yt/aPEwOsrR97ZyZaD1Iqm8PClb1nYFclUCkBi0Ma5IsYNQzvSFS9ib51lWyIw5mIT9rWzI/xjpzA==", + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.4.1", + "strtok3": "^10.3.4", + "token-types": "^6.1.1", + "uint8array-extras": "^1.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "11.3.3", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.3.tgz", + "integrity": "sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-uri": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz", + "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==", + "license": "MIT", + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/glob": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.3.tgz", + "integrity": "sha512-/g3B0mC+4x724v1TgtBlBtt2hPi/EWptsIAmXUx9Z2rvBYleQcsrmaOzd5LyL50jf/Soi83ZDJmw2+XqvH/EeA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.0", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/inquirer": { + "version": "8.2.7", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.7.tgz", + "integrity": "sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==", + "license": "MIT", + "dependencies": { + "@inquirer/external-editor": "^1.0.0", + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/ip-address": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", + "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "license": "ISC", + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/load-esm": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/load-esm/-/load-esm-1.0.3.tgz", + "integrity": "sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + }, + { + "type": "buymeacoffee", + "url": "https://buymeacoffee.com/borewit" + } + ], + "license": "MIT", + "engines": { + "node": ">=13.2.0" + } + }, + "node_modules/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "license": "MIT" + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "11.2.6", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", + "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.2.tgz", + "integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==", + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "license": "ISC" + }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "license": "MIT", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pac-proxy-agent": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", + "license": "MIT", + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.6", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", + "license": "MIT", + "dependencies": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-to-regexp": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", + "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/proxy-agent": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.6", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.1.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", + "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", + "license": "MIT", + "dependencies": { + "ip-address": "^10.0.1", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strtok3": { + "version": "10.3.4", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.4.tgz", + "integrity": "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "license": "MIT" + }, + "node_modules/token-types": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.2.tgz", + "integrity": "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==", + "license": "MIT", + "dependencies": { + "@borewit/text-codec": "^0.2.1", + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/uid": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", + "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", + "license": "MIT", + "dependencies": { + "@lukeed/csprng": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uint8array-extras": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz", + "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..4d1068c69 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@openapitools/openapi-generator-cli": "^2.29.0" + } +} From 43f9da7ae04aa5087cb71c0c8e117e29caeeae18 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 26 Feb 2026 11:07:08 +0100 Subject: [PATCH 02/10] fix: github generate failed fix --- .../v1/management/oapi/resources_gen.go | 7 ++++--- internal/wasm/test/provider.wasm | Bin 505909 -> 508361 bytes 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/http/controllers/v1/management/oapi/resources_gen.go b/internal/http/controllers/v1/management/oapi/resources_gen.go index 0d04a33ad..adb16b54e 100644 --- a/internal/http/controllers/v1/management/oapi/resources_gen.go +++ b/internal/http/controllers/v1/management/oapi/resources_gen.go @@ -42,9 +42,10 @@ const ( // Defines values for Channel. const ( - Email Channel = "email" - Push Channel = "push" - Text Channel = "text" + Email Channel = "email" + Push Channel = "push" + Text Channel = "text" + Webhook Channel = "webhook" ) // Defines values for CreateListType. diff --git a/internal/wasm/test/provider.wasm b/internal/wasm/test/provider.wasm index 044752ffeeea3e3c3ec7127a68bcfa65ace249b8..a21bbcfacc7aa72f5665754bef0775e784f2b3e7 100644 GIT binary patch delta 88375 zcmcG12Y6M*)@WwtoRglMkX|__2?Pj`gc3q$BfWQ!j!Fw15m13dnt)U{FrY|Lq=^(k zgBl?AXs3=9Sf{nMM}Xqx_C# z&KPr3;v!nX&nP_as^;hCXyRT;;cxRbXHC!2^RCK%es!3ihZvrGW0g;_QogbNy!n^2 za^v}`*6o32?r^AfdHjsHe0le&%^sCF&QP=xCy=9Zd{Bub<)ZGGqREvoL6k{lYIndFJ#*iPa6i zV9|x6z~k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6|5JnIx}reb?yLbQg? z!ebYkby>8~)WYNJ1+aXJRNqTVw@^Fe zX=dkLhFbdI@u*#QS+u4ZBDK7IS+qcp<gW?3#&SYVj z0;F#PEdw=sKp5np4cwrt>c%h!DhEnZAUTlZnhHR2z`_nF2a0=Gb_2DZFHXy2mlFYA z7{Yx*-{nWlf0Yd&UBJH8hUrFmz-*f{4OkZdg+TbmyzOau?6*YtLRJG?FhE5hY_ev% zUo-oBCZP`{EZ{a6D+{R5WZYIbWBdPB_N^A%1@^Q1G6_#%43`PfJZKDJ@DZ z=9r#;kUdIMn?I>ECtEi+H8;PgQa8V#L|ZI5F(*eiGcP5x2$-03^UG3;a`N-i0qG8h Ac>n+a From 35a849099c0c16d0f30eeb77cd8858c391a17453 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 26 Feb 2026 11:46:33 +0100 Subject: [PATCH 03/10] fix: copilot suggestions --- console/src/views/campaign/CampaignDetails.tsx | 2 +- console/src/views/campaign/template/Review.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/console/src/views/campaign/CampaignDetails.tsx b/console/src/views/campaign/CampaignDetails.tsx index 9e8e1ce5d..db24220a5 100644 --- a/console/src/views/campaign/CampaignDetails.tsx +++ b/console/src/views/campaign/CampaignDetails.tsx @@ -63,7 +63,7 @@ function CampaignReview({ campaign, template }: { campaign: Campaign; template: } }) - if (!res.response.ok) { + if (res.error || !res.data) { return } diff --git a/console/src/views/campaign/template/Review.tsx b/console/src/views/campaign/template/Review.tsx index a714cd294..a9658b0b2 100644 --- a/console/src/views/campaign/template/Review.tsx +++ b/console/src/views/campaign/template/Review.tsx @@ -66,11 +66,11 @@ export default function TemplateReview() { path: { projectID: project.id, campaignID: campaign.id, - } + }, }, body: { state: "running", - } + }, }) return true From b3cc3affe81cb909cfd0e8c259fad23b7b7a1537 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 4 Mar 2026 13:52:55 +0100 Subject: [PATCH 04/10] refactor: improve code readability and structure in Template component --- .../src/views/campaign/template/Template.tsx | 336 ++++++++++-------- 1 file changed, 187 insertions(+), 149 deletions(-) diff --git a/console/src/views/campaign/template/Template.tsx b/console/src/views/campaign/template/Template.tsx index 2c1c9460f..1a1a4f505 100644 --- a/console/src/views/campaign/template/Template.tsx +++ b/console/src/views/campaign/template/Template.tsx @@ -1,16 +1,34 @@ -import { ChevronRight, Loader2 } from "lucide-react" -import { Link, Outlet, useLocation, useNavigate, useParams } from "react-router" -import { useCallback, useContext, useMemo, memo, useState, useEffect, useRef } from "react" -import { CampaignContext, LocaleContext, ProjectContext, type LocaleSelection } from "@/contexts" -import { oapiClient } from "@/oapi/client" +import { ChevronRight, Loader2 } from "lucide-react"; +import { + Link, + Outlet, + useLocation, + useNavigate, + useParams, +} from "react-router"; +import { + useCallback, + useContext, + useMemo, + memo, + useState, + useEffect, + useRef, +} from "react"; +import { + CampaignContext, + LocaleContext, + ProjectContext, + type LocaleSelection, +} from "@/contexts"; +import { oapiClient } from "@/oapi/client"; import { Pagination, PaginationContent, PaginationItem } from "@/components/ui/pagination" -import { LocaleSelect } from "@/components/locale/select" -import { Button } from "@/components/ui/button" -import { TemplateWorkflowContext } from "./contexts" -import { t } from "i18next" -import { set } from "date-fns" +import { LocaleSelect } from "@/components/locale/select"; +import { Button } from "@/components/ui/button"; +import { TemplateWorkflowContext } from "./contexts"; +import { t } from "i18next"; interface CampaignStepProps { steps: Array<{ name: string; href: string }> @@ -68,164 +86,184 @@ export default function Template() { const navSteps = [{ name: "Content", href: basePath }] - if (campaign.channel === "email") { - navSteps.push({ name: "Editor", href: `${basePath}/email/editor` }) - } + if (campaign.channel === "email") { + navSteps.push({ name: "Editor", href: `${basePath}/email/editor` }); + } - navSteps.push({ name: "Review", href: `${basePath}/review` }) + navSteps.push({ name: "Review", href: `${basePath}/review` }); - return navSteps - }, [project.id, campaign.id, campaign.channel, campaign.templates, project.locale, templateId]) + return navSteps; + }, [ + project.id, + campaign.id, + campaign.channel, + campaign.templates, + project.locale, + templateId, + ]); - const nextStep = useMemo(() => { - const currentIndex = steps.findIndex((step) => step.href === location.pathname) - return currentIndex !== -1 && currentIndex < steps.length - 1 - ? steps[currentIndex + 1] - : undefined - }, [steps, location.pathname]) + const nextStep = useMemo(() => { + const currentIndex = steps.findIndex( + (step) => step.href === location.pathname, + ); + return currentIndex !== -1 && currentIndex < steps.length - 1 + ? steps[currentIndex + 1] + : undefined; + }, [steps, location.pathname]); - const onSubmit = useCallback((fn: () => Promise | boolean) => { - handler.current = fn - return () => { - if (handler.current === fn) handler.current = null - } - }, []) + const onSubmit = useCallback((fn: () => Promise | boolean) => { + handler.current = fn; + return () => { + if (handler.current === fn) handler.current = null; + }; + }, []); - const submit = useCallback(async () => { - if (!handler.current) return + const submit = useCallback(async () => { + if (!handler.current) return; - setIsNextLoading(true) - try { - const next = await handler.current() - if (next && nextStep) navigate(nextStep.href) - } finally { - setIsNextLoading(false) - } - }, [navigate, nextStep]) + setIsNextLoading(true); + try { + const next = await handler.current(); + if (next && nextStep) navigate(nextStep.href); + } finally { + setIsNextLoading(false); + } + }, [navigate, nextStep]); - const currentTemplate = useMemo( - () => campaign.templates?.find((t) => t.id === templateId), - [campaign.templates, templateId], - ) - const workflowContextValue = useMemo( - () => ({ onSubmit, submit, canProceed, setCanProceed }), - [onSubmit, submit, canProceed], - ) + const currentTemplate = useMemo( + () => campaign.templates?.find((t) => t.id === templateId), + [campaign.templates, templateId], + ); + const workflowContextValue = useMemo( + () => ({ onSubmit, submit, canProceed, setCanProceed }), + [onSubmit, submit, canProceed], + ); - const publish = useCallback(async () => { - if (!handler.current) return + const publish = useCallback(async () => { + if (!handler.current) return; - setIsNextLoading(true) - try { - await handler.current() - navigate(`/projects/${project.id}/campaigns`) - } finally { - setIsNextLoading(false) - } - }, [project.id, navigate]) + setIsNextLoading(true); + try { + await handler.current(); + navigate(`/projects/${project.id}/campaigns`); + } finally { + setIsNextLoading(false); + } + }, [project.id, navigate]); - const navigateToTemplate = useCallback( - (templateId: string) => { - const basePath = `/projects/${project.id}/campaigns/${campaign.id}/templates/${templateId}` - const suffix = location.pathname.split(/\/templates\/[^/]+/)[1] ?? "" - navigate(basePath + suffix) - }, - [project.id, campaign.id, location.pathname, navigate], - ) + const navigateToTemplate = useCallback( + (templateId: string) => { + const basePath = `/projects/${project.id}/campaigns/${campaign.id}/templates/${templateId}`; + const suffix = location.pathname.split(/\/templates\/[^/]+/)[1] ?? ""; + navigate(basePath + suffix); + }, + [project.id, campaign.id, location.pathname, navigate], + ); - const handleLocaleChange = useCallback( - async (localeKey: string) => { - if (handler.current) { - const next = await handler.current() - if (!next) { - return - } - } + const handleLocaleChange = useCallback( + async (localeKey: string) => { + if (handler.current) { + const next = await handler.current(); + if (!next) { + return; + } + } - const selectedTemplate = campaign.templates.find( - (template) => template.locale === localeKey, - ) - if (selectedTemplate) { - navigateToTemplate(selectedTemplate.id) - return - } + const selectedTemplate = campaign.templates.find( + (template) => template.locale === localeKey, + ); + if (selectedTemplate) { + navigateToTemplate(selectedTemplate.id); + return; + } - setPageLoading(true) - const template = await oapiClient.POST("/api/admin/projects/{projectID}/campaigns/{campaignID}/templates", { - params: { - path: { - projectID: project.id, - campaignID: campaign.id, - } - }, - body: { - locale: localeKey, - data: {}, - } - }) + setPageLoading(true); + const template = await oapiClient.POST( + "/api/admin/projects/{projectID}/campaigns/{campaignID}/templates", + { + params: { + path: { + projectID: project.id, + campaignID: campaign.id, + }, + }, + body: { + locale: localeKey, + data: {}, + }, + }, + ); - if (template.data) { - setCampaign({ - ...campaign, - templates: [...campaign.templates, template.data], - }) + if (template.data) { + setCampaign({ + ...campaign, + templates: [...campaign.templates, template.data], + }); - navigateToTemplate(template.data.id) - } - setPageLoading(false) - }, - [campaign, project?.id, setCampaign, navigateToTemplate], - ) + navigateToTemplate(template.data.id); + } + setPageLoading(false); + }, + [campaign, project?.id, setCampaign, navigateToTemplate], + ); - // Fetch locales when template changes - useEffect(() => { - const fetchLocales = async () => { - if (!project?.id) return + // Fetch locales when template changes + useEffect(() => { + const fetchLocales = async () => { + if (!project?.id) return; - setPageLoading(true) + setPageLoading(true); - try { - const allLocalesResult = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { - params: { - path: { - projectID: project.id, - } - } - }) - if (currentTemplate) { - try { - const selectedLocale = await oapiClient.GET("/api/admin/projects/{projectID}/locales/{localeID}", { - params: { - path: { - projectID: project.id, - localeID: currentTemplate.locale, - } - } - }) - setLocaleSelection({ - currentLocale: selectedLocale.data, - allLocales: allLocalesResult.data?.results ?? [], - }) - } catch { - // Locale not found, use default or first available locale - console.warn(`Locale ${currentTemplate.locale} not found, using default`) - setLocaleSelection({ - currentLocale: allLocalesResult.data?.results?.[0], - allLocales: allLocalesResult.data?.results ?? [], - }) - } - } else { - setLocaleSelection({ - currentLocale: undefined, - allLocales: allLocalesResult.data?.results ?? [], - }) - } - } catch (error) { - console.error("Failed to fetch locales:", error) - } finally { - setPageLoading(false) - } + try { + const allLocalesResult = await oapiClient.GET( + "/api/admin/projects/{projectID}/locales", + { + params: { + path: { + projectID: project.id, + }, + }, + }, + ); + if (currentTemplate) { + try { + const selectedLocale = await oapiClient.GET( + "/api/admin/projects/{projectID}/locales/{localeID}", + { + params: { + path: { + projectID: project.id, + localeID: currentTemplate.locale, + }, + }, + }, + ); + setLocaleSelection({ + currentLocale: selectedLocale.data, + allLocales: allLocalesResult.data?.results ?? [], + }); + } catch { + // Locale not found, use default or first available locale + console.warn( + `Locale ${currentTemplate.locale} not found, using default`, + ); + setLocaleSelection({ + currentLocale: allLocalesResult.data?.results?.[0], + allLocales: allLocalesResult.data?.results ?? [], + }); + } + } else { + setLocaleSelection({ + currentLocale: undefined, + allLocales: allLocalesResult.data?.results ?? [], + }); } + } catch (error) { + console.error("Failed to fetch locales:", error); + } finally { + setPageLoading(false); + } + }; fetchLocales() }, [project?.id, currentTemplate]) From 77dd51bbabada2162b570d806e9807c80ead8b39 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Mar 2026 11:24:16 +0100 Subject: [PATCH 05/10] Refactor: Refactored the use of api.ts to the use of OpenAPI --- console/src/oapi/management.generated.ts | 423 + console/src/types.ts | 46 +- console/src/views/campaign/Campaigns.tsx | 46 +- console/src/views/journey/JourneyForm.tsx | 48 +- .../src/views/journey/JourneyStepUsers.tsx | 82 +- .../views/journey/JourneyUserEntrances.tsx | 33 +- console/src/views/journey/Journeys.tsx | 45 +- console/src/views/journey/steps/Entrance.tsx | 25 +- .../src/views/journey/steps/JourneyLink.tsx | 36 +- console/src/views/project/GettingStarted.tsx | 41 +- console/src/views/project/ProjectForm.tsx | 25 +- .../ProjectOnboardingGettingStarted.tsx | 33 +- .../views/project/ProjectOnboardingUsers.tsx | 39 +- console/src/views/project/Projects.tsx | 15 +- console/src/views/settings/ApiKeys.tsx | 56 +- console/src/views/settings/Integrations.tsx | 25 +- console/src/views/settings/Locales.tsx | 29 +- console/src/views/settings/Subscriptions.tsx | 36 +- console/src/views/users/ListCreateForm.tsx | 21 +- console/src/views/users/ListDetail.tsx | 97 +- console/src/views/users/ListTable.tsx | 22 +- console/src/views/users/Lists.tsx | 32 +- console/src/views/users/UserDetail.tsx | 90 +- console/src/views/users/UserDetailAttrs.tsx | 17 +- console/src/views/users/UserDetailEvents.tsx | 13 +- .../src/views/users/UserDetailJourneys.tsx | 17 +- .../views/users/UserDetailSubscriptions.tsx | 41 +- console/src/views/users/Users.tsx | 38 +- console/src/views/users/rules/RuleBuilder.tsx | 31 +- internal/http/console/dist/index.html | 4 +- .../v1/management/oapi/resources.yml | 363 + .../v1/management/oapi/resources_gen.go | 17023 ++++++---------- 32 files changed, 7912 insertions(+), 10980 deletions(-) diff --git a/console/src/oapi/management.generated.ts b/console/src/oapi/management.generated.ts index 7364feb29..ebd1cdd75 100644 --- a/console/src/oapi/management.generated.ts +++ b/console/src/oapi/management.generated.ts @@ -300,6 +300,26 @@ export interface paths { patch?: never; trace?: never; }; + "/api/admin/projects/{projectID}/lists/{listID}/recount": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Recount list users + * @description Recalculates the user count for a dynamic list by re-evaluating the rules + */ + post: operations["recountList"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/admin/projects": { parameters: { query?: never; @@ -484,6 +504,126 @@ export interface paths { patch?: never; trace?: never; }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List users in journey step + * @description Retrieves a paginated list of users currently in a specific journey step + */ + get: operations["listJourneyStepUsers"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Trigger user into journey entrance + * @description Manually adds a user to a specific journey entrance step + */ + post: operations["triggerUserToJourneyStep"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Skip delay for user + * @description Skips the delay for a user currently waiting in a delay step + */ + post: operations["skipJourneyStepDelay"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** + * Remove user from journey step + * @description Removes a user from a specific journey step entrance + */ + delete: operations["removeUserFromJourneyStep"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** + * Remove user from journey + * @description Removes a user from all active entrances in a journey + */ + delete: operations["removeUserFromJourney"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/entrances": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List journey entrances + * @description Retrieves a paginated list of user entrances for a journey + */ + get: operations["listJourneyEntrances"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/admin/profile": { parameters: { query?: never; @@ -2271,6 +2411,82 @@ export interface components { UserJourneyList: components["schemas"]["PaginatedResponse"] & { results: components["schemas"]["UserJourneyEntrance"][]; }; + JourneyUserStep: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + entrance_id: string; + /** + * @description Status/type of the user step + * @example waiting + * @enum {string} + */ + type: "waiting" | "completed" | "skipped" | "exited"; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + delay_until?: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + ended_at?: string; + user?: components["schemas"]["User"]; + journey?: components["schemas"]["Journey"]; + step?: components["schemas"]["JourneyStep"]; + }; + JourneyUserStepList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserStep"][]; + }; + JourneyUserEntrance: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + entrance_id: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + ended_at?: string; + user?: components["schemas"]["User"]; + journey?: components["schemas"]["Journey"]; + }; + JourneyUserEntranceListResponse: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserEntrance"][]; + }; /** @description Map of journey steps keyed by external_id */ JourneyStepMap: { [key: string]: components["schemas"]["JourneyStep"]; @@ -2714,6 +2930,17 @@ export interface components { }; }; }; + /** @description Journey user steps retrieved successfully */ + JourneyUserStepListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserStep"][]; + }; + }; + }; /** @description Tags retrieved successfully */ TagListResponse: { headers: { @@ -3406,6 +3633,32 @@ export interface operations { default: components["responses"]["Error"]; }; }; + recountList: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The list ID */ + listID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Recount started successfully. The list state will be set to 'loading'. */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["List"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; listProjects: { parameters: { query?: { @@ -3774,6 +4027,176 @@ export interface operations { default: components["responses"]["Error"]; }; }; + listJourneyStepUsers: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID */ + stepID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: components["responses"]["JourneyUserStepListResponse"]; + default: components["responses"]["Error"]; + }; + }; + triggerUserToJourneyStep: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID (must be an entrance step) */ + stepID: string; + /** @description The user ID */ + userID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description User added to journey entrance successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JourneyUserStep"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + skipJourneyStepDelay: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID (must be a delay step) */ + stepID: string; + /** @description The user ID */ + userID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Delay skipped successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + removeUserFromJourneyStep: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID */ + stepID: string; + /** @description The user ID */ + userID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description User removed from journey step successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + removeUserFromJourney: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID */ + userID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description User removed from journey successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + listJourneyEntrances: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Journey entrances retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JourneyUserEntranceListResponse"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; getProfile: { parameters: { query?: never; diff --git a/console/src/types.ts b/console/src/types.ts index 61c21f546..d2617ccd0 100644 --- a/console/src/types.ts +++ b/console/src/types.ts @@ -1,6 +1,7 @@ import type { ComponentType, Dispatch, Key, ReactNode, SetStateAction } from "react" import type { FieldPath, FieldValues, UseFormReturn } from "react-hook-form" import type { Node } from "reactflow" +import type { components } from "@/oapi/management.generated" import type { UUID } from "@/types/common" export type Class = new () => T @@ -241,7 +242,7 @@ export interface OrganizationSchemaPath { } export interface VariableSuggestions { - userPaths: UserSchemaPath[] + userPaths: EventSchemaPath[] eventPaths: EventSchema[] organizationEventPaths?: EventSchema[] organizationUserPaths?: OrganizationUserSchemaPath[] @@ -422,8 +423,8 @@ export type List = { name: string state: ListState type: ListType - rule?: WrapperRule | null - draft_rule?: WrapperRule | null + rule?: any + draft_rule?: any version_number?: number | null users_count: number tags?: string[] @@ -437,8 +438,8 @@ export type List = { } & ( | { type: "dynamic" - rule: WrapperRule | null - draft_rule: WrapperRule | null + rule: any + draft_rule: any } | { type: "static" } ) @@ -468,12 +469,14 @@ export interface Journey { updated_at: string deleted_at?: string stats_at?: string - stats: Record + stats?: Record } +export type JourneyStepKind = components["schemas"]["JourneyStepType"]; + export interface JourneyStep { id: UUID - type: string + type: JourneyStepKind name: string data: T x: number @@ -482,27 +485,16 @@ export interface JourneyStep { export type JourneyStepParams = Omit -interface JourneyStepMapChild { - external_id: string - path?: string - data?: E -} - -export interface JourneyStepMap { - [external_id: string]: { - type: string - name: string - data_key?: string - data?: Record - x: number - y: number - children?: JourneyStepMapChild[] - stats?: Record - stats_at?: Date - id?: UUID - } +export type JourneyStepMapChild = components["schemas"]["JourneyStepChild"] + +export type JourneyStepMapEntry = components["schemas"]["JourneyStep"] & { + stats?: Record + stats_at?: Date + id?: UUID } +export type JourneyStepMap = Record + export interface JourneyStepTypeEditProps extends ControlledProps { journey: Journey project: Project @@ -719,7 +711,7 @@ export interface Provider { data: any is_default: boolean - setup: ProviderSetupMeta[] + setup?: ProviderSetupMeta[] external_id?: string } diff --git a/console/src/views/campaign/Campaigns.tsx b/console/src/views/campaign/Campaigns.tsx index 9857c4262..59a29aded 100644 --- a/console/src/views/campaign/Campaigns.tsx +++ b/console/src/views/campaign/Campaigns.tsx @@ -15,7 +15,7 @@ import { Archive, } from "lucide-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { useResolver } from "../../hooks" import { formatDate, snakeToTitle } from "../../utils" import { getRandomColor } from "@/lib/colors" @@ -90,12 +90,26 @@ export default function Campaigns({ create = false }: CampaignsProps) { const [result, , reload] = useResolver( useCallback(async () => { - return await api.campaigns.search(project.id, { - limit: 25, - cursor, - page: pageDirection, - search: debouncedQuery || undefined, + const res = await oapiClient.GET("/api/admin/projects/{projectID}/campaigns", { + params: { + path: { projectID: project.id }, + query: { + q: debouncedQuery || undefined, + limit: 25, + cursor, + page: pageDirection, + }, + }, }) + if (res.error || !res.data) { + return null + } + return { + results: res.data.results ?? [], + nextCursor: res.data.nextCursor ?? "", + limit: res.data.limit ?? 25, + total: res.data.total ?? 0, + } }, [project.id, debouncedQuery, cursor, pageDirection]), ) @@ -123,13 +137,27 @@ export default function Campaigns({ create = false }: CampaignsProps) { const handleDuplicateCampaign = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - const campaign = await api.campaigns.duplicate(project.id, id) - await navigate(`/projects/${project.id}/campaigns/${campaign.id.toString()}`) + const campaign = await oapiClient.POST("/api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate", { + params: { + path: { + projectID: project.id, + campaignID: id, + }, + }, + }) + await navigate(`/projects/${project.id}/campaigns/${campaign.data?.id.toString()}`) } const handleArchiveCampaign = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - await api.campaigns.delete(project.id, id) + await oapiClient.DELETE("/api/admin/projects/{projectID}/campaigns/{campaignID}", { + params: { + path: { + projectID: project.id, + campaignID: id, + }, + }, + }) await reload() } diff --git a/console/src/views/journey/JourneyForm.tsx b/console/src/views/journey/JourneyForm.tsx index 8cc73471b..0a90fbd79 100644 --- a/console/src/views/journey/JourneyForm.tsx +++ b/console/src/views/journey/JourneyForm.tsx @@ -1,6 +1,6 @@ import { useContext, useState } from "react" import { toast } from "sonner" -import api from "../../api" +import oapiClient from "@/oapi/client" import { ProjectContext } from "../../contexts" import type { Journey } from "../../types" import { useTranslation } from "react-i18next" @@ -30,21 +30,41 @@ export function JourneyForm({ journey, onSaved }: JourneyFormProps) { e.preventDefault() setSaving(true) try { - const saved = journey?.id - ? await api.journeys.update(project.id, journey.id, { - name, - description, - status, - tags: journey.tags, - }) - : await api.journeys.create(project.id, { - name, - description, - status, - tags: journey?.tags, + const payload = { + name, + description, + status, + tags: journey?.tags, + } + + const response = journey?.id + ? await oapiClient.PATCH( + `/api/admin/projects/{projectID}/journeys/{journeyID}`, + { + params: { + path: { + projectID: project.id, + journeyID: journey.id, + }, + }, + body: payload, + }, + ) + : await oapiClient.POST(`/api/admin/projects/{projectID}/journeys`, { + params: { + path: { + projectID: project.id, + }, + }, + body: payload, }) + + if (!response.data) { + return + } + toast.success(t("journey_saved")) - onSaved?.(saved) + onSaved?.(response.data) } finally { setSaving(false) } diff --git a/console/src/views/journey/JourneyStepUsers.tsx b/console/src/views/journey/JourneyStepUsers.tsx index bec2b2275..3f0b632cb 100644 --- a/console/src/views/journey/JourneyStepUsers.tsx +++ b/console/src/views/journey/JourneyStepUsers.tsx @@ -5,7 +5,7 @@ import clsx from "clsx" import { JourneyContext, ProjectContext } from "../../contexts" import { PreferencesContext } from "@/contexts/PreferencesContext" import { SearchTable, useSearchTableState } from "@/components/search-table" -import api from "../../api" +import oapiClient from "@/oapi/client" import { Badge } from "@/components/ui/badge" import { Avatar, AvatarFallback } from "@/components/ui/avatar" import { Button } from "@/components/ui/button" @@ -89,8 +89,37 @@ export function JourneyStepUsers({ open, onClose, stepType, stepId, stepName }: const state = useSearchTableState( useCallback( - async (params) => - await api.journeys.steps.searchUsers(projectId, journeyId, stepId, params), + async (params) => { + const res = await oapiClient.GET( + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users", + { + params: { + path: { + projectID: projectId, + journeyID: journeyId, + stepID: stepId, + }, + query: { + limit: params.limit, + offset: params.cursor ? +params.cursor : 0, + }, + }, + }, + ) + if (!res.data) return null + const { results, limit, offset, total } = res.data + return { + results, + limit, + nextCursor: + typeof total === "number" && + typeof limit === "number" && + typeof offset === "number" && + offset + results.length < total + ? String(offset + results.length) + : "", + } + }, [projectId, journeyId, stepId], ), { @@ -100,13 +129,54 @@ export function JourneyStepUsers({ open, onClose, stepType, stepId, stepName }: }, ) + const handleAddUserToEntrance = async (stepId: UUID, user: User) => { + await oapiClient.POST( + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger", + { + params: { + path: { + projectID: projectId, + journeyID: journeyId, + stepID: stepId, + userID: user.id, + }, + }, + }, + ) + await state.reload() + } + const handleSkipDelay = async (stepId: UUID, user: User) => { - await api.journeys.users.skipDelay(projectId, journeyId, user.id, stepId) + await oapiClient.POST( + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip", + { + params: { + path: { + projectID: projectId, + journeyID: journeyId, + stepID: stepId, + userID: user.id, + }, + }, + }, + ) await state.reload() } - const handleRemoveFromJourney = async (stepId: UUID, user: User) => { - await api.journeys.users.removeFromJourney(projectId, journeyId, user.id, stepId) + const handleRemoveFromJourney = async (_stepId: UUID, user: User) => { + await oapiClient.DELETE( + "/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}", + { + params: { + path: { + projectID: projectId, + journeyID: journeyId, + stepID: stepId, + userID: user.id, + }, + }, + }, + ) await state.reload() } diff --git a/console/src/views/journey/JourneyUserEntrances.tsx b/console/src/views/journey/JourneyUserEntrances.tsx index 255b3836c..9d2a0785f 100644 --- a/console/src/views/journey/JourneyUserEntrances.tsx +++ b/console/src/views/journey/JourneyUserEntrances.tsx @@ -1,7 +1,7 @@ import { useCallback, useContext } from "react" import { JourneyContext, ProjectContext } from "../../contexts" import { SearchTable, useSearchTableQueryState } from "@/components/search-table" -import api from "../../api" +import oapiClient from "@/oapi/client" export default function JourneyUserEntrances() { const [project] = useContext(ProjectContext) @@ -12,7 +12,36 @@ export default function JourneyUserEntrances() { const state = useSearchTableQueryState( useCallback( - async (params) => await api.journeys.entrances.search(projectId, journeyId, params), + async (params) => { + const res = await oapiClient.GET( + "/api/admin/projects/{projectID}/journeys/{journeyID}/entrances", + { + params: { + path: { + projectID: projectId, + journeyID: journeyId, + }, + query: { + limit: params.limit, + offset: params.cursor ? +params.cursor : 0, + }, + }, + }, + ) + if (!res.data) return null + const { results, limit, offset, total } = res.data + return { + results, + limit, + nextCursor: + typeof total === "number" && + typeof limit === "number" && + typeof offset === "number" && + offset + results.length < total + ? String(offset + results.length) + : "", + } + }, [projectId, journeyId], ), ) diff --git a/console/src/views/journey/Journeys.tsx b/console/src/views/journey/Journeys.tsx index 1330f9f47..5537913d8 100644 --- a/console/src/views/journey/Journeys.tsx +++ b/console/src/views/journey/Journeys.tsx @@ -15,7 +15,7 @@ import { Archive, } from "lucide-react" -import api from "../../api" +import oapiClient from "@/oapi/client" import { useResolver } from "../../hooks" import { formatDate } from "../../utils" import { getRandomColor } from "@/lib/colors" @@ -96,12 +96,19 @@ export default function Journeys() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.journeys.search(project.id, { - limit: 25, - cursor, - page: pageDirection, - search: debouncedQuery || undefined, + const res = await oapiClient.GET(`/api/admin/projects/{projectID}/journeys`, { + params: { + path: { projectID: project.id }, + query: { + limit: 25, + cursor, + page: pageDirection, + search: debouncedQuery || undefined, + }, + }, }) + if (!res.data) return null + return res.data }, [project.id, debouncedQuery, cursor, pageDirection]), ) @@ -133,13 +140,33 @@ export default function Journeys() { const handleDuplicateJourney = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - const journey = await api.journeys.duplicate(project.id, id) - await navigate(journey.id.toString()) + const res = await oapiClient.POST( + `/api/admin/projects/{projectID}/journeys/{journeyID}/duplicate`, + { + params: { + path: { + projectID: project.id, + journeyID: id, + }, + }, + }, + ) + if (!res.data) { + return + } + await navigate(res.data.id) } const handleArchiveJourney = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - await api.journeys.delete(project.id, id) + await oapiClient.DELETE(`/api/admin/projects/{projectID}/journeys/{journeyID}`, { + params: { + path: { + projectID: project.id, + journeyID: id, + }, + }, + }) await reload() } diff --git a/console/src/views/journey/steps/Entrance.tsx b/console/src/views/journey/steps/Entrance.tsx index b80ca74d6..814ed6b68 100644 --- a/console/src/views/journey/steps/Entrance.tsx +++ b/console/src/views/journey/steps/Entrance.tsx @@ -8,7 +8,7 @@ import { Switch } from "@/components/ui/switch" import { Label } from "@/components/ui/label" import { Combobox } from "@/components/ui/combobox" import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs" -import api from "../../../api" +import oapiClient from "@/oapi/client" import { Button } from "@/components/ui/button" import { env } from "../../../config/env" import { useTranslation, Trans } from "react-i18next" @@ -185,17 +185,18 @@ export const entranceStep: JourneyStepType = { const handleSearch = useCallback( async (query: string): Promise => { if (!cacheRef.current) { - const suggestions = await api.projects.pathSuggestions(projectId) - cacheRef.current = Array.isArray(suggestions?.eventPaths) - ? suggestions.eventPaths.map((event, index) => ({ - id: `event-${index}` as UUID, - name: event.name, - path: event.name, - type: "event" as const, - data_type: "string" as const, - visibility: "public" as const, - })) - : [] + const res = await oapiClient.GET('/api/admin/projects/{projectID}/events/schema', { + params: { path: { projectID: projectId } }, + }) + const events = res.data?.results ?? [] + cacheRef.current = events.map((event, index) => ({ + id: `event-${index}` as UUID, + name: event.name, + path: event.name, + type: "event" as const, + data_type: "string" as const, + visibility: "public" as const, + })) } if (!query) return cacheRef.current const lower = query.toLowerCase() diff --git a/console/src/views/journey/steps/JourneyLink.tsx b/console/src/views/journey/steps/JourneyLink.tsx index cf46b89f4..257878631 100644 --- a/console/src/views/journey/steps/JourneyLink.tsx +++ b/console/src/views/journey/steps/JourneyLink.tsx @@ -1,5 +1,5 @@ import { useCallback } from "react" -import api from "../../../api" +import oapiClient from "@/oapi/client" import type { Journey, JourneyStepType } from "../../../types" import { Combobox } from "@/components/ui/combobox" import { Label } from "@/components/ui/label" @@ -41,7 +41,15 @@ export const journeyLinkStep: JourneyStepType = { return journey } if (target_id) { - return await api.journeys.get(project.id, target_id) + const res = await oapiClient.GET('/api/admin/projects/{projectID}/journeys/{journeyID}', { + params: { + path: { + projectID: project.id, + journeyID: target_id, + }, + }, + }) + return res.data ?? null } return null }, [project, journey, target_id]), @@ -73,7 +81,15 @@ export const journeyLinkStep: JourneyStepType = { const [target] = useResolver( useCallback(async () => { if (value.target_id && value.target_id !== NIL) { - return await api.journeys.get(project.id, value.target_id) + const res = await oapiClient.GET('/api/admin/projects/{projectID}/journeys/{journeyID}', { + params: { + path: { + projectID: project.id, + journeyID: value.target_id, + }, + }, + }) + return res.data ?? null } return null }, [project.id, value.target_id]), @@ -81,11 +97,17 @@ export const journeyLinkStep: JourneyStepType = { const handleSearch = useCallback( async (query: string): Promise => { - const result = await api.journeys.search(project.id, { - search: query || undefined, - limit: 50, + const res = await oapiClient.GET('/api/admin/projects/{projectID}/journeys', { + params: { + path: { projectID: project.id }, + query: { + search: query || undefined, + limit: 50, + }, + }, }) - return result.results.map((j) => ({ ...j, path: j.id })) + const results = res.data?.results ?? [] + return results.map((j) => ({ ...j, path: j.id })) }, [project.id], ) diff --git a/console/src/views/project/GettingStarted.tsx b/console/src/views/project/GettingStarted.tsx index 88617a444..d7d7966c1 100644 --- a/console/src/views/project/GettingStarted.tsx +++ b/console/src/views/project/GettingStarted.tsx @@ -15,7 +15,7 @@ import { ProjectContext } from "@/contexts" import { useNavigate, useParams } from "react-router" import type { UUID } from "@/types/common" import { NIL } from "uuid" -import api from "@/api" +import { oapiClient } from "@/oapi/client" import { cn } from "@/utils" import { t } from "i18next" import { Puzzle } from "lucide-react" @@ -28,8 +28,23 @@ export default function ProjectGettingStarted() { useEffect(() => { const loadProject = async () => { - const projectState = await api.projects.get(projectId) - setProject(projectState) + const res = await oapiClient.GET('/api/admin/projects/{projectID}', { + params: { + path: { projectID: projectId } + } + }) + if (!res.data) return + const { role, ...projectData } = res.data + const validRole = + role === 'support' || role === 'editor' || role === 'publisher' || role === 'admin' + ? role + : undefined + setProject({ + ...projectData, + link_wrap_email: res.data.link_wrap_email ?? false, + link_wrap_push: res.data.link_wrap_push ?? false, + role: validRole, + }) } loadProject().catch(console.error) }, [setProject, projectId]) @@ -43,13 +58,21 @@ export default function ProjectGettingStarted() { async function createOnboardingJourney() { setIsJourneyLoading(true) try { - const journey = await api.journeys.create(projectId, { - name: "Onboarding", - description: "Getting started with your first journey", - template_id: "onboarding", - status: "draft", + const res = await oapiClient.POST("/api/admin/projects/{projectID}/journeys", { + params: { + path: { + projectID: projectId + } + }, + body: { + name: "Onboarding", + description: "Getting started with your first journey", + template_id: "onboarding", + status: "draft", + }, }) - await navigate(`/projects/${projectId}/journeys/${journey.id}`) + if (!res.data) return + await navigate(`/projects/${projectId}/journeys/${res.data.id}`) } finally { setIsJourneyLoading(false) } diff --git a/console/src/views/project/ProjectForm.tsx b/console/src/views/project/ProjectForm.tsx index 7ccfe9ec7..193219eca 100644 --- a/console/src/views/project/ProjectForm.tsx +++ b/console/src/views/project/ProjectForm.tsx @@ -1,4 +1,5 @@ -import api from "../../api" +import { oapiClient } from "@/oapi/client" +import type { components } from "@/oapi/management.generated" import type { Project } from "../../types" import { useTranslation } from "react-i18next" import type { UseFormReturn } from "react-hook-form" @@ -45,9 +46,11 @@ export declare namespace Intl { } } +type OapiProject = components["schemas"]["Project"] + interface ProjectFormProps { project?: Project - onSave?: (project: Project) => void + onSave?: (project: OapiProject) => void } export default function ProjectForm({ project, onSave }: ProjectFormProps) { @@ -87,10 +90,20 @@ export default function ProjectForm({ project, onSave }: ProjectFormProps) { } try { - const updatedProject = id - ? await api.projects.update(id, params) - : await api.projects.create(params) - onSave?.(updatedProject) + const res = id + ? await oapiClient.PATCH("/api/admin/projects/{projectID}", { + params: { + path: { projectID: id }, + }, + body: params, + }) + : await oapiClient.POST("/api/admin/projects", { + body: params, + }) + if (!res.data) { + return + } + onSave?.(res.data) } catch (error) { console.error("Failed to save project", error) window.alert(t("project.saveError", "Unable to save project. Please try again.")) diff --git a/console/src/views/project/ProjectOnboardingGettingStarted.tsx b/console/src/views/project/ProjectOnboardingGettingStarted.tsx index d2896256d..fcffce2f3 100644 --- a/console/src/views/project/ProjectOnboardingGettingStarted.tsx +++ b/console/src/views/project/ProjectOnboardingGettingStarted.tsx @@ -9,7 +9,7 @@ import { CardHeader, CardTitle, } from "@/components/ui/card" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import type { UUID } from "@/types/common" import { useState } from "react" import { NIL } from "uuid" @@ -24,20 +24,33 @@ export default function ProjectOnboardingGettingStarted() { async function createOnboardingJourney() { setIsJourneyLoading(true) try { - const journeys = await api.journeys.search(projectId, { limit: 1 }) - if (journeys.results.length > 0) { - await navigate(`/projects/${projectId}/journeys/${journeys.results[0].id}`) + const searchRes = await oapiClient.GET("/api/admin/projects/{projectID}/journeys", { + params: { + path: { projectID: projectId }, + query: { limit: 1 }, + }, + }) + if (searchRes.data?.results && searchRes.data.results.length > 0) { + await navigate(`/projects/${projectId}/journeys/${searchRes.data.results[0].id}`) return } - const journey = await api.journeys.create(projectId, { - name: "Onboarding", - description: "Getting started with your first journey", - template_id: "onboarding", - status: "draft", + const res = await oapiClient.POST("/api/admin/projects/{projectID}/journeys", { + params: { + path: { + projectID: projectId + } + }, + body: { + name: "Onboarding", + description: "Getting started with your first journey", + template_id: "onboarding", + status: "draft", + }, }) - await navigate(`/projects/${projectId}/journeys/${journey.id}`) + if (!res.data) return + await navigate(`/projects/${projectId}/journeys/${res.data.id}`) } finally { setIsJourneyLoading(false) } diff --git a/console/src/views/project/ProjectOnboardingUsers.tsx b/console/src/views/project/ProjectOnboardingUsers.tsx index 58f15942c..d6d589fd4 100644 --- a/console/src/views/project/ProjectOnboardingUsers.tsx +++ b/console/src/views/project/ProjectOnboardingUsers.tsx @@ -10,7 +10,7 @@ import { CardTitle, } from "@/components/ui/card" import { UserImportForm } from "@/components/ui/user-import-dialog" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import type { UUID } from "@/types/common" import { useContext, useState } from "react" import { NIL } from "uuid" @@ -26,22 +26,29 @@ export default function ProjectOnboardingUsers() { const [skipLoading, setSkipLoading] = useState(false) async function createInitialUser() { - const admin = await api.admins.whoami() - if (!admin) return + const res = await oapiClient.GET("/api/admin/organizations/whoami") + if (!res.data) return let fullName - if (admin.first_name || admin.last_name) { - fullName = admin.last_name ? admin.first_name + " " + admin.last_name : admin.first_name + if (res.data.first_name || res.data.last_name) { + fullName = res.data.last_name ? res.data.first_name + " " + res.data.last_name : res.data.first_name } - await api.users.create(projectId, { - anonymous_id: crypto.randomUUID(), - data: { - full_name: fullName, - admin: true, + await oapiClient.POST("/api/admin/projects/{projectID}/users", { + params: { + path: { + projectID: projectId, + }, + }, + body: { + anonymous_id: crypto.randomUUID(), + data: { + full_name: fullName, + admin: true, + }, + email: res.data.email, + timezone: project.timezone, }, - email: admin.email, - timezone: project.timezone, }) } @@ -51,7 +58,13 @@ export default function ProjectOnboardingUsers() { await createInitialUser() if (file) { - await api.users.addImport(projectId, file) + const formData = new FormData() + formData.append("file", file) + await fetch(`/api/admin/projects/${projectId}/users/import`, { + method: "POST", + credentials: "include", + body: formData, + }) } await navigate(`/projects/${projectId}/onboarding/getting-started`) diff --git a/console/src/views/project/Projects.tsx b/console/src/views/project/Projects.tsx index 53ae54f43..b02ca850c 100644 --- a/console/src/views/project/Projects.tsx +++ b/console/src/views/project/Projects.tsx @@ -1,6 +1,6 @@ import { useContext, useEffect, useMemo, useState } from "react" import { useNavigate } from "react-router" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { useResolver } from "../../hooks" import type { Project } from "../../types" import { Button } from "@/components/ui/button" @@ -17,8 +17,17 @@ export function Projects() { const navigate = useNavigate() const { t } = useTranslation() const [preferences] = useContext(PreferencesContext) - const [response] = useResolver(api.projects.all) - const projects = response?.results + const [res] = useResolver(() => oapiClient.GET('/api/admin/projects', { + params: { + query: { + limit: 50, + offset: 0, + }, + }, + }) + ) + if (!res) return null + const projects = res.data?.results || [] const recents = useMemo(() => { const recents = getRecentProjects() diff --git a/console/src/views/settings/ApiKeys.tsx b/console/src/views/settings/ApiKeys.tsx index a5f773098..38f766ad6 100644 --- a/console/src/views/settings/ApiKeys.tsx +++ b/console/src/views/settings/ApiKeys.tsx @@ -3,7 +3,7 @@ import { useCallback, useContext, useState, useRef } from "react" import { useTranslation } from "react-i18next" import { Plus, Search, Key, MoreHorizontal, Copy } from "lucide-react" import { toast } from "sonner" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import { useResolver } from "../../hooks" import { snakeToTitle } from "../../utils" @@ -49,10 +49,16 @@ export default function ProjectApiKeys() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.apiKeys.search(project.id, { - limit: 50, - search: debouncedQuery || undefined, + const res = await oapiClient.GET("/api/admin/projects/{projectID}/keys", { + params: { + path: { projectID: project.id }, + query: { + limit: 50, + search: debouncedQuery || undefined, + }, + }, }) + return res.data ?? null }, [project.id, debouncedQuery]), ) @@ -60,7 +66,14 @@ export default function ProjectApiKeys() { const handleArchive = async (id: UUID) => { if (confirm(t("delete_key_confirmation"))) { - await api.apiKeys.delete(project.id, id) + await oapiClient.DELETE("/api/admin/projects/{projectID}/keys/{keyID}", { + params: { + path: { + projectID: project.id, + keyID: id, + }, + }, + }) await reload() } } @@ -237,17 +250,32 @@ export default function ProjectApiKeys() { try { const { id, name, description, role } = data if (id) { - await api.apiKeys.update(project.id, id, { - name: name as string, - description, - role, + await oapiClient.PATCH("/api/admin/projects/{projectID}/keys/{keyID}", { + params: { + path: { + projectID: project.id, + keyID: id, + }, + }, + body: { + name: name as string, + description, + role, + }, }) } else { - await api.apiKeys.create(project.id, { - name: name as string, - description, - scope: "secret", - role, + await oapiClient.POST("/api/admin/projects/{projectID}/keys", { + params: { + path: { + projectID: project.id, + }, + }, + body: { + name: name as string, + description, + scope: "secret", + role, + }, }) } await reload() diff --git a/console/src/views/settings/Integrations.tsx b/console/src/views/settings/Integrations.tsx index 69968212d..071718370 100644 --- a/console/src/views/settings/Integrations.tsx +++ b/console/src/views/settings/Integrations.tsx @@ -1,7 +1,7 @@ import { useCallback, useContext, useRef, useState } from "react" import { useTranslation } from "react-i18next" import { Plus, Search, Puzzle, MoreHorizontal } from "lucide-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import { useResolver } from "../../hooks" import { snakeToTitle } from "../../utils" @@ -48,10 +48,16 @@ export default function Integrations() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.providers.search(project.id, { - limit: 50, - search: debouncedQuery || undefined, - } as any) + const res = await oapiClient.GET("/api/admin/projects/{projectID}/providers", { + params: { + path: { projectID: project.id }, + query: { + limit: 50, + search: debouncedQuery || undefined, + } as any, + }, + }) + return res.data ?? null }, [project.id, debouncedQuery]), ) @@ -59,7 +65,14 @@ export default function Integrations() { const handleArchive = async (id: UUID) => { if (!confirm(t("delete_integration_confirmation"))) return - await api.providers.delete(project.id, id) + await oapiClient.DELETE("/api/admin/projects/{projectID}/providers/{providerID}", { + params: { + path: { + projectID: project.id, + providerID: id, + }, + }, + }) await reload() } diff --git a/console/src/views/settings/Locales.tsx b/console/src/views/settings/Locales.tsx index 2fceada1c..43da0249b 100644 --- a/console/src/views/settings/Locales.tsx +++ b/console/src/views/settings/Locales.tsx @@ -1,7 +1,7 @@ import { useCallback, useContext, useState } from "react" import { useTranslation } from "react-i18next" import { Globe, Plus, Search, MoreHorizontal } from "lucide-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import { useResolver } from "../../hooks" import type { Locale } from "../../types" @@ -45,7 +45,14 @@ export default function Locales() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.locales.search(project.id, { limit: 100 }) + const res = await oapiClient.GET("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + }, + }, + }) + return res.data ?? null }, [project.id]), ) @@ -63,7 +70,14 @@ export default function Locales() { const handleDeleteLocale = async (locale: Locale) => { if (!confirm(t("locale.delete_confirmation"))) return - await api.locales.delete(project.id, locale.id) + await oapiClient.DELETE("/api/admin/projects/{projectID}/locales/{localeID}", { + params: { + path: { + projectID: project.id, + localeID: locale.id, + }, + }, + }) await reload() } @@ -72,7 +86,14 @@ export default function Locales() { setIsCreating(true) try { const label = resolveLocaleName(selectedLocaleKey) - await api.locales.create(project.id, { key: selectedLocaleKey, label }) + await oapiClient.POST("/api/admin/projects/{projectID}/locales", { + params: { + path: { + projectID: project.id, + }, + }, + body: { key: selectedLocaleKey, label }, + }) await reload() setOpen(false) setSelectedLocaleKey(undefined) diff --git a/console/src/views/settings/Subscriptions.tsx b/console/src/views/settings/Subscriptions.tsx index e5cfd8fe4..8684ab34a 100644 --- a/console/src/views/settings/Subscriptions.tsx +++ b/console/src/views/settings/Subscriptions.tsx @@ -2,7 +2,7 @@ import { useCallback, useContext, useMemo, useState } from "react" import { useForm } from "react-hook-form" import { useTranslation } from "react-i18next" import { Plus, Search, Bell, MoreHorizontal } from "lucide-react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import { useResolver } from "../../hooks" import { snakeToTitle } from "../../utils" @@ -53,7 +53,13 @@ export default function Subscriptions() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.subscriptions.search(project.id, { limit: 50 }) + const res = await oapiClient.GET("/api/admin/projects/{projectID}/subscriptions", { + params: { + path: { projectID: project.id }, + query: { limit: 50 }, + }, + }) + return res.data ?? null }, [project.id]), ) @@ -207,9 +213,31 @@ export default function Subscriptions() { onSave={async (data) => { const { id, name, channel, is_public } = data if (id) { - await api.subscriptions.update(project.id, id, { name, is_public }) + await oapiClient.PATCH("/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", { + params: { + path: { + projectID: project.id, + subscriptionID: id, + }, + }, + body: { + name, + is_public, + }, + }) } else { - await api.subscriptions.create(project.id, { name, channel, is_public }) + await oapiClient.POST("/api/admin/projects/{projectID}/subscriptions", { + params: { + path: { + projectID: project.id, + }, + }, + body: { + name, + channel, + is_public, + }, + }) } await reload() setEditing(null) diff --git a/console/src/views/users/ListCreateForm.tsx b/console/src/views/users/ListCreateForm.tsx index 005889200..0d3b53a76 100644 --- a/console/src/views/users/ListCreateForm.tsx +++ b/console/src/views/users/ListCreateForm.tsx @@ -1,5 +1,5 @@ import { useContext, useState } from "react" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { ProjectContext } from "../../contexts" import type { List } from "../../types" import { useTranslation } from "react-i18next" @@ -25,13 +25,20 @@ export function ListCreateForm({ onCreated }: ListCreateFormProps) { setSaving(true) try { const rule = createWrapperRule() - const created = await api.lists.create(project.id, { - name, - type, - rule: type === "dynamic" ? rule : undefined, - is_visible: true, + const res = await oapiClient.POST('/api/admin/projects/{projectID}/lists', { + params: { + path: { projectID: project.id }, + }, + body: { + name, + type, + rule: type === "dynamic" ? rule : undefined, + is_visible: true, + }, }) - onCreated?.(created) + if (res.data) { + onCreated?.(res.data as List) + } } finally { setSaving(false) } diff --git a/console/src/views/users/ListDetail.tsx b/console/src/views/users/ListDetail.tsx index 26d1077fa..b8ee474cd 100644 --- a/console/src/views/users/ListDetail.tsx +++ b/console/src/views/users/ListDetail.tsx @@ -15,8 +15,7 @@ import { Users, Eye, } from "lucide-react" -import api from "../../api" -import oapiClient from "../../oapi/client" +import { oapiClient } from "@/oapi/client" import { ListContext, ProjectContext } from "../../contexts" import { PreferencesContext } from "@/contexts/PreferencesContext" import type { DynamicList, ListUpdateParams, Rule, WrapperRule } from "../../types" @@ -185,15 +184,26 @@ export default function ListDetail() { setPreviewTotal(data?.total ?? data?.results?.length ?? 0) setNextCursor(undefined) } else { - const result = await api.lists.users(project.id, list.id, { - limit: 25, - cursor, - page: pageDirection, - search: debouncedQuery || undefined, - }) - setUsers(result.results) + const res = await oapiClient.GET( + "/api/admin/projects/{projectID}/lists/{listID}/users", + { + params: { + path: { + projectID: project.id, + listID: list.id, + }, + query: { + limit: 25, + cursor, + page: pageDirection, + search: debouncedQuery || undefined, + }, + }, + }, + ) + setUsers(res.data?.results ?? []) setPreviewTotal(null) - setNextCursor(result.nextCursor || undefined) + setNextCursor(res.data?.nextCursor || undefined) } } catch { setUsers([]) @@ -206,9 +216,15 @@ export default function ListDetail() { }, [loadUsers]) const refreshList = useCallback(() => { - api.lists - .get(project.id, list.id) - .then(setList) + oapiClient.GET("/api/admin/projects/{projectID}/lists/{listID}", { + params: { + path: { + projectID: project.id, + listID: list.id, + }, + }, + }) + .then(res => { if (res.data) setList(res.data) }) .then(() => loadUsers()) .catch(() => {}) }, [project.id, list.id, setList, loadUsers]) @@ -278,16 +294,26 @@ export default function ListDetail() { setIsSaving(true) setSavingAction(action) try { - const value = await api.lists.update(project.id, list.id, { - name, - rule, - published, - tags, - }) - setError(undefined) - setList(value) - setHasUnsavedChanges(false) - loadUsers() + const res = await oapiClient.PATCH( + "/api/admin/projects/{projectID}/lists/{listID}", + { + params: { + path: { + projectID: project.id, + listID: list.id, + }, + }, + body: { name, rule, published, tags }, + }, + ) + if (res.error) { + setError(res.error.detail || res.error.title || "Failed to save list") + } else if (res.data) { + setError(undefined) + setList(res.data) + setHasUnsavedChanges(false) + loadUsers() + } } catch (error: unknown) { const errorMessage = error instanceof Error ? error.message : "An unexpected error occurred" @@ -299,18 +325,37 @@ export default function ListDetail() { } const uploadUsers = async (file: File) => { - await api.lists.upload(project.id, list.id, file) + const formData = new FormData() + formData.append("file", file) + await fetch(`/api/admin/projects/${project.id}/lists/${list.id}/users`, { + method: "POST", + body: formData, + }) refreshList() setIsUploadOpen(false) } const handleRecountList = async () => { - await api.lists.recount(project.id, list.id) + await oapiClient.POST('/api/admin/projects/{projectID}/lists/{listID}/recount', { + params: { + path: { + projectID: project.id, + listID: list.id, + }, + }, + }) window.location.reload() } const handleArchiveList = async () => { - await api.lists.delete(project.id, list.id) + await oapiClient.DELETE("/api/admin/projects/{projectID}/lists/{listID}", { + params: { + path: { + projectID: project.id, + listID: list.id, + }, + }, + }) await navigate(`/projects/${project.id}/lists`) } diff --git a/console/src/views/users/ListTable.tsx b/console/src/views/users/ListTable.tsx index 607f2e577..46410f6a5 100644 --- a/console/src/views/users/ListTable.tsx +++ b/console/src/views/users/ListTable.tsx @@ -7,7 +7,7 @@ import { snakeToTitle } from "../../utils" import { useRoute } from "../router" import Menu, { MenuItem } from "@/components/menu" import { ArchiveIcon, DuplicateIcon, EditIcon } from "../../components/icons" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { useNavigate, useParams } from "react-router" import { Translation, useTranslation } from "react-i18next" import type { UUID } from "@/types/common" @@ -58,12 +58,26 @@ export default function ListTable({ search, selectedRow, onSelectRow, title }: L } const handleDuplicateList = async (id: UUID) => { - const list = await api.lists.duplicate(projectId, id) - await navigate(list.id.toString()) + const res = await oapiClient.POST(`/api/admin/projects/{projectID}/lists/{listID}/duplicate`, { + params: { + path: { + projectID: projectId, + listID: id, + }, + }, + }) + await navigate(res.data?.id ? `lists/${res.data.id}` : 'lists') } const handleArchiveList = async (id: UUID) => { - await api.lists.delete(projectId, id) + await oapiClient.DELETE(`/api/admin/projects/{projectID}/lists/{listID}`, { + params: { + path: { + projectID: projectId, + listID: id, + }, + }, + }) await state.reload() } diff --git a/console/src/views/users/Lists.tsx b/console/src/views/users/Lists.tsx index 166d9c8dd..ec8977701 100644 --- a/console/src/views/users/Lists.tsx +++ b/console/src/views/users/Lists.tsx @@ -16,7 +16,7 @@ import { } from "lucide-react" import { NIL } from "uuid" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { useResolver } from "../../hooks" import { formatDate, snakeToTitle } from "../../utils" import { getRandomColor } from "@/lib/colors" @@ -91,11 +91,17 @@ export default function Lists() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.lists.search(projectId, { - limit: pageSize, - offset, - search: debouncedQuery || undefined, + const res = await oapiClient.GET('/api/admin/projects/{projectID}/lists', { + params: { + path: { projectID: projectId }, + query: { + limit: pageSize, + offset, + search: debouncedQuery || undefined, + }, + }, }) + return res.data }, [projectId, debouncedQuery, offset]), ) @@ -118,13 +124,23 @@ export default function Lists() { const handleDuplicateList = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - const list = await api.lists.duplicate(projectId, id) - await navigate(list.id.toString()) + const res = await oapiClient.POST('/api/admin/projects/{projectID}/lists/{listID}/duplicate', { + params: { + path: { projectID: projectId, listID: id }, + }, + }) + if (res.data) { + await navigate(res.data.id.toString()) + } } const handleArchiveList = async (e: React.MouseEvent, id: UUID) => { e.stopPropagation() - await api.lists.delete(projectId, id) + await oapiClient.DELETE('/api/admin/projects/{projectID}/lists/{listID}', { + params: { + path: { projectID: projectId, listID: id }, + }, + }) await reload() } diff --git a/console/src/views/users/UserDetail.tsx b/console/src/views/users/UserDetail.tsx index 185751571..3d195f614 100644 --- a/console/src/views/users/UserDetail.tsx +++ b/console/src/views/users/UserDetail.tsx @@ -22,7 +22,7 @@ import { ProjectContext, UserContext } from "../../contexts" import { PreferencesContext } from "@/contexts/PreferencesContext" import { getRandomColor } from "@/lib/colors" import { formatDate, cn } from "../../utils" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { getTimezoneCoordinates, getLocalTimeInTimezone, @@ -87,11 +87,19 @@ export default function UserDetail() { const handleTimezoneChange = async (newTimezone: string) => { setIsSavingTimezone(true) try { - const updatedUser = await api.users.update(project.id, user.id, { - timezone: newTimezone, - } as User) - if (updatedUser) { - setUser(updatedUser) + const res = await oapiClient.PATCH('/api/admin/projects/{projectID}/users/{userID}', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: { + timezone: newTimezone, + }, + }) + if (res.data) { + setUser(res.data) toast.success(t("timezone_updated", "Timezone updated")) } setIsTimezoneOpen(false) @@ -101,15 +109,25 @@ export default function UserDetail() { setIsSavingTimezone(false) } } + } + } const handleLocaleChange = async (newLocale: string) => { setIsSavingLocale(true) try { - const updatedUser = await api.users.update(project.id, user.id, { - locale: newLocale, - } as User) - if (updatedUser) { - setUser(updatedUser) + const res = await oapiClient.PATCH('/api/admin/projects/{projectID}/users/{userID}', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: { + locale: newLocale, + }, + }) + if (res.data) { + setUser(res.data) toast.success(t("locale_updated", "Locale updated")) } setIsLocaleOpen(false) @@ -144,7 +162,14 @@ export default function UserDetail() { const deleteUser = async () => { setIsDeleting(true) try { - await api.users.delete(project.id, user.id) + await oapiClient.DELETE('/api/admin/projects/{projectID}/users/{userID}', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + }) await navigate(`/projects/${project.id}/users`) } finally { setIsDeleting(false) @@ -229,15 +254,19 @@ export default function UserDetail() { { - const updatedUser = await api.users.update( - project.id, - user.id, - { + const res = await oapiClient.PATCH('/api/admin/projects/{projectID}/users/{userID}', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: { email: value || undefined, - } as User, - ) - if (updatedUser) { - setUser(updatedUser) + }, + }) + if (res.data) { + setUser(res.data) toast.success(t("email_updated", "Email updated")) } }} @@ -254,15 +283,22 @@ export default function UserDetail() { { - const updatedUser = await api.users.update( - project.id, - user.id, + const res = await oapiClient.PATCH( + "/api/admin/projects/{projectID}/users/{userID}", { - phone: value || undefined, - } as User, + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: { + phone: value || undefined, + }, + }, ) - if (updatedUser) { - setUser(updatedUser) + if (res.data) { + setUser(res.data) toast.success(t("phone_updated", "Phone updated")) } }} diff --git a/console/src/views/users/UserDetailAttrs.tsx b/console/src/views/users/UserDetailAttrs.tsx index a3fdd9757..0abf7aa0c 100644 --- a/console/src/views/users/UserDetailAttrs.tsx +++ b/console/src/views/users/UserDetailAttrs.tsx @@ -4,8 +4,7 @@ import { Save, Smartphone, Monitor, Tablet, Trash2 } from "lucide-react" import { toast } from "sonner" import { ProjectContext, UserContext } from "../../contexts" import { useResolver } from "../../hooks" -import api from "../../api" -import oapiClient from "../../oapi/client" +import { oapiClient } from "@/oapi/client" import { Button } from "@/components/ui/button" import { AttributeEditor } from "@/components/ui/attribute-editor" @@ -40,9 +39,17 @@ export default function UserDetailAttrs() { const handleSave = async () => { setIsSaving(true) try { - const updatedUser = await api.users.update(project.id, user.id, { data } as User) - if (updatedUser) { - setUser(updatedUser) + const res = await oapiClient.PATCH(`/api/admin/projects/{projectID}/users/{userID}`, { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: { data } as any, + }) + if (res.data) { + setUser(res.data as User) setIsDirty(false) toast.success(t("save_success", "Attributes saved successfully")) } diff --git a/console/src/views/users/UserDetailEvents.tsx b/console/src/views/users/UserDetailEvents.tsx index ea3dc2830..e44f5ec2f 100644 --- a/console/src/views/users/UserDetailEvents.tsx +++ b/console/src/views/users/UserDetailEvents.tsx @@ -6,7 +6,7 @@ import { PreferencesContext } from "@/contexts/PreferencesContext" import { useResolver } from "../../hooks" import { formatDate, cn } from "../../utils" import { getRandomColor } from "@/lib/colors" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import type { SearchParams, UserEvent } from "../../types" import Iframe from "@/components/iframe" @@ -115,7 +115,16 @@ export default function UserDetailEvents() { offset: (page - 1) * limit, search: debouncedQuery || undefined, } - return await api.users.events(project.id, user.id, params) + const res = await oapiClient.GET('/api/admin/projects/{projectID}/users/{userID}/events', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + query: params, + }, + }) + return res.data }, [project.id, user.id, page, debouncedQuery]), ) diff --git a/console/src/views/users/UserDetailJourneys.tsx b/console/src/views/users/UserDetailJourneys.tsx index 4646531b6..66492fb7d 100644 --- a/console/src/views/users/UserDetailJourneys.tsx +++ b/console/src/views/users/UserDetailJourneys.tsx @@ -6,7 +6,7 @@ import { ProjectContext, UserContext } from "../../contexts" import { PreferencesContext } from "@/contexts/PreferencesContext" import { useResolver } from "../../hooks" import { formatDate } from "../../utils" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import { Button } from "@/components/ui/button" import { Skeleton } from "@/components/ui/skeleton" @@ -44,10 +44,19 @@ export default function UserDetailJourneys() { const [result] = useResolver( useCallback(async () => { - return await api.users.journeys.search(project.id, user.id, { - limit, - offset: (page - 1) * limit, + const res = await oapiClient.GET('/api/admin/projects/{projectID}/users/{userID}/journeys', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + query: { + limit, + offset: (page - 1) * limit, + }, + }, }) + return res.data }, [project.id, user.id, page]), ) diff --git a/console/src/views/users/UserDetailSubscriptions.tsx b/console/src/views/users/UserDetailSubscriptions.tsx index 0cbdbc90e..5dda05b7d 100644 --- a/console/src/views/users/UserDetailSubscriptions.tsx +++ b/console/src/views/users/UserDetailSubscriptions.tsx @@ -4,7 +4,7 @@ import { Bell, BellOff } from "lucide-react" import { ProjectContext, UserContext } from "../../contexts" import { useResolver } from "../../hooks" import { snakeToTitle } from "../../utils" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import type { SubscriptionParams, SubscriptionState } from "../../types" import type { UUID } from "@/types/common" @@ -41,7 +41,16 @@ export default function UserDetailSubscriptions() { const [search, , reload] = useResolver( useCallback(async () => { - return await api.users.subscriptions(project.id, user.id, { limit: 100 }) + const res = await oapiClient.GET('/api/admin/projects/{projectID}/users/{userID}/subscriptions', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + query: { limit: 100 }, + }, + }) + return res.data }, [project.id, user.id]), ) @@ -59,19 +68,35 @@ export default function UserDetailSubscriptions() { if (!confirmAction) return if (confirmAction.type === "toggle" && confirmAction.subscriptionId) { - await api.users.updateSubscriptions(project.id, user.id, [ - { - subscription_id: confirmAction.subscriptionId, - state: confirmAction.newState!, + await oapiClient.PATCH('/api/admin/projects/{projectID}/users/{userID}/subscriptions', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, }, - ]) + body: [ + { + subscription_id: confirmAction.subscriptionId, + state: confirmAction.newState!, + }, + ], + }) } else if (confirmAction.type === "unsubscribe_all") { const params: SubscriptionParams[] = subscriptions?.map((item) => ({ subscription_id: item.subscription_id, state: "unsubscribed" as SubscriptionState, })) ?? [] - await api.users.updateSubscriptions(project.id, user.id, params) + await oapiClient.PATCH('/api/admin/projects/{projectID}/users/{userID}/subscriptions', { + params: { + path: { + projectID: project.id, + userID: user.id, + }, + }, + body: params, + }) } await reload() diff --git a/console/src/views/users/Users.tsx b/console/src/views/users/Users.tsx index 7d6345ec3..411442f41 100644 --- a/console/src/views/users/Users.tsx +++ b/console/src/views/users/Users.tsx @@ -20,7 +20,7 @@ import { formatDate } from "../../utils" import { getRandomColor } from "@/lib/colors" import { PreferencesContext } from "@/contexts/PreferencesContext" import { UsersIcon as UsersPageIcon } from "@/components/icons" -import api from "../../api" +import { oapiClient } from "@/oapi/client" import type { UUID } from "@/types/common" import type { User } from "../../types" @@ -87,6 +87,7 @@ export default function Users() { const limit = 25 const searchTimeoutRef = useRef>() + // Debounce search const handleSearch = useCallback((value: string) => { setSearchQuery(value) @@ -99,11 +100,17 @@ export default function Users() { const [result, , reload] = useResolver( useCallback(async () => { - return await api.users.search(projectId, { - limit, - offset: (page - 1) * limit, - search: debouncedQuery || undefined, + const res = await oapiClient.GET('/api/admin/projects/{projectID}/users', { + params: { + path: { projectID: projectId }, + query: { + limit, + offset: (page - 1) * limit, + search: debouncedQuery || undefined, + }, + }, }) + return res.data }, [projectId, debouncedQuery, page]), ) @@ -136,16 +143,21 @@ export default function Users() { setIsCreating(true) try { const locale = navigator.languages[0]?.split("-")[0] ?? "en" - const newUser: User = { - anonymous_id: crypto.randomUUID() as UUID, + const newUser = { + anonymous_id: crypto.randomUUID(), email: newUserEmail.trim() || undefined, phone: newUserPhone.trim() || undefined, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, locale, data: newUserFullName.trim() ? { full_name: newUserFullName.trim() } : {}, - } as User + } - await api.users.create(projectId, newUser) + await oapiClient.POST('/api/admin/projects/{projectID}/users', { + params: { + path: { projectID: projectId }, + }, + body: newUser, + }) await reload() setIsCreateOpen(false) setNewUserFullName("") @@ -157,7 +169,13 @@ export default function Users() { } const handleImportUsers = async (file: File) => { - await api.users.addImport(projectId, file) + const formData = new FormData() + formData.append('file', file) + + await fetch(`/api/admin/projects/${projectId}/users`, { + method: 'POST', + body: formData, + }) await reload() } diff --git a/console/src/views/users/rules/RuleBuilder.tsx b/console/src/views/users/rules/RuleBuilder.tsx index b7da0787f..21aac2d09 100644 --- a/console/src/views/users/rules/RuleBuilder.tsx +++ b/console/src/views/users/rules/RuleBuilder.tsx @@ -5,7 +5,7 @@ import { useController } from "react-hook-form" import { useCallback, useContext, useMemo } from "react" import { ProjectContext } from "../../../contexts" import { useResolver } from "../../../hooks" -import api from "../../../api" +import { oapiClient } from "@/oapi/client" import { snakeToTitle } from "../../../utils" import { emptySuggestions, VariablesContext } from "./RuleHelpers" import RuleEdit from "./RuleEdit" @@ -30,7 +30,34 @@ export default function RuleBuilder({ }: RuleBuilderParams) { const [{ id: projectId }] = useContext(ProjectContext) const [suggestions] = useResolver( - useCallback(async () => await api.projects.pathSuggestions(projectId), [projectId]), + useCallback(async () => { + const [eventsRes, usersRes] = await Promise.all([ + oapiClient.GET('/api/admin/projects/{projectID}/events/schema', { + params: { path: { projectID: projectId } } + }), + oapiClient.GET('/api/admin/projects/{projectID}/users/schema', { + params: { path: { projectID: projectId } } + }) + ]) + + if (!eventsRes.data || !usersRes.data) { + return emptySuggestions + } + + const eventPaths = eventsRes.data.results.map(event => ({ + id: event.id, + name: event.name, + schema: (event.schema ?? []).map(schemaPath => ({ + path: `.data${schemaPath.path}`, + types: schemaPath.types, + })) + })) + + return { + eventPaths, + userPaths: usersRes.data.results, + } + }, [projectId]), ) return ( Lunogram - - + + diff --git a/internal/http/controllers/v1/management/oapi/resources.yml b/internal/http/controllers/v1/management/oapi/resources.yml index 6b5aa8d64..d8c854337 100644 --- a/internal/http/controllers/v1/management/oapi/resources.yml +++ b/internal/http/controllers/v1/management/oapi/resources.yml @@ -1459,6 +1459,251 @@ paths: default: $ref: "#/components/responses/Error" + /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users: + get: + summary: List users in journey step + description: Retrieves a paginated list of users currently in a specific journey step + operationId: listJourneyStepUsers + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: stepID + in: path + required: true + schema: + type: string + description: The step external ID + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/Offset" + responses: + "200": + $ref: "#/components/responses/JourneyUserStepListResponse" + default: + $ref: "#/components/responses/Error" + + /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger: + post: + summary: Trigger user into journey entrance + description: Manually adds a user to a specific journey entrance step + operationId: triggerUserToJourneyStep + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: stepID + in: path + required: true + schema: + type: string + description: The step external ID (must be an entrance step) + - name: userID + in: path + required: true + schema: + type: string + format: uuid + description: The user ID + responses: + "201": + description: User added to journey entrance successfully + content: + application/json: + schema: + $ref: "#/components/schemas/JourneyUserStep" + default: + $ref: "#/components/responses/Error" + + /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip: + post: + summary: Skip delay for user + description: Skips the delay for a user currently waiting in a delay step + operationId: skipJourneyStepDelay + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: stepID + in: path + required: true + schema: + type: string + description: The step external ID (must be a delay step) + - name: userID + in: path + required: true + schema: + type: string + format: uuid + description: The user ID + responses: + "200": + description: Delay skipped successfully + default: + $ref: "#/components/responses/Error" + + /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}: + delete: + summary: Remove user from journey step + description: Removes a user from a specific journey step entrance + operationId: removeUserFromJourneyStep + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: stepID + in: path + required: true + schema: + type: string + description: The step external ID + - name: userID + in: path + required: true + schema: + type: string + format: uuid + description: The user ID + responses: + "204": + description: User removed from journey step successfully + default: + $ref: "#/components/responses/Error" + + /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}: + delete: + summary: Remove user from journey + description: Removes a user from all active entrances in a journey + operationId: removeUserFromJourney + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: userID + in: path + required: true + schema: + type: string + format: uuid + description: The user ID + responses: + "204": + description: User removed from journey successfully + default: + $ref: "#/components/responses/Error" + + /api/admin/projects/{projectID}/journeys/{journeyID}/entrances: + get: + summary: List journey entrances + description: Retrieves a paginated list of user entrances for a journey + operationId: listJourneyEntrances + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - $ref: "#/components/parameters/Limit" + - $ref: "#/components/parameters/Offset" + - $ref: "#/components/parameters/Search" + responses: + "200": + description: Journey entrances retrieved successfully + content: + application/json: + schema: + $ref: "#/components/schemas/JourneyUserEntranceListResponse" + default: + $ref: "#/components/responses/Error" + /api/admin/profile: get: summary: Get current admin profile @@ -4113,6 +4358,22 @@ components: items: $ref: "#/components/schemas/Journey" + JourneyUserStepListResponse: + description: Journey user steps retrieved successfully + content: + application/json: + schema: + allOf: + - $ref: "#/components/schemas/PaginatedResponse" + - type: object + required: + - results + properties: + results: + type: array + items: + $ref: "#/components/schemas/JourneyUserStep" + TagListResponse: description: Tags retrieved successfully content: @@ -6114,6 +6375,108 @@ components: items: $ref: "#/components/schemas/UserJourneyEntrance" + JourneyUserStep: + type: object + required: + - id + - entrance_id + - type + - created_at + - updated_at + properties: + id: + type: string + format: uuid + example: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" + entrance_id: + type: string + format: uuid + example: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" + type: + type: string + description: Status/type of the user step + enum: [waiting, completed, skipped, exited] + example: "waiting" + delay_until: + type: string + format: date-time + example: "2025-11-24T10:30:00.000Z" + created_at: + type: string + format: date-time + example: "2025-11-19T14:18:42.960Z" + updated_at: + type: string + format: date-time + example: "2025-11-23T17:20:00.021Z" + ended_at: + type: string + format: date-time + example: "2025-11-24T10:30:00.000Z" + user: + $ref: "#/components/schemas/User" + journey: + $ref: "#/components/schemas/Journey" + step: + $ref: "#/components/schemas/JourneyStep" + + JourneyUserStepList: + allOf: + - $ref: "#/components/schemas/PaginatedResponse" + - type: object + required: + - results + properties: + results: + type: array + items: + $ref: "#/components/schemas/JourneyUserStep" + + JourneyUserEntrance: + type: object + required: + - id + - entrance_id + - created_at + - updated_at + properties: + id: + type: string + format: uuid + example: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" + entrance_id: + type: string + format: uuid + example: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" + created_at: + type: string + format: date-time + example: "2025-11-19T14:18:42.960Z" + updated_at: + type: string + format: date-time + example: "2025-11-23T17:20:00.021Z" + ended_at: + type: string + format: date-time + example: "2025-11-24T10:30:00.000Z" + user: + $ref: "#/components/schemas/User" + journey: + $ref: "#/components/schemas/Journey" + + JourneyUserEntranceListResponse: + allOf: + - $ref: "#/components/schemas/PaginatedResponse" + - type: object + required: + - results + properties: + results: + type: array + items: + $ref: "#/components/schemas/JourneyUserEntrance" + JourneyStepMap: type: object description: Map of journey steps keyed by external_id diff --git a/internal/http/controllers/v1/management/oapi/resources_gen.go b/internal/http/controllers/v1/management/oapi/resources_gen.go index adb16b54e..6df3f9bcb 100644 --- a/internal/http/controllers/v1/management/oapi/resources_gen.go +++ b/internal/http/controllers/v1/management/oapi/resources_gen.go @@ -54,6 +54,14 @@ const ( CreateListTypeStatic CreateListType = "static" ) +// Defines values for CreateProviderRateInterval. +const ( + CreateProviderRateIntervalDay CreateProviderRateInterval = "day" + CreateProviderRateIntervalHour CreateProviderRateInterval = "hour" + CreateProviderRateIntervalMinute CreateProviderRateInterval = "minute" + CreateProviderRateIntervalSecond CreateProviderRateInterval = "second" +) + // Defines values for JourneyStatus. const ( JourneyStatusArchived JourneyStatus = "archived" @@ -63,18 +71,25 @@ const ( // Defines values for JourneyStepType. const ( - JourneyStepTypeAction JourneyStepType = "action" - JourneyStepTypeBalancer JourneyStepType = "balancer" - JourneyStepTypeCampaign JourneyStepType = "campaign" - JourneyStepTypeDelay JourneyStepType = "delay" - JourneyStepTypeEntrance JourneyStepType = "entrance" - JourneyStepTypeEvent JourneyStepType = "event" - JourneyStepTypeExit JourneyStepType = "exit" - JourneyStepTypeExperiment JourneyStepType = "experiment" - JourneyStepTypeGate JourneyStepType = "gate" - JourneyStepTypeLink JourneyStepType = "link" - JourneyStepTypeSticky JourneyStepType = "sticky" - JourneyStepTypeUpdate JourneyStepType = "update" + Action JourneyStepType = "action" + Balancer JourneyStepType = "balancer" + Delay JourneyStepType = "delay" + Entrance JourneyStepType = "entrance" + Event JourneyStepType = "event" + Exit JourneyStepType = "exit" + Experiment JourneyStepType = "experiment" + Gate JourneyStepType = "gate" + Link JourneyStepType = "link" + Sticky JourneyStepType = "sticky" + Update JourneyStepType = "update" +) + +// Defines values for JourneyUserStepType. +const ( + Completed JourneyUserStepType = "completed" + Exited JourneyUserStepType = "exited" + Skipped JourneyUserStepType = "skipped" + Waiting JourneyUserStepType = "waiting" ) // Defines values for ListState. @@ -99,10 +114,18 @@ const ( // Defines values for ProjectRole. const ( - ProjectRoleAdmin ProjectRole = "admin" - ProjectRoleClient ProjectRole = "client" - ProjectRoleEditor ProjectRole = "editor" - ProjectRoleSupport ProjectRole = "support" + ProjectRoleAdmin ProjectRole = "admin" + ProjectRoleEditor ProjectRole = "editor" + ProjectRolePublisher ProjectRole = "publisher" + ProjectRoleSupport ProjectRole = "support" +) + +// Defines values for ProviderRateInterval. +const ( + ProviderRateIntervalDay ProviderRateInterval = "day" + ProviderRateIntervalHour ProviderRateInterval = "hour" + ProviderRateIntervalMinute ProviderRateInterval = "minute" + ProviderRateIntervalSecond ProviderRateInterval = "second" ) // Defines values for SubscriptionState. @@ -111,6 +134,14 @@ const ( Unsubscribed SubscriptionState = "unsubscribed" ) +// Defines values for UpdateProviderRateInterval. +const ( + Day UpdateProviderRateInterval = "day" + Hour UpdateProviderRateInterval = "hour" + Minute UpdateProviderRateInterval = "minute" + Second UpdateProviderRateInterval = "second" +) + // Defines values for AuthCallbackParamsDriver. const ( AuthCallbackParamsDriverBasic AuthCallbackParamsDriver = "basic" @@ -122,73 +153,6 @@ const ( AuthWebhookParamsDriverClerk AuthWebhookParamsDriver = "clerk" ) -// Action defines model for Action. -type Action struct { - // Config Action configuration (varies by type) - Config json.RawMessage `json:"config"` - CreatedAt time.Time `json:"created_at"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` - - // Type Type of action (module ID from registered action modules) - Type ActionType `json:"type"` - UpdatedAt time.Time `json:"updated_at"` -} - -// ActionFunction defines model for ActionFunction. -type ActionFunction struct { - // Description Function description - Description *string `json:"description,omitempty"` - - // Id Function identifier - Id string `json:"id"` - - // InputSchema JSON Schema for function input - InputSchema *json.RawMessage `json:"input_schema,omitempty"` - - // Title Human-readable function name - Title string `json:"title"` -} - -// ActionMeta defines model for ActionMeta. -type ActionMeta struct { - // ConfigSchema JSON Schema for module-level configuration (API keys, etc.) - ConfigSchema *json.RawMessage `json:"config_schema,omitempty"` - - // Description Module description - Description *string `json:"description,omitempty"` - - // Functions Available functions in this action module - Functions []ActionFunction `json:"functions"` - - // Hidden Whether this module is hidden from the UI - Hidden *bool `json:"hidden,omitempty"` - - // Name Human-readable module name - Name string `json:"name"` - - // Type Module ID - Type string `json:"type"` -} - -// ActionSchemaListResponse defines model for ActionSchemaListResponse. -type ActionSchemaListResponse struct { - Results []SchemaPath `json:"results"` -} - -// ActionType Type of action (module ID from registered action modules) -type ActionType = string - -// AddOrganizationMember defines model for AddOrganizationMember. -type AddOrganizationMember struct { - // Data Organization-specific data for this user - Data *map[string]any `json:"data,omitempty"` - - // UserId The user ID to add to the organization - UserId openapi_types.UUID `json:"user_id"` -} - // Admin defines model for Admin. type Admin struct { CreatedAt time.Time `json:"created_at"` @@ -284,16 +248,6 @@ type CampaignUserStatus string // Channel Communication channel type type Channel string -// CreateAction defines model for CreateAction. -type CreateAction struct { - // Config Action configuration (varies by type) - Config *json.RawMessage `json:"config,omitempty"` - Name string `json:"name"` - - // Type Type of action (module ID from registered action modules) - Type ActionType `json:"type"` -} - // CreateAdmin defines model for CreateAdmin. type CreateAdmin struct { Email string `json:"email"` @@ -344,7 +298,7 @@ type CreateListType string // CreateLocale defines model for CreateLocale. type CreateLocale struct { - // Key Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") + // Key Locale key (e.g., language code) Key string `json:"key"` // Label Human-readable locale label @@ -353,23 +307,29 @@ type CreateLocale struct { // CreateProject defines model for CreateProject. type CreateProject struct { - Description *string `json:"description,omitempty"` - LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` - LinkWrapPush *bool `json:"link_wrap_push,omitempty"` - Locale string `json:"locale"` - Name string `json:"name"` - TextHelpMessage *string `json:"text_help_message,omitempty"` - TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` - Timezone string `json:"timezone"` + Description *string `json:"description,omitempty"` + LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` + LinkWrapPush *bool `json:"link_wrap_push,omitempty"` + Locale string `json:"locale"` + Name string `json:"name"` + TextHelpMessage *string `json:"text_help_message,omitempty"` + TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` + Timezone string `json:"timezone"` + Tools *[]string `json:"tools,omitempty"` } // CreateProvider defines model for CreateProvider. type CreateProvider struct { - Data *json.RawMessage `json:"data,omitempty"` - IsDefault *bool `json:"is_default,omitempty"` - Name string `json:"name"` + Data *json.RawMessage `json:"data,omitempty"` + IsDefault *bool `json:"is_default,omitempty"` + Name string `json:"name"` + RateInterval *CreateProviderRateInterval `json:"rate_interval,omitempty"` + RateLimit *int32 `json:"rate_limit,omitempty"` } +// CreateProviderRateInterval defines model for CreateProvider.RateInterval. +type CreateProviderRateInterval string + // CreateSubscription defines model for CreateSubscription. type CreateSubscription struct { // Channel Communication channel type @@ -553,33 +513,67 @@ type JourneyStepMap map[string]JourneyStep // JourneyStepType Journey step type type JourneyStepType string -// List defines model for List. -type List struct { - CreatedAt time.Time `json:"created_at"` +// JourneyUserEntrance defines model for JourneyUserEntrance. +type JourneyUserEntrance struct { + CreatedAt time.Time `json:"created_at"` + EndedAt *time.Time `json:"ended_at,omitempty"` + EntranceId openapi_types.UUID `json:"entrance_id"` + Id openapi_types.UUID `json:"id"` + Journey *Journey `json:"journey,omitempty"` + UpdatedAt time.Time `json:"updated_at"` + User *User `json:"user,omitempty"` +} - // DraftRule Draft rule definition (from the draft version, if one exists) - DraftRule *rules.RuleSet `json:"draft_rule,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` - RefreshedAt *time.Time `json:"refreshed_at,omitempty"` +// JourneyUserEntranceListResponse defines model for JourneyUserEntranceListResponse. +type JourneyUserEntranceListResponse struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` - // Rule Published rule definition (from the published version) - Rule *rules.RuleSet `json:"rule,omitempty"` + // Offset Number of items skipped + Offset int `json:"offset"` + Results []JourneyUserEntrance `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` +} - // State draft = not yet published, ready = published and active, loading = recomputing - State ListState `json:"state"` - Tags *[]string `json:"tags,omitempty"` - Type ListType `json:"type"` - UpdatedAt time.Time `json:"updated_at"` - UsersCount int `json:"users_count"` - Version int `json:"version"` +// JourneyUserStep defines model for JourneyUserStep. +type JourneyUserStep struct { + CreatedAt time.Time `json:"created_at"` + DelayUntil *time.Time `json:"delay_until,omitempty"` + EndedAt *time.Time `json:"ended_at,omitempty"` + EntranceId openapi_types.UUID `json:"entrance_id"` + Id openapi_types.UUID `json:"id"` + Journey *Journey `json:"journey,omitempty"` + Step *JourneyStep `json:"step,omitempty"` - // VersionNumber Current version number of the active list version - VersionNumber *int `json:"version_number,omitempty"` + // Type Status/type of the user step + Type JourneyUserStepType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + User *User `json:"user,omitempty"` } -// ListState draft = not yet published, ready = published and active, loading = recomputing +// JourneyUserStepType Status/type of the user step +type JourneyUserStepType string + +// List defines model for List. +type List struct { + CreatedAt time.Time `json:"created_at"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` + RefreshedAt *time.Time `json:"refreshed_at,omitempty"` + Rule *rules.RuleSet `json:"rule,omitempty"` + RuleId *openapi_types.UUID `json:"rule_id,omitempty"` + State ListState `json:"state"` + Tags *[]string `json:"tags,omitempty"` + Type ListType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + UsersCount int `json:"users_count"` + Version int `json:"version"` +} + +// ListState defines model for List.State. type ListState string // ListType defines model for List.Type. @@ -590,7 +584,7 @@ type Locale struct { CreatedAt time.Time `json:"created_at"` Id openapi_types.UUID `json:"id"` - // Key Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") + // Key Locale key (e.g., language code) Key string `json:"key"` // Label Human-readable locale label @@ -601,87 +595,12 @@ type Locale struct { // Organization defines model for Organization. type Organization struct { - CreatedAt time.Time `json:"created_at"` - Data json.RawMessage `json:"data"` - - // ExternalId External identifier for the organization from your system - ExternalId string `json:"external_id"` - Id openapi_types.UUID `json:"id"` - Name *string `json:"name,omitempty"` - ProjectId openapi_types.UUID `json:"project_id"` - UpdatedAt time.Time `json:"updated_at"` - Version int32 `json:"version"` -} - -// OrganizationEvent defines model for OrganizationEvent. -type OrganizationEvent struct { - CreatedAt time.Time `json:"created_at"` - Data *json.RawMessage `json:"data,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - OrganizationId openapi_types.UUID `json:"organization_id"` - ProjectId openapi_types.UUID `json:"project_id"` -} - -// OrganizationEventList defines model for OrganizationEventList. -type OrganizationEventList struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []OrganizationEvent `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` -} - -// OrganizationList defines model for OrganizationList. -type OrganizationList struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Organization `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` -} - -// OrganizationMember defines model for OrganizationMember. -type OrganizationMember struct { - AnonymousId string `json:"anonymous_id"` - CreatedAt time.Time `json:"created_at"` - Data json.RawMessage `json:"data"` - Email *string `json:"email,omitempty"` - ExternalId *string `json:"external_id,omitempty"` - HasPushDevice bool `json:"has_push_device"` - Id openapi_types.UUID `json:"id"` - Locale *string `json:"locale,omitempty"` - - // OrganizationData Organization-specific data for this user - OrganizationData json.RawMessage `json:"organization_data"` - - // Phone E.164 formatted phone number - Phone *string `json:"phone,omitempty"` - ProjectId openapi_types.UUID `json:"project_id"` - Timezone *string `json:"timezone,omitempty"` - UpdatedAt time.Time `json:"updated_at"` - Version int32 `json:"version"` -} - -// OrganizationMemberList defines model for OrganizationMemberList. -type OrganizationMemberList struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []OrganizationMember `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` + CreatedAt time.Time `json:"created_at"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + NotificationProviderId *openapi_types.UUID `json:"notification_provider_id,omitempty"` + TrackingDeeplinkMirrorUrl *string `json:"tracking_deeplink_mirror_url,omitempty"` + UpdatedAt time.Time `json:"updated_at"` } // OrganizationRole Role within an organization @@ -726,6 +645,7 @@ type Project struct { TextHelpMessage *string `json:"text_help_message,omitempty"` TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` Timezone string `json:"timezone"` + Tools *[]string `json:"tools,omitempty"` UpdatedAt time.Time `json:"updated_at"` UsersCount *int `json:"users_count,omitempty"` } @@ -777,27 +697,29 @@ type ProjectRole string // Provider defines model for Provider. type Provider struct { // Channel Communication channel type - Channel Channel `json:"channel"` - CreatedAt time.Time `json:"created_at"` - Data *json.RawMessage `json:"data,omitempty"` - Id openapi_types.UUID `json:"id"` - IsDefault bool `json:"is_default"` - Module string `json:"module"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` - UpdatedAt time.Time `json:"updated_at"` -} + Channel Channel `json:"channel"` + CreatedAt time.Time `json:"created_at"` + Data *json.RawMessage `json:"data,omitempty"` + Id openapi_types.UUID `json:"id"` + IsDefault bool `json:"is_default"` + Module string `json:"module"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` + RateInterval *ProviderRateInterval `json:"rate_interval,omitempty"` + RateLimit *int32 `json:"rate_limit,omitempty"` + UpdatedAt time.Time `json:"updated_at"` +} + +// ProviderRateInterval defines model for Provider.RateInterval. +type ProviderRateInterval string // ProviderMeta defines model for ProviderMeta. type ProviderMeta struct { - Description *string `json:"description,omitempty"` - Group string `json:"group"` - - // Hidden Whether this module is hidden from the UI - Hidden *bool `json:"hidden,omitempty"` - Icon *string `json:"icon,omitempty"` - Name string `json:"name"` - Schema json.RawMessage `json:"schema"` + Description *string `json:"description,omitempty"` + Group string `json:"group"` + Icon *string `json:"icon,omitempty"` + Name string `json:"name"` + Schema json.RawMessage `json:"schema"` // Type Module ID Type string `json:"type"` @@ -874,49 +796,6 @@ type Template struct { UpdatedAt time.Time `json:"updated_at"` } -// TestActionFunctionRequest defines model for TestActionFunctionRequest. -type TestActionFunctionRequest struct { - // Input Input parameters for the function execution - Input *map[string]interface{} `json:"input,omitempty"` -} - -// TestActionFunctionResult defines model for TestActionFunctionResult. -type TestActionFunctionResult struct { - // Metadata Metadata returned by the function execution - Metadata *map[string]interface{} `json:"metadata,omitempty"` - - // StatusCode Status code returned by the function execution (e.g. 200 for success, 400/500 for errors) - StatusCode int `json:"status_code"` -} - -// TestActionRequest defines model for TestActionRequest. -type TestActionRequest struct { - // Config Action configuration to validate (API keys, OAuth tokens, etc.) - Config *json.RawMessage `json:"config,omitempty"` - - // Type Type of action (module ID from registered action modules) - Type ActionType `json:"type"` -} - -// TestActionResult defines model for TestActionResult. -type TestActionResult struct { - // Message Human-readable validation message - Message *string `json:"message,omitempty"` - - // StatusCode Status code returned by the validation (e.g. 200 for success, 400/401/500 for errors) - StatusCode int `json:"status_code"` -} - -// UpdateAction defines model for UpdateAction. -type UpdateAction struct { - // Config Action configuration (varies by type) - Config *json.RawMessage `json:"config,omitempty"` - Name *string `json:"name,omitempty"` - - // Type Type of action (module ID from registered action modules) - Type *ActionType `json:"type,omitempty"` -} - // UpdateAdmin defines model for UpdateAdmin. type UpdateAdmin struct { Email *string `json:"email,omitempty"` @@ -950,9 +829,7 @@ type UpdateJourney struct { // UpdateList defines model for UpdateList. type UpdateList struct { - Name string `json:"name"` - - // Published When true, publishes the current draft rule making it active + Name string `json:"name"` Published *bool `json:"published,omitempty"` Rule *rules.RuleSet `json:"rule,omitempty"` Tags *[]string `json:"tags,omitempty"` @@ -960,20 +837,20 @@ type UpdateList struct { // UpdateOrganization defines model for UpdateOrganization. type UpdateOrganization struct { - Data *json.RawMessage `json:"data,omitempty"` - Name *string `json:"name,omitempty"` + TrackingDeeplinkMirrorUrl *string `json:"tracking_deeplink_mirror_url,omitempty"` } // UpdateProject defines model for UpdateProject. type UpdateProject struct { - Description *string `json:"description,omitempty"` - LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` - LinkWrapPush *bool `json:"link_wrap_push,omitempty"` - Locale *string `json:"locale,omitempty"` - Name *string `json:"name,omitempty"` - TextHelpMessage *string `json:"text_help_message,omitempty"` - TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` - Timezone *string `json:"timezone,omitempty"` + Description *string `json:"description,omitempty"` + LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` + LinkWrapPush *bool `json:"link_wrap_push,omitempty"` + Locale *string `json:"locale,omitempty"` + Name *string `json:"name,omitempty"` + TextHelpMessage *string `json:"text_help_message,omitempty"` + TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` + Timezone *string `json:"timezone,omitempty"` + Tools *[]string `json:"tools,omitempty"` } // UpdateProjectAdmin defines model for UpdateProjectAdmin. @@ -984,11 +861,16 @@ type UpdateProjectAdmin struct { // UpdateProvider defines model for UpdateProvider. type UpdateProvider struct { - Data *json.RawMessage `json:"data,omitempty"` - IsDefault *bool `json:"is_default,omitempty"` - Name *string `json:"name,omitempty"` + Data *json.RawMessage `json:"data,omitempty"` + IsDefault *bool `json:"is_default,omitempty"` + Name *string `json:"name,omitempty"` + RateInterval *UpdateProviderRateInterval `json:"rate_interval,omitempty"` + RateLimit *int32 `json:"rate_limit,omitempty"` } +// UpdateProviderRateInterval defines model for UpdateProvider.RateInterval. +type UpdateProviderRateInterval string + // UpdateSubscription defines model for UpdateSubscription. type UpdateSubscription struct { IsPublic bool `json:"is_public"` @@ -1024,15 +906,6 @@ type UpdateUserSubscriptions = []struct { SubscriptionId openapi_types.UUID `json:"subscription_id"` } -// UpsertOrganization defines model for UpsertOrganization. -type UpsertOrganization struct { - Data *map[string]any `json:"data,omitempty"` - - // ExternalId External identifier for the organization from your system - ExternalId string `json:"external_id"` - Name *string `json:"name,omitempty"` -} - // User defines model for User. type User struct { AnonymousId string `json:"anonymous_id"` @@ -1052,25 +925,6 @@ type User struct { Version int32 `json:"version"` } -// UserDevice defines model for UserDevice. -type UserDevice struct { - AppBuild *string `json:"app_build"` - AppVersion *string `json:"app_version"` - CreatedAt time.Time `json:"created_at"` - DeviceId string `json:"device_id"` - Id openapi_types.UUID `json:"id"` - Model *string `json:"model"` - Os *string `json:"os"` - OsVersion *string `json:"os_version"` - Token *string `json:"token"` - UpdatedAt time.Time `json:"updated_at"` -} - -// UserDeviceList defines model for UserDeviceList. -type UserDeviceList struct { - Results []UserDevice `json:"results"` -} - // UserEvent defines model for UserEvent. type UserEvent struct { CreatedAt time.Time `json:"created_at"` @@ -1164,19 +1018,6 @@ type Offset = PaginationOffset // Search defines model for Search. type Search = PaginationSearch -// ActionListResponse defines model for ActionListResponse. -type ActionListResponse struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Action `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` -} - // ApiKeyListResponse defines model for ApiKeyListResponse. type ApiKeyListResponse struct { // Limit Maximum number of items returned @@ -1237,6 +1078,19 @@ type JourneyListResponse struct { Total int `json:"total"` } +// JourneyUserStepListResponse defines model for JourneyUserStepListResponse. +type JourneyUserStepListResponse struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []JourneyUserStep `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` +} + // ListListResponse defines model for ListListResponse. type ListListResponse struct { // Limit Maximum number of items returned @@ -1289,8 +1143,8 @@ type TagListResponse struct { Total int `json:"total"` } -// ListProjectsParams defines parameters for ListProjects. -type ListProjectsParams struct { +// ListAdminsParams defines parameters for ListAdmins. +type ListAdminsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` @@ -1301,8 +1155,8 @@ type ListProjectsParams struct { Search *Search `form:"search,omitempty" json:"search,omitempty"` } -// ListActionsParams defines parameters for ListActions. -type ListActionsParams struct { +// ListProjectsParams defines parameters for ListProjects. +type ListProjectsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` @@ -1332,9 +1186,6 @@ type ListCampaignsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetCampaignUsersParams defines parameters for GetCampaignUsers. @@ -1368,27 +1219,27 @@ type ListJourneysParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +} + +// ListJourneyEntrancesParams defines parameters for ListJourneyEntrances. +type ListJourneyEntrancesParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // Search Search query string Search *Search `form:"search,omitempty" json:"search,omitempty"` } -// CreateJourneyParams defines parameters for CreateJourney. -type CreateJourneyParams struct { - // Publish If true, immediately publish the journey after creation - Publish *bool `form:"publish,omitempty" json:"publish,omitempty"` -} - -// TriggerUserJSONBody defines parameters for TriggerUser. -type TriggerUserJSONBody struct { - // ExternalStepID The ID of the journey entry to enroll the user in - ExternalStepID openapi_types.UUID `json:"externalStepID"` -} +// ListJourneyStepUsersParams defines parameters for ListJourneyStepUsers. +type ListJourneyStepUsersParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// AdvanceUserStepJSONBody defines parameters for AdvanceUserStep. -type AdvanceUserStepJSONBody struct { - // ExternalStepID The external ID of the current step to advance - ExternalStepID openapi_types.UUID `json:"externalStepID"` + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } // ListApiKeysParams defines parameters for ListApiKeys. @@ -1407,9 +1258,6 @@ type ListListsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetListUsersParams defines parameters for GetListUsers. @@ -1419,15 +1267,6 @@ type GetListUsersParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` -} - -// PreviewListUsersParams defines parameters for PreviewListUsers. -type PreviewListUsersParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` } // ImportListUsersMultipartBody defines parameters for ImportListUsers. @@ -1454,34 +1293,25 @@ type ListProvidersParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } -// ListOrganizationsParams defines parameters for ListOrganizations. -type ListOrganizationsParams struct { +// ListSubscriptionsParams defines parameters for ListSubscriptions. +type ListSubscriptionsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` } -// GetOrganizationEventsParams defines parameters for GetOrganizationEvents. -type GetOrganizationEventsParams struct { +// ListTagsParams defines parameters for ListTags. +type ListTagsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -} -// ListOrganizationMembersParams defines parameters for ListOrganizationMembers. -type ListOrganizationMembersParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Number of items to skip - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` } // ListUsersParams defines parameters for ListUsers. @@ -1509,9 +1339,6 @@ type GetUserEventsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetUserJourneysParams defines parameters for GetUserJourneys. @@ -1523,18 +1350,6 @@ type GetUserJourneysParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } -// GetUserOrganizationsParams defines parameters for GetUserOrganizations. -type GetUserOrganizationsParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Number of items to skip - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` -} - // GetUserSubscriptionsParams defines parameters for GetUserSubscriptions. type GetUserSubscriptionsParams struct { // Limit Maximum number of items to return @@ -1544,44 +1359,20 @@ type GetUserSubscriptionsParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } -// ListSubscriptionsParams defines parameters for ListSubscriptions. -type ListSubscriptionsParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// AuthCallbackParamsDriver defines parameters for AuthCallback. +type AuthCallbackParamsDriver string - // Offset Number of items to skip - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ListTagsParams defines parameters for ListTags. -type ListTagsParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Number of items to skip - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` -} - -// ListAdminsParams defines parameters for ListAdmins. -type ListAdminsParams struct { - // Limit Maximum number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Number of items to skip - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// AuthWebhookParamsDriver defines parameters for AuthWebhook. +type AuthWebhookParamsDriver string - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` -} +// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. +type UpdateOrganizationJSONRequestBody = UpdateOrganization -// AuthCallbackParamsDriver defines parameters for AuthCallback. -type AuthCallbackParamsDriver string +// CreateAdminJSONRequestBody defines body for CreateAdmin for application/json ContentType. +type CreateAdminJSONRequestBody = CreateAdmin -// AuthWebhookParamsDriver defines parameters for AuthWebhook. -type AuthWebhookParamsDriver string +// UpdateAdminJSONRequestBody defines body for UpdateAdmin for application/json ContentType. +type UpdateAdminJSONRequestBody = UpdateAdmin // CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType. type CreateProjectJSONRequestBody = CreateProject @@ -1589,18 +1380,6 @@ type CreateProjectJSONRequestBody = CreateProject // UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType. type UpdateProjectJSONRequestBody = UpdateProject -// CreateActionJSONRequestBody defines body for CreateAction for application/json ContentType. -type CreateActionJSONRequestBody = CreateAction - -// TestActionJSONRequestBody defines body for TestAction for application/json ContentType. -type TestActionJSONRequestBody = TestActionRequest - -// UpdateActionJSONRequestBody defines body for UpdateAction for application/json ContentType. -type UpdateActionJSONRequestBody = UpdateAction - -// TestActionFunctionJSONRequestBody defines body for TestActionFunction for application/json ContentType. -type TestActionFunctionJSONRequestBody = TestActionFunctionRequest - // UpdateProjectAdminJSONRequestBody defines body for UpdateProjectAdmin for application/json ContentType. type UpdateProjectAdminJSONRequestBody = UpdateProjectAdmin @@ -1628,12 +1407,6 @@ type UpdateJourneyJSONRequestBody = UpdateJourney // SetJourneyStepsJSONRequestBody defines body for SetJourneySteps for application/json ContentType. type SetJourneyStepsJSONRequestBody = JourneyStepMap -// TriggerUserJSONRequestBody defines body for TriggerUser for application/json ContentType. -type TriggerUserJSONRequestBody TriggerUserJSONBody - -// AdvanceUserStepJSONRequestBody defines body for AdvanceUserStep for application/json ContentType. -type AdvanceUserStepJSONRequestBody AdvanceUserStepJSONBody - // CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType. type CreateApiKeyJSONRequestBody = CreateApiKey @@ -1658,14 +1431,17 @@ type CreateProviderJSONRequestBody = CreateProvider // UpdateProviderJSONRequestBody defines body for UpdateProvider for application/json ContentType. type UpdateProviderJSONRequestBody = UpdateProvider -// UpsertOrganizationJSONRequestBody defines body for UpsertOrganization for application/json ContentType. -type UpsertOrganizationJSONRequestBody = UpsertOrganization +// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. +type CreateSubscriptionJSONRequestBody = CreateSubscription -// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. -type UpdateOrganizationJSONRequestBody = UpdateOrganization +// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType. +type UpdateSubscriptionJSONRequestBody = UpdateSubscription -// AddOrganizationMemberJSONRequestBody defines body for AddOrganizationMember for application/json ContentType. -type AddOrganizationMemberJSONRequestBody = AddOrganizationMember +// CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType. +type CreateTagJSONRequestBody = CreateTag + +// UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType. +type UpdateTagJSONRequestBody = UpdateTag // IdentifyUserJSONRequestBody defines body for IdentifyUser for application/json ContentType. type IdentifyUserJSONRequestBody = IdentifyUser @@ -1679,24 +1455,6 @@ type UpdateUserJSONRequestBody = UpdateUser // UpdateUserSubscriptionsJSONRequestBody defines body for UpdateUserSubscriptions for application/json ContentType. type UpdateUserSubscriptionsJSONRequestBody = UpdateUserSubscriptions -// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. -type CreateSubscriptionJSONRequestBody = CreateSubscription - -// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType. -type UpdateSubscriptionJSONRequestBody = UpdateSubscription - -// CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType. -type CreateTagJSONRequestBody = CreateTag - -// UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType. -type UpdateTagJSONRequestBody = UpdateTag - -// CreateAdminJSONRequestBody defines body for CreateAdmin for application/json ContentType. -type CreateAdminJSONRequestBody = CreateAdmin - -// UpdateAdminJSONRequestBody defines body for UpdateAdmin for application/json ContentType. -type UpdateAdminJSONRequestBody = UpdateAdmin - // AuthCallbackJSONRequestBody defines body for AuthCallback for application/json ContentType. type AuthCallbackJSONRequestBody = AuthCallbackRequest @@ -1953,65 +1711,60 @@ func WithRequestEditorFn(fn RequestEditorFn) ClientOption { // The interface specification for the client above. type ClientInterface interface { - // GetProfile request - GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListProjects request - ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateProjectWithBody request with any body - CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteOrganization request + DeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganization request + GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteProject request - DeleteProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateOrganizationWithBody request with any body + UpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetProject request - GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateOrganization(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateProjectWithBody request with any body - UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAdmins request + ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateAdminWithBody request with any body + CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListActions request - ListActions(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateActionWithBody request with any body - CreateActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteAdmin request + DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateAction(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAdmin request + GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListActionMeta request - ListActionMeta(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateAdminWithBody request with any body + UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetActionPreview request - GetActionPreview(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // TestActionWithBody request with any body - TestActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganizationIntegrations request + GetOrganizationIntegrations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - TestAction(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // Whoami request + Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteAction request - DeleteAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetProfile request + GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetAction request - GetAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListProjects request + ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateActionWithBody request with any body - UpdateActionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateProjectWithBody request with any body + CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListActionSchemas request - ListActionSchemas(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetProject request + GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // TestActionFunctionWithBody request with any body - TestActionFunctionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateProjectWithBody request with any body + UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - TestActionFunction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListProjectAdmins request ListProjectAdmins(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2083,13 +1836,16 @@ type ClientInterface interface { // GetDocumentMetadata request GetDocumentMetadata(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListEvents request + ListEvents(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListJourneys request ListJourneys(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateJourneyWithBody request with any body - CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateJourney(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateJourney(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteJourney request DeleteJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2105,6 +1861,9 @@ type ClientInterface interface { // DuplicateJourney request DuplicateJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListJourneyEntrances request + ListJourneyEntrances(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PublishJourney request PublishJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2116,21 +1875,20 @@ type ClientInterface interface { SetJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // StreamUserJourneySteps request - StreamUserJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListJourneyStepUsers request + ListJourneyStepUsers(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TriggerUserWithBody request with any body - TriggerUserWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // RemoveUserFromJourneyStep request + RemoveUserFromJourneyStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - TriggerUser(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // SkipJourneyStepDelay request + SkipJourneyStepDelay(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // AdvanceUserStepWithBody request with any body - AdvanceUserStepWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // TriggerUserToJourneyStep request + TriggerUserToJourneyStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - AdvanceUserStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetUserJourneyState request - GetUserJourneyState(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // RemoveUserFromJourney request + RemoveUserFromJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // VersionJourney request VersionJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2176,12 +1934,12 @@ type ClientInterface interface { // DuplicateList request DuplicateList(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // RecountList request + RecountList(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetListUsers request GetListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PreviewListUsers request - PreviewListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ImportListUsersWithBody request with any body ImportListUsersWithBody(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2224,50 +1982,40 @@ type ClientInterface interface { // DeleteProvider request DeleteProvider(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListOrganizationEventSchemas request - ListOrganizationEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListOrganizations request - ListOrganizations(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpsertOrganizationWithBody request with any body - UpsertOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpsertOrganization(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListSubscriptions request + ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListOrganizationSchemas request - ListOrganizationSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateSubscriptionWithBody request with any body + CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListOrganizationMemberSchemas request - ListOrganizationMemberSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteOrganization request - DeleteOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetSubscription request + GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetOrganization request - GetOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateSubscriptionWithBody request with any body + UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateOrganizationWithBody request with any body - UpdateOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListTags request + ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetOrganizationEvents request - GetOrganizationEvents(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateTagWithBody request with any body + CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListOrganizationMembers request - ListOrganizationMembers(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AddOrganizationMemberWithBody request with any body - AddOrganizationMemberWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteTag request + DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - AddOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetTag request + GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // RemoveOrganizationMember request - RemoveOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateTagWithBody request with any body + UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListUserEventSchemas request - ListUserEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListUsers request ListUsers(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2294,21 +2042,12 @@ type ClientInterface interface { UpdateUser(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetUserDevices request - GetUserDevices(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteUserDevice request - DeleteUserDevice(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetUserEvents request GetUserEvents(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserJourneys request GetUserJourneys(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetUserOrganizations request - GetUserOrganizations(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetUserSubscriptions request GetUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2317,63 +2056,6 @@ type ClientInterface interface { UpdateUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListSubscriptions request - ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateSubscriptionWithBody request with any body - CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSubscription request - GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateSubscriptionWithBody request with any body - UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListTags request - ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateTagWithBody request with any body - CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteTag request - DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetTag request - GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateTagWithBody request with any body - UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListAdmins request - ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateAdminWithBody request with any body - CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAdmin request - DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAdmin request - GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateAdminWithBody request with any body - UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // Whoami request - Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthCallbackWithBody request with any body AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2386,8 +2068,8 @@ type ClientInterface interface { AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) } -func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetProfileRequest(c.Server) +func (c *Client) DeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrganizationRequest(c.Server) if err != nil { return nil, err } @@ -2398,8 +2080,8 @@ func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListProjectsRequest(c.Server, params) +func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationRequest(c.Server) if err != nil { return nil, err } @@ -2410,8 +2092,8 @@ func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, r return c.Client.Do(req) } -func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body) +func (c *Client) UpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2422,8 +2104,8 @@ func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, return c.Client.Do(req) } -func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectRequest(c.Server, body) +func (c *Client) UpdateOrganization(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequest(c.Server, body) if err != nil { return nil, err } @@ -2434,8 +2116,8 @@ func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONReques return c.Client.Do(req) } -func (c *Client) DeleteProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteProjectRequest(c.Server, projectID) +func (c *Client) ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAdminsRequest(c.Server, params) if err != nil { return nil, err } @@ -2446,8 +2128,8 @@ func (c *Client) DeleteProject(ctx context.Context, projectID openapi_types.UUID return c.Client.Do(req) } -func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetProjectRequest(c.Server, projectID) +func (c *Client) CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAdminRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2458,8 +2140,8 @@ func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, r return c.Client.Do(req) } -func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateProjectRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAdminRequest(c.Server, body) if err != nil { return nil, err } @@ -2470,8 +2152,8 @@ func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateProjectRequest(c.Server, projectID, body) +func (c *Client) DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAdminRequest(c.Server, adminID) if err != nil { return nil, err } @@ -2482,8 +2164,8 @@ func (c *Client) UpdateProject(ctx context.Context, projectID openapi_types.UUID return c.Client.Do(req) } -func (c *Client) ListActions(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListActionsRequest(c.Server, projectID, params) +func (c *Client) GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAdminRequest(c.Server, adminID) if err != nil { return nil, err } @@ -2494,8 +2176,8 @@ func (c *Client) ListActions(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) CreateActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateActionRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAdminRequestWithBody(c.Server, adminID, contentType, body) if err != nil { return nil, err } @@ -2506,8 +2188,8 @@ func (c *Client) CreateActionWithBody(ctx context.Context, projectID openapi_typ return c.Client.Do(req) } -func (c *Client) CreateAction(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateActionRequest(c.Server, projectID, body) +func (c *Client) UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAdminRequest(c.Server, adminID, body) if err != nil { return nil, err } @@ -2518,8 +2200,8 @@ func (c *Client) CreateAction(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) ListActionMeta(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListActionMetaRequest(c.Server, projectID) +func (c *Client) GetOrganizationIntegrations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationIntegrationsRequest(c.Server) if err != nil { return nil, err } @@ -2530,8 +2212,8 @@ func (c *Client) ListActionMeta(ctx context.Context, projectID openapi_types.UUI return c.Client.Do(req) } -func (c *Client) GetActionPreview(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetActionPreviewRequest(c.Server, projectID, actionType) +func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWhoamiRequest(c.Server) if err != nil { return nil, err } @@ -2542,8 +2224,8 @@ func (c *Client) GetActionPreview(ctx context.Context, projectID openapi_types.U return c.Client.Do(req) } -func (c *Client) TestActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestActionRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProfileRequest(c.Server) if err != nil { return nil, err } @@ -2554,8 +2236,8 @@ func (c *Client) TestActionWithBody(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) TestAction(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestActionRequest(c.Server, projectID, body) +func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListProjectsRequest(c.Server, params) if err != nil { return nil, err } @@ -2566,8 +2248,8 @@ func (c *Client) TestAction(ctx context.Context, projectID openapi_types.UUID, b return c.Client.Do(req) } -func (c *Client) DeleteAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteActionRequest(c.Server, projectID, actionID) +func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2578,8 +2260,8 @@ func (c *Client) DeleteAction(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) GetAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetActionRequest(c.Server, projectID, actionID) +func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateProjectRequest(c.Server, body) if err != nil { return nil, err } @@ -2590,8 +2272,8 @@ func (c *Client) GetAction(ctx context.Context, projectID openapi_types.UUID, ac return c.Client.Do(req) } -func (c *Client) UpdateActionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateActionRequestWithBody(c.Server, projectID, actionID, contentType, body) +func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectRequest(c.Server, projectID) if err != nil { return nil, err } @@ -2602,8 +2284,8 @@ func (c *Client) UpdateActionWithBody(ctx context.Context, projectID openapi_typ return c.Client.Do(req) } -func (c *Client) UpdateAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateActionRequest(c.Server, projectID, actionID, body) +func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -2614,8 +2296,8 @@ func (c *Client) UpdateAction(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) ListActionSchemas(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListActionSchemasRequest(c.Server, projectID, actionID, functionID) +func (c *Client) UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -2626,8 +2308,8 @@ func (c *Client) ListActionSchemas(ctx context.Context, projectID openapi_types. return c.Client.Do(req) } -func (c *Client) TestActionFunctionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestActionFunctionRequestWithBody(c.Server, projectID, actionID, functionID, contentType, body) +func (c *Client) ListProjectAdmins(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListProjectAdminsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -2638,32 +2320,8 @@ func (c *Client) TestActionFunctionWithBody(ctx context.Context, projectID opena return c.Client.Do(req) } -func (c *Client) TestActionFunction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestActionFunctionRequest(c.Server, projectID, actionID, functionID, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ListProjectAdmins(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListProjectAdminsRequest(c.Server, projectID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteProjectAdmin(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteProjectAdminRequest(c.Server, projectID, adminID) +func (c *Client) DeleteProjectAdmin(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteProjectAdminRequest(c.Server, projectID, adminID) if err != nil { return nil, err } @@ -2950,6 +2608,18 @@ func (c *Client) GetDocumentMetadata(ctx context.Context, projectID openapi_type return c.Client.Do(req) } +func (c *Client) ListEvents(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListEventsRequest(c.Server, projectID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListJourneys(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListJourneysRequest(c.Server, projectID, params) if err != nil { @@ -2962,8 +2632,8 @@ func (c *Client) ListJourneys(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateJourneyRequestWithBody(c.Server, projectID, params, contentType, body) +func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateJourneyRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -2974,8 +2644,8 @@ func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) CreateJourney(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateJourneyRequest(c.Server, projectID, params, body) +func (c *Client) CreateJourney(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateJourneyRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -3046,8 +2716,8 @@ func (c *Client) DuplicateJourney(ctx context.Context, projectID openapi_types.U return c.Client.Do(req) } -func (c *Client) PublishJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPublishJourneyRequest(c.Server, projectID, journeyID) +func (c *Client) ListJourneyEntrances(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListJourneyEntrancesRequest(c.Server, projectID, journeyID, params) if err != nil { return nil, err } @@ -3058,8 +2728,8 @@ func (c *Client) PublishJourney(ctx context.Context, projectID openapi_types.UUI return c.Client.Do(req) } -func (c *Client) GetJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetJourneyStepsRequest(c.Server, projectID, journeyID) +func (c *Client) PublishJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPublishJourneyRequest(c.Server, projectID, journeyID) if err != nil { return nil, err } @@ -3070,8 +2740,8 @@ func (c *Client) GetJourneySteps(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) SetJourneyStepsWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSetJourneyStepsRequestWithBody(c.Server, projectID, journeyID, contentType, body) +func (c *Client) GetJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetJourneyStepsRequest(c.Server, projectID, journeyID) if err != nil { return nil, err } @@ -3082,8 +2752,8 @@ func (c *Client) SetJourneyStepsWithBody(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) SetJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSetJourneyStepsRequest(c.Server, projectID, journeyID, body) +func (c *Client) SetJourneyStepsWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetJourneyStepsRequestWithBody(c.Server, projectID, journeyID, contentType, body) if err != nil { return nil, err } @@ -3094,8 +2764,8 @@ func (c *Client) SetJourneySteps(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) StreamUserJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewStreamUserJourneyStepsRequest(c.Server, projectID, journeyID, userID) +func (c *Client) SetJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetJourneyStepsRequest(c.Server, projectID, journeyID, body) if err != nil { return nil, err } @@ -3106,8 +2776,8 @@ func (c *Client) StreamUserJourneySteps(ctx context.Context, projectID openapi_t return c.Client.Do(req) } -func (c *Client) TriggerUserWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTriggerUserRequestWithBody(c.Server, projectID, journeyID, userID, contentType, body) +func (c *Client) ListJourneyStepUsers(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListJourneyStepUsersRequest(c.Server, projectID, journeyID, stepID, params) if err != nil { return nil, err } @@ -3118,8 +2788,8 @@ func (c *Client) TriggerUserWithBody(ctx context.Context, projectID openapi_type return c.Client.Do(req) } -func (c *Client) TriggerUser(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTriggerUserRequest(c.Server, projectID, journeyID, userID, body) +func (c *Client) RemoveUserFromJourneyStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserFromJourneyStepRequest(c.Server, projectID, journeyID, stepID, userID) if err != nil { return nil, err } @@ -3130,8 +2800,8 @@ func (c *Client) TriggerUser(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) AdvanceUserStepWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAdvanceUserStepRequestWithBody(c.Server, projectID, journeyID, userID, contentType, body) +func (c *Client) SkipJourneyStepDelay(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSkipJourneyStepDelayRequest(c.Server, projectID, journeyID, stepID, userID) if err != nil { return nil, err } @@ -3142,8 +2812,8 @@ func (c *Client) AdvanceUserStepWithBody(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) AdvanceUserStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAdvanceUserStepRequest(c.Server, projectID, journeyID, userID, body) +func (c *Client) TriggerUserToJourneyStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTriggerUserToJourneyStepRequest(c.Server, projectID, journeyID, stepID, userID) if err != nil { return nil, err } @@ -3154,8 +2824,8 @@ func (c *Client) AdvanceUserStep(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) GetUserJourneyState(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUserJourneyStateRequest(c.Server, projectID, journeyID, userID) +func (c *Client) RemoveUserFromJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserFromJourneyRequest(c.Server, projectID, journeyID, userID) if err != nil { return nil, err } @@ -3358,8 +3028,8 @@ func (c *Client) DuplicateList(ctx context.Context, projectID openapi_types.UUID return c.Client.Do(req) } -func (c *Client) GetListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetListUsersRequest(c.Server, projectID, listID, params) +func (c *Client) RecountList(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRecountListRequest(c.Server, projectID, listID) if err != nil { return nil, err } @@ -3370,8 +3040,8 @@ func (c *Client) GetListUsers(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) PreviewListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPreviewListUsersRequest(c.Server, projectID, listID, params) +func (c *Client) GetListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetListUsersRequest(c.Server, projectID, listID, params) if err != nil { return nil, err } @@ -3562,44 +3232,8 @@ func (c *Client) DeleteProvider(ctx context.Context, projectID openapi_types.UUI return c.Client.Do(req) } -func (c *Client) ListOrganizationEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationEventSchemasRequest(c.Server, projectID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ListOrganizations(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationsRequest(c.Server, projectID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UpsertOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpsertOrganizationRequestWithBody(c.Server, projectID, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UpsertOrganization(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpsertOrganizationRequest(c.Server, projectID, body) +func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSubscriptionsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -3610,8 +3244,8 @@ func (c *Client) UpsertOrganization(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) ListOrganizationSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationSchemasRequest(c.Server, projectID) +func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -3622,8 +3256,8 @@ func (c *Client) ListOrganizationSchemas(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) ListOrganizationMemberSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationMemberSchemasRequest(c.Server, projectID) +func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -3634,8 +3268,8 @@ func (c *Client) ListOrganizationMemberSchemas(ctx context.Context, projectID op return c.Client.Do(req) } -func (c *Client) DeleteOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrganizationRequest(c.Server, projectID, organizationID) +func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSubscriptionRequest(c.Server, projectID, subscriptionID) if err != nil { return nil, err } @@ -3646,8 +3280,8 @@ func (c *Client) DeleteOrganization(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) GetOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationRequest(c.Server, projectID, organizationID) +func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequestWithBody(c.Server, projectID, subscriptionID, contentType, body) if err != nil { return nil, err } @@ -3658,8 +3292,8 @@ func (c *Client) GetOrganization(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) UpdateOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequestWithBody(c.Server, projectID, organizationID, contentType, body) +func (c *Client) UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequest(c.Server, projectID, subscriptionID, body) if err != nil { return nil, err } @@ -3670,8 +3304,8 @@ func (c *Client) UpdateOrganizationWithBody(ctx context.Context, projectID opena return c.Client.Do(req) } -func (c *Client) UpdateOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequest(c.Server, projectID, organizationID, body) +func (c *Client) ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTagsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -3682,8 +3316,8 @@ func (c *Client) UpdateOrganization(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) GetOrganizationEvents(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationEventsRequest(c.Server, projectID, organizationID, params) +func (c *Client) CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTagRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -3694,8 +3328,8 @@ func (c *Client) GetOrganizationEvents(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) ListOrganizationMembers(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationMembersRequest(c.Server, projectID, organizationID, params) +func (c *Client) CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTagRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -3706,8 +3340,8 @@ func (c *Client) ListOrganizationMembers(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) AddOrganizationMemberWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddOrganizationMemberRequestWithBody(c.Server, projectID, organizationID, contentType, body) +func (c *Client) DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTagRequest(c.Server, projectID, tagID) if err != nil { return nil, err } @@ -3718,8 +3352,8 @@ func (c *Client) AddOrganizationMemberWithBody(ctx context.Context, projectID op return c.Client.Do(req) } -func (c *Client) AddOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddOrganizationMemberRequest(c.Server, projectID, organizationID, body) +func (c *Client) GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagRequest(c.Server, projectID, tagID) if err != nil { return nil, err } @@ -3730,8 +3364,8 @@ func (c *Client) AddOrganizationMember(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) RemoveOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRemoveOrganizationMemberRequest(c.Server, projectID, organizationID, userID) +func (c *Client) UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagRequestWithBody(c.Server, projectID, tagID, contentType, body) if err != nil { return nil, err } @@ -3742,8 +3376,8 @@ func (c *Client) RemoveOrganizationMember(ctx context.Context, projectID openapi return c.Client.Do(req) } -func (c *Client) ListUserEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListUserEventSchemasRequest(c.Server, projectID) +func (c *Client) UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagRequest(c.Server, projectID, tagID, body) if err != nil { return nil, err } @@ -3862,30 +3496,6 @@ func (c *Client) UpdateUser(ctx context.Context, projectID openapi_types.UUID, u return c.Client.Do(req) } -func (c *Client) GetUserDevices(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUserDevicesRequest(c.Server, projectID, userID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteUserDevice(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteUserDeviceRequest(c.Server, projectID, userID, deviceID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - func (c *Client) GetUserEvents(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetUserEventsRequest(c.Server, projectID, userID, params) if err != nil { @@ -3910,18 +3520,6 @@ func (c *Client) GetUserJourneys(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) GetUserOrganizations(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUserOrganizationsRequest(c.Server, projectID, userID, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - func (c *Client) GetUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetUserSubscriptionsRequest(c.Server, projectID, userID, params) if err != nil { @@ -3958,8 +3556,8 @@ func (c *Client) UpdateUserSubscriptions(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSubscriptionsRequest(c.Server, projectID, params) +func (c *Client) AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthCallbackRequestWithBody(c.Server, driver, contentType, body) if err != nil { return nil, err } @@ -3970,8 +3568,8 @@ func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types. return c.Client.Do(req) } -func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) AuthCallback(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthCallbackRequest(c.Server, driver, body) if err != nil { return nil, err } @@ -3982,8 +3580,8 @@ func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID opena return c.Client.Do(req) } -func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionRequest(c.Server, projectID, body) +func (c *Client) GetAuthMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAuthMethodsRequest(c.Server) if err != nil { return nil, err } @@ -3994,8 +3592,8 @@ func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSubscriptionRequest(c.Server, projectID, subscriptionID) +func (c *Client) AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthWebhookRequest(c.Server, driver) if err != nil { return nil, err } @@ -4006,295 +3604,110 @@ func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSubscriptionRequestWithBody(c.Server, projectID, subscriptionID, contentType, body) +// NewDeleteOrganizationRequest generates requests for DeleteOrganization +func NewDeleteOrganizationRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/api/admin/organizations") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSubscriptionRequest(c.Server, projectID, subscriptionID, body) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -func (c *Client) ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTagsRequest(c.Server, projectID, params) +// NewGetOrganizationRequest generates requests for GetOrganization +func NewGetOrganizationRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/api/admin/organizations") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTagRequestWithBody(c.Server, projectID, contentType, body) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -func (c *Client) CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTagRequest(c.Server, projectID, body) +// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body +func NewUpdateOrganizationRequest(server string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) + bodyReader = bytes.NewReader(buf) + return NewUpdateOrganizationRequestWithBody(server, "application/json", bodyReader) } -func (c *Client) DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTagRequest(c.Server, projectID, tagID) +// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body +func NewUpdateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/api/admin/organizations") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTagRequest(c.Server, projectID, tagID) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { return nil, err } - return c.Client.Do(req) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTagRequestWithBody(c.Server, projectID, tagID, contentType, body) +// NewListAdminsRequest generates requests for ListAdmins +func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} -func (c *Client) UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTagRequest(c.Server, projectID, tagID, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAdminsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAdminRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAdminRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAdminRequest(c.Server, adminID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAdminRequest(c.Server, adminID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAdminRequestWithBody(c.Server, adminID, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAdminRequest(c.Server, adminID, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewWhoamiRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthCallbackRequestWithBody(c.Server, driver, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) AuthCallback(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthCallbackRequest(c.Server, driver, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAuthMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAuthMethodsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthWebhookRequest(c.Server, driver) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NewGetProfileRequest generates requests for GetProfile -func NewGetProfileRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/profile") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListProjectsRequest generates requests for ListProjects -func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects") + operationPath := fmt.Sprintf("/api/admin/organizations/admins") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4366,19 +3779,19 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re return req, nil } -// NewCreateProjectRequest calls the generic CreateProject builder with application/json body -func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) { +// NewCreateAdminRequest calls the generic CreateAdmin builder with application/json body +func NewCreateAdminRequest(server string, body CreateAdminJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateProjectRequestWithBody(server, "application/json", bodyReader) + return NewCreateAdminRequestWithBody(server, "application/json", bodyReader) } -// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body -func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateAdminRequestWithBody generates requests for CreateAdmin with any type of body +func NewCreateAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4386,7 +3799,7 @@ func NewCreateProjectRequestWithBody(server string, contentType string, body io. return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects") + operationPath := fmt.Sprintf("/api/admin/organizations/admins") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4406,13 +3819,13 @@ func NewCreateProjectRequestWithBody(server string, contentType string, body io. return req, nil } -// NewDeleteProjectRequest generates requests for DeleteProject -func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewDeleteAdminRequest generates requests for DeleteAdmin +func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4422,7 +3835,7 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4440,13 +3853,13 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http return req, nil } -// NewGetProjectRequest generates requests for GetProject -func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewGetAdminRequest generates requests for GetAdmin +func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4456,7 +3869,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4474,24 +3887,24 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return req, nil } -// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body -func NewUpdateProjectRequest(server string, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody) (*http.Request, error) { +// NewUpdateAdminRequest calls the generic UpdateAdmin builder with application/json body +func NewUpdateAdminRequest(server string, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateProjectRequestWithBody(server, projectID, "application/json", bodyReader) + return NewUpdateAdminRequestWithBody(server, adminID, "application/json", bodyReader) } -// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body -func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateAdminRequestWithBody generates requests for UpdateAdmin with any type of body +func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4501,7 +3914,7 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4521,23 +3934,43 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return req, nil } -// NewListActionsRequest generates requests for ListActions -func NewListActionsRequest(server string, projectID openapi_types.UUID, params *ListActionsParams) (*http.Request, error) { +// NewGetOrganizationIntegrationsRequest generates requests for GetOrganizationIntegrations +func NewGetOrganizationIntegrationsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + operationPath := fmt.Sprintf("/api/admin/organizations/integrations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWhoamiRequest generates requests for Whoami +func NewWhoamiRequest(server string) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions", pathParam0) + operationPath := fmt.Sprintf("/api/admin/organizations/whoami") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4547,10 +3980,64 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProfileRequest generates requests for GetProfile +func NewGetProfileRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/profile") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListProjectsRequest generates requests for ListProjects +func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { return nil, err @@ -4609,34 +4096,27 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * return req, nil } -// NewCreateActionRequest calls the generic CreateAction builder with application/json body -func NewCreateActionRequest(server string, projectID openapi_types.UUID, body CreateActionJSONRequestBody) (*http.Request, error) { +// NewCreateProjectRequest calls the generic CreateProject builder with application/json body +func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateActionRequestWithBody(server, projectID, "application/json", bodyReader) + return NewCreateProjectRequestWithBody(server, "application/json", bodyReader) } -// NewCreateActionRequestWithBody generates requests for CreateAction with any type of body -func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body +func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4656,42 +4136,8 @@ func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, return req, nil } -// NewListActionMetaRequest generates requests for ListActionMeta -func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetActionPreviewRequest generates requests for GetActionPreview -func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, actionType string) (*http.Request, error) { +// NewGetProjectRequest generates requests for GetProject +func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4701,19 +4147,12 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionType", runtime.ParamLocationPath, actionType) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/meta/%s/preview", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4731,19 +4170,19 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act return req, nil } -// NewTestActionRequest calls the generic TestAction builder with application/json body -func NewTestActionRequest(server string, projectID openapi_types.UUID, body TestActionJSONRequestBody) (*http.Request, error) { +// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body +func NewUpdateProjectRequest(server string, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewTestActionRequestWithBody(server, projectID, "application/json", bodyReader) + return NewUpdateProjectRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewTestActionRequestWithBody generates requests for TestAction with any type of body -func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body +func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4758,7 +4197,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/test", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4768,7 +4207,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -4778,8 +4217,8 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c return req, nil } -// NewDeleteActionRequest generates requests for DeleteAction -func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID) (*http.Request, error) { +// NewListProjectAdminsRequest generates requests for ListProjectAdmins +func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, params *ListProjectAdminsParams) (*http.Request, error) { var err error var pathParam0 string @@ -4789,19 +4228,12 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4811,45 +4243,58 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.Limit != nil { -// NewGetActionRequest generates requests for GetAction -func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + if params.Offset != nil { - var pathParam1 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) - if err != nil { - return nil, err - } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.Search != nil { - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + } + + queryURL.RawQuery = queryValues.Encode() } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -4860,19 +4305,8 @@ func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID o return req, nil } -// NewUpdateActionRequest calls the generic UpdateAction builder with application/json body -func NewUpdateActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateActionRequestWithBody(server, projectID, actionID, "application/json", bodyReader) -} - -// NewUpdateActionRequestWithBody generates requests for UpdateAction with any type of body -func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteProjectAdminRequest generates requests for DeleteProjectAdmin +func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4884,7 +4318,7 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4894,7 +4328,7 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4904,18 +4338,16 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListActionSchemasRequest generates requests for ListActionSchemas -func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) (*http.Request, error) { +// NewGetProjectAdminRequest generates requests for GetProjectAdmin +func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4927,14 +4359,7 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4944,7 +4369,7 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s/functions/%s/schema", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4962,19 +4387,19 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac return req, nil } -// NewTestActionFunctionRequest calls the generic TestActionFunction builder with application/json body -func NewTestActionFunctionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody) (*http.Request, error) { +// NewUpdateProjectAdminRequest calls the generic UpdateProjectAdmin builder with application/json body +func NewUpdateProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewTestActionFunctionRequestWithBody(server, projectID, actionID, functionID, "application/json", bodyReader) + return NewUpdateProjectAdminRequestWithBody(server, projectID, adminID, "application/json", bodyReader) } -// NewTestActionFunctionRequestWithBody generates requests for TestActionFunction with any type of body -func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProjectAdminRequestWithBody generates requests for UpdateProjectAdmin with any type of body +func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4986,14 +4411,7 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -5003,7 +4421,7 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s/functions/%s/test", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5013,7 +4431,7 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -5023,8 +4441,8 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types return req, nil } -// NewListProjectAdminsRequest generates requests for ListProjectAdmins -func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, params *ListProjectAdminsParams) (*http.Request, error) { +// NewListCampaignsRequest generates requests for ListCampaigns +func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params *ListCampaignsParams) (*http.Request, error) { var err error var pathParam0 string @@ -5039,7 +4457,7 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5084,248 +4502,8 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa } - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteProjectAdminRequest generates requests for DeleteProjectAdmin -func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetProjectAdminRequest generates requests for GetProjectAdmin -func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUpdateProjectAdminRequest calls the generic UpdateProjectAdmin builder with application/json body -func NewUpdateProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateProjectAdminRequestWithBody(server, projectID, adminID, "application/json", bodyReader) -} - -// NewUpdateProjectAdminRequestWithBody generates requests for UpdateProjectAdmin with any type of body -func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewListCampaignsRequest generates requests for ListCampaigns -func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params *ListCampaignsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } + queryURL.RawQuery = queryValues.Encode() + } req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { @@ -6080,8 +5258,8 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, return req, nil } -// NewListJourneysRequest generates requests for ListJourneys -func NewListJourneysRequest(server string, projectID openapi_types.UUID, params *ListJourneysParams) (*http.Request, error) { +// NewListEventsRequest generates requests for ListEvents +func NewListEventsRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6096,7 +5274,7 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/events/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6106,28 +5284,46 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + return req, nil +} - } +// NewListJourneysRequest generates requests for ListJourneys +func NewListJourneysRequest(server string, projectID openapi_types.UUID, params *ListJourneysParams) (*http.Request, error) { + var err error - if params.Offset != nil { + var pathParam0 string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -6141,9 +5337,9 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } - if params.Search != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -6169,18 +5365,18 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } // NewCreateJourneyRequest calls the generic CreateJourney builder with application/json body -func NewCreateJourneyRequest(server string, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody) (*http.Request, error) { +func NewCreateJourneyRequest(server string, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateJourneyRequestWithBody(server, projectID, params, "application/json", bodyReader) + return NewCreateJourneyRequestWithBody(server, projectID, "application/json", bodyReader) } // NewCreateJourneyRequestWithBody generates requests for CreateJourney with any type of body -func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader) (*http.Request, error) { +func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6205,28 +5401,6 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Publish != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "publish", runtime.ParamLocationQuery, *params.Publish); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -6414,6 +5588,101 @@ func NewDuplicateJourneyRequest(server string, projectID openapi_types.UUID, jou return req, nil } +// NewListJourneyEntrancesRequest generates requests for ListJourneyEntrances +func NewListJourneyEntrancesRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/entrances", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewPublishJourneyRequest generates requests for PublishJourney func NewPublishJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID) (*http.Request, error) { var err error @@ -6550,8 +5819,8 @@ func NewSetJourneyStepsRequestWithBody(server string, projectID openapi_types.UU return req, nil } -// NewStreamUserJourneyStepsRequest generates requests for StreamUserJourneySteps -func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewListJourneyStepUsersRequest generates requests for ListJourneyStepUsers +func NewListJourneyStepUsersRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams) (*http.Request, error) { var err error var pathParam0 string @@ -6570,7 +5839,7 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) if err != nil { return nil, err } @@ -6580,7 +5849,7 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/steps/%s/users", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6590,6 +5859,44 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -6598,19 +5905,8 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI return req, nil } -// NewTriggerUserRequest calls the generic TriggerUser builder with application/json body -func NewTriggerUserRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTriggerUserRequestWithBody(server, projectID, journeyID, userID, "application/json", bodyReader) -} - -// NewTriggerUserRequestWithBody generates requests for TriggerUser with any type of body -func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewRemoveUserFromJourneyStepRequest generates requests for RemoveUserFromJourneyStep +func NewRemoveUserFromJourneyStepRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6629,7 +5925,14 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6639,7 +5942,7 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/steps/%s/users/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6649,29 +5952,16 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewAdvanceUserStepRequest calls the generic AdvanceUserStep builder with application/json body -func NewAdvanceUserStepRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAdvanceUserStepRequestWithBody(server, projectID, journeyID, userID, "application/json", bodyReader) -} - -// NewAdvanceUserStepRequestWithBody generates requests for AdvanceUserStep with any type of body -func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewSkipJourneyStepDelayRequest generates requests for SkipJourneyStepDelay +func NewSkipJourneyStepDelayRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6690,7 +5980,14 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6700,7 +5997,7 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/steps/%s/users/%s/skip", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6710,18 +6007,16 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetUserJourneyStateRequest generates requests for GetUserJourneyState -func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewTriggerUserToJourneyStepRequest generates requests for TriggerUserToJourneyStep +func NewTriggerUserToJourneyStepRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6740,7 +6035,14 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6750,7 +6052,7 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s/state", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/steps/%s/users/%s/trigger", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6760,7 +6062,7 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -6768,8 +6070,8 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, return req, nil } -// NewVersionJourneyRequest generates requests for VersionJourney -func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID) (*http.Request, error) { +// NewRemoveUserFromJourneyRequest generates requests for RemoveUserFromJourney +func NewRemoveUserFromJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6786,12 +6088,19 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/version", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6801,7 +6110,7 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -6809,8 +6118,8 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return req, nil } -// NewListApiKeysRequest generates requests for ListApiKeys -func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params *ListApiKeysParams) (*http.Request, error) { +// NewVersionJourneyRequest generates requests for VersionJourney +func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6820,7 +6129,48 @@ func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params * return nil, err } - serverURL, err := url.Parse(server) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/version", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListApiKeysRequest generates requests for ListApiKeys +func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params *ListApiKeysParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) if err != nil { return nil, err } @@ -7125,22 +6475,6 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li } - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() } @@ -7376,8 +6710,8 @@ func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID return req, nil } -// NewGetListUsersRequest generates requests for GetListUsers -func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams) (*http.Request, error) { +// NewRecountListRequest generates requests for RecountList +func NewRecountListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7399,7 +6733,7 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/recount", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7409,61 +6743,7 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7471,8 +6751,8 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID return req, nil } -// NewPreviewListUsersRequest generates requests for PreviewListUsers -func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams) (*http.Request, error) { +// NewGetListUsersRequest generates requests for GetListUsers +func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams) (*http.Request, error) { var err error var pathParam0 string @@ -7494,7 +6774,7 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users/preview", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7523,6 +6803,22 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis } + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -7557,7 +6853,7 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users/preview", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8143,42 +7439,8 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, provi return req, nil } -// NewListOrganizationEventSchemasRequest generates requests for ListOrganizationEventSchemas -func NewListOrganizationEventSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organization/events/schema", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListOrganizationsRequest generates requests for ListOrganizations -func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, params *ListOrganizationsParams) (*http.Request, error) { +// NewListSubscriptionsRequest generates requests for ListSubscriptions +func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, params *ListSubscriptionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8193,7 +7455,7 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8238,22 +7500,6 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa } - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() } @@ -8265,19 +7511,19 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa return req, nil } -// NewUpsertOrganizationRequest calls the generic UpsertOrganization builder with application/json body -func NewUpsertOrganizationRequest(server string, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody) (*http.Request, error) { +// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body +func NewCreateSubscriptionRequest(server string, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpsertOrganizationRequestWithBody(server, projectID, "application/json", bodyReader) + return NewCreateSubscriptionRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewUpsertOrganizationRequestWithBody generates requests for UpsertOrganization with any type of body -func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body +func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8292,7 +7538,7 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8312,8 +7558,8 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types return req, nil } -// NewListOrganizationSchemasRequest generates requests for ListOrganizationSchemas -func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewGetSubscriptionRequest generates requests for GetSubscription +func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8323,36 +7569,9 @@ func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UU return nil, err } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/schema", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListOrganizationMemberSchemasRequest generates requests for ListOrganizationMemberSchemas -func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) if err != nil { return nil, err } @@ -8362,7 +7581,7 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/users/schema", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8380,8 +7599,19 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty return req, nil } -// NewDeleteOrganizationRequest generates requests for DeleteOrganization -func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID) (*http.Request, error) { +// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body +func NewUpdateSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSubscriptionRequestWithBody(server, projectID, subscriptionID, "application/json", bodyReader) +} + +// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body +func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8393,7 +7623,7 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) if err != nil { return nil, err } @@ -8403,7 +7633,7 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8413,16 +7643,18 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrganizationRequest generates requests for GetOrganization -func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID) (*http.Request, error) { +// NewListTagsRequest generates requests for ListTags +func NewListTagsRequest(server string, projectID openapi_types.UUID, params *ListTagsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8432,114 +7664,12 @@ func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, orga return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body -func NewUpdateOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateOrganizationRequestWithBody(server, projectID, organizationID, "application/json", bodyReader) -} - -// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body -func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetOrganizationEventsRequest generates requests for GetOrganizationEvents -func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/events", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8584,6 +7714,22 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -8595,20 +7741,24 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID return req, nil } -// NewListOrganizationMembersRequest generates requests for ListOrganizationMembers -func NewListOrganizationMembersRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) +// NewCreateTagRequest calls the generic CreateTag builder with application/json body +func NewCreateTagRequest(server string, projectID openapi_types.UUID, body CreateTagJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateTagRequestWithBody(server, projectID, "application/json", bodyReader) +} - var pathParam1 string +// NewCreateTagRequestWithBody generates requests for CreateTag with any type of body +func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8618,7 +7768,7 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8628,65 +7778,18 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewAddOrganizationMemberRequest calls the generic AddOrganizationMember builder with application/json body -func NewAddOrganizationMemberRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAddOrganizationMemberRequestWithBody(server, projectID, organizationID, "application/json", bodyReader) + return req, nil } -// NewAddOrganizationMemberRequestWithBody generates requests for AddOrganizationMember with any type of body -func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteTagRequest generates requests for DeleteTag +func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8698,7 +7801,7 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) if err != nil { return nil, err } @@ -8708,7 +7811,7 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8718,18 +7821,16 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewRemoveOrganizationMemberRequest generates requests for RemoveOrganizationMember -func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewGetTagRequest generates requests for GetTag +func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8741,14 +7842,7 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) if err != nil { return nil, err } @@ -8758,7 +7852,7 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8768,7 +7862,7 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8776,8 +7870,19 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U return req, nil } -// NewListUserEventSchemasRequest generates requests for ListUserEventSchemas -func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewUpdateTagRequest calls the generic UpdateTag builder with application/json body +func NewUpdateTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTagRequestWithBody(server, projectID, tagID, "application/json", bodyReader) +} + +// NewUpdateTagRequestWithBody generates requests for UpdateTag with any type of body +func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8787,12 +7892,19 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/user/events/schema", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8802,11 +7914,13 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } @@ -8826,7 +7940,7 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8925,7 +8039,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8961,7 +8075,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/import", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/import", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8997,7 +8111,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/schema", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9038,7 +8152,7 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9079,7 +8193,7 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9131,7 +8245,7 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9151,8 +8265,8 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return req, nil } -// NewGetUserDevicesRequest generates requests for GetUserDevices -func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewGetUserEventsRequest generates requests for GetUserEvents +func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9174,7 +8288,7 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/devices", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/events", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9184,6 +8298,44 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -9192,56 +8344,8 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI return req, nil } -// NewDeleteUserDeviceRequest generates requests for DeleteUserDevice -func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deviceID", runtime.ParamLocationPath, deviceID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/devices/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetUserEventsRequest generates requests for GetUserEvents -func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams) (*http.Request, error) { +// NewGetUserJourneysRequest generates requests for GetUserJourneys +func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams) (*http.Request, error) { var err error var pathParam0 string @@ -9263,7 +8367,7 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/events", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/journeys", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9308,22 +8412,6 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID } - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() } @@ -9335,8 +8423,8 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID return req, nil } -// NewGetUserJourneysRequest generates requests for GetUserJourneys -func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams) (*http.Request, error) { +// NewGetUserSubscriptionsRequest generates requests for GetUserSubscriptions +func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9358,7 +8446,7 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/journeys", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/subscriptions", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9414,8 +8502,19 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user return req, nil } -// NewGetUserOrganizationsRequest generates requests for GetUserOrganizations -func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams) (*http.Request, error) { +// NewUpdateUserSubscriptionsRequest calls the generic UpdateUserSubscriptions builder with application/json body +func NewUpdateUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserSubscriptionsRequestWithBody(server, projectID, userID, "application/json", bodyReader) +} + +// NewUpdateUserSubscriptionsRequestWithBody generates requests for UpdateUserSubscriptions with any type of body +func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9437,7 +8536,7 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subject-organizations", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/subscriptions", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9447,82 +8546,34 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetUserSubscriptionsRequest generates requests for GetUserSubscriptions -func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) +// NewAuthCallbackRequest calls the generic AuthCallback builder with application/json body +func NewAuthCallbackRequest(server string, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewAuthCallbackRequestWithBody(server, driver, "application/json", bodyReader) +} - var pathParam1 string +// NewAuthCallbackRequestWithBody generates requests for AuthCallback with any type of body +func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriver, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) if err != nil { return nil, err } @@ -9532,7 +8583,7 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subscriptions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/auth/login/%s/callback", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9542,87 +8593,26 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateUserSubscriptionsRequest calls the generic UpdateUserSubscriptions builder with application/json body -func NewUpdateUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateUserSubscriptionsRequestWithBody(server, projectID, userID, "application/json", bodyReader) + return req, nil } -// NewUpdateUserSubscriptionsRequestWithBody generates requests for UpdateUserSubscriptions with any type of body -func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetAuthMethodsRequest generates requests for GetAuthMethods +func NewGetAuthMethodsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subscriptions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/auth/methods") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9632,23 +8622,21 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListSubscriptionsRequest generates requests for ListSubscriptions -func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, params *ListSubscriptionsParams) (*http.Request, error) { +// NewAuthWebhookRequest generates requests for AuthWebhook +func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) if err != nil { return nil, err } @@ -9658,7 +8646,7 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) + operationPath := fmt.Sprintf("/api/auth/%s/webhook", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9668,1321 +8656,1143 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + return req, nil +} +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - + } + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err } - - queryURL.RawQuery = queryValues.Encode() } + return nil +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} + +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) if err != nil { return nil, err } - - return req, nil + return &ClientWithResponses{client}, nil } -// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body -func NewCreateSubscriptionRequest(server string, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil } - bodyReader = bytes.NewReader(buf) - return NewCreateSubscriptionRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body -func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // DeleteOrganizationWithResponse request + DeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) - var pathParam0 string + // GetOrganizationWithResponse request + GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // UpdateOrganizationWithBodyWithResponse request with any body + UpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateOrganizationWithResponse(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // ListAdminsWithResponse request + ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // CreateAdminWithBodyWithResponse request with any body + CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) - req.Header.Add("Content-Type", contentType) + // DeleteAdminWithResponse request + DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) - return req, nil -} + // GetAdminWithResponse request + GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) -// NewGetSubscriptionRequest generates requests for GetSubscription -func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) (*http.Request, error) { - var err error + // UpdateAdminWithBodyWithResponse request with any body + UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) - var pathParam0 string + UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // GetOrganizationIntegrationsWithResponse request + GetOrganizationIntegrationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationIntegrationsResponse, error) - var pathParam1 string + // WhoamiWithResponse request + WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) - if err != nil { - return nil, err - } + // GetProfileWithResponse request + GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListProjectsWithResponse request + ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateProjectWithBodyWithResponse request with any body + CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetProjectWithResponse request + GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) - return req, nil -} + // UpdateProjectWithBodyWithResponse request with any body + UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) -// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body -func NewUpdateSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateSubscriptionRequestWithBody(server, projectID, subscriptionID, "application/json", bodyReader) -} + UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) -// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body -func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error + // ListProjectAdminsWithResponse request + ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) - var pathParam0 string + // DeleteProjectAdminWithResponse request + DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // GetProjectAdminWithResponse request + GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) - var pathParam1 string + // UpdateProjectAdminWithBodyWithResponse request with any body + UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) - if err != nil { - return nil, err - } + UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListCampaignsWithResponse request + ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateCampaignWithBodyWithResponse request with any body + CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // DeleteCampaignWithResponse request + DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) - req.Header.Add("Content-Type", contentType) + // GetCampaignWithResponse request + GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) - return req, nil -} + // UpdateCampaignWithBodyWithResponse request with any body + UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) -// NewListTagsRequest generates requests for ListTags -func NewListTagsRequest(server string, projectID openapi_types.UUID, params *ListTagsParams) (*http.Request, error) { - var err error + UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) - var pathParam0 string + // DuplicateCampaignWithResponse request + DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // CreateTemplateWithBodyWithResponse request with any body + CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DeleteTemplateWithResponse request + DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetTemplateWithResponse request + GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) - if params != nil { - queryValues := queryURL.Query() + // UpdateTemplateWithBodyWithResponse request with any body + UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) - if params.Limit != nil { + UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // GetCampaignUsersWithResponse request + GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) - } + // ListDocumentsWithResponse request + ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) - if params.Offset != nil { + // UploadDocumentsWithBodyWithResponse request with any body + UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // DeleteDocumentWithResponse request + DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) - } + // GetDocumentWithResponse request + GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) - if params.Search != nil { + // GetDocumentMetadataWithResponse request + GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // ListEventsWithResponse request + ListEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) - } + // ListJourneysWithResponse request + ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // CreateJourneyWithBodyWithResponse request with any body + CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) - return req, nil -} + // DeleteJourneyWithResponse request + DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) -// NewCreateTagRequest calls the generic CreateTag builder with application/json body -func NewCreateTagRequest(server string, projectID openapi_types.UUID, body CreateTagJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateTagRequestWithBody(server, projectID, "application/json", bodyReader) -} + // GetJourneyWithResponse request + GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) -// NewCreateTagRequestWithBody generates requests for CreateTag with any type of body -func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error + // UpdateJourneyWithBodyWithResponse request with any body + UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) - var pathParam0 string + UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // DuplicateJourneyWithResponse request + DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListJourneyEntrancesWithResponse request + ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // PublishJourneyWithResponse request + PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetJourneyStepsWithResponse request + GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // SetJourneyStepsWithBodyWithResponse request with any body + SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) - req.Header.Add("Content-Type", contentType) + SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) - return req, nil -} + // ListJourneyStepUsersWithResponse request + ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) -// NewDeleteTagRequest generates requests for DeleteTag -func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { - var err error + // RemoveUserFromJourneyStepWithResponse request + RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) - var pathParam0 string + // SkipJourneyStepDelayWithResponse request + SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // TriggerUserToJourneyStepWithResponse request + TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) - var pathParam1 string + // RemoveUserFromJourneyWithResponse request + RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) - if err != nil { - return nil, err - } + // VersionJourneyWithResponse request + VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListApiKeysWithResponse request + ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateApiKeyWithBodyWithResponse request with any body + CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + // DeleteApiKeyWithResponse request + DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) - return req, nil -} + // GetApiKeyWithResponse request + GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) -// NewGetTagRequest generates requests for GetTag -func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { - var err error + // UpdateApiKeyWithBodyWithResponse request with any body + UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) - var pathParam0 string + UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // ListListsWithResponse request + ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) - var pathParam1 string + // CreateListWithBodyWithResponse request with any body + CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) - if err != nil { - return nil, err - } + CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // DeleteListWithResponse request + DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetListWithResponse request + GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateListWithBodyWithResponse request with any body + UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) - return req, nil -} + // DuplicateListWithResponse request + DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) -// NewUpdateTagRequest calls the generic UpdateTag builder with application/json body -func NewUpdateTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateTagRequestWithBody(server, projectID, tagID, "application/json", bodyReader) -} + // RecountListWithResponse request + RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) -// NewUpdateTagRequestWithBody generates requests for UpdateTag with any type of body -func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error + // GetListUsersWithResponse request + GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) - var pathParam0 string + // ImportListUsersWithBodyWithResponse request with any body + ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + // ListLocalesWithResponse request + ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) - var pathParam1 string + // CreateLocaleWithBodyWithResponse request with any body + CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) - if err != nil { - return nil, err - } + CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // DeleteLocaleWithResponse request + DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetLocaleWithResponse request + GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListProvidersWithResponse request + ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // ListAllProvidersWithResponse request + ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) - req.Header.Add("Content-Type", contentType) + // ListProviderMetaWithResponse request + ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) - return req, nil -} + // CreateProviderWithBodyWithResponse request with any body + CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) -// NewListAdminsRequest generates requests for ListAdmins -func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Request, error) { - var err error + CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetProviderWithResponse request + GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) - operationPath := fmt.Sprintf("/api/admin/tenant/admins") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // UpdateProviderWithBodyWithResponse request with any body + UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) - if params != nil { - queryValues := queryURL.Query() + // DeleteProviderWithResponse request + DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) - if params.Limit != nil { + // ListSubscriptionsWithResponse request + ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // CreateSubscriptionWithBodyWithResponse request with any body + CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) - } + CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) - if params.Offset != nil { + // GetSubscriptionWithResponse request + GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // UpdateSubscriptionWithBodyWithResponse request with any body + UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) - } + UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) - if params.Search != nil { + // ListTagsWithResponse request + ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + // CreateTagWithBodyWithResponse request with any body + CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) - } + CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // DeleteTagWithResponse request + DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetTagWithResponse request + GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) - return req, nil -} + // UpdateTagWithBodyWithResponse request with any body + UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) -// NewCreateAdminRequest calls the generic CreateAdmin builder with application/json body -func NewCreateAdminRequest(server string, body CreateAdminJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateAdminRequestWithBody(server, "application/json", bodyReader) -} + UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) -// NewCreateAdminRequestWithBody generates requests for CreateAdmin with any type of body -func NewCreateAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // ListUsersWithResponse request + ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // IdentifyUserWithBodyWithResponse request with any body + IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) - operationPath := fmt.Sprintf("/api/admin/tenant/admins") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ImportUsersWithBodyWithResponse request with any body + ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // ListUserSchemasWithResponse request + ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) - req.Header.Add("Content-Type", contentType) + // DeleteUserWithResponse request + DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) - return req, nil -} + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) -// NewDeleteAdminRequest generates requests for DeleteAdmin -func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { - var err error + // UpdateUserWithBodyWithResponse request with any body + UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) - var pathParam0 string + UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err - } + // GetUserEventsWithResponse request + GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetUserJourneysWithResponse request + GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) - operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetUserSubscriptionsWithResponse request + GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateUserSubscriptionsWithBodyWithResponse request with any body + UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) - return req, nil -} + // AuthCallbackWithBodyWithResponse request with any body + AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) -// NewGetAdminRequest generates requests for GetAdmin -func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { - var err error + AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) - var pathParam0 string + // GetAuthMethodsWithResponse request + GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err - } + // AuthWebhookWithResponse request + AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } +type DeleteOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// Status returns HTTPResponse.Status +func (r DeleteOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } +type GetOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization + JSONDefault *Error +} - return req, nil +// Status returns HTTPResponse.Status +func (r GetOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// NewUpdateAdminRequest calls the generic UpdateAdmin builder with application/json body -func NewUpdateAdminRequest(server string, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewUpdateAdminRequestWithBody(server, adminID, "application/json", bodyReader) + return 0 } -// NewUpdateAdminRequestWithBody generates requests for UpdateAdmin with any type of body -func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string +type UpdateOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization + JSONDefault *Error +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListAdminsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AdminList + JSONDefault *Error +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAdminsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListAdminsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewWhoamiRequest generates requests for Whoami -func NewWhoamiRequest(server string) (*http.Request, error) { - var err error +type CreateAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Admin + JSONDefault *Error +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/api/admin/tenant/whoami") - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type DeleteAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewAuthCallbackRequest calls the generic AuthCallback builder with application/json body -func NewAuthCallbackRequest(server string, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewAuthCallbackRequestWithBody(server, driver, "application/json", bodyReader) + return 0 } -// NewAuthCallbackRequestWithBody generates requests for AuthCallback with any type of body -func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriver, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string +type GetAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/api/auth/login/%s/callback", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UpdateAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewGetAuthMethodsRequest generates requests for GetAuthMethods -func NewGetAuthMethodsRequest(server string) (*http.Request, error) { - var err error +type GetOrganizationIntegrationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Provider + JSONDefault *Error +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetOrganizationIntegrationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/api/auth/methods") - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationIntegrationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type WhoamiResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r WhoamiResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewAuthWebhookRequest generates requests for AuthWebhook -func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r WhoamiResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type GetProfileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetProfileResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/api/auth/%s/webhook", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectList + JSONDefault *Error +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type CreateProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Project + JSONDefault *Error } -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } +// Status returns HTTPResponse.Status +func (r CreateProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return nil + return 0 } -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface +type GetProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Project + JSONDefault *Error } -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return &ClientWithResponses{client}, nil + return http.StatusText(0) } -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 } -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // GetProfileWithResponse request - GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) - - // ListProjectsWithResponse request - ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) - - // CreateProjectWithBodyWithResponse request with any body - CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) +type UpdateProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Project + JSONDefault *Error +} - CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) +// Status returns HTTPResponse.Status +func (r UpdateProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // DeleteProjectWithResponse request - DeleteProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetProjectWithResponse request - GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) +type ListProjectAdminsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectAdminList + JSONDefault *Error +} - // UpdateProjectWithBodyWithResponse request with any body - UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) +// Status returns HTTPResponse.Status +func (r ListProjectAdminsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r ListProjectAdminsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // ListActionsWithResponse request - ListActionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error) +type DeleteProjectAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - // CreateActionWithBodyWithResponse request with any body - CreateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) +// Status returns HTTPResponse.Status +func (r DeleteProjectAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - CreateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteProjectAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // ListActionMetaWithResponse request - ListActionMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListActionMetaResponse, error) +type GetProjectAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectAdmin + JSONDefault *Error +} - // GetActionPreviewWithResponse request - GetActionPreviewWithResponse(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*GetActionPreviewResponse, error) +// Status returns HTTPResponse.Status +func (r GetProjectAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // TestActionWithBodyWithResponse request with any body - TestActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - TestActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionResponse, error) +type UpdateProjectAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectAdmin + JSONDefault *Error +} - // DeleteActionWithResponse request - DeleteActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteActionResponse, error) +// Status returns HTTPResponse.Status +func (r UpdateProjectAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // GetActionWithResponse request - GetActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetActionResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProjectAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // UpdateActionWithBodyWithResponse request with any body - UpdateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) +type ListCampaignsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CampaignListResponse + JSONDefault *Error +} - UpdateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) +// Status returns HTTPResponse.Status +func (r ListCampaignsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ListActionSchemasWithResponse request - ListActionSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*ListActionSchemasResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r ListCampaignsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // TestActionFunctionWithBodyWithResponse request with any body - TestActionFunctionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) +type CreateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Campaign + JSONDefault *Error +} - TestActionFunctionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) +// Status returns HTTPResponse.Status +func (r CreateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ListProjectAdminsWithResponse request - ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // DeleteProjectAdminWithResponse request - DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) +type DeleteCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - // GetProjectAdminWithResponse request - GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) - - // UpdateProjectAdminWithBodyWithResponse request with any body - UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) - - UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) +// Status returns HTTPResponse.Status +func (r DeleteCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ListCampaignsWithResponse request - ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // CreateCampaignWithBodyWithResponse request with any body - CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) +type GetCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Campaign `json:"data"` + } + JSONDefault *Error +} - CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) +// Status returns HTTPResponse.Status +func (r GetCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // DeleteCampaignWithResponse request - DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r GetCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetCampaignWithResponse request - GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) +type UpdateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Campaign + JSONDefault *Error +} - // UpdateCampaignWithBodyWithResponse request with any body - UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) +// Status returns HTTPResponse.Status +func (r UpdateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // DuplicateCampaignWithResponse request - DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) +type DuplicateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Campaign + JSONDefault *Error +} - // CreateTemplateWithBodyWithResponse request with any body - CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) +// Status returns HTTPResponse.Status +func (r DuplicateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // DeleteTemplateWithResponse request - DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) +type CreateTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Template + JSONDefault *Error +} - // GetTemplateWithResponse request - GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) +// Status returns HTTPResponse.Status +func (r CreateTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // UpdateTemplateWithBodyWithResponse request with any body - UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) +type DeleteTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - // GetCampaignUsersWithResponse request - GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) +// Status returns HTTPResponse.Status +func (r DeleteTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ListDocumentsWithResponse request - ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // UploadDocumentsWithBodyWithResponse request with any body - UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) +type GetTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Template `json:"data"` + } + JSONDefault *Error +} - // DeleteDocumentWithResponse request - DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) +// Status returns HTTPResponse.Status +func (r GetTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // GetDocumentWithResponse request - GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r GetTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetDocumentMetadataWithResponse request - GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) +type UpdateTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Template + JSONDefault *Error +} - // ListJourneysWithResponse request - ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) +// Status returns HTTPResponse.Status +func (r UpdateTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // CreateJourneyWithBodyWithResponse request with any body - CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) +type GetCampaignUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data []CampaignUser `json:"data"` + Limit int `json:"limit"` + Offset int `json:"offset"` + Total int `json:"total"` + } + JSONDefault *Error +} - // DeleteJourneyWithResponse request - DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) +// Status returns HTTPResponse.Status +func (r GetCampaignUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // GetJourneyWithResponse request - GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r GetCampaignUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // UpdateJourneyWithBodyWithResponse request with any body - UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) +type ListDocumentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DocumentListResponse + JSONDefault *Error +} - UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) +// Status returns HTTPResponse.Status +func (r ListDocumentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // DuplicateJourneyWithResponse request - DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r ListDocumentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // PublishJourneyWithResponse request - PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) - - // GetJourneyStepsWithResponse request - GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) - - // SetJourneyStepsWithBodyWithResponse request with any body - SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) - - SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) - - // StreamUserJourneyStepsWithResponse request - StreamUserJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamUserJourneyStepsResponse, error) - - // TriggerUserWithBodyWithResponse request with any body - TriggerUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) - - TriggerUserWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) - - // AdvanceUserStepWithBodyWithResponse request with any body - AdvanceUserStepWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) - - AdvanceUserStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) - - // GetUserJourneyStateWithResponse request - GetUserJourneyStateWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserJourneyStateResponse, error) - - // VersionJourneyWithResponse request - VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) - - // ListApiKeysWithResponse request - ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) - - // CreateApiKeyWithBodyWithResponse request with any body - CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) - - CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) - - // DeleteApiKeyWithResponse request - DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) - - // GetApiKeyWithResponse request - GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) - - // UpdateApiKeyWithBodyWithResponse request with any body - UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) - - UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) - - // ListListsWithResponse request - ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) - - // CreateListWithBodyWithResponse request with any body - CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) - - CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) - - // DeleteListWithResponse request - DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) - - // GetListWithResponse request - GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) - - // UpdateListWithBodyWithResponse request with any body - UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) - - UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) - - // DuplicateListWithResponse request - DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) - - // GetListUsersWithResponse request - GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) - - // PreviewListUsersWithResponse request - PreviewListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*PreviewListUsersResponse, error) - - // ImportListUsersWithBodyWithResponse request with any body - ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) - - // ListLocalesWithResponse request - ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) - - // CreateLocaleWithBodyWithResponse request with any body - CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) - - CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) - - // DeleteLocaleWithResponse request - DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) - - // GetLocaleWithResponse request - GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) - - // ListProvidersWithResponse request - ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) - - // ListAllProvidersWithResponse request - ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) - - // ListProviderMetaWithResponse request - ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) - - // CreateProviderWithBodyWithResponse request with any body - CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) - - CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) - - // GetProviderWithResponse request - GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) - - // UpdateProviderWithBodyWithResponse request with any body - UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) - - UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) - - // DeleteProviderWithResponse request - DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) - - // ListOrganizationEventSchemasWithResponse request - ListOrganizationEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationEventSchemasResponse, error) - - // ListOrganizationsWithResponse request - ListOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error) - - // UpsertOrganizationWithBodyWithResponse request with any body - UpsertOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) - - UpsertOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) - - // ListOrganizationSchemasWithResponse request - ListOrganizationSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationSchemasResponse, error) - - // ListOrganizationMemberSchemasWithResponse request - ListOrganizationMemberSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationMemberSchemasResponse, error) - - // DeleteOrganizationWithResponse request - DeleteOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) - - // GetOrganizationWithResponse request - GetOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) - - // UpdateOrganizationWithBodyWithResponse request with any body - UpdateOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) - - UpdateOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) - - // GetOrganizationEventsWithResponse request - GetOrganizationEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*GetOrganizationEventsResponse, error) - - // ListOrganizationMembersWithResponse request - ListOrganizationMembersWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error) - - // AddOrganizationMemberWithBodyWithResponse request with any body - AddOrganizationMemberWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) - - AddOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) - - // RemoveOrganizationMemberWithResponse request - RemoveOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveOrganizationMemberResponse, error) - - // ListUserEventSchemasWithResponse request - ListUserEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserEventSchemasResponse, error) - - // ListUsersWithResponse request - ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) - - // IdentifyUserWithBodyWithResponse request with any body - IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) - - IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) - - // ImportUsersWithBodyWithResponse request with any body - ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) - - // ListUserSchemasWithResponse request - ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) - - // DeleteUserWithResponse request - DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) - - // GetUserWithResponse request - GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) - - // UpdateUserWithBodyWithResponse request with any body - UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) - - UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) - - // GetUserDevicesWithResponse request - GetUserDevicesWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserDevicesResponse, error) - - // DeleteUserDeviceWithResponse request - DeleteUserDeviceWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserDeviceResponse, error) - - // GetUserEventsWithResponse request - GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) - - // GetUserJourneysWithResponse request - GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) - - // GetUserOrganizationsWithResponse request - GetUserOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*GetUserOrganizationsResponse, error) - - // GetUserSubscriptionsWithResponse request - GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) - - // UpdateUserSubscriptionsWithBodyWithResponse request with any body - UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) - - UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) - - // ListSubscriptionsWithResponse request - ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) - - // CreateSubscriptionWithBodyWithResponse request with any body - CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) - - CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) - - // GetSubscriptionWithResponse request - GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) - - // UpdateSubscriptionWithBodyWithResponse request with any body - UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) - - UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) - - // ListTagsWithResponse request - ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) - - // CreateTagWithBodyWithResponse request with any body - CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) - - CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) - - // DeleteTagWithResponse request - DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) - - // GetTagWithResponse request - GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) - - // UpdateTagWithBodyWithResponse request with any body - UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) - - UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) - - // ListAdminsWithResponse request - ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) - - // CreateAdminWithBodyWithResponse request with any body - CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) - - CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) - - // DeleteAdminWithResponse request - DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) - - // GetAdminWithResponse request - GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) - - // UpdateAdminWithBodyWithResponse request with any body - UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) - - UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) - - // WhoamiWithResponse request - WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) - - // AuthCallbackWithBodyWithResponse request with any body - AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) - - AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) - - // GetAuthMethodsWithResponse request - GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) - - // AuthWebhookWithResponse request - AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) -} - -type GetProfileResponse struct { +type UploadDocumentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error + JSON201 *struct { + // Documents UUIDs of the uploaded documents + Documents []openapi_types.UUID `json:"documents"` + } + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetProfileResponse) Status() string { +func (r UploadDocumentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10990,22 +9800,21 @@ func (r GetProfileResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProfileResponse) StatusCode() int { +func (r UploadDocumentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListProjectsResponse struct { +type DeleteDocumentResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListProjectsResponse) Status() string { +func (r DeleteDocumentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11013,22 +9822,21 @@ func (r ListProjectsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectsResponse) StatusCode() int { +func (r DeleteDocumentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateProjectResponse struct { +type GetDocumentResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Project JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateProjectResponse) Status() string { +func (r GetDocumentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11036,21 +9844,22 @@ func (r CreateProjectResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectResponse) StatusCode() int { +func (r GetDocumentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteProjectResponse struct { +type GetDocumentMetadataResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Document JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteProjectResponse) Status() string { +func (r GetDocumentMetadataResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11058,22 +9867,22 @@ func (r DeleteProjectResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectResponse) StatusCode() int { +func (r GetDocumentMetadataResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetProjectResponse struct { +type ListEventsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project + JSON200 *EventListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetProjectResponse) Status() string { +func (r ListEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11081,22 +9890,22 @@ func (r GetProjectResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectResponse) StatusCode() int { +func (r ListEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateProjectResponse struct { +type ListJourneysResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project + JSON200 *JourneyListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateProjectResponse) Status() string { +func (r ListJourneysResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11104,22 +9913,22 @@ func (r UpdateProjectResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectResponse) StatusCode() int { +func (r ListJourneysResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListActionsResponse struct { +type CreateJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ActionListResponse + JSON201 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListActionsResponse) Status() string { +func (r CreateJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11127,22 +9936,21 @@ func (r ListActionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListActionsResponse) StatusCode() int { +func (r CreateJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateActionResponse struct { +type DeleteJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Action JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateActionResponse) Status() string { +func (r DeleteJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11150,22 +9958,22 @@ func (r CreateActionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateActionResponse) StatusCode() int { +func (r DeleteJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListActionMetaResponse struct { +type GetJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ActionMeta + JSON200 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListActionMetaResponse) Status() string { +func (r GetJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11173,21 +9981,22 @@ func (r ListActionMetaResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListActionMetaResponse) StatusCode() int { +func (r GetJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetActionPreviewResponse struct { +type UpdateJourneyResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetActionPreviewResponse) Status() string { +func (r UpdateJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11195,22 +10004,22 @@ func (r GetActionPreviewResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionPreviewResponse) StatusCode() int { +func (r UpdateJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TestActionResponse struct { +type DuplicateJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TestActionResult + JSON201 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r TestActionResponse) Status() string { +func (r DuplicateJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11218,21 +10027,22 @@ func (r TestActionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TestActionResponse) StatusCode() int { +func (r DuplicateJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteActionResponse struct { +type ListJourneyEntrancesResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *JourneyUserEntranceListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteActionResponse) Status() string { +func (r ListJourneyEntrancesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11240,22 +10050,22 @@ func (r DeleteActionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteActionResponse) StatusCode() int { +func (r ListJourneyEntrancesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetActionResponse struct { +type PublishJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Action + JSON200 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetActionResponse) Status() string { +func (r PublishJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11263,22 +10073,22 @@ func (r GetActionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionResponse) StatusCode() int { +func (r PublishJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateActionResponse struct { +type GetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Action + JSON200 *JourneyStepMap JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateActionResponse) Status() string { +func (r GetJourneyStepsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11286,22 +10096,22 @@ func (r UpdateActionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateActionResponse) StatusCode() int { +func (r GetJourneyStepsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListActionSchemasResponse struct { +type SetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ActionSchemaListResponse + JSON200 *JourneyStepMap JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListActionSchemasResponse) Status() string { +func (r SetJourneyStepsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11309,22 +10119,22 @@ func (r ListActionSchemasResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListActionSchemasResponse) StatusCode() int { +func (r SetJourneyStepsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TestActionFunctionResponse struct { +type ListJourneyStepUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TestActionFunctionResult + JSON200 *JourneyUserStepListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r TestActionFunctionResponse) Status() string { +func (r ListJourneyStepUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11332,22 +10142,21 @@ func (r TestActionFunctionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TestActionFunctionResponse) StatusCode() int { +func (r ListJourneyStepUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListProjectAdminsResponse struct { +type RemoveUserFromJourneyStepResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectAdminList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListProjectAdminsResponse) Status() string { +func (r RemoveUserFromJourneyStepResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11355,21 +10164,21 @@ func (r ListProjectAdminsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectAdminsResponse) StatusCode() int { +func (r RemoveUserFromJourneyStepResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteProjectAdminResponse struct { +type SkipJourneyStepDelayResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteProjectAdminResponse) Status() string { +func (r SkipJourneyStepDelayResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11377,22 +10186,22 @@ func (r DeleteProjectAdminResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectAdminResponse) StatusCode() int { +func (r SkipJourneyStepDelayResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetProjectAdminResponse struct { +type TriggerUserToJourneyStepResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectAdmin + JSON201 *JourneyUserStep JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetProjectAdminResponse) Status() string { +func (r TriggerUserToJourneyStepResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11400,22 +10209,21 @@ func (r GetProjectAdminResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectAdminResponse) StatusCode() int { +func (r TriggerUserToJourneyStepResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateProjectAdminResponse struct { +type RemoveUserFromJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectAdmin JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateProjectAdminResponse) Status() string { +func (r RemoveUserFromJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11423,22 +10231,22 @@ func (r UpdateProjectAdminResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectAdminResponse) StatusCode() int { +func (r RemoveUserFromJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListCampaignsResponse struct { +type VersionJourneyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CampaignListResponse + JSON201 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListCampaignsResponse) Status() string { +func (r VersionJourneyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11446,22 +10254,22 @@ func (r ListCampaignsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListCampaignsResponse) StatusCode() int { +func (r VersionJourneyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateCampaignResponse struct { +type ListApiKeysResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Campaign + JSON200 *ApiKeyListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateCampaignResponse) Status() string { +func (r ListApiKeysResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11469,21 +10277,22 @@ func (r CreateCampaignResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateCampaignResponse) StatusCode() int { +func (r ListApiKeysResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteCampaignResponse struct { +type CreateApiKeyResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *ApiKey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteCampaignResponse) Status() string { +func (r CreateApiKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11491,24 +10300,21 @@ func (r DeleteCampaignResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteCampaignResponse) StatusCode() int { +func (r CreateApiKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetCampaignResponse struct { +type DeleteApiKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data Campaign `json:"data"` - } - JSONDefault *Error + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetCampaignResponse) Status() string { +func (r DeleteApiKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11516,22 +10322,22 @@ func (r GetCampaignResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCampaignResponse) StatusCode() int { +func (r DeleteApiKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateCampaignResponse struct { +type GetApiKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Campaign + JSON200 *ApiKey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateCampaignResponse) Status() string { +func (r GetApiKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11539,22 +10345,22 @@ func (r UpdateCampaignResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateCampaignResponse) StatusCode() int { +func (r GetApiKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DuplicateCampaignResponse struct { +type UpdateApiKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Campaign + JSON200 *ApiKey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DuplicateCampaignResponse) Status() string { +func (r UpdateApiKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11562,22 +10368,22 @@ func (r DuplicateCampaignResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DuplicateCampaignResponse) StatusCode() int { +func (r UpdateApiKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateTemplateResponse struct { +type ListListsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Template + JSON200 *ListListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateTemplateResponse) Status() string { +func (r ListListsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11585,21 +10391,22 @@ func (r CreateTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTemplateResponse) StatusCode() int { +func (r ListListsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTemplateResponse struct { +type CreateListResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *List JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteTemplateResponse) Status() string { +func (r CreateListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11607,24 +10414,21 @@ func (r DeleteTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTemplateResponse) StatusCode() int { +func (r CreateListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTemplateResponse struct { +type DeleteListResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data Template `json:"data"` - } - JSONDefault *Error + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetTemplateResponse) Status() string { +func (r DeleteListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11632,22 +10436,22 @@ func (r GetTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTemplateResponse) StatusCode() int { +func (r DeleteListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateTemplateResponse struct { +type GetListResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Template + JSON200 *List JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateTemplateResponse) Status() string { +func (r GetListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11655,27 +10459,22 @@ func (r UpdateTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateTemplateResponse) StatusCode() int { +func (r GetListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetCampaignUsersResponse struct { +type UpdateListResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data []CampaignUser `json:"data"` - Limit int `json:"limit"` - Offset int `json:"offset"` - Total int `json:"total"` - } - JSONDefault *Error + JSON200 *List + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetCampaignUsersResponse) Status() string { +func (r UpdateListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11683,22 +10482,22 @@ func (r GetCampaignUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCampaignUsersResponse) StatusCode() int { +func (r UpdateListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListDocumentsResponse struct { +type DuplicateListResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DocumentListResponse + JSON201 *List JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListDocumentsResponse) Status() string { +func (r DuplicateListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11706,25 +10505,22 @@ func (r ListDocumentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDocumentsResponse) StatusCode() int { +func (r DuplicateListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UploadDocumentsResponse struct { +type RecountListResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *struct { - // Documents UUIDs of the uploaded documents - Documents []openapi_types.UUID `json:"documents"` - } - JSONDefault *Error + JSON202 *List + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UploadDocumentsResponse) Status() string { +func (r RecountListResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11732,21 +10528,22 @@ func (r UploadDocumentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadDocumentsResponse) StatusCode() int { +func (r RecountListResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteDocumentResponse struct { +type GetListUsersResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteDocumentResponse) Status() string { +func (r GetListUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11754,21 +10551,21 @@ func (r DeleteDocumentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDocumentResponse) StatusCode() int { +func (r GetListUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetDocumentResponse struct { +type ImportListUsersResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetDocumentResponse) Status() string { +func (r ImportListUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11776,22 +10573,32 @@ func (r GetDocumentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDocumentResponse) StatusCode() int { +func (r ImportListUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetDocumentMetadataResponse struct { +type ListLocalesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Document - JSONDefault *Error + JSON200 *struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Locale `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` + } + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetDocumentMetadataResponse) Status() string { +func (r ListLocalesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11799,22 +10606,22 @@ func (r GetDocumentMetadataResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDocumentMetadataResponse) StatusCode() int { +func (r ListLocalesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListJourneysResponse struct { +type CreateLocaleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *JourneyListResponse + JSON201 *Locale JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListJourneysResponse) Status() string { +func (r CreateLocaleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11822,22 +10629,21 @@ func (r ListJourneysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListJourneysResponse) StatusCode() int { +func (r CreateLocaleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateJourneyResponse struct { +type DeleteLocaleResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Journey JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateJourneyResponse) Status() string { +func (r DeleteLocaleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11845,21 +10651,22 @@ func (r CreateJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateJourneyResponse) StatusCode() int { +func (r DeleteLocaleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteJourneyResponse struct { +type GetLocaleResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Locale JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteJourneyResponse) Status() string { +func (r GetLocaleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11867,22 +10674,22 @@ func (r DeleteJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteJourneyResponse) StatusCode() int { +func (r GetLocaleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetJourneyResponse struct { +type ListProvidersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Journey + JSON200 *ProviderListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetJourneyResponse) Status() string { +func (r ListProvidersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11890,22 +10697,22 @@ func (r GetJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetJourneyResponse) StatusCode() int { +func (r ListProvidersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateJourneyResponse struct { +type ListAllProvidersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Journey + JSON200 *[]Provider JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateJourneyResponse) Status() string { +func (r ListAllProvidersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11913,22 +10720,22 @@ func (r UpdateJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateJourneyResponse) StatusCode() int { +func (r ListAllProvidersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DuplicateJourneyResponse struct { +type ListProviderMetaResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Journey + JSON200 *[]ProviderMeta JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DuplicateJourneyResponse) Status() string { +func (r ListProviderMetaResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11936,22 +10743,22 @@ func (r DuplicateJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DuplicateJourneyResponse) StatusCode() int { +func (r ListProviderMetaResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PublishJourneyResponse struct { +type CreateProviderResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Journey + JSON201 *Provider JSONDefault *Error } // Status returns HTTPResponse.Status -func (r PublishJourneyResponse) Status() string { +func (r CreateProviderResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11959,22 +10766,22 @@ func (r PublishJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PublishJourneyResponse) StatusCode() int { +func (r CreateProviderResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetJourneyStepsResponse struct { +type GetProviderResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *JourneyStepMap + JSON200 *Provider JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetJourneyStepsResponse) Status() string { +func (r GetProviderResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11982,22 +10789,22 @@ func (r GetJourneyStepsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetJourneyStepsResponse) StatusCode() int { +func (r GetProviderResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type SetJourneyStepsResponse struct { +type UpdateProviderResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *JourneyStepMap + JSON200 *Provider JSONDefault *Error } // Status returns HTTPResponse.Status -func (r SetJourneyStepsResponse) Status() string { +func (r UpdateProviderResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12005,21 +10812,21 @@ func (r SetJourneyStepsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SetJourneyStepsResponse) StatusCode() int { +func (r UpdateProviderResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type StreamUserJourneyStepsResponse struct { +type DeleteProviderResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r StreamUserJourneyStepsResponse) Status() string { +func (r DeleteProviderResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12027,21 +10834,22 @@ func (r StreamUserJourneyStepsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r StreamUserJourneyStepsResponse) StatusCode() int { +func (r DeleteProviderResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TriggerUserResponse struct { +type ListSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *SubscriptionListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r TriggerUserResponse) Status() string { +func (r ListSubscriptionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12049,21 +10857,22 @@ func (r TriggerUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TriggerUserResponse) StatusCode() int { +func (r ListSubscriptionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AdvanceUserStepResponse struct { +type CreateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *Subscription JSONDefault *Error } // Status returns HTTPResponse.Status -func (r AdvanceUserStepResponse) Status() string { +func (r CreateSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12071,26 +10880,22 @@ func (r AdvanceUserStepResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AdvanceUserStepResponse) StatusCode() int { +func (r CreateSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetUserJourneyStateResponse struct { +type GetSubscriptionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]struct { - ExternalStepId *string `json:"external_step_id,omitempty"` - IsCompleted *bool `json:"is_completed,omitempty"` - StepType *string `json:"step_type,omitempty"` - } - JSONDefault *Error + JSON200 *Subscription + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetUserJourneyStateResponse) Status() string { +func (r GetSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12098,22 +10903,22 @@ func (r GetUserJourneyStateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserJourneyStateResponse) StatusCode() int { +func (r GetSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type VersionJourneyResponse struct { +type UpdateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Journey + JSON200 *Subscription JSONDefault *Error } // Status returns HTTPResponse.Status -func (r VersionJourneyResponse) Status() string { +func (r UpdateSubscriptionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12121,22 +10926,22 @@ func (r VersionJourneyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r VersionJourneyResponse) StatusCode() int { +func (r UpdateSubscriptionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListApiKeysResponse struct { +type ListTagsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ApiKeyListResponse + JSON200 *TagListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListApiKeysResponse) Status() string { +func (r ListTagsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12144,22 +10949,22 @@ func (r ListApiKeysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListApiKeysResponse) StatusCode() int { +func (r ListTagsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateApiKeyResponse struct { +type CreateTagResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ApiKey + JSON201 *Tag JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateApiKeyResponse) Status() string { +func (r CreateTagResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12167,21 +10972,21 @@ func (r CreateApiKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateApiKeyResponse) StatusCode() int { +func (r CreateTagResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteApiKeyResponse struct { +type DeleteTagResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteApiKeyResponse) Status() string { +func (r DeleteTagResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12189,22 +10994,22 @@ func (r DeleteApiKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteApiKeyResponse) StatusCode() int { +func (r DeleteTagResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetApiKeyResponse struct { +type GetTagResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ApiKey + JSON200 *Tag JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetApiKeyResponse) Status() string { +func (r GetTagResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12212,22 +11017,22 @@ func (r GetApiKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetApiKeyResponse) StatusCode() int { +func (r GetTagResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateApiKeyResponse struct { +type UpdateTagResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ApiKey + JSON200 *Tag JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateApiKeyResponse) Status() string { +func (r UpdateTagResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12235,22 +11040,22 @@ func (r UpdateApiKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateApiKeyResponse) StatusCode() int { +func (r UpdateTagResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListListsResponse struct { +type ListUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListListResponse + JSON200 *UserList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListListsResponse) Status() string { +func (r ListUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12258,22 +11063,22 @@ func (r ListListsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListListsResponse) StatusCode() int { +func (r ListUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateListResponse struct { +type IdentifyUserResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *List + JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateListResponse) Status() string { +func (r IdentifyUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12281,21 +11086,21 @@ func (r CreateListResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateListResponse) StatusCode() int { +func (r IdentifyUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteListResponse struct { +type ImportUsersResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteListResponse) Status() string { +func (r ImportUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12303,22 +11108,24 @@ func (r DeleteListResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteListResponse) StatusCode() int { +func (r ImportUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetListResponse struct { +type ListUserSchemasResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *List - JSONDefault *Error + JSON200 *struct { + Results []SchemaPath `json:"results"` + } + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetListResponse) Status() string { +func (r ListUserSchemasResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12326,22 +11133,21 @@ func (r GetListResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetListResponse) StatusCode() int { +func (r ListUserSchemasResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateListResponse struct { +type DeleteUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *List JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateListResponse) Status() string { +func (r DeleteUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12349,22 +11155,22 @@ func (r UpdateListResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateListResponse) StatusCode() int { +func (r DeleteUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DuplicateListResponse struct { +type GetUserResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *List + JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DuplicateListResponse) Status() string { +func (r GetUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12372,22 +11178,22 @@ func (r DuplicateListResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DuplicateListResponse) StatusCode() int { +func (r GetUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetListUsersResponse struct { +type UpdateUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserList + JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetListUsersResponse) Status() string { +func (r UpdateUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12395,22 +11201,22 @@ func (r GetListUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetListUsersResponse) StatusCode() int { +func (r UpdateUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PreviewListUsersResponse struct { +type GetUserEventsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserList + JSON200 *UserEventList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r PreviewListUsersResponse) Status() string { +func (r GetUserEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12418,21 +11224,22 @@ func (r PreviewListUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PreviewListUsersResponse) StatusCode() int { +func (r GetUserEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ImportListUsersResponse struct { +type GetUserJourneysResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserJourneyList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ImportListUsersResponse) Status() string { +func (r GetUserJourneysResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12440,32 +11247,22 @@ func (r ImportListUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ImportListUsersResponse) StatusCode() int { +func (r GetUserJourneysResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListLocalesResponse struct { +type GetUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Locale `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` - } - JSONDefault *Error + JSON200 *UserSubscriptionList + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListLocalesResponse) Status() string { +func (r GetUserSubscriptionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12473,22 +11270,22 @@ func (r ListLocalesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListLocalesResponse) StatusCode() int { +func (r GetUserSubscriptionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateLocaleResponse struct { +type UpdateUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Locale + JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateLocaleResponse) Status() string { +func (r UpdateUserSubscriptionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12496,21 +11293,21 @@ func (r CreateLocaleResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateLocaleResponse) StatusCode() int { +func (r UpdateUserSubscriptionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteLocaleResponse struct { +type AuthCallbackResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteLocaleResponse) Status() string { +func (r AuthCallbackResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12518,22 +11315,22 @@ func (r DeleteLocaleResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteLocaleResponse) StatusCode() int { +func (r AuthCallbackResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetLocaleResponse struct { +type GetAuthMethodsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Locale + JSON200 *[]string JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetLocaleResponse) Status() string { +func (r GetAuthMethodsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12541,22 +11338,21 @@ func (r GetLocaleResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLocaleResponse) StatusCode() int { +func (r GetAuthMethodsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListProvidersResponse struct { +type AuthWebhookResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProviderListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListProvidersResponse) Status() string { +func (r AuthWebhookResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12564,2570 +11360,2561 @@ func (r ListProvidersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProvidersResponse) StatusCode() int { +func (r AuthWebhookResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListAllProvidersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]Provider - JSONDefault *Error +// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse +func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) { + rsp, err := c.DeleteOrganization(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrganizationResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListAllProvidersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrganizationWithResponse request returning *GetOrganizationResponse +func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) { + rsp, err := c.GetOrganization(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrganizationResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllProvidersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse +func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganizationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateOrganizationResponse(rsp) } -type ListProviderMetaResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]ProviderMeta - JSONDefault *Error +func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganization(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListProviderMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListAdminsWithResponse request returning *ListAdminsResponse +func (c *ClientWithResponses) ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) { + rsp, err := c.ListAdmins(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListAdminsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListProviderMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateAdminWithBodyWithResponse request with arbitrary body returning *CreateAdminResponse +func (c *ClientWithResponses) CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { + rsp, err := c.CreateAdminWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateAdminResponse(rsp) } -type CreateProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Provider - JSONDefault *Error +func (c *ClientWithResponses) CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { + rsp, err := c.CreateAdmin(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAdminResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteAdminWithResponse request returning *DeleteAdminResponse +func (c *ClientWithResponses) DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) { + rsp, err := c.DeleteAdmin(ctx, adminID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteAdminResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetAdminWithResponse request returning *GetAdminResponse +func (c *ClientWithResponses) GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) { + rsp, err := c.GetAdmin(ctx, adminID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetAdminResponse(rsp) } -type GetProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Provider - JSONDefault *Error +// UpdateAdminWithBodyWithResponse request with arbitrary body returning *UpdateAdminResponse +func (c *ClientWithResponses) UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { + rsp, err := c.UpdateAdminWithBody(ctx, adminID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAdminResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { + rsp, err := c.UpdateAdmin(ctx, adminID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateAdminResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetOrganizationIntegrationsWithResponse request returning *GetOrganizationIntegrationsResponse +func (c *ClientWithResponses) GetOrganizationIntegrationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationIntegrationsResponse, error) { + rsp, err := c.GetOrganizationIntegrations(ctx, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetOrganizationIntegrationsResponse(rsp) } -type UpdateProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Provider - JSONDefault *Error +// WhoamiWithResponse request returning *WhoamiResponse +func (c *ClientWithResponses) WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) { + rsp, err := c.Whoami(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseWhoamiResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetProfileWithResponse request returning *GetProfileResponse +func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) { + rsp, err := c.GetProfile(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetProfileResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListProjectsWithResponse request returning *ListProjectsResponse +func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) { + rsp, err := c.ListProjects(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListProjectsResponse(rsp) } -type DeleteProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse +func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { + rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateProjectResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { + rsp, err := c.CreateProject(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateProjectResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetProjectWithResponse request returning *GetProjectResponse +func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { + rsp, err := c.GetProject(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetProjectResponse(rsp) } -type ListOrganizationEventSchemasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *EventListResponse - JSONDefault *Error +// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse +func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProjectWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListOrganizationEventSchemasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProject(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateProjectResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationEventSchemasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListProjectAdminsWithResponse request returning *ListProjectAdminsResponse +func (c *ClientWithResponses) ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) { + rsp, err := c.ListProjectAdmins(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListProjectAdminsResponse(rsp) } -type ListOrganizationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationList - JSONDefault *Error +// DeleteProjectAdminWithResponse request returning *DeleteProjectAdminResponse +func (c *ClientWithResponses) DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) { + rsp, err := c.DeleteProjectAdmin(ctx, projectID, adminID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteProjectAdminResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListOrganizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetProjectAdminWithResponse request returning *GetProjectAdminResponse +func (c *ClientWithResponses) GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) { + rsp, err := c.GetProjectAdmin(ctx, projectID, adminID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetProjectAdminResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateProjectAdminWithBodyWithResponse request with arbitrary body returning *UpdateProjectAdminResponse +func (c *ClientWithResponses) UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { + rsp, err := c.UpdateProjectAdminWithBody(ctx, projectID, adminID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateProjectAdminResponse(rsp) } -type UpsertOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization - JSONDefault *Error +func (c *ClientWithResponses) UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { + rsp, err := c.UpdateProjectAdmin(ctx, projectID, adminID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectAdminResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpsertOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListCampaignsWithResponse request returning *ListCampaignsResponse +func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) { + rsp, err := c.ListCampaigns(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListCampaignsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpsertOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateCampaignWithBodyWithResponse request with arbitrary body returning *CreateCampaignResponse +func (c *ClientWithResponses) CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { + rsp, err := c.CreateCampaignWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateCampaignResponse(rsp) } -type ListOrganizationSchemasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Results []SchemaPath `json:"results"` +func (c *ClientWithResponses) CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { + rsp, err := c.CreateCampaign(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - JSONDefault *Error + return ParseCreateCampaignResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListOrganizationSchemasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteCampaignWithResponse request returning *DeleteCampaignResponse +func (c *ClientWithResponses) DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) { + rsp, err := c.DeleteCampaign(ctx, projectID, campaignID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteCampaignResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationSchemasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetCampaignWithResponse request returning *GetCampaignResponse +func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) { + rsp, err := c.GetCampaign(ctx, projectID, campaignID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetCampaignResponse(rsp) } -type ListOrganizationMemberSchemasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Results []SchemaPath `json:"results"` +// UpdateCampaignWithBodyWithResponse request with arbitrary body returning *UpdateCampaignResponse +func (c *ClientWithResponses) UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { + rsp, err := c.UpdateCampaignWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - JSONDefault *Error + return ParseUpdateCampaignResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListOrganizationMemberSchemasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { + rsp, err := c.UpdateCampaign(ctx, projectID, campaignID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateCampaignResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationMemberSchemasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DuplicateCampaignWithResponse request returning *DuplicateCampaignResponse +func (c *ClientWithResponses) DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) { + rsp, err := c.DuplicateCampaign(ctx, projectID, campaignID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDuplicateCampaignResponse(rsp) } -type DeleteOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// CreateTemplateWithBodyWithResponse request with arbitrary body returning *CreateTemplateResponse +func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { + rsp, err := c.CreateTemplateWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTemplateResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { + rsp, err := c.CreateTemplate(ctx, projectID, campaignID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateTemplateResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteTemplateWithResponse request returning *DeleteTemplateResponse +func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) { + rsp, err := c.DeleteTemplate(ctx, projectID, campaignID, templateID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteTemplateResponse(rsp) } -type GetOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization - JSONDefault *Error +// GetTemplateWithResponse request returning *GetTemplateResponse +func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) { + rsp, err := c.GetTemplate(ctx, projectID, campaignID, templateID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTemplateResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateTemplateWithBodyWithResponse request with arbitrary body returning *UpdateTemplateResponse +func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { + rsp, err := c.UpdateTemplateWithBody(ctx, projectID, campaignID, templateID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateTemplateResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { + rsp, err := c.UpdateTemplate(ctx, projectID, campaignID, templateID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateTemplateResponse(rsp) } -type UpdateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization - JSONDefault *Error +// GetCampaignUsersWithResponse request returning *GetCampaignUsersResponse +func (c *ClientWithResponses) GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) { + rsp, err := c.GetCampaignUsers(ctx, projectID, campaignID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCampaignUsersResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListDocumentsWithResponse request returning *ListDocumentsResponse +func (c *ClientWithResponses) ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) { + rsp, err := c.ListDocuments(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListDocumentsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UploadDocumentsWithBodyWithResponse request with arbitrary body returning *UploadDocumentsResponse +func (c *ClientWithResponses) UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) { + rsp, err := c.UploadDocumentsWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUploadDocumentsResponse(rsp) } -type GetOrganizationEventsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationEventList - JSONDefault *Error +// DeleteDocumentWithResponse request returning *DeleteDocumentResponse +func (c *ClientWithResponses) DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) { + rsp, err := c.DeleteDocument(ctx, projectID, documentID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteDocumentResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrganizationEventsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetDocumentWithResponse request returning *GetDocumentResponse +func (c *ClientWithResponses) GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) { + rsp, err := c.GetDocument(ctx, projectID, documentID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetDocumentResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationEventsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetDocumentMetadataWithResponse request returning *GetDocumentMetadataResponse +func (c *ClientWithResponses) GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) { + rsp, err := c.GetDocumentMetadata(ctx, projectID, documentID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetDocumentMetadataResponse(rsp) } -type ListOrganizationMembersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationMemberList - JSONDefault *Error +// ListEventsWithResponse request returning *ListEventsResponse +func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) { + rsp, err := c.ListEvents(ctx, projectID, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEventsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListOrganizationMembersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListJourneysWithResponse request returning *ListJourneysResponse +func (c *ClientWithResponses) ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) { + rsp, err := c.ListJourneys(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListJourneysResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationMembersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateJourneyWithBodyWithResponse request with arbitrary body returning *CreateJourneyResponse +func (c *ClientWithResponses) CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { + rsp, err := c.CreateJourneyWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateJourneyResponse(rsp) } -type AddOrganizationMemberResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +func (c *ClientWithResponses) CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { + rsp, err := c.CreateJourney(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateJourneyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r AddOrganizationMemberResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteJourneyWithResponse request returning *DeleteJourneyResponse +func (c *ClientWithResponses) DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) { + rsp, err := c.DeleteJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteJourneyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r AddOrganizationMemberResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetJourneyWithResponse request returning *GetJourneyResponse +func (c *ClientWithResponses) GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) { + rsp, err := c.GetJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetJourneyResponse(rsp) } -type RemoveOrganizationMemberResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// UpdateJourneyWithBodyWithResponse request with arbitrary body returning *UpdateJourneyResponse +func (c *ClientWithResponses) UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { + rsp, err := c.UpdateJourneyWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateJourneyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r RemoveOrganizationMemberResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { + rsp, err := c.UpdateJourney(ctx, projectID, journeyID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateJourneyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r RemoveOrganizationMemberResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DuplicateJourneyWithResponse request returning *DuplicateJourneyResponse +func (c *ClientWithResponses) DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) { + rsp, err := c.DuplicateJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDuplicateJourneyResponse(rsp) } -type ListUserEventSchemasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *EventListResponse - JSONDefault *Error +// ListJourneyEntrancesWithResponse request returning *ListJourneyEntrancesResponse +func (c *ClientWithResponses) ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) { + rsp, err := c.ListJourneyEntrances(ctx, projectID, journeyID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListJourneyEntrancesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListUserEventSchemasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PublishJourneyWithResponse request returning *PublishJourneyResponse +func (c *ClientWithResponses) PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) { + rsp, err := c.PublishJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePublishJourneyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListUserEventSchemasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetJourneyStepsWithResponse request returning *GetJourneyStepsResponse +func (c *ClientWithResponses) GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) { + rsp, err := c.GetJourneySteps(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return 0 -} - -type ListUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserList - JSONDefault *Error + return ParseGetJourneyStepsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// SetJourneyStepsWithBodyWithResponse request with arbitrary body returning *SetJourneyStepsResponse +func (c *ClientWithResponses) SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { + rsp, err := c.SetJourneyStepsWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseSetJourneyStepsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { + rsp, err := c.SetJourneySteps(ctx, projectID, journeyID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseSetJourneyStepsResponse(rsp) } -type IdentifyUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSONDefault *Error +// ListJourneyStepUsersWithResponse request returning *ListJourneyStepUsersResponse +func (c *ClientWithResponses) ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) { + rsp, err := c.ListJourneyStepUsers(ctx, projectID, journeyID, stepID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListJourneyStepUsersResponse(rsp) } -// Status returns HTTPResponse.Status -func (r IdentifyUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// RemoveUserFromJourneyStepWithResponse request returning *RemoveUserFromJourneyStepResponse +func (c *ClientWithResponses) RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) { + rsp, err := c.RemoveUserFromJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseRemoveUserFromJourneyStepResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r IdentifyUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// SkipJourneyStepDelayWithResponse request returning *SkipJourneyStepDelayResponse +func (c *ClientWithResponses) SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) { + rsp, err := c.SkipJourneyStepDelay(ctx, projectID, journeyID, stepID, userID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseSkipJourneyStepDelayResponse(rsp) } -type ImportUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// TriggerUserToJourneyStepWithResponse request returning *TriggerUserToJourneyStepResponse +func (c *ClientWithResponses) TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) { + rsp, err := c.TriggerUserToJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) + if err != nil { + return nil, err + } + return ParseTriggerUserToJourneyStepResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ImportUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// RemoveUserFromJourneyWithResponse request returning *RemoveUserFromJourneyResponse +func (c *ClientWithResponses) RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) { + rsp, err := c.RemoveUserFromJourney(ctx, projectID, journeyID, userID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseRemoveUserFromJourneyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ImportUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// VersionJourneyWithResponse request returning *VersionJourneyResponse +func (c *ClientWithResponses) VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) { + rsp, err := c.VersionJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseVersionJourneyResponse(rsp) } -type ListUserSchemasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Results []SchemaPath `json:"results"` +// ListApiKeysWithResponse request returning *ListApiKeysResponse +func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) { + rsp, err := c.ListApiKeys(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - JSONDefault *Error + return ParseListApiKeysResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListUserSchemasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse +func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKeyWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateApiKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListUserSchemasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKey(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateApiKeyResponse(rsp) } -type DeleteUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse +func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { + rsp, err := c.DeleteApiKey(ctx, projectID, keyID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteApiKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetApiKeyWithResponse request returning *GetApiKeyResponse +func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) { + rsp, err := c.GetApiKey(ctx, projectID, keyID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetApiKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse +func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKeyWithBody(ctx, projectID, keyID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateApiKeyResponse(rsp) } -type GetUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSONDefault *Error +func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKey(ctx, projectID, keyID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateApiKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListListsWithResponse request returning *ListListsResponse +func (c *ClientWithResponses) ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) { + rsp, err := c.ListLists(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListListsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateListWithBodyWithResponse request with arbitrary body returning *CreateListResponse +func (c *ClientWithResponses) CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { + rsp, err := c.CreateListWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateListResponse(rsp) } -type UpdateUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSONDefault *Error +func (c *ClientWithResponses) CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { + rsp, err := c.CreateList(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateListResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteListWithResponse request returning *DeleteListResponse +func (c *ClientWithResponses) DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) { + rsp, err := c.DeleteList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteListResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetListWithResponse request returning *GetListResponse +func (c *ClientWithResponses) GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) { + rsp, err := c.GetList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetListResponse(rsp) } -type GetUserDevicesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserDeviceList - JSONDefault *Error +// UpdateListWithBodyWithResponse request with arbitrary body returning *UpdateListResponse +func (c *ClientWithResponses) UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { + rsp, err := c.UpdateListWithBody(ctx, projectID, listID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateListResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserDevicesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { + rsp, err := c.UpdateList(ctx, projectID, listID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateListResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserDevicesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DuplicateListWithResponse request returning *DuplicateListResponse +func (c *ClientWithResponses) DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) { + rsp, err := c.DuplicateList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDuplicateListResponse(rsp) } -type DeleteUserDeviceResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// RecountListWithResponse request returning *RecountListResponse +func (c *ClientWithResponses) RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) { + rsp, err := c.RecountList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err + } + return ParseRecountListResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteUserDeviceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetListUsersWithResponse request returning *GetListUsersResponse +func (c *ClientWithResponses) GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) { + rsp, err := c.GetListUsers(ctx, projectID, listID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetListUsersResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserDeviceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ImportListUsersWithBodyWithResponse request with arbitrary body returning *ImportListUsersResponse +func (c *ClientWithResponses) ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) { + rsp, err := c.ImportListUsersWithBody(ctx, projectID, listID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseImportListUsersResponse(rsp) } -type GetUserEventsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserEventList - JSONDefault *Error +// ListLocalesWithResponse request returning *ListLocalesResponse +func (c *ClientWithResponses) ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) { + rsp, err := c.ListLocales(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListLocalesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserEventsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateLocaleWithBodyWithResponse request with arbitrary body returning *CreateLocaleResponse +func (c *ClientWithResponses) CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { + rsp, err := c.CreateLocaleWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateLocaleResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserEventsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { + rsp, err := c.CreateLocale(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateLocaleResponse(rsp) } -type GetUserJourneysResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserJourneyList - JSONDefault *Error +// DeleteLocaleWithResponse request returning *DeleteLocaleResponse +func (c *ClientWithResponses) DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) { + rsp, err := c.DeleteLocale(ctx, projectID, localeID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteLocaleResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserJourneysResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetLocaleWithResponse request returning *GetLocaleResponse +func (c *ClientWithResponses) GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) { + rsp, err := c.GetLocale(ctx, projectID, localeID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetLocaleResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserJourneysResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListProvidersWithResponse request returning *ListProvidersResponse +func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) { + rsp, err := c.ListProviders(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListProvidersResponse(rsp) } -type GetUserOrganizationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Limit int `json:"limit"` - Offset int `json:"offset"` - Results []Organization `json:"results"` - Total int `json:"total"` +// ListAllProvidersWithResponse request returning *ListAllProvidersResponse +func (c *ClientWithResponses) ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) { + rsp, err := c.ListAllProviders(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - JSONDefault *Error + return ParseListAllProvidersResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserOrganizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListProviderMetaWithResponse request returning *ListProviderMetaResponse +func (c *ClientWithResponses) ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) { + rsp, err := c.ListProviderMeta(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListProviderMetaResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserOrganizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateProviderWithBodyWithResponse request with arbitrary body returning *CreateProviderResponse +func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { + rsp, err := c.CreateProviderWithBody(ctx, projectID, group, pType, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateProviderResponse(rsp) } -type GetUserSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserSubscriptionList - JSONDefault *Error +func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { + rsp, err := c.CreateProvider(ctx, projectID, group, pType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateProviderResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUserSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetProviderWithResponse request returning *GetProviderResponse +func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) { + rsp, err := c.GetProvider(ctx, projectID, group, pType, providerID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetProviderResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUserSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateProviderWithBodyWithResponse request with arbitrary body returning *UpdateProviderResponse +func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { + rsp, err := c.UpdateProviderWithBody(ctx, projectID, group, pType, providerID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateProviderResponse(rsp) } -type UpdateUserSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSONDefault *Error +func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { + rsp, err := c.UpdateProvider(ctx, projectID, group, pType, providerID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProviderResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateUserSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteProviderWithResponse request returning *DeleteProviderResponse +func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) { + rsp, err := c.DeleteProvider(ctx, projectID, providerID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteProviderResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListSubscriptionsWithResponse request returning *ListSubscriptionsResponse +func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) { + rsp, err := c.ListSubscriptions(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListSubscriptionsResponse(rsp) } -type ListSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SubscriptionListResponse - JSONDefault *Error +// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse +func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscriptionWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSubscriptionResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscription(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateSubscriptionResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetSubscriptionWithResponse request returning *GetSubscriptionResponse +func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) { + rsp, err := c.GetSubscription(ctx, projectID, subscriptionID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetSubscriptionResponse(rsp) } -type CreateSubscriptionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Subscription - JSONDefault *Error +// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse +func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscriptionWithBody(ctx, projectID, subscriptionID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSubscriptionResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateSubscriptionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscription(ctx, projectID, subscriptionID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateSubscriptionResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSubscriptionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListTagsWithResponse request returning *ListTagsResponse +func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) { + rsp, err := c.ListTags(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListTagsResponse(rsp) } -type GetSubscriptionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Subscription - JSONDefault *Error +// CreateTagWithBodyWithResponse request with arbitrary body returning *CreateTagResponse +func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { + rsp, err := c.CreateTagWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTagResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetSubscriptionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { + rsp, err := c.CreateTag(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateTagResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSubscriptionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteTagWithResponse request returning *DeleteTagResponse +func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) { + rsp, err := c.DeleteTag(ctx, projectID, tagID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteTagResponse(rsp) } -type UpdateSubscriptionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Subscription - JSONDefault *Error +// GetTagWithResponse request returning *GetTagResponse +func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) { + rsp, err := c.GetTag(ctx, projectID, tagID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateSubscriptionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateTagWithBodyWithResponse request with arbitrary body returning *UpdateTagResponse +func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { + rsp, err := c.UpdateTagWithBody(ctx, projectID, tagID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateTagResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSubscriptionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { + rsp, err := c.UpdateTag(ctx, projectID, tagID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateTagResponse(rsp) } -type ListTagsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *TagListResponse - JSONDefault *Error +// ListUsersWithResponse request returning *ListUsersResponse +func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) { + rsp, err := c.ListUsers(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListUsersResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListTagsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// IdentifyUserWithBodyWithResponse request with arbitrary body returning *IdentifyUserResponse +func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { + rsp, err := c.IdentifyUserWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseIdentifyUserResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListTagsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { + rsp, err := c.IdentifyUser(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseIdentifyUserResponse(rsp) } -type CreateTagResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Tag - JSONDefault *Error +// ImportUsersWithBodyWithResponse request with arbitrary body returning *ImportUsersResponse +func (c *ClientWithResponses) ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) { + rsp, err := c.ImportUsersWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseImportUsersResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateTagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListUserSchemasWithResponse request returning *ListUserSchemasResponse +func (c *ClientWithResponses) ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) { + rsp, err := c.ListUserSchemas(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListUserSchemasResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteUserWithResponse request returning *DeleteUserResponse +func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUser(ctx, projectID, userID, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteUserResponse(rsp) } -type DeleteTagResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, projectID, userID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteTagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse +func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUserWithBody(ctx, projectID, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateUserResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUser(ctx, projectID, userID, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateUserResponse(rsp) } -type GetTagResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Tag - JSONDefault *Error +// GetUserEventsWithResponse request returning *GetUserEventsResponse +func (c *ClientWithResponses) GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) { + rsp, err := c.GetUserEvents(ctx, projectID, userID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserEventsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetTagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetUserJourneysWithResponse request returning *GetUserJourneysResponse +func (c *ClientWithResponses) GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) { + rsp, err := c.GetUserJourneys(ctx, projectID, userID, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetUserJourneysResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetUserSubscriptionsWithResponse request returning *GetUserSubscriptionsResponse +func (c *ClientWithResponses) GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) { + rsp, err := c.GetUserSubscriptions(ctx, projectID, userID, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetUserSubscriptionsResponse(rsp) } -type UpdateTagResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Tag - JSONDefault *Error +// UpdateUserSubscriptionsWithBodyWithResponse request with arbitrary body returning *UpdateUserSubscriptionsResponse +func (c *ClientWithResponses) UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { + rsp, err := c.UpdateUserSubscriptionsWithBody(ctx, projectID, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserSubscriptionsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateTagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { + rsp, err := c.UpdateUserSubscriptions(ctx, projectID, userID, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateUserSubscriptionsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateTagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthCallbackWithBodyWithResponse request with arbitrary body returning *AuthCallbackResponse +func (c *ClientWithResponses) AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { + rsp, err := c.AuthCallbackWithBody(ctx, driver, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthCallbackResponse(rsp) } -type ListAdminsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AdminList - JSONDefault *Error +func (c *ClientWithResponses) AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { + rsp, err := c.AuthCallback(ctx, driver, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthCallbackResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListAdminsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetAuthMethodsWithResponse request returning *GetAuthMethodsResponse +func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) { + rsp, err := c.GetAuthMethods(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetAuthMethodsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListAdminsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthWebhookWithResponse request returning *AuthWebhookResponse +func (c *ClientWithResponses) AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) { + rsp, err := c.AuthWebhook(ctx, driver, reqEditors...) + if err != nil { + return nil, err } - return 0 -} - -type CreateAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Admin - JSONDefault *Error + return ParseAuthWebhookResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call +func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &DeleteOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -type DeleteAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r DeleteAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode } - return 0 -} -type GetAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error + return response, nil } -// Status returns HTTPResponse.Status -func (r GetAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call +func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &GetOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -type UpdateAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// Status returns HTTPResponse.Status -func (r UpdateAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode } - return 0 -} -type WhoamiResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error + return response, nil } -// Status returns HTTPResponse.Status -func (r WhoamiResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call +func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r WhoamiResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &UpdateOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -type AuthCallbackResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// Status returns HTTPResponse.Status -func (r AuthCallbackResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// StatusCode returns HTTPResponse.StatusCode -func (r AuthCallbackResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode } - return 0 -} -type GetAuthMethodsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]string - JSONDefault *Error + return response, nil } -// Status returns HTTPResponse.Status -func (r GetAuthMethodsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseListAdminsResponse parses an HTTP response from a ListAdminsWithResponse call +func ParseListAdminsResponse(rsp *http.Response) (*ListAdminsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetAuthMethodsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ListAdminsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -type AuthWebhookResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AdminList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// Status returns HTTPResponse.Status -func (r AuthWebhookResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// StatusCode returns HTTPResponse.StatusCode -func (r AuthWebhookResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode } - return 0 -} -// GetProfileWithResponse request returning *GetProfileResponse -func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) { - rsp, err := c.GetProfile(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetProfileResponse(rsp) + return response, nil } -// ListProjectsWithResponse request returning *ListProjectsResponse -func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) { - rsp, err := c.ListProjects(ctx, params, reqEditors...) +// ParseCreateAdminResponse parses an HTTP response from a CreateAdminWithResponse call +func ParseCreateAdminResponse(rsp *http.Response) (*CreateAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListProjectsResponse(rsp) -} -// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse -func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { - rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &CreateAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateProjectResponse(rsp) -} -func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { - rsp, err := c.CreateProject(ctx, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseCreateProjectResponse(rsp) + + return response, nil } -// DeleteProjectWithResponse request returning *DeleteProjectResponse -func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) { - rsp, err := c.DeleteProject(ctx, projectID, reqEditors...) +// ParseDeleteAdminResponse parses an HTTP response from a DeleteAdminWithResponse call +func ParseDeleteAdminResponse(rsp *http.Response) (*DeleteAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteProjectResponse(rsp) -} -// GetProjectWithResponse request returning *GetProjectResponse -func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { - rsp, err := c.GetProject(ctx, projectID, reqEditors...) - if err != nil { - return nil, err + response := &DeleteAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetProjectResponse(rsp) -} -// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse -func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { - rsp, err := c.UpdateProjectWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateProjectResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { - rsp, err := c.UpdateProject(ctx, projectID, body, reqEditors...) +// ParseGetAdminResponse parses an HTTP response from a GetAdminWithResponse call +func ParseGetAdminResponse(rsp *http.Response) (*GetAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateProjectResponse(rsp) -} -// ListActionsWithResponse request returning *ListActionsResponse -func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error) { - rsp, err := c.ListActions(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + response := &GetAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListActionsResponse(rsp) -} -// CreateActionWithBodyWithResponse request with arbitrary body returning *CreateActionResponse -func (c *ClientWithResponses) CreateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) { - rsp, err := c.CreateActionWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseCreateActionResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) { - rsp, err := c.CreateAction(ctx, projectID, body, reqEditors...) +// ParseUpdateAdminResponse parses an HTTP response from a UpdateAdminWithResponse call +func ParseUpdateAdminResponse(rsp *http.Response) (*UpdateAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateActionResponse(rsp) -} -// ListActionMetaWithResponse request returning *ListActionMetaResponse -func (c *ClientWithResponses) ListActionMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListActionMetaResponse, error) { - rsp, err := c.ListActionMeta(ctx, projectID, reqEditors...) - if err != nil { - return nil, err + response := &UpdateAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListActionMetaResponse(rsp) -} -// GetActionPreviewWithResponse request returning *GetActionPreviewResponse -func (c *ClientWithResponses) GetActionPreviewWithResponse(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*GetActionPreviewResponse, error) { - rsp, err := c.GetActionPreview(ctx, projectID, actionType, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetActionPreviewResponse(rsp) + + return response, nil } -// TestActionWithBodyWithResponse request with arbitrary body returning *TestActionResponse -func (c *ClientWithResponses) TestActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionResponse, error) { - rsp, err := c.TestActionWithBody(ctx, projectID, contentType, body, reqEditors...) +// ParseGetOrganizationIntegrationsResponse parses an HTTP response from a GetOrganizationIntegrationsWithResponse call +func ParseGetOrganizationIntegrationsResponse(rsp *http.Response) (*GetOrganizationIntegrationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseTestActionResponse(rsp) -} -func (c *ClientWithResponses) TestActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionResponse, error) { - rsp, err := c.TestAction(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err + response := &GetOrganizationIntegrationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseTestActionResponse(rsp) -} -// DeleteActionWithResponse request returning *DeleteActionResponse -func (c *ClientWithResponses) DeleteActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteActionResponse, error) { - rsp, err := c.DeleteAction(ctx, projectID, actionID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Provider + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseDeleteActionResponse(rsp) + + return response, nil } -// GetActionWithResponse request returning *GetActionResponse -func (c *ClientWithResponses) GetActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetActionResponse, error) { - rsp, err := c.GetAction(ctx, projectID, actionID, reqEditors...) +// ParseWhoamiResponse parses an HTTP response from a WhoamiWithResponse call +func ParseWhoamiResponse(rsp *http.Response) (*WhoamiResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetActionResponse(rsp) -} -// UpdateActionWithBodyWithResponse request with arbitrary body returning *UpdateActionResponse -func (c *ClientWithResponses) UpdateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) { - rsp, err := c.UpdateActionWithBody(ctx, projectID, actionID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &WhoamiResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateActionResponse(rsp) -} -func (c *ClientWithResponses) UpdateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) { - rsp, err := c.UpdateAction(ctx, projectID, actionID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateActionResponse(rsp) + + return response, nil } -// ListActionSchemasWithResponse request returning *ListActionSchemasResponse -func (c *ClientWithResponses) ListActionSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*ListActionSchemasResponse, error) { - rsp, err := c.ListActionSchemas(ctx, projectID, actionID, functionID, reqEditors...) +// ParseGetProfileResponse parses an HTTP response from a GetProfileWithResponse call +func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListActionSchemasResponse(rsp) -} -// TestActionFunctionWithBodyWithResponse request with arbitrary body returning *TestActionFunctionResponse -func (c *ClientWithResponses) TestActionFunctionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) { - rsp, err := c.TestActionFunctionWithBody(ctx, projectID, actionID, functionID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetProfileResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseTestActionFunctionResponse(rsp) -} -func (c *ClientWithResponses) TestActionFunctionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) { - rsp, err := c.TestActionFunction(ctx, projectID, actionID, functionID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseTestActionFunctionResponse(rsp) + + return response, nil } -// ListProjectAdminsWithResponse request returning *ListProjectAdminsResponse -func (c *ClientWithResponses) ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) { - rsp, err := c.ListProjectAdmins(ctx, projectID, params, reqEditors...) +// ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call +func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListProjectAdminsResponse(rsp) -} -// DeleteProjectAdminWithResponse request returning *DeleteProjectAdminResponse -func (c *ClientWithResponses) DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) { - rsp, err := c.DeleteProjectAdmin(ctx, projectID, adminID, reqEditors...) - if err != nil { - return nil, err + response := &ListProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteProjectAdminResponse(rsp) + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil } -// GetProjectAdminWithResponse request returning *GetProjectAdminResponse -func (c *ClientWithResponses) GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) { - rsp, err := c.GetProjectAdmin(ctx, projectID, adminID, reqEditors...) +// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call +func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetProjectAdminResponse(rsp) -} -// UpdateProjectAdminWithBodyWithResponse request with arbitrary body returning *UpdateProjectAdminResponse -func (c *ClientWithResponses) UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { - rsp, err := c.UpdateProjectAdminWithBody(ctx, projectID, adminID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &CreateProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateProjectAdminResponse(rsp) -} -func (c *ClientWithResponses) UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { - rsp, err := c.UpdateProjectAdmin(ctx, projectID, adminID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateProjectAdminResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Project + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest -// ListCampaignsWithResponse request returning *ListCampaignsResponse -func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) { - rsp, err := c.ListCampaigns(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListCampaignsResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// CreateCampaignWithBodyWithResponse request with arbitrary body returning *CreateCampaignResponse -func (c *ClientWithResponses) CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { - rsp, err := c.CreateCampaignWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err } - return ParseCreateCampaignResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { - rsp, err := c.CreateCampaign(ctx, projectID, body, reqEditors...) +// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call +func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateCampaignResponse(rsp) -} -// DeleteCampaignWithResponse request returning *DeleteCampaignResponse -func (c *ClientWithResponses) DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) { - rsp, err := c.DeleteCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err + response := &GetProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteCampaignResponse(rsp) -} -// GetCampaignWithResponse request returning *GetCampaignResponse -func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) { - rsp, err := c.GetCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Project + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetCampaignResponse(rsp) + + return response, nil } -// UpdateCampaignWithBodyWithResponse request with arbitrary body returning *UpdateCampaignResponse -func (c *ClientWithResponses) UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { - rsp, err := c.UpdateCampaignWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) +// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call +func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateCampaignResponse(rsp) -} -func (c *ClientWithResponses) UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { - rsp, err := c.UpdateCampaign(ctx, projectID, campaignID, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateCampaignResponse(rsp) -} -// DuplicateCampaignWithResponse request returning *DuplicateCampaignResponse -func (c *ClientWithResponses) DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) { - rsp, err := c.DuplicateCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Project + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseDuplicateCampaignResponse(rsp) + + return response, nil } -// CreateTemplateWithBodyWithResponse request with arbitrary body returning *CreateTemplateResponse -func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { - rsp, err := c.CreateTemplateWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) +// ParseListProjectAdminsResponse parses an HTTP response from a ListProjectAdminsWithResponse call +func ParseListProjectAdminsResponse(rsp *http.Response) (*ListProjectAdminsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateTemplateResponse(rsp) -} -func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { - rsp, err := c.CreateTemplate(ctx, projectID, campaignID, body, reqEditors...) - if err != nil { - return nil, err + response := &ListProjectAdminsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateTemplateResponse(rsp) -} -// DeleteTemplateWithResponse request returning *DeleteTemplateResponse -func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) { - rsp, err := c.DeleteTemplate(ctx, projectID, campaignID, templateID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdminList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseDeleteTemplateResponse(rsp) + + return response, nil } -// GetTemplateWithResponse request returning *GetTemplateResponse -func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) { - rsp, err := c.GetTemplate(ctx, projectID, campaignID, templateID, reqEditors...) +// ParseDeleteProjectAdminResponse parses an HTTP response from a DeleteProjectAdminWithResponse call +func ParseDeleteProjectAdminResponse(rsp *http.Response) (*DeleteProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetTemplateResponse(rsp) -} -// UpdateTemplateWithBodyWithResponse request with arbitrary body returning *UpdateTemplateResponse -func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { - rsp, err := c.UpdateTemplateWithBody(ctx, projectID, campaignID, templateID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateTemplateResponse(rsp) -} -func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { - rsp, err := c.UpdateTemplate(ctx, projectID, campaignID, templateID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateTemplateResponse(rsp) + + return response, nil } -// GetCampaignUsersWithResponse request returning *GetCampaignUsersResponse -func (c *ClientWithResponses) GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) { - rsp, err := c.GetCampaignUsers(ctx, projectID, campaignID, params, reqEditors...) +// ParseGetProjectAdminResponse parses an HTTP response from a GetProjectAdminWithResponse call +func ParseGetProjectAdminResponse(rsp *http.Response) (*GetProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetCampaignUsersResponse(rsp) -} -// ListDocumentsWithResponse request returning *ListDocumentsResponse -func (c *ClientWithResponses) ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) { - rsp, err := c.ListDocuments(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + response := &GetProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListDocumentsResponse(rsp) -} -// UploadDocumentsWithBodyWithResponse request with arbitrary body returning *UploadDocumentsResponse -func (c *ClientWithResponses) UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) { - rsp, err := c.UploadDocumentsWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdmin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUploadDocumentsResponse(rsp) + + return response, nil } -// DeleteDocumentWithResponse request returning *DeleteDocumentResponse -func (c *ClientWithResponses) DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) { - rsp, err := c.DeleteDocument(ctx, projectID, documentID, reqEditors...) +// ParseUpdateProjectAdminResponse parses an HTTP response from a UpdateProjectAdminWithResponse call +func ParseUpdateProjectAdminResponse(rsp *http.Response) (*UpdateProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteDocumentResponse(rsp) -} -// GetDocumentWithResponse request returning *GetDocumentResponse -func (c *ClientWithResponses) GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) { - rsp, err := c.GetDocument(ctx, projectID, documentID, reqEditors...) - if err != nil { - return nil, err + response := &UpdateProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetDocumentResponse(rsp) -} -// GetDocumentMetadataWithResponse request returning *GetDocumentMetadataResponse -func (c *ClientWithResponses) GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) { - rsp, err := c.GetDocumentMetadata(ctx, projectID, documentID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdmin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetDocumentMetadataResponse(rsp) + + return response, nil } -// ListJourneysWithResponse request returning *ListJourneysResponse -func (c *ClientWithResponses) ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) { - rsp, err := c.ListJourneys(ctx, projectID, params, reqEditors...) +// ParseListCampaignsResponse parses an HTTP response from a ListCampaignsWithResponse call +func ParseListCampaignsResponse(rsp *http.Response) (*ListCampaignsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListJourneysResponse(rsp) -} -// CreateJourneyWithBodyWithResponse request with arbitrary body returning *CreateJourneyResponse -func (c *ClientWithResponses) CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { - rsp, err := c.CreateJourneyWithBody(ctx, projectID, params, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &ListCampaignsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateJourneyResponse(rsp) -} -func (c *ClientWithResponses) CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { - rsp, err := c.CreateJourney(ctx, projectID, params, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CampaignListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseCreateJourneyResponse(rsp) + + return response, nil } -// DeleteJourneyWithResponse request returning *DeleteJourneyResponse -func (c *ClientWithResponses) DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) { - rsp, err := c.DeleteJourney(ctx, projectID, journeyID, reqEditors...) +// ParseCreateCampaignResponse parses an HTTP response from a CreateCampaignWithResponse call +func ParseCreateCampaignResponse(rsp *http.Response) (*CreateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteJourneyResponse(rsp) -} -// GetJourneyWithResponse request returning *GetJourneyResponse -func (c *ClientWithResponses) GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) { - rsp, err := c.GetJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err + response := &CreateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetJourneyResponse(rsp) -} -// UpdateJourneyWithBodyWithResponse request with arbitrary body returning *UpdateJourneyResponse -func (c *ClientWithResponses) UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { - rsp, err := c.UpdateJourneyWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateJourneyResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { - rsp, err := c.UpdateJourney(ctx, projectID, journeyID, body, reqEditors...) +// ParseDeleteCampaignResponse parses an HTTP response from a DeleteCampaignWithResponse call +func ParseDeleteCampaignResponse(rsp *http.Response) (*DeleteCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateJourneyResponse(rsp) -} -// DuplicateJourneyWithResponse request returning *DuplicateJourneyResponse -func (c *ClientWithResponses) DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) { - rsp, err := c.DuplicateJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err + response := &DeleteCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDuplicateJourneyResponse(rsp) -} -// PublishJourneyWithResponse request returning *PublishJourneyResponse -func (c *ClientWithResponses) PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) { - rsp, err := c.PublishJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParsePublishJourneyResponse(rsp) + + return response, nil } -// GetJourneyStepsWithResponse request returning *GetJourneyStepsResponse -func (c *ClientWithResponses) GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) { - rsp, err := c.GetJourneySteps(ctx, projectID, journeyID, reqEditors...) +// ParseGetCampaignResponse parses an HTTP response from a GetCampaignWithResponse call +func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetJourneyStepsResponse(rsp) -} -// SetJourneyStepsWithBodyWithResponse request with arbitrary body returning *SetJourneyStepsResponse -func (c *ClientWithResponses) SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { - rsp, err := c.SetJourneyStepsWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseSetJourneyStepsResponse(rsp) -} -func (c *ClientWithResponses) SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { - rsp, err := c.SetJourneySteps(ctx, projectID, journeyID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data Campaign `json:"data"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseSetJourneyStepsResponse(rsp) + + return response, nil } -// StreamUserJourneyStepsWithResponse request returning *StreamUserJourneyStepsResponse -func (c *ClientWithResponses) StreamUserJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamUserJourneyStepsResponse, error) { - rsp, err := c.StreamUserJourneySteps(ctx, projectID, journeyID, userID, reqEditors...) +// ParseUpdateCampaignResponse parses an HTTP response from a UpdateCampaignWithResponse call +func ParseUpdateCampaignResponse(rsp *http.Response) (*UpdateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseStreamUserJourneyStepsResponse(rsp) -} -// TriggerUserWithBodyWithResponse request with arbitrary body returning *TriggerUserResponse -func (c *ClientWithResponses) TriggerUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) { - rsp, err := c.TriggerUserWithBody(ctx, projectID, journeyID, userID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseTriggerUserResponse(rsp) -} -func (c *ClientWithResponses) TriggerUserWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) { - rsp, err := c.TriggerUser(ctx, projectID, journeyID, userID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseTriggerUserResponse(rsp) + + return response, nil } -// AdvanceUserStepWithBodyWithResponse request with arbitrary body returning *AdvanceUserStepResponse -func (c *ClientWithResponses) AdvanceUserStepWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) { - rsp, err := c.AdvanceUserStepWithBody(ctx, projectID, journeyID, userID, contentType, body, reqEditors...) +// ParseDuplicateCampaignResponse parses an HTTP response from a DuplicateCampaignWithResponse call +func ParseDuplicateCampaignResponse(rsp *http.Response) (*DuplicateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseAdvanceUserStepResponse(rsp) -} -func (c *ClientWithResponses) AdvanceUserStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) { - rsp, err := c.AdvanceUserStep(ctx, projectID, journeyID, userID, body, reqEditors...) - if err != nil { - return nil, err + response := &DuplicateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseAdvanceUserStepResponse(rsp) -} -// GetUserJourneyStateWithResponse request returning *GetUserJourneyStateResponse -func (c *ClientWithResponses) GetUserJourneyStateWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserJourneyStateResponse, error) { - rsp, err := c.GetUserJourneyState(ctx, projectID, journeyID, userID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetUserJourneyStateResponse(rsp) + + return response, nil } -// VersionJourneyWithResponse request returning *VersionJourneyResponse -func (c *ClientWithResponses) VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) { - rsp, err := c.VersionJourney(ctx, projectID, journeyID, reqEditors...) +// ParseCreateTemplateResponse parses an HTTP response from a CreateTemplateWithResponse call +func ParseCreateTemplateResponse(rsp *http.Response) (*CreateTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseVersionJourneyResponse(rsp) -} -// ListApiKeysWithResponse request returning *ListApiKeysResponse -func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) { - rsp, err := c.ListApiKeys(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + response := &CreateTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListApiKeysResponse(rsp) -} -// CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse -func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKeyWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Template + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseCreateApiKeyResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKey(ctx, projectID, body, reqEditors...) +// ParseDeleteTemplateResponse parses an HTTP response from a DeleteTemplateWithResponse call +func ParseDeleteTemplateResponse(rsp *http.Response) (*DeleteTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateApiKeyResponse(rsp) -} -// DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse -func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { - rsp, err := c.DeleteApiKey(ctx, projectID, keyID, reqEditors...) - if err != nil { - return nil, err + response := &DeleteTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteApiKeyResponse(rsp) -} -// GetApiKeyWithResponse request returning *GetApiKeyResponse -func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) { - rsp, err := c.GetApiKey(ctx, projectID, keyID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetApiKeyResponse(rsp) + + return response, nil } -// UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse -func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKeyWithBody(ctx, projectID, keyID, contentType, body, reqEditors...) +// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call +func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateApiKeyResponse(rsp) -} -func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKey(ctx, projectID, keyID, body, reqEditors...) - if err != nil { - return nil, err + response := &GetTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateApiKeyResponse(rsp) -} -// ListListsWithResponse request returning *ListListsResponse -func (c *ClientWithResponses) ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) { - rsp, err := c.ListLists(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data Template `json:"data"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseListListsResponse(rsp) + + return response, nil } -// CreateListWithBodyWithResponse request with arbitrary body returning *CreateListResponse -func (c *ClientWithResponses) CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { - rsp, err := c.CreateListWithBody(ctx, projectID, contentType, body, reqEditors...) +// ParseUpdateTemplateResponse parses an HTTP response from a UpdateTemplateWithResponse call +func ParseUpdateTemplateResponse(rsp *http.Response) (*UpdateTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateListResponse(rsp) -} -func (c *ClientWithResponses) CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { - rsp, err := c.CreateList(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateListResponse(rsp) -} -// DeleteListWithResponse request returning *DeleteListResponse -func (c *ClientWithResponses) DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) { - rsp, err := c.DeleteList(ctx, projectID, listID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Template + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseDeleteListResponse(rsp) + + return response, nil } -// GetListWithResponse request returning *GetListResponse -func (c *ClientWithResponses) GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) { - rsp, err := c.GetList(ctx, projectID, listID, reqEditors...) +// ParseGetCampaignUsersResponse parses an HTTP response from a GetCampaignUsersWithResponse call +func ParseGetCampaignUsersResponse(rsp *http.Response) (*GetCampaignUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetListResponse(rsp) -} -// UpdateListWithBodyWithResponse request with arbitrary body returning *UpdateListResponse -func (c *ClientWithResponses) UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { - rsp, err := c.UpdateListWithBody(ctx, projectID, listID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetCampaignUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateListResponse(rsp) -} -func (c *ClientWithResponses) UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { - rsp, err := c.UpdateList(ctx, projectID, listID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data []CampaignUser `json:"data"` + Limit int `json:"limit"` + Offset int `json:"offset"` + Total int `json:"total"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateListResponse(rsp) + + return response, nil } -// DuplicateListWithResponse request returning *DuplicateListResponse -func (c *ClientWithResponses) DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) { - rsp, err := c.DuplicateList(ctx, projectID, listID, reqEditors...) +// ParseListDocumentsResponse parses an HTTP response from a ListDocumentsWithResponse call +func ParseListDocumentsResponse(rsp *http.Response) (*ListDocumentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDuplicateListResponse(rsp) -} -// GetListUsersWithResponse request returning *GetListUsersResponse -func (c *ClientWithResponses) GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) { - rsp, err := c.GetListUsers(ctx, projectID, listID, params, reqEditors...) - if err != nil { - return nil, err + response := &ListDocumentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetListUsersResponse(rsp) -} -// PreviewListUsersWithResponse request returning *PreviewListUsersResponse -func (c *ClientWithResponses) PreviewListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*PreviewListUsersResponse, error) { - rsp, err := c.PreviewListUsers(ctx, projectID, listID, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DocumentListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParsePreviewListUsersResponse(rsp) + + return response, nil } -// ImportListUsersWithBodyWithResponse request with arbitrary body returning *ImportListUsersResponse -func (c *ClientWithResponses) ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) { - rsp, err := c.ImportListUsersWithBody(ctx, projectID, listID, contentType, body, reqEditors...) +// ParseUploadDocumentsResponse parses an HTTP response from a UploadDocumentsWithResponse call +func ParseUploadDocumentsResponse(rsp *http.Response) (*UploadDocumentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseImportListUsersResponse(rsp) -} -// ListLocalesWithResponse request returning *ListLocalesResponse -func (c *ClientWithResponses) ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) { - rsp, err := c.ListLocales(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + response := &UploadDocumentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListLocalesResponse(rsp) -} -// CreateLocaleWithBodyWithResponse request with arbitrary body returning *CreateLocaleResponse -func (c *ClientWithResponses) CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { - rsp, err := c.CreateLocaleWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateLocaleResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest struct { + // Documents UUIDs of the uploaded documents + Documents []openapi_types.UUID `json:"documents"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest -func (c *ClientWithResponses) CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { - rsp, err := c.CreateLocale(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateLocaleResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// DeleteLocaleWithResponse request returning *DeleteLocaleResponse -func (c *ClientWithResponses) DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) { - rsp, err := c.DeleteLocale(ctx, projectID, localeID, reqEditors...) - if err != nil { - return nil, err } - return ParseDeleteLocaleResponse(rsp) -} -// GetLocaleWithResponse request returning *GetLocaleResponse -func (c *ClientWithResponses) GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) { - rsp, err := c.GetLocale(ctx, projectID, localeID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetLocaleResponse(rsp) + return response, nil } -// ListProvidersWithResponse request returning *ListProvidersResponse -func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) { - rsp, err := c.ListProviders(ctx, projectID, params, reqEditors...) +// ParseDeleteDocumentResponse parses an HTTP response from a DeleteDocumentWithResponse call +func ParseDeleteDocumentResponse(rsp *http.Response) (*DeleteDocumentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListProvidersResponse(rsp) -} -// ListAllProvidersWithResponse request returning *ListAllProvidersResponse -func (c *ClientWithResponses) ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) { - rsp, err := c.ListAllProviders(ctx, projectID, reqEditors...) - if err != nil { - return nil, err + response := &DeleteDocumentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListAllProvidersResponse(rsp) -} -// ListProviderMetaWithResponse request returning *ListProviderMetaResponse -func (c *ClientWithResponses) ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) { - rsp, err := c.ListProviderMeta(ctx, projectID, reqEditors...) - if err != nil { - return nil, err - } - return ParseListProviderMetaResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// CreateProviderWithBodyWithResponse request with arbitrary body returning *CreateProviderResponse -func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { - rsp, err := c.CreateProviderWithBody(ctx, projectID, group, pType, contentType, body, reqEditors...) - if err != nil { - return nil, err } - return ParseCreateProviderResponse(rsp) -} -func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { - rsp, err := c.CreateProvider(ctx, projectID, group, pType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateProviderResponse(rsp) + return response, nil } -// GetProviderWithResponse request returning *GetProviderResponse -func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) { - rsp, err := c.GetProvider(ctx, projectID, group, pType, providerID, reqEditors...) +// ParseGetDocumentResponse parses an HTTP response from a GetDocumentWithResponse call +func ParseGetDocumentResponse(rsp *http.Response) (*GetDocumentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetProviderResponse(rsp) -} -// UpdateProviderWithBodyWithResponse request with arbitrary body returning *UpdateProviderResponse -func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { - rsp, err := c.UpdateProviderWithBody(ctx, projectID, group, pType, providerID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetDocumentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateProviderResponse(rsp) -} -func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { - rsp, err := c.UpdateProvider(ctx, projectID, group, pType, providerID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateProviderResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// DeleteProviderWithResponse request returning *DeleteProviderResponse -func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) { - rsp, err := c.DeleteProvider(ctx, projectID, providerID, reqEditors...) - if err != nil { - return nil, err } - return ParseDeleteProviderResponse(rsp) -} -// ListOrganizationEventSchemasWithResponse request returning *ListOrganizationEventSchemasResponse -func (c *ClientWithResponses) ListOrganizationEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationEventSchemasResponse, error) { - rsp, err := c.ListOrganizationEventSchemas(ctx, projectID, reqEditors...) - if err != nil { - return nil, err - } - return ParseListOrganizationEventSchemasResponse(rsp) + return response, nil } -// ListOrganizationsWithResponse request returning *ListOrganizationsResponse -func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error) { - rsp, err := c.ListOrganizations(ctx, projectID, params, reqEditors...) +// ParseGetDocumentMetadataResponse parses an HTTP response from a GetDocumentMetadataWithResponse call +func ParseGetDocumentMetadataResponse(rsp *http.Response) (*GetDocumentMetadataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListOrganizationsResponse(rsp) -} -// UpsertOrganizationWithBodyWithResponse request with arbitrary body returning *UpsertOrganizationResponse -func (c *ClientWithResponses) UpsertOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) { - rsp, err := c.UpsertOrganizationWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetDocumentMetadataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpsertOrganizationResponse(rsp) -} -func (c *ClientWithResponses) UpsertOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) { - rsp, err := c.UpsertOrganization(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpsertOrganizationResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Document + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// ListOrganizationSchemasWithResponse request returning *ListOrganizationSchemasResponse -func (c *ClientWithResponses) ListOrganizationSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationSchemasResponse, error) { - rsp, err := c.ListOrganizationSchemas(ctx, projectID, reqEditors...) - if err != nil { - return nil, err - } - return ParseListOrganizationSchemasResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// ListOrganizationMemberSchemasWithResponse request returning *ListOrganizationMemberSchemasResponse -func (c *ClientWithResponses) ListOrganizationMemberSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationMemberSchemasResponse, error) { - rsp, err := c.ListOrganizationMemberSchemas(ctx, projectID, reqEditors...) - if err != nil { - return nil, err } - return ParseListOrganizationMemberSchemasResponse(rsp) -} -// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse -func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) { - rsp, err := c.DeleteOrganization(ctx, projectID, organizationID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteOrganizationResponse(rsp) + return response, nil } -// GetOrganizationWithResponse request returning *GetOrganizationResponse -func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) { - rsp, err := c.GetOrganization(ctx, projectID, organizationID, reqEditors...) +// ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call +func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrganizationResponse(rsp) -} -// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse -func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganizationWithBody(ctx, projectID, organizationID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &ListEventsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateOrganizationResponse(rsp) -} -func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganization(ctx, projectID, organizationID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateOrganizationResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EventListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest -// GetOrganizationEventsWithResponse request returning *GetOrganizationEventsResponse -func (c *ClientWithResponses) GetOrganizationEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*GetOrganizationEventsResponse, error) { - rsp, err := c.GetOrganizationEvents(ctx, projectID, organizationID, params, reqEditors...) - if err != nil { - return nil, err } - return ParseGetOrganizationEventsResponse(rsp) + + return response, nil } -// ListOrganizationMembersWithResponse request returning *ListOrganizationMembersResponse -func (c *ClientWithResponses) ListOrganizationMembersWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error) { - rsp, err := c.ListOrganizationMembers(ctx, projectID, organizationID, params, reqEditors...) +// ParseListJourneysResponse parses an HTTP response from a ListJourneysWithResponse call +func ParseListJourneysResponse(rsp *http.Response) (*ListJourneysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListOrganizationMembersResponse(rsp) -} -// AddOrganizationMemberWithBodyWithResponse request with arbitrary body returning *AddOrganizationMemberResponse -func (c *ClientWithResponses) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) { - rsp, err := c.AddOrganizationMemberWithBody(ctx, projectID, organizationID, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &ListJourneysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseAddOrganizationMemberResponse(rsp) -} -func (c *ClientWithResponses) AddOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) { - rsp, err := c.AddOrganizationMember(ctx, projectID, organizationID, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseAddOrganizationMemberResponse(rsp) + + return response, nil } -// RemoveOrganizationMemberWithResponse request returning *RemoveOrganizationMemberResponse -func (c *ClientWithResponses) RemoveOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveOrganizationMemberResponse, error) { - rsp, err := c.RemoveOrganizationMember(ctx, projectID, organizationID, userID, reqEditors...) +// ParseCreateJourneyResponse parses an HTTP response from a CreateJourneyWithResponse call +func ParseCreateJourneyResponse(rsp *http.Response) (*CreateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseRemoveOrganizationMemberResponse(rsp) -} -// ListUserEventSchemasWithResponse request returning *ListUserEventSchemasResponse -func (c *ClientWithResponses) ListUserEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserEventSchemasResponse, error) { - rsp, err := c.ListUserEventSchemas(ctx, projectID, reqEditors...) - if err != nil { - return nil, err + response := &CreateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListUserEventSchemasResponse(rsp) -} -// ListUsersWithResponse request returning *ListUsersResponse -func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) { - rsp, err := c.ListUsers(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseListUsersResponse(rsp) + + return response, nil } -// IdentifyUserWithBodyWithResponse request with arbitrary body returning *IdentifyUserResponse -func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { - rsp, err := c.IdentifyUserWithBody(ctx, projectID, contentType, body, reqEditors...) +// ParseDeleteJourneyResponse parses an HTTP response from a DeleteJourneyWithResponse call +func ParseDeleteJourneyResponse(rsp *http.Response) (*DeleteJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseIdentifyUserResponse(rsp) -} -func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { - rsp, err := c.IdentifyUser(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseIdentifyUserResponse(rsp) -} -// ImportUsersWithBodyWithResponse request with arbitrary body returning *ImportUsersResponse -func (c *ClientWithResponses) ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) { - rsp, err := c.ImportUsersWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseImportUsersResponse(rsp) + + return response, nil } -// ListUserSchemasWithResponse request returning *ListUserSchemasResponse -func (c *ClientWithResponses) ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) { - rsp, err := c.ListUserSchemas(ctx, projectID, reqEditors...) +// ParseGetJourneyResponse parses an HTTP response from a GetJourneyWithResponse call +func ParseGetJourneyResponse(rsp *http.Response) (*GetJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListUserSchemasResponse(rsp) -} -// DeleteUserWithResponse request returning *DeleteUserResponse -func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { - rsp, err := c.DeleteUser(ctx, projectID, userID, reqEditors...) - if err != nil { - return nil, err + response := &GetJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteUserResponse(rsp) -} -// GetUserWithResponse request returning *GetUserResponse -func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { - rsp, err := c.GetUser(ctx, projectID, userID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetUserResponse(rsp) + + return response, nil } -// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse -func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { - rsp, err := c.UpdateUserWithBody(ctx, projectID, userID, contentType, body, reqEditors...) +// ParseUpdateJourneyResponse parses an HTTP response from a UpdateJourneyWithResponse call +func ParseUpdateJourneyResponse(rsp *http.Response) (*UpdateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateUserResponse(rsp) -} -func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { - rsp, err := c.UpdateUser(ctx, projectID, userID, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateUserResponse(rsp) -} -// GetUserDevicesWithResponse request returning *GetUserDevicesResponse -func (c *ClientWithResponses) GetUserDevicesWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserDevicesResponse, error) { - rsp, err := c.GetUserDevices(ctx, projectID, userID, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetUserDevicesResponse(rsp) + + return response, nil } -// DeleteUserDeviceWithResponse request returning *DeleteUserDeviceResponse -func (c *ClientWithResponses) DeleteUserDeviceWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserDeviceResponse, error) { - rsp, err := c.DeleteUserDevice(ctx, projectID, userID, deviceID, reqEditors...) +// ParseDuplicateJourneyResponse parses an HTTP response from a DuplicateJourneyWithResponse call +func ParseDuplicateJourneyResponse(rsp *http.Response) (*DuplicateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteUserDeviceResponse(rsp) -} -// GetUserEventsWithResponse request returning *GetUserEventsResponse -func (c *ClientWithResponses) GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) { - rsp, err := c.GetUserEvents(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err + response := &DuplicateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetUserEventsResponse(rsp) -} -// GetUserJourneysWithResponse request returning *GetUserJourneysResponse -func (c *ClientWithResponses) GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) { - rsp, err := c.GetUserJourneys(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseGetUserJourneysResponse(rsp) + + return response, nil } -// GetUserOrganizationsWithResponse request returning *GetUserOrganizationsResponse -func (c *ClientWithResponses) GetUserOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*GetUserOrganizationsResponse, error) { - rsp, err := c.GetUserOrganizations(ctx, projectID, userID, params, reqEditors...) +// ParseListJourneyEntrancesResponse parses an HTTP response from a ListJourneyEntrancesWithResponse call +func ParseListJourneyEntrancesResponse(rsp *http.Response) (*ListJourneyEntrancesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetUserOrganizationsResponse(rsp) -} -// GetUserSubscriptionsWithResponse request returning *GetUserSubscriptionsResponse -func (c *ClientWithResponses) GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) { - rsp, err := c.GetUserSubscriptions(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err + response := &ListJourneyEntrancesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetUserSubscriptionsResponse(rsp) -} -// UpdateUserSubscriptionsWithBodyWithResponse request with arbitrary body returning *UpdateUserSubscriptionsResponse -func (c *ClientWithResponses) UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { - rsp, err := c.UpdateUserSubscriptionsWithBody(ctx, projectID, userID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyUserEntranceListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseUpdateUserSubscriptionsResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { - rsp, err := c.UpdateUserSubscriptions(ctx, projectID, userID, body, reqEditors...) +// ParsePublishJourneyResponse parses an HTTP response from a PublishJourneyWithResponse call +func ParsePublishJourneyResponse(rsp *http.Response) (*PublishJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateUserSubscriptionsResponse(rsp) -} -// ListSubscriptionsWithResponse request returning *ListSubscriptionsResponse -func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) { - rsp, err := c.ListSubscriptions(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err + response := &PublishJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListSubscriptionsResponse(rsp) -} -// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse -func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { - rsp, err := c.CreateSubscriptionWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } - return ParseCreateSubscriptionResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { - rsp, err := c.CreateSubscription(ctx, projectID, body, reqEditors...) +// ParseGetJourneyStepsResponse parses an HTTP response from a GetJourneyStepsWithResponse call +func ParseGetJourneyStepsResponse(rsp *http.Response) (*GetJourneyStepsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateSubscriptionResponse(rsp) -} -// GetSubscriptionWithResponse request returning *GetSubscriptionResponse -func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) { - rsp, err := c.GetSubscription(ctx, projectID, subscriptionID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSubscriptionResponse(rsp) -} - -// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse -func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { - rsp, err := c.UpdateSubscriptionWithBody(ctx, projectID, subscriptionID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSubscriptionResponse(rsp) -} - -func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { - rsp, err := c.UpdateSubscription(ctx, projectID, subscriptionID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSubscriptionResponse(rsp) -} - -// ListTagsWithResponse request returning *ListTagsResponse -func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) { - rsp, err := c.ListTags(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListTagsResponse(rsp) -} - -// CreateTagWithBodyWithResponse request with arbitrary body returning *CreateTagResponse -func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { - rsp, err := c.CreateTagWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateTagResponse(rsp) -} - -func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { - rsp, err := c.CreateTag(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateTagResponse(rsp) -} - -// DeleteTagWithResponse request returning *DeleteTagResponse -func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) { - rsp, err := c.DeleteTag(ctx, projectID, tagID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteTagResponse(rsp) -} - -// GetTagWithResponse request returning *GetTagResponse -func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) { - rsp, err := c.GetTag(ctx, projectID, tagID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTagResponse(rsp) -} - -// UpdateTagWithBodyWithResponse request with arbitrary body returning *UpdateTagResponse -func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { - rsp, err := c.UpdateTagWithBody(ctx, projectID, tagID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateTagResponse(rsp) -} - -func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { - rsp, err := c.UpdateTag(ctx, projectID, tagID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateTagResponse(rsp) -} - -// ListAdminsWithResponse request returning *ListAdminsResponse -func (c *ClientWithResponses) ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) { - rsp, err := c.ListAdmins(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAdminsResponse(rsp) -} - -// CreateAdminWithBodyWithResponse request with arbitrary body returning *CreateAdminResponse -func (c *ClientWithResponses) CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { - rsp, err := c.CreateAdminWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAdminResponse(rsp) -} - -func (c *ClientWithResponses) CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { - rsp, err := c.CreateAdmin(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAdminResponse(rsp) -} - -// DeleteAdminWithResponse request returning *DeleteAdminResponse -func (c *ClientWithResponses) DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) { - rsp, err := c.DeleteAdmin(ctx, adminID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAdminResponse(rsp) -} - -// GetAdminWithResponse request returning *GetAdminResponse -func (c *ClientWithResponses) GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) { - rsp, err := c.GetAdmin(ctx, adminID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAdminResponse(rsp) -} - -// UpdateAdminWithBodyWithResponse request with arbitrary body returning *UpdateAdminResponse -func (c *ClientWithResponses) UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { - rsp, err := c.UpdateAdminWithBody(ctx, adminID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAdminResponse(rsp) -} - -func (c *ClientWithResponses) UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { - rsp, err := c.UpdateAdmin(ctx, adminID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAdminResponse(rsp) -} - -// WhoamiWithResponse request returning *WhoamiResponse -func (c *ClientWithResponses) WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) { - rsp, err := c.Whoami(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseWhoamiResponse(rsp) -} - -// AuthCallbackWithBodyWithResponse request with arbitrary body returning *AuthCallbackResponse -func (c *ClientWithResponses) AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { - rsp, err := c.AuthCallbackWithBody(ctx, driver, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthCallbackResponse(rsp) -} - -func (c *ClientWithResponses) AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { - rsp, err := c.AuthCallback(ctx, driver, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthCallbackResponse(rsp) -} - -// GetAuthMethodsWithResponse request returning *GetAuthMethodsResponse -func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) { - rsp, err := c.GetAuthMethods(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAuthMethodsResponse(rsp) -} - -// AuthWebhookWithResponse request returning *AuthWebhookResponse -func (c *ClientWithResponses) AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) { - rsp, err := c.AuthWebhook(ctx, driver, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthWebhookResponse(rsp) -} - -// ParseGetProfileResponse parses an HTTP response from a GetProfileWithResponse call -func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetProfileResponse{ + response := &GetJourneyStepsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin + var dest JourneyStepMap if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15145,22 +13932,22 @@ func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error) { return response, nil } -// ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call -func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error) { +// ParseSetJourneyStepsResponse parses an HTTP response from a SetJourneyStepsWithResponse call +func ParseSetJourneyStepsResponse(rsp *http.Response) (*SetJourneyStepsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectsResponse{ + response := &SetJourneyStepsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectList + var dest JourneyStepMap if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15178,26 +13965,26 @@ func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error return response, nil } -// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call -func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) { +// ParseListJourneyStepUsersResponse parses an HTTP response from a ListJourneyStepUsersWithResponse call +func ParseListJourneyStepUsersResponse(rsp *http.Response) (*ListJourneyStepUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateProjectResponse{ + response := &ListJourneyStepUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Project + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyUserStepListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15211,15 +13998,15 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err return response, nil } -// ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call -func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error) { +// ParseRemoveUserFromJourneyStepResponse parses an HTTP response from a RemoveUserFromJourneyStepWithResponse call +func ParseRemoveUserFromJourneyStepResponse(rsp *http.Response) (*RemoveUserFromJourneyStepResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteProjectResponse{ + response := &RemoveUserFromJourneyStepResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -15237,27 +14024,20 @@ func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, err return response, nil } -// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call -func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { +// ParseSkipJourneyStepDelayResponse parses an HTTP response from a SkipJourneyStepDelayWithResponse call +func ParseSkipJourneyStepDelayResponse(rsp *http.Response) (*SkipJourneyStepDelayResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectResponse{ + response := &SkipJourneyStepDelayResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15270,26 +14050,26 @@ func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { return response, nil } -// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call -func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) { +// ParseTriggerUserToJourneyStepResponse parses an HTTP response from a TriggerUserToJourneyStepWithResponse call +func ParseTriggerUserToJourneyStepResponse(rsp *http.Response) (*TriggerUserToJourneyStepResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateProjectResponse{ + response := &TriggerUserToJourneyStepResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest JourneyUserStep if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15303,27 +14083,20 @@ func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, err return response, nil } -// ParseListActionsResponse parses an HTTP response from a ListActionsWithResponse call -func ParseListActionsResponse(rsp *http.Response) (*ListActionsResponse, error) { +// ParseRemoveUserFromJourneyResponse parses an HTTP response from a RemoveUserFromJourneyWithResponse call +func ParseRemoveUserFromJourneyResponse(rsp *http.Response) (*RemoveUserFromJourneyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListActionsResponse{ + response := &RemoveUserFromJourneyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ActionListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15336,22 +14109,22 @@ func ParseListActionsResponse(rsp *http.Response) (*ListActionsResponse, error) return response, nil } -// ParseCreateActionResponse parses an HTTP response from a CreateActionWithResponse call -func ParseCreateActionResponse(rsp *http.Response) (*CreateActionResponse, error) { +// ParseVersionJourneyResponse parses an HTTP response from a VersionJourneyWithResponse call +func ParseVersionJourneyResponse(rsp *http.Response) (*VersionJourneyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateActionResponse{ + response := &VersionJourneyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Action + var dest Journey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15369,22 +14142,22 @@ func ParseCreateActionResponse(rsp *http.Response) (*CreateActionResponse, error return response, nil } -// ParseListActionMetaResponse parses an HTTP response from a ListActionMetaWithResponse call -func ParseListActionMetaResponse(rsp *http.Response) (*ListActionMetaResponse, error) { +// ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call +func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListActionMetaResponse{ + response := &ListApiKeysResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ActionMeta + var dest ApiKeyListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15402,52 +14175,26 @@ func ParseListActionMetaResponse(rsp *http.Response) (*ListActionMetaResponse, e return response, nil } -// ParseGetActionPreviewResponse parses an HTTP response from a GetActionPreviewWithResponse call -func ParseGetActionPreviewResponse(rsp *http.Response) (*GetActionPreviewResponse, error) { +// ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call +func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionPreviewResponse{ + response := &CreateApiKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseTestActionResponse parses an HTTP response from a TestActionWithResponse call -func ParseTestActionResponse(rsp *http.Response) (*TestActionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &TestActionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TestActionResult + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApiKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15461,15 +14208,15 @@ func ParseTestActionResponse(rsp *http.Response) (*TestActionResponse, error) { return response, nil } -// ParseDeleteActionResponse parses an HTTP response from a DeleteActionWithResponse call -func ParseDeleteActionResponse(rsp *http.Response) (*DeleteActionResponse, error) { +// ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call +func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteActionResponse{ + response := &DeleteApiKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -15487,22 +14234,22 @@ func ParseDeleteActionResponse(rsp *http.Response) (*DeleteActionResponse, error return response, nil } -// ParseGetActionResponse parses an HTTP response from a GetActionWithResponse call -func ParseGetActionResponse(rsp *http.Response) (*GetActionResponse, error) { +// ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call +func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionResponse{ + response := &GetApiKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Action + var dest ApiKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15520,22 +14267,22 @@ func ParseGetActionResponse(rsp *http.Response) (*GetActionResponse, error) { return response, nil } -// ParseUpdateActionResponse parses an HTTP response from a UpdateActionWithResponse call -func ParseUpdateActionResponse(rsp *http.Response) (*UpdateActionResponse, error) { +// ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call +func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateActionResponse{ + response := &UpdateApiKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Action + var dest ApiKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15553,22 +14300,22 @@ func ParseUpdateActionResponse(rsp *http.Response) (*UpdateActionResponse, error return response, nil } -// ParseListActionSchemasResponse parses an HTTP response from a ListActionSchemasWithResponse call -func ParseListActionSchemasResponse(rsp *http.Response) (*ListActionSchemasResponse, error) { +// ParseListListsResponse parses an HTTP response from a ListListsWithResponse call +func ParseListListsResponse(rsp *http.Response) (*ListListsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListActionSchemasResponse{ + response := &ListListsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ActionSchemaListResponse + var dest ListListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15586,26 +14333,26 @@ func ParseListActionSchemasResponse(rsp *http.Response) (*ListActionSchemasRespo return response, nil } -// ParseTestActionFunctionResponse parses an HTTP response from a TestActionFunctionWithResponse call -func ParseTestActionFunctionResponse(rsp *http.Response) (*TestActionFunctionResponse, error) { +// ParseCreateListResponse parses an HTTP response from a CreateListWithResponse call +func ParseCreateListResponse(rsp *http.Response) (*CreateListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestActionFunctionResponse{ + response := &CreateListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TestActionFunctionResult + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest List if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15619,27 +14366,20 @@ func ParseTestActionFunctionResponse(rsp *http.Response) (*TestActionFunctionRes return response, nil } -// ParseListProjectAdminsResponse parses an HTTP response from a ListProjectAdminsWithResponse call -func ParseListProjectAdminsResponse(rsp *http.Response) (*ListProjectAdminsResponse, error) { +// ParseDeleteListResponse parses an HTTP response from a DeleteListWithResponse call +func ParseDeleteListResponse(rsp *http.Response) (*DeleteListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectAdminsResponse{ + response := &DeleteListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdminList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15652,20 +14392,27 @@ func ParseListProjectAdminsResponse(rsp *http.Response) (*ListProjectAdminsRespo return response, nil } -// ParseDeleteProjectAdminResponse parses an HTTP response from a DeleteProjectAdminWithResponse call -func ParseDeleteProjectAdminResponse(rsp *http.Response) (*DeleteProjectAdminResponse, error) { +// ParseGetListResponse parses an HTTP response from a GetListWithResponse call +func ParseGetListResponse(rsp *http.Response) (*GetListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteProjectAdminResponse{ + response := &GetListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15678,22 +14425,22 @@ func ParseDeleteProjectAdminResponse(rsp *http.Response) (*DeleteProjectAdminRes return response, nil } -// ParseGetProjectAdminResponse parses an HTTP response from a GetProjectAdminWithResponse call -func ParseGetProjectAdminResponse(rsp *http.Response) (*GetProjectAdminResponse, error) { +// ParseUpdateListResponse parses an HTTP response from a UpdateListWithResponse call +func ParseUpdateListResponse(rsp *http.Response) (*UpdateListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectAdminResponse{ + response := &UpdateListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdmin + var dest List if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15711,26 +14458,26 @@ func ParseGetProjectAdminResponse(rsp *http.Response) (*GetProjectAdminResponse, return response, nil } -// ParseUpdateProjectAdminResponse parses an HTTP response from a UpdateProjectAdminWithResponse call -func ParseUpdateProjectAdminResponse(rsp *http.Response) (*UpdateProjectAdminResponse, error) { +// ParseDuplicateListResponse parses an HTTP response from a DuplicateListWithResponse call +func ParseDuplicateListResponse(rsp *http.Response) (*DuplicateListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateProjectAdminResponse{ + response := &DuplicateListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdmin + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest List if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15744,26 +14491,26 @@ func ParseUpdateProjectAdminResponse(rsp *http.Response) (*UpdateProjectAdminRes return response, nil } -// ParseListCampaignsResponse parses an HTTP response from a ListCampaignsWithResponse call -func ParseListCampaignsResponse(rsp *http.Response) (*ListCampaignsResponse, error) { +// ParseRecountListResponse parses an HTTP response from a RecountListWithResponse call +func ParseRecountListResponse(rsp *http.Response) (*RecountListResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListCampaignsResponse{ + response := &RecountListResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CampaignListResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest List if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15777,26 +14524,26 @@ func ParseListCampaignsResponse(rsp *http.Response) (*ListCampaignsResponse, err return response, nil } -// ParseCreateCampaignResponse parses an HTTP response from a CreateCampaignWithResponse call -func ParseCreateCampaignResponse(rsp *http.Response) (*CreateCampaignResponse, error) { +// ParseGetListUsersResponse parses an HTTP response from a GetListUsersWithResponse call +func ParseGetListUsersResponse(rsp *http.Response) (*GetListUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateCampaignResponse{ + response := &GetListUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Campaign + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15810,15 +14557,15 @@ func ParseCreateCampaignResponse(rsp *http.Response) (*CreateCampaignResponse, e return response, nil } -// ParseDeleteCampaignResponse parses an HTTP response from a DeleteCampaignWithResponse call -func ParseDeleteCampaignResponse(rsp *http.Response) (*DeleteCampaignResponse, error) { +// ParseImportListUsersResponse parses an HTTP response from a ImportListUsersWithResponse call +func ParseImportListUsersResponse(rsp *http.Response) (*ImportListUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteCampaignResponse{ + response := &ImportListUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -15836,15 +14583,15 @@ func ParseDeleteCampaignResponse(rsp *http.Response) (*DeleteCampaignResponse, e return response, nil } -// ParseGetCampaignResponse parses an HTTP response from a GetCampaignWithResponse call -func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) { +// ParseListLocalesResponse parses an HTTP response from a ListLocalesWithResponse call +func ParseListLocalesResponse(rsp *http.Response) (*ListLocalesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCampaignResponse{ + response := &ListLocalesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -15852,7 +14599,15 @@ func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data Campaign `json:"data"` + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Locale `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -15871,26 +14626,26 @@ func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) return response, nil } -// ParseUpdateCampaignResponse parses an HTTP response from a UpdateCampaignWithResponse call -func ParseUpdateCampaignResponse(rsp *http.Response) (*UpdateCampaignResponse, error) { +// ParseCreateLocaleResponse parses an HTTP response from a CreateLocaleWithResponse call +func ParseCreateLocaleResponse(rsp *http.Response) (*CreateLocaleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCampaignResponse{ + response := &CreateLocaleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Campaign + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Locale if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15904,27 +14659,20 @@ func ParseUpdateCampaignResponse(rsp *http.Response) (*UpdateCampaignResponse, e return response, nil } -// ParseDuplicateCampaignResponse parses an HTTP response from a DuplicateCampaignWithResponse call -func ParseDuplicateCampaignResponse(rsp *http.Response) (*DuplicateCampaignResponse, error) { +// ParseDeleteLocaleResponse parses an HTTP response from a DeleteLocaleWithResponse call +func ParseDeleteLocaleResponse(rsp *http.Response) (*DeleteLocaleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DuplicateCampaignResponse{ + response := &DeleteLocaleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Campaign - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15937,26 +14685,26 @@ func ParseDuplicateCampaignResponse(rsp *http.Response) (*DuplicateCampaignRespo return response, nil } -// ParseCreateTemplateResponse parses an HTTP response from a CreateTemplateWithResponse call -func ParseCreateTemplateResponse(rsp *http.Response) (*CreateTemplateResponse, error) { +// ParseGetLocaleResponse parses an HTTP response from a GetLocaleWithResponse call +func ParseGetLocaleResponse(rsp *http.Response) (*GetLocaleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTemplateResponse{ + response := &GetLocaleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Template + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Locale if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15970,20 +14718,27 @@ func ParseCreateTemplateResponse(rsp *http.Response) (*CreateTemplateResponse, e return response, nil } -// ParseDeleteTemplateResponse parses an HTTP response from a DeleteTemplateWithResponse call -func ParseDeleteTemplateResponse(rsp *http.Response) (*DeleteTemplateResponse, error) { +// ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call +func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTemplateResponse{ + response := &ListProvidersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProviderListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15996,24 +14751,22 @@ func ParseDeleteTemplateResponse(rsp *http.Response) (*DeleteTemplateResponse, e return response, nil } -// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call -func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) { +// ParseListAllProvidersResponse parses an HTTP response from a ListAllProvidersWithResponse call +func ParseListAllProvidersResponse(rsp *http.Response) (*ListAllProvidersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTemplateResponse{ + response := &ListAllProvidersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data Template `json:"data"` - } + var dest []Provider if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16031,22 +14784,22 @@ func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) return response, nil } -// ParseUpdateTemplateResponse parses an HTTP response from a UpdateTemplateWithResponse call -func ParseUpdateTemplateResponse(rsp *http.Response) (*UpdateTemplateResponse, error) { +// ParseListProviderMetaResponse parses an HTTP response from a ListProviderMetaWithResponse call +func ParseListProviderMetaResponse(rsp *http.Response) (*ListProviderMetaResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTemplateResponse{ + response := &ListProviderMetaResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Template + var dest []ProviderMeta if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16064,31 +14817,26 @@ func ParseUpdateTemplateResponse(rsp *http.Response) (*UpdateTemplateResponse, e return response, nil } -// ParseGetCampaignUsersResponse parses an HTTP response from a GetCampaignUsersWithResponse call -func ParseGetCampaignUsersResponse(rsp *http.Response) (*GetCampaignUsersResponse, error) { +// ParseCreateProviderResponse parses an HTTP response from a CreateProviderWithResponse call +func ParseCreateProviderResponse(rsp *http.Response) (*CreateProviderResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCampaignUsersResponse{ + response := &CreateProviderResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data []CampaignUser `json:"data"` - Limit int `json:"limit"` - Offset int `json:"offset"` - Total int `json:"total"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Provider if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16102,22 +14850,22 @@ func ParseGetCampaignUsersResponse(rsp *http.Response) (*GetCampaignUsersRespons return response, nil } -// ParseListDocumentsResponse parses an HTTP response from a ListDocumentsWithResponse call -func ParseListDocumentsResponse(rsp *http.Response) (*ListDocumentsResponse, error) { +// ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call +func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDocumentsResponse{ + response := &GetProviderResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DocumentListResponse + var dest Provider if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16135,29 +14883,26 @@ func ParseListDocumentsResponse(rsp *http.Response) (*ListDocumentsResponse, err return response, nil } -// ParseUploadDocumentsResponse parses an HTTP response from a UploadDocumentsWithResponse call -func ParseUploadDocumentsResponse(rsp *http.Response) (*UploadDocumentsResponse, error) { +// ParseUpdateProviderResponse parses an HTTP response from a UpdateProviderWithResponse call +func ParseUpdateProviderResponse(rsp *http.Response) (*UpdateProviderResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UploadDocumentsResponse{ + response := &UpdateProviderResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - // Documents UUIDs of the uploaded documents - Documents []openapi_types.UUID `json:"documents"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Provider if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16171,15 +14916,15 @@ func ParseUploadDocumentsResponse(rsp *http.Response) (*UploadDocumentsResponse, return response, nil } -// ParseDeleteDocumentResponse parses an HTTP response from a DeleteDocumentWithResponse call -func ParseDeleteDocumentResponse(rsp *http.Response) (*DeleteDocumentResponse, error) { +// ParseDeleteProviderResponse parses an HTTP response from a DeleteProviderWithResponse call +func ParseDeleteProviderResponse(rsp *http.Response) (*DeleteProviderResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDocumentResponse{ + response := &DeleteProviderResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16197,20 +14942,27 @@ func ParseDeleteDocumentResponse(rsp *http.Response) (*DeleteDocumentResponse, e return response, nil } -// ParseGetDocumentResponse parses an HTTP response from a GetDocumentWithResponse call -func ParseGetDocumentResponse(rsp *http.Response) (*GetDocumentResponse, error) { +// ParseListSubscriptionsResponse parses an HTTP response from a ListSubscriptionsWithResponse call +func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDocumentResponse{ + response := &ListSubscriptionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SubscriptionListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16223,26 +14975,26 @@ func ParseGetDocumentResponse(rsp *http.Response) (*GetDocumentResponse, error) return response, nil } -// ParseGetDocumentMetadataResponse parses an HTTP response from a GetDocumentMetadataWithResponse call -func ParseGetDocumentMetadataResponse(rsp *http.Response) (*GetDocumentMetadataResponse, error) { +// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call +func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDocumentMetadataResponse{ + response := &CreateSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Document + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16256,22 +15008,22 @@ func ParseGetDocumentMetadataResponse(rsp *http.Response) (*GetDocumentMetadataR return response, nil } -// ParseListJourneysResponse parses an HTTP response from a ListJourneysWithResponse call -func ParseListJourneysResponse(rsp *http.Response) (*ListJourneysResponse, error) { +// ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call +func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListJourneysResponse{ + response := &GetSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyListResponse + var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16289,26 +15041,26 @@ func ParseListJourneysResponse(rsp *http.Response) (*ListJourneysResponse, error return response, nil } -// ParseCreateJourneyResponse parses an HTTP response from a CreateJourneyWithResponse call -func ParseCreateJourneyResponse(rsp *http.Response) (*CreateJourneyResponse, error) { +// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call +func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateJourneyResponse{ + response := &UpdateSubscriptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Subscription if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16322,20 +15074,27 @@ func ParseCreateJourneyResponse(rsp *http.Response) (*CreateJourneyResponse, err return response, nil } -// ParseDeleteJourneyResponse parses an HTTP response from a DeleteJourneyWithResponse call -func ParseDeleteJourneyResponse(rsp *http.Response) (*DeleteJourneyResponse, error) { +// ParseListTagsResponse parses an HTTP response from a ListTagsWithResponse call +func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteJourneyResponse{ + response := &ListTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TagListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16348,26 +15107,26 @@ func ParseDeleteJourneyResponse(rsp *http.Response) (*DeleteJourneyResponse, err return response, nil } -// ParseGetJourneyResponse parses an HTTP response from a GetJourneyWithResponse call -func ParseGetJourneyResponse(rsp *http.Response) (*GetJourneyResponse, error) { +// ParseCreateTagResponse parses an HTTP response from a CreateTagWithResponse call +func ParseCreateTagResponse(rsp *http.Response) (*CreateTagResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJourneyResponse{ + response := &CreateTagResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Tag if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16381,27 +15140,20 @@ func ParseGetJourneyResponse(rsp *http.Response) (*GetJourneyResponse, error) { return response, nil } -// ParseUpdateJourneyResponse parses an HTTP response from a UpdateJourneyWithResponse call -func ParseUpdateJourneyResponse(rsp *http.Response) (*UpdateJourneyResponse, error) { +// ParseDeleteTagResponse parses an HTTP response from a DeleteTagWithResponse call +func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateJourneyResponse{ + response := &DeleteTagResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16414,26 +15166,26 @@ func ParseUpdateJourneyResponse(rsp *http.Response) (*UpdateJourneyResponse, err return response, nil } -// ParseDuplicateJourneyResponse parses an HTTP response from a DuplicateJourneyWithResponse call -func ParseDuplicateJourneyResponse(rsp *http.Response) (*DuplicateJourneyResponse, error) { +// ParseGetTagResponse parses an HTTP response from a GetTagWithResponse call +func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DuplicateJourneyResponse{ + response := &GetTagResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Tag if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16447,22 +15199,22 @@ func ParseDuplicateJourneyResponse(rsp *http.Response) (*DuplicateJourneyRespons return response, nil } -// ParsePublishJourneyResponse parses an HTTP response from a PublishJourneyWithResponse call -func ParsePublishJourneyResponse(rsp *http.Response) (*PublishJourneyResponse, error) { +// ParseUpdateTagResponse parses an HTTP response from a UpdateTagWithResponse call +func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PublishJourneyResponse{ + response := &UpdateTagResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey + var dest Tag if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16480,22 +15232,22 @@ func ParsePublishJourneyResponse(rsp *http.Response) (*PublishJourneyResponse, e return response, nil } -// ParseGetJourneyStepsResponse parses an HTTP response from a GetJourneyStepsWithResponse call -func ParseGetJourneyStepsResponse(rsp *http.Response) (*GetJourneyStepsResponse, error) { +// ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call +func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJourneyStepsResponse{ + response := &ListUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyStepMap + var dest UserList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16513,22 +15265,22 @@ func ParseGetJourneyStepsResponse(rsp *http.Response) (*GetJourneyStepsResponse, return response, nil } -// ParseSetJourneyStepsResponse parses an HTTP response from a SetJourneyStepsWithResponse call -func ParseSetJourneyStepsResponse(rsp *http.Response) (*SetJourneyStepsResponse, error) { +// ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call +func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SetJourneyStepsResponse{ + response := &IdentifyUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyStepMap + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16546,15 +15298,15 @@ func ParseSetJourneyStepsResponse(rsp *http.Response) (*SetJourneyStepsResponse, return response, nil } -// ParseStreamUserJourneyStepsResponse parses an HTTP response from a StreamUserJourneyStepsWithResponse call -func ParseStreamUserJourneyStepsResponse(rsp *http.Response) (*StreamUserJourneyStepsResponse, error) { +// ParseImportUsersResponse parses an HTTP response from a ImportUsersWithResponse call +func ParseImportUsersResponse(rsp *http.Response) (*ImportUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &StreamUserJourneyStepsResponse{ + response := &ImportUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16572,20 +15324,29 @@ func ParseStreamUserJourneyStepsResponse(rsp *http.Response) (*StreamUserJourney return response, nil } -// ParseTriggerUserResponse parses an HTTP response from a TriggerUserWithResponse call -func ParseTriggerUserResponse(rsp *http.Response) (*TriggerUserResponse, error) { +// ParseListUserSchemasResponse parses an HTTP response from a ListUserSchemasWithResponse call +func ParseListUserSchemasResponse(rsp *http.Response) (*ListUserSchemasResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TriggerUserResponse{ + response := &ListUserSchemasResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Results []SchemaPath `json:"results"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16598,15 +15359,15 @@ func ParseTriggerUserResponse(rsp *http.Response) (*TriggerUserResponse, error) return response, nil } -// ParseAdvanceUserStepResponse parses an HTTP response from a AdvanceUserStepWithResponse call -func ParseAdvanceUserStepResponse(rsp *http.Response) (*AdvanceUserStepResponse, error) { +// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call +func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AdvanceUserStepResponse{ + response := &DeleteUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16624,26 +15385,22 @@ func ParseAdvanceUserStepResponse(rsp *http.Response) (*AdvanceUserStepResponse, return response, nil } -// ParseGetUserJourneyStateResponse parses an HTTP response from a GetUserJourneyStateWithResponse call -func ParseGetUserJourneyStateResponse(rsp *http.Response) (*GetUserJourneyStateResponse, error) { +// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call +func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserJourneyStateResponse{ + response := &GetUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []struct { - ExternalStepId *string `json:"external_step_id,omitempty"` - IsCompleted *bool `json:"is_completed,omitempty"` - StepType *string `json:"step_type,omitempty"` - } + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16661,26 +15418,26 @@ func ParseGetUserJourneyStateResponse(rsp *http.Response) (*GetUserJourneyStateR return response, nil } -// ParseVersionJourneyResponse parses an HTTP response from a VersionJourneyWithResponse call -func ParseVersionJourneyResponse(rsp *http.Response) (*VersionJourneyResponse, error) { +// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call +func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VersionJourneyResponse{ + response := &UpdateUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16694,22 +15451,22 @@ func ParseVersionJourneyResponse(rsp *http.Response) (*VersionJourneyResponse, e return response, nil } -// ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call -func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error) { +// ParseGetUserEventsResponse parses an HTTP response from a GetUserEventsWithResponse call +func ParseGetUserEventsResponse(rsp *http.Response) (*GetUserEventsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListApiKeysResponse{ + response := &GetUserEventsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKeyListResponse + var dest UserEventList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16727,53 +15484,27 @@ func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error) return response, nil } -// ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call -func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error) { +// ParseGetUserJourneysResponse parses an HTTP response from a GetUserJourneysWithResponse call +func ParseGetUserJourneysResponse(rsp *http.Response) (*GetUserJourneysResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateApiKeyResponse{ + response := &GetUserJourneysResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ApiKey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserJourneyList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call -func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteApiKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON200 = &dest - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16786,22 +15517,22 @@ func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error return response, nil } -// ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call -func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { +// ParseGetUserSubscriptionsResponse parses an HTTP response from a GetUserSubscriptionsWithResponse call +func ParseGetUserSubscriptionsResponse(rsp *http.Response) (*GetUserSubscriptionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetApiKeyResponse{ + response := &GetUserSubscriptionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKey + var dest UserSubscriptionList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16819,22 +15550,22 @@ func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { return response, nil } -// ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call -func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error) { +// ParseUpdateUserSubscriptionsResponse parses an HTTP response from a UpdateUserSubscriptionsWithResponse call +func ParseUpdateUserSubscriptionsResponse(rsp *http.Response) (*UpdateUserSubscriptionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateApiKeyResponse{ + response := &UpdateUserSubscriptionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKey + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16852,27 +15583,20 @@ func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error return response, nil } -// ParseListListsResponse parses an HTTP response from a ListListsWithResponse call -func ParseListListsResponse(rsp *http.Response) (*ListListsResponse, error) { +// ParseAuthCallbackResponse parses an HTTP response from a AuthCallbackWithResponse call +func ParseAuthCallbackResponse(rsp *http.Response) (*AuthCallbackResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListListsResponse{ + response := &AuthCallbackResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16885,26 +15609,26 @@ func ParseListListsResponse(rsp *http.Response) (*ListListsResponse, error) { return response, nil } -// ParseCreateListResponse parses an HTTP response from a CreateListWithResponse call -func ParseCreateListResponse(rsp *http.Response) (*CreateListResponse, error) { +// ParseGetAuthMethodsResponse parses an HTTP response from a GetAuthMethodsWithResponse call +func ParseGetAuthMethodsResponse(rsp *http.Response) (*GetAuthMethodsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateListResponse{ + response := &GetAuthMethodsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest List + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -16918,15 +15642,15 @@ func ParseCreateListResponse(rsp *http.Response) (*CreateListResponse, error) { return response, nil } -// ParseDeleteListResponse parses an HTTP response from a DeleteListWithResponse call -func ParseDeleteListResponse(rsp *http.Response) (*DeleteListResponse, error) { +// ParseAuthWebhookResponse parses an HTTP response from a AuthWebhookWithResponse call +func ParseAuthWebhookResponse(rsp *http.Response) (*AuthWebhookResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteListResponse{ + response := &AuthWebhookResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16944,4039 +15668,925 @@ func ParseDeleteListResponse(rsp *http.Response) (*DeleteListResponse, error) { return response, nil } -// ParseGetListResponse parses an HTTP response from a GetListWithResponse call -func ParseGetListResponse(rsp *http.Response) (*GetListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateListResponse parses an HTTP response from a UpdateListWithResponse call -func ParseUpdateListResponse(rsp *http.Response) (*UpdateListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDuplicateListResponse parses an HTTP response from a DuplicateListWithResponse call -func ParseDuplicateListResponse(rsp *http.Response) (*DuplicateListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DuplicateListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetListUsersResponse parses an HTTP response from a GetListUsersWithResponse call -func ParseGetListUsersResponse(rsp *http.Response) (*GetListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePreviewListUsersResponse parses an HTTP response from a PreviewListUsersWithResponse call -func ParsePreviewListUsersResponse(rsp *http.Response) (*PreviewListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PreviewListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseImportListUsersResponse parses an HTTP response from a ImportListUsersWithResponse call -func ParseImportListUsersResponse(rsp *http.Response) (*ImportListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ImportListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListLocalesResponse parses an HTTP response from a ListLocalesWithResponse call -func ParseListLocalesResponse(rsp *http.Response) (*ListLocalesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListLocalesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Locale `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseCreateLocaleResponse parses an HTTP response from a CreateLocaleWithResponse call -func ParseCreateLocaleResponse(rsp *http.Response) (*CreateLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Locale - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteLocaleResponse parses an HTTP response from a DeleteLocaleWithResponse call -func ParseDeleteLocaleResponse(rsp *http.Response) (*DeleteLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetLocaleResponse parses an HTTP response from a GetLocaleWithResponse call -func ParseGetLocaleResponse(rsp *http.Response) (*GetLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Locale - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call -func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListProvidersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProviderListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListAllProvidersResponse parses an HTTP response from a ListAllProvidersWithResponse call -func ParseListAllProvidersResponse(rsp *http.Response) (*ListAllProvidersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListAllProvidersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListProviderMetaResponse parses an HTTP response from a ListProviderMetaWithResponse call -func ParseListProviderMetaResponse(rsp *http.Response) (*ListProviderMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListProviderMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ProviderMeta - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseCreateProviderResponse parses an HTTP response from a CreateProviderWithResponse call -func ParseCreateProviderResponse(rsp *http.Response) (*CreateProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call -func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateProviderResponse parses an HTTP response from a UpdateProviderWithResponse call -func ParseUpdateProviderResponse(rsp *http.Response) (*UpdateProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteProviderResponse parses an HTTP response from a DeleteProviderWithResponse call -func ParseDeleteProviderResponse(rsp *http.Response) (*DeleteProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListOrganizationEventSchemasResponse parses an HTTP response from a ListOrganizationEventSchemasWithResponse call -func ParseListOrganizationEventSchemasResponse(rsp *http.Response) (*ListOrganizationEventSchemasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListOrganizationEventSchemasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EventListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call -func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListOrganizationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpsertOrganizationResponse parses an HTTP response from a UpsertOrganizationWithResponse call -func ParseUpsertOrganizationResponse(rsp *http.Response) (*UpsertOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpsertOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListOrganizationSchemasResponse parses an HTTP response from a ListOrganizationSchemasWithResponse call -func ParseListOrganizationSchemasResponse(rsp *http.Response) (*ListOrganizationSchemasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListOrganizationSchemasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Results []SchemaPath `json:"results"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListOrganizationMemberSchemasResponse parses an HTTP response from a ListOrganizationMemberSchemasWithResponse call -func ParseListOrganizationMemberSchemasResponse(rsp *http.Response) (*ListOrganizationMemberSchemasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListOrganizationMemberSchemasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Results []SchemaPath `json:"results"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call -func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call -func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call -func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetOrganizationEventsResponse parses an HTTP response from a GetOrganizationEventsWithResponse call -func ParseGetOrganizationEventsResponse(rsp *http.Response) (*GetOrganizationEventsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetOrganizationEventsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationEventList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListOrganizationMembersResponse parses an HTTP response from a ListOrganizationMembersWithResponse call -func ParseListOrganizationMembersResponse(rsp *http.Response) (*ListOrganizationMembersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListOrganizationMembersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationMemberList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseAddOrganizationMemberResponse parses an HTTP response from a AddOrganizationMemberWithResponse call -func ParseAddOrganizationMemberResponse(rsp *http.Response) (*AddOrganizationMemberResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddOrganizationMemberResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseRemoveOrganizationMemberResponse parses an HTTP response from a RemoveOrganizationMemberWithResponse call -func ParseRemoveOrganizationMemberResponse(rsp *http.Response) (*RemoveOrganizationMemberResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &RemoveOrganizationMemberResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListUserEventSchemasResponse parses an HTTP response from a ListUserEventSchemasWithResponse call -func ParseListUserEventSchemasResponse(rsp *http.Response) (*ListUserEventSchemasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListUserEventSchemasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EventListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call -func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call -func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IdentifyUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseImportUsersResponse parses an HTTP response from a ImportUsersWithResponse call -func ParseImportUsersResponse(rsp *http.Response) (*ImportUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ImportUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListUserSchemasResponse parses an HTTP response from a ListUserSchemasWithResponse call -func ParseListUserSchemasResponse(rsp *http.Response) (*ListUserSchemasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListUserSchemasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Results []SchemaPath `json:"results"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call -func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call -func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call -func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserDevicesResponse parses an HTTP response from a GetUserDevicesWithResponse call -func ParseGetUserDevicesResponse(rsp *http.Response) (*GetUserDevicesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserDevicesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserDeviceList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteUserDeviceResponse parses an HTTP response from a DeleteUserDeviceWithResponse call -func ParseDeleteUserDeviceResponse(rsp *http.Response) (*DeleteUserDeviceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteUserDeviceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserEventsResponse parses an HTTP response from a GetUserEventsWithResponse call -func ParseGetUserEventsResponse(rsp *http.Response) (*GetUserEventsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserEventsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserEventList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserJourneysResponse parses an HTTP response from a GetUserJourneysWithResponse call -func ParseGetUserJourneysResponse(rsp *http.Response) (*GetUserJourneysResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserJourneysResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserJourneyList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserOrganizationsResponse parses an HTTP response from a GetUserOrganizationsWithResponse call -func ParseGetUserOrganizationsResponse(rsp *http.Response) (*GetUserOrganizationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserOrganizationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Limit int `json:"limit"` - Offset int `json:"offset"` - Results []Organization `json:"results"` - Total int `json:"total"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetUserSubscriptionsResponse parses an HTTP response from a GetUserSubscriptionsWithResponse call -func ParseGetUserSubscriptionsResponse(rsp *http.Response) (*GetUserSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetUserSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserSubscriptionList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateUserSubscriptionsResponse parses an HTTP response from a UpdateUserSubscriptionsWithResponse call -func ParseUpdateUserSubscriptionsResponse(rsp *http.Response) (*UpdateUserSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateUserSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListSubscriptionsResponse parses an HTTP response from a ListSubscriptionsWithResponse call -func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SubscriptionListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call -func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call -func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call -func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListTagsResponse parses an HTTP response from a ListTagsWithResponse call -func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListTagsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TagListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseCreateTagResponse parses an HTTP response from a CreateTagWithResponse call -func ParseCreateTagResponse(rsp *http.Response) (*CreateTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Tag - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteTagResponse parses an HTTP response from a DeleteTagWithResponse call -func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetTagResponse parses an HTTP response from a GetTagWithResponse call -func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Tag - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateTagResponse parses an HTTP response from a UpdateTagWithResponse call -func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Tag - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseListAdminsResponse parses an HTTP response from a ListAdminsWithResponse call -func ParseListAdminsResponse(rsp *http.Response) (*ListAdminsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListAdminsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AdminList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseCreateAdminResponse parses an HTTP response from a CreateAdminWithResponse call -func ParseCreateAdminResponse(rsp *http.Response) (*CreateAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteAdminResponse parses an HTTP response from a DeleteAdminWithResponse call -func ParseDeleteAdminResponse(rsp *http.Response) (*DeleteAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetAdminResponse parses an HTTP response from a GetAdminWithResponse call -func ParseGetAdminResponse(rsp *http.Response) (*GetAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseUpdateAdminResponse parses an HTTP response from a UpdateAdminWithResponse call -func ParseUpdateAdminResponse(rsp *http.Response) (*UpdateAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseWhoamiResponse parses an HTTP response from a WhoamiWithResponse call -func ParseWhoamiResponse(rsp *http.Response) (*WhoamiResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &WhoamiResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseAuthCallbackResponse parses an HTTP response from a AuthCallbackWithResponse call -func ParseAuthCallbackResponse(rsp *http.Response) (*AuthCallbackResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthCallbackResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetAuthMethodsResponse parses an HTTP response from a GetAuthMethodsWithResponse call -func ParseGetAuthMethodsResponse(rsp *http.Response) (*GetAuthMethodsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAuthMethodsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []string - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseAuthWebhookResponse parses an HTTP response from a AuthWebhookWithResponse call -func ParseAuthWebhookResponse(rsp *http.Response) (*AuthWebhookResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthWebhookResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ServerInterface represents all server handlers. -type ServerInterface interface { - // Get current admin profile - // (GET /api/admin/profile) - GetProfile(w http.ResponseWriter, r *http.Request) - // List projects - // (GET /api/admin/projects) - ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) - // Create project - // (POST /api/admin/projects) - CreateProject(w http.ResponseWriter, r *http.Request) - // Delete project - // (DELETE /api/admin/projects/{projectID}) - DeleteProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Get project by ID - // (GET /api/admin/projects/{projectID}) - GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Update project - // (PATCH /api/admin/projects/{projectID}) - UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List actions - // (GET /api/admin/projects/{projectID}/actions) - ListActions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListActionsParams) - // Create action - // (POST /api/admin/projects/{projectID}/actions) - CreateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List available action modules - // (GET /api/admin/projects/{projectID}/actions/meta) - ListActionMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Get action module preview - // (GET /api/admin/projects/{projectID}/actions/meta/{actionType}/preview) - GetActionPreview(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionType string) - // Test an action configuration - // (POST /api/admin/projects/{projectID}/actions/test) - TestAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete action - // (DELETE /api/admin/projects/{projectID}/actions/{actionID}) - DeleteAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) - // Get action by ID - // (GET /api/admin/projects/{projectID}/actions/{actionID}) - GetAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) - // Update action - // (PATCH /api/admin/projects/{projectID}/actions/{actionID}) - UpdateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) - // List action function schemas - // (GET /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema) - ListActionSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) - // Test action function execution - // (POST /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test) - TestActionFunction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) - // List project admins - // (GET /api/admin/projects/{projectID}/admins) - ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) - // Remove admin from project - // (DELETE /api/admin/projects/{projectID}/admins/{adminID}) - DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // Get project admin - // (GET /api/admin/projects/{projectID}/admins/{adminID}) - GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // Update project admin role - // (PATCH /api/admin/projects/{projectID}/admins/{adminID}) - UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // List campaigns - // (GET /api/admin/projects/{projectID}/campaigns) - ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) - // Create campaign - // (POST /api/admin/projects/{projectID}/campaigns) - CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete campaign - // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) - DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Get campaign by ID - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) - GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Update campaign - // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) - UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Duplicate campaign - // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) - DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Create template - // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) - CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Delete template - // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Get template by ID - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Update template - // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Get campaign users - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) - GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) - // List documents - // (GET /api/admin/projects/{projectID}/documents) - ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) - // Upload documents - // (POST /api/admin/projects/{projectID}/documents) - UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete document - // (DELETE /api/admin/projects/{projectID}/documents/{documentID}) - DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // Retrieve a document - // (GET /api/admin/projects/{projectID}/documents/{documentID}) - GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // Get document metadata - // (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) - GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // List journeys - // (GET /api/admin/projects/{projectID}/journeys) - ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) - // Create journey - // (POST /api/admin/projects/{projectID}/journeys) - CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params CreateJourneyParams) - // Delete journey - // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) - DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Get journey by ID - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}) - GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Update journey - // (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) - UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Duplicate journey - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) - DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Publish journey - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) - PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Get journey steps - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) - GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Set journey steps - // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) - SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Stream user journey steps - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) - StreamUserJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) - // Trigger a user into a journey - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) - TriggerUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) - // Advance user step - // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) - AdvanceUserStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) - // Get user journey state - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state) - GetUserJourneyState(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) - // Create journey version - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) - VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // List API keys - // (GET /api/admin/projects/{projectID}/keys) - ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) - // Create API key - // (POST /api/admin/projects/{projectID}/keys) - CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete API key - // (DELETE /api/admin/projects/{projectID}/keys/{keyID}) - DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // Get API key by ID - // (GET /api/admin/projects/{projectID}/keys/{keyID}) - GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // Update API key - // (PATCH /api/admin/projects/{projectID}/keys/{keyID}) - UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // List lists - // (GET /api/admin/projects/{projectID}/lists) - ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) - // Create list - // (POST /api/admin/projects/{projectID}/lists) - CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete list - // (DELETE /api/admin/projects/{projectID}/lists/{listID}) - DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Get list by ID - // (GET /api/admin/projects/{projectID}/lists/{listID}) - GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Update list - // (PATCH /api/admin/projects/{projectID}/lists/{listID}) - UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Duplicate list - // (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) - DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Get list users - // (GET /api/admin/projects/{projectID}/lists/{listID}/users) - GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) - // Preview list users - // (GET /api/admin/projects/{projectID}/lists/{listID}/users/preview) - PreviewListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params PreviewListUsersParams) - // Import list users - // (POST /api/admin/projects/{projectID}/lists/{listID}/users/preview) - ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // List locales - // (GET /api/admin/projects/{projectID}/locales) - ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) - // Create locale - // (POST /api/admin/projects/{projectID}/locales) - CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete locale - // (DELETE /api/admin/projects/{projectID}/locales/{localeID}) - DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) - // Get locale by ID - // (GET /api/admin/projects/{projectID}/locales/{localeID}) - GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) - // List providers - // (GET /api/admin/projects/{projectID}/providers) - ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) - // List all providers - // (GET /api/admin/projects/{projectID}/providers/all) - ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List available provider modules - // (GET /api/admin/projects/{projectID}/providers/meta) - ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Create provider - // (POST /api/admin/projects/{projectID}/providers/{group}/{type}) - CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) - // Get provider by ID - // (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) - GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) - // Update provider - // (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) - UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) - // Delete provider - // (DELETE /api/admin/projects/{projectID}/providers/{providerID}) - DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) - // List organization event schemas - // (GET /api/admin/projects/{projectID}/subjects/organization/events/schema) - ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List subject organizations - // (GET /api/admin/projects/{projectID}/subjects/organizations) - ListOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListOrganizationsParams) - // Create or update subject organization - // (POST /api/admin/projects/{projectID}/subjects/organizations) - UpsertOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List organization schemas - // (GET /api/admin/projects/{projectID}/subjects/organizations/schema) - ListOrganizationSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List organization user schemas - // (GET /api/admin/projects/{projectID}/subjects/organizations/users/schema) - ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete subject organization - // (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) - DeleteOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) - // Get subject organization by ID - // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) - GetOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) - // Update subject organization - // (PATCH /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) - UpdateOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) - // Get organization events - // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events) - GetOrganizationEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params GetOrganizationEventsParams) - // List organization users - // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) - ListOrganizationMembers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params ListOrganizationMembersParams) - // Add user to organization - // (POST /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) - AddOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) - // Remove user from organization - // (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}) - RemoveOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) - // List user event schemas - // (GET /api/admin/projects/{projectID}/subjects/user/events/schema) - ListUserEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List users - // (GET /api/admin/projects/{projectID}/subjects/users) - ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) - // Identify user - // (POST /api/admin/projects/{projectID}/subjects/users) - IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Bulk import users - // (POST /api/admin/projects/{projectID}/subjects/users/import) - ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List user schemas - // (GET /api/admin/projects/{projectID}/subjects/users/schema) - ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete user - // (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}) - DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) - // Get user by ID - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}) - GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) - // Update user - // (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}) - UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) - // Get user devices - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/devices) - GetUserDevices(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) - // Delete user device - // (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}) - DeleteUserDevice(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) - // Get user events - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/events) - GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) - // Get user journeys - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/journeys) - GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) - // Get user organizations - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations) - GetUserOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserOrganizationsParams) - // Get user subscriptions - // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) - GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) - // Update user subscriptions - // (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) - UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) - // List subscriptions - // (GET /api/admin/projects/{projectID}/subscriptions) - ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) - // Create subscription type - // (POST /api/admin/projects/{projectID}/subscriptions) - CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Get subscription by ID - // (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) - GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) - // Update subscription type - // (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) - UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) - // List tags - // (GET /api/admin/projects/{projectID}/tags) - ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) - // Create tag - // (POST /api/admin/projects/{projectID}/tags) - CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete tag - // (DELETE /api/admin/projects/{projectID}/tags/{tagID}) - DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) - // Get tag by ID - // (GET /api/admin/projects/{projectID}/tags/{tagID}) - GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) - // Update tag - // (PATCH /api/admin/projects/{projectID}/tags/{tagID}) - UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) - // List organization admins - // (GET /api/admin/tenant/admins) - ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) - // Create or update admin - // (POST /api/admin/tenant/admins) - CreateAdmin(w http.ResponseWriter, r *http.Request) - // Delete admin - // (DELETE /api/admin/tenant/admins/{adminID}) - DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Get admin by ID - // (GET /api/admin/tenant/admins/{adminID}) - GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Update admin - // (PATCH /api/admin/tenant/admins/{adminID}) - UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Get current admin - // (GET /api/admin/tenant/whoami) - Whoami(w http.ResponseWriter, r *http.Request) - // Complete authentication - // (POST /api/auth/login/{driver}/callback) - AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) - // Get available auth methods - // (GET /api/auth/methods) - GetAuthMethods(w http.ResponseWriter, r *http.Request) - // Auth provider webhook - // (POST /api/auth/{driver}/webhook) - AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) -} - -// Unimplemented server implementation that returns http.StatusNotImplemented for each endpoint. - -type Unimplemented struct{} - -// Get current admin profile -// (GET /api/admin/profile) -func (_ Unimplemented) GetProfile(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List projects -// (GET /api/admin/projects) -func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create project -// (POST /api/admin/projects) -func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete project -// (DELETE /api/admin/projects/{projectID}) -func (_ Unimplemented) DeleteProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get project by ID -// (GET /api/admin/projects/{projectID}) -func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update project -// (PATCH /api/admin/projects/{projectID}) -func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List actions -// (GET /api/admin/projects/{projectID}/actions) -func (_ Unimplemented) ListActions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListActionsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create action -// (POST /api/admin/projects/{projectID}/actions) -func (_ Unimplemented) CreateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List available action modules -// (GET /api/admin/projects/{projectID}/actions/meta) -func (_ Unimplemented) ListActionMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get action module preview -// (GET /api/admin/projects/{projectID}/actions/meta/{actionType}/preview) -func (_ Unimplemented) GetActionPreview(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionType string) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Test an action configuration -// (POST /api/admin/projects/{projectID}/actions/test) -func (_ Unimplemented) TestAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete action -// (DELETE /api/admin/projects/{projectID}/actions/{actionID}) -func (_ Unimplemented) DeleteAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get action by ID -// (GET /api/admin/projects/{projectID}/actions/{actionID}) -func (_ Unimplemented) GetAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update action -// (PATCH /api/admin/projects/{projectID}/actions/{actionID}) -func (_ Unimplemented) UpdateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List action function schemas -// (GET /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema) -func (_ Unimplemented) ListActionSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Test action function execution -// (POST /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test) -func (_ Unimplemented) TestActionFunction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List project admins -// (GET /api/admin/projects/{projectID}/admins) -func (_ Unimplemented) ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Remove admin from project -// (DELETE /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get project admin -// (GET /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update project admin role -// (PATCH /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List campaigns -// (GET /api/admin/projects/{projectID}/campaigns) -func (_ Unimplemented) ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create campaign -// (POST /api/admin/projects/{projectID}/campaigns) -func (_ Unimplemented) CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete campaign -// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get campaign by ID -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update campaign -// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Duplicate campaign -// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) -func (_ Unimplemented) DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create template -// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) -func (_ Unimplemented) CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete template -// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get template by ID -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update template -// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get campaign users -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) -func (_ Unimplemented) GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List documents -// (GET /api/admin/projects/{projectID}/documents) -func (_ Unimplemented) ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Upload documents -// (POST /api/admin/projects/{projectID}/documents) -func (_ Unimplemented) UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete document -// (DELETE /api/admin/projects/{projectID}/documents/{documentID}) -func (_ Unimplemented) DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Retrieve a document -// (GET /api/admin/projects/{projectID}/documents/{documentID}) -func (_ Unimplemented) GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get document metadata -// (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) -func (_ Unimplemented) GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List journeys -// (GET /api/admin/projects/{projectID}/journeys) -func (_ Unimplemented) ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create journey -// (POST /api/admin/projects/{projectID}/journeys) -func (_ Unimplemented) CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params CreateJourneyParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete journey -// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get journey by ID -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update journey -// (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Duplicate journey -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) -func (_ Unimplemented) DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Publish journey -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) -func (_ Unimplemented) PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get journey steps -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) -func (_ Unimplemented) GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Set journey steps -// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) -func (_ Unimplemented) SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Stream user journey steps -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) -func (_ Unimplemented) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Trigger a user into a journey -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) -func (_ Unimplemented) TriggerUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Advance user step -// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) -func (_ Unimplemented) AdvanceUserStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user journey state -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state) -func (_ Unimplemented) GetUserJourneyState(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create journey version -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) -func (_ Unimplemented) VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List API keys -// (GET /api/admin/projects/{projectID}/keys) -func (_ Unimplemented) ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create API key -// (POST /api/admin/projects/{projectID}/keys) -func (_ Unimplemented) CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete API key -// (DELETE /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get API key by ID -// (GET /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update API key -// (PATCH /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List lists -// (GET /api/admin/projects/{projectID}/lists) -func (_ Unimplemented) ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create list -// (POST /api/admin/projects/{projectID}/lists) -func (_ Unimplemented) CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete list -// (DELETE /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get list by ID -// (GET /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update list -// (PATCH /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Duplicate list -// (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) -func (_ Unimplemented) DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get list users -// (GET /api/admin/projects/{projectID}/lists/{listID}/users) -func (_ Unimplemented) GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Preview list users -// (GET /api/admin/projects/{projectID}/lists/{listID}/users/preview) -func (_ Unimplemented) PreviewListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params PreviewListUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Import list users -// (POST /api/admin/projects/{projectID}/lists/{listID}/users/preview) -func (_ Unimplemented) ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List locales -// (GET /api/admin/projects/{projectID}/locales) -func (_ Unimplemented) ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create locale -// (POST /api/admin/projects/{projectID}/locales) -func (_ Unimplemented) CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete locale -// (DELETE /api/admin/projects/{projectID}/locales/{localeID}) -func (_ Unimplemented) DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get locale by ID -// (GET /api/admin/projects/{projectID}/locales/{localeID}) -func (_ Unimplemented) GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List providers -// (GET /api/admin/projects/{projectID}/providers) -func (_ Unimplemented) ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List all providers -// (GET /api/admin/projects/{projectID}/providers/all) -func (_ Unimplemented) ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List available provider modules -// (GET /api/admin/projects/{projectID}/providers/meta) -func (_ Unimplemented) ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create provider -// (POST /api/admin/projects/{projectID}/providers/{group}/{type}) -func (_ Unimplemented) CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get provider by ID -// (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) -func (_ Unimplemented) GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update provider -// (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) -func (_ Unimplemented) UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete provider -// (DELETE /api/admin/projects/{projectID}/providers/{providerID}) -func (_ Unimplemented) DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List organization event schemas -// (GET /api/admin/projects/{projectID}/subjects/organization/events/schema) -func (_ Unimplemented) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List subject organizations -// (GET /api/admin/projects/{projectID}/subjects/organizations) -func (_ Unimplemented) ListOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListOrganizationsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create or update subject organization -// (POST /api/admin/projects/{projectID}/subjects/organizations) -func (_ Unimplemented) UpsertOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List organization schemas -// (GET /api/admin/projects/{projectID}/subjects/organizations/schema) -func (_ Unimplemented) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List organization user schemas -// (GET /api/admin/projects/{projectID}/subjects/organizations/users/schema) -func (_ Unimplemented) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete subject organization -// (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) -func (_ Unimplemented) DeleteOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get subject organization by ID -// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) -func (_ Unimplemented) GetOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update subject organization -// (PATCH /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) -func (_ Unimplemented) UpdateOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get organization events -// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events) -func (_ Unimplemented) GetOrganizationEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params GetOrganizationEventsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List organization users -// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) -func (_ Unimplemented) ListOrganizationMembers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params ListOrganizationMembersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Add user to organization -// (POST /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) -func (_ Unimplemented) AddOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Remove user from organization -// (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}) -func (_ Unimplemented) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List user event schemas -// (GET /api/admin/projects/{projectID}/subjects/user/events/schema) -func (_ Unimplemented) ListUserEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List users -// (GET /api/admin/projects/{projectID}/subjects/users) -func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Identify user -// (POST /api/admin/projects/{projectID}/subjects/users) -func (_ Unimplemented) IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Bulk import users -// (POST /api/admin/projects/{projectID}/subjects/users/import) -func (_ Unimplemented) ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List user schemas -// (GET /api/admin/projects/{projectID}/subjects/users/schema) -func (_ Unimplemented) ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete user -// (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}) -func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user by ID -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}) -func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update user -// (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}) -func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user devices -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/devices) -func (_ Unimplemented) GetUserDevices(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete user device -// (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}) -func (_ Unimplemented) DeleteUserDevice(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user events -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/events) -func (_ Unimplemented) GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user journeys -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/journeys) -func (_ Unimplemented) GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user organizations -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations) -func (_ Unimplemented) GetUserOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserOrganizationsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get user subscriptions -// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) -func (_ Unimplemented) GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update user subscriptions -// (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) -func (_ Unimplemented) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List subscriptions -// (GET /api/admin/projects/{projectID}/subscriptions) -func (_ Unimplemented) ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create subscription type -// (POST /api/admin/projects/{projectID}/subscriptions) -func (_ Unimplemented) CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get subscription by ID -// (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) -func (_ Unimplemented) GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update subscription type -// (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) -func (_ Unimplemented) UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List tags -// (GET /api/admin/projects/{projectID}/tags) -func (_ Unimplemented) ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create tag -// (POST /api/admin/projects/{projectID}/tags) -func (_ Unimplemented) CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete tag -// (DELETE /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get tag by ID -// (GET /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update tag -// (PATCH /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// List organization admins -// (GET /api/admin/tenant/admins) -func (_ Unimplemented) ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Create or update admin -// (POST /api/admin/tenant/admins) -func (_ Unimplemented) CreateAdmin(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Delete admin -// (DELETE /api/admin/tenant/admins/{adminID}) -func (_ Unimplemented) DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get admin by ID -// (GET /api/admin/tenant/admins/{adminID}) -func (_ Unimplemented) GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Update admin -// (PATCH /api/admin/tenant/admins/{adminID}) -func (_ Unimplemented) UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get current admin -// (GET /api/admin/tenant/whoami) -func (_ Unimplemented) Whoami(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Complete authentication -// (POST /api/auth/login/{driver}/callback) -func (_ Unimplemented) AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Get available auth methods -// (GET /api/auth/methods) -func (_ Unimplemented) GetAuthMethods(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} - -// Auth provider webhook -// (POST /api/auth/{driver}/webhook) -func (_ Unimplemented) AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) { - w.WriteHeader(http.StatusNotImplemented) -} - -// ServerInterfaceWrapper converts contexts to parameters. -type ServerInterfaceWrapper struct { - Handler ServerInterface - HandlerMiddlewares []MiddlewareFunc - ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) -} - -type MiddlewareFunc func(http.Handler) http.Handler - -// GetProfile operation middleware -func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Request) { - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProfile(w, r) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListProjects operation middleware -func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { - - var err error - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListProjectsParams - - // ------------- Optional query parameter "limit" ------------- - - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } - - // ------------- Optional query parameter "offset" ------------- - - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProjects(w, r, params) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// CreateProject operation middleware -func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request) { - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateProject(w, r) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// DeleteProject operation middleware -func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteProject(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// GetProject operation middleware -func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProject(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// UpdateProject operation middleware -func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProject(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListActions operation middleware -func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListActionsParams - - // ------------- Optional query parameter "limit" ------------- - - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } - - // ------------- Optional query parameter "offset" ------------- - - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListActions(w, r, projectID, params) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// CreateAction operation middleware -func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateAction(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListActionMeta operation middleware -func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListActionMeta(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// GetActionPreview operation middleware -func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionType" ------------- - var actionType string - - err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionType", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetActionPreview(w, r, projectID, actionType) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// TestAction operation middleware -func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.TestAction(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// DeleteAction operation middleware -func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionID" ------------- - var actionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteAction(w, r, projectID, actionID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// GetAction operation middleware -func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionID" ------------- - var actionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetAction(w, r, projectID, actionID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// UpdateAction operation middleware -func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionID" ------------- - var actionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateAction(w, r, projectID, actionID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListActionSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionID" ------------- - var actionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) - return - } - - // ------------- Path parameter "functionID" ------------- - var functionID string - - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListActionSchemas(w, r, projectID, actionID, functionID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) +// ServerInterface represents all server handlers. +type ServerInterface interface { + // Delete organization + // (DELETE /api/admin/organizations) + DeleteOrganization(w http.ResponseWriter, r *http.Request) + // Get current organization + // (GET /api/admin/organizations) + GetOrganization(w http.ResponseWriter, r *http.Request) + // Update organization + // (PATCH /api/admin/organizations) + UpdateOrganization(w http.ResponseWriter, r *http.Request) + // List organization admins + // (GET /api/admin/organizations/admins) + ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) + // Create or update admin + // (POST /api/admin/organizations/admins) + CreateAdmin(w http.ResponseWriter, r *http.Request) + // Delete admin + // (DELETE /api/admin/organizations/admins/{adminID}) + DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Get admin by ID + // (GET /api/admin/organizations/admins/{adminID}) + GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Update admin + // (PATCH /api/admin/organizations/admins/{adminID}) + UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Get organization integrations + // (GET /api/admin/organizations/integrations) + GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) + // Get current admin + // (GET /api/admin/organizations/whoami) + Whoami(w http.ResponseWriter, r *http.Request) + // Get current admin profile + // (GET /api/admin/profile) + GetProfile(w http.ResponseWriter, r *http.Request) + // List projects + // (GET /api/admin/projects) + ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) + // Create project + // (POST /api/admin/projects) + CreateProject(w http.ResponseWriter, r *http.Request) + // Get project by ID + // (GET /api/admin/projects/{projectID}) + GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Update project + // (PATCH /api/admin/projects/{projectID}) + UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List project admins + // (GET /api/admin/projects/{projectID}/admins) + ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) + // Remove admin from project + // (DELETE /api/admin/projects/{projectID}/admins/{adminID}) + DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // Get project admin + // (GET /api/admin/projects/{projectID}/admins/{adminID}) + GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // Update project admin role + // (PATCH /api/admin/projects/{projectID}/admins/{adminID}) + UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // List campaigns + // (GET /api/admin/projects/{projectID}/campaigns) + ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) + // Create campaign + // (POST /api/admin/projects/{projectID}/campaigns) + CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete campaign + // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) + DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Get campaign by ID + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) + GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Update campaign + // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) + UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Duplicate campaign + // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) + DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Create template + // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) + CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Delete template + // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Get template by ID + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Update template + // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Get campaign users + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) + GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) + // List documents + // (GET /api/admin/projects/{projectID}/documents) + ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) + // Upload documents + // (POST /api/admin/projects/{projectID}/documents) + UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete document + // (DELETE /api/admin/projects/{projectID}/documents/{documentID}) + DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // Retrieve a document + // (GET /api/admin/projects/{projectID}/documents/{documentID}) + GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // Get document metadata + // (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) + GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // List events with schemas + // (GET /api/admin/projects/{projectID}/events/schema) + ListEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List journeys + // (GET /api/admin/projects/{projectID}/journeys) + ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) + // Create journey + // (POST /api/admin/projects/{projectID}/journeys) + CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete journey + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) + DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Get journey by ID + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}) + GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Update journey + // (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) + UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Duplicate journey + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) + DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List journey entrances + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) + ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) + // Publish journey + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) + PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Get journey steps + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) + GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Set journey steps + // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) + SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List users in journey step + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) + ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) + // Remove user from journey step + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) + RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Skip delay for user + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) + SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Trigger user into journey entrance + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) + TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Remove user from journey + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) + RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Create journey version + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) + VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List API keys + // (GET /api/admin/projects/{projectID}/keys) + ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) + // Create API key + // (POST /api/admin/projects/{projectID}/keys) + CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete API key + // (DELETE /api/admin/projects/{projectID}/keys/{keyID}) + DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // Get API key by ID + // (GET /api/admin/projects/{projectID}/keys/{keyID}) + GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // Update API key + // (PATCH /api/admin/projects/{projectID}/keys/{keyID}) + UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // List lists + // (GET /api/admin/projects/{projectID}/lists) + ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) + // Create list + // (POST /api/admin/projects/{projectID}/lists) + CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete list + // (DELETE /api/admin/projects/{projectID}/lists/{listID}) + DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Get list by ID + // (GET /api/admin/projects/{projectID}/lists/{listID}) + GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Update list + // (PATCH /api/admin/projects/{projectID}/lists/{listID}) + UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Duplicate list + // (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) + DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Recount list users + // (POST /api/admin/projects/{projectID}/lists/{listID}/recount) + RecountList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Get list users + // (GET /api/admin/projects/{projectID}/lists/{listID}/users) + GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) + // Import list users + // (POST /api/admin/projects/{projectID}/lists/{listID}/users) + ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // List locales + // (GET /api/admin/projects/{projectID}/locales) + ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) + // Create locale + // (POST /api/admin/projects/{projectID}/locales) + CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete locale + // (DELETE /api/admin/projects/{projectID}/locales/{localeID}) + DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) + // Get locale by ID + // (GET /api/admin/projects/{projectID}/locales/{localeID}) + GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) + // List providers + // (GET /api/admin/projects/{projectID}/providers) + ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) + // List all providers + // (GET /api/admin/projects/{projectID}/providers/all) + ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List available provider modules + // (GET /api/admin/projects/{projectID}/providers/meta) + ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Create provider + // (POST /api/admin/projects/{projectID}/providers/{group}/{type}) + CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) + // Get provider by ID + // (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) + GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) + // Update provider + // (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) + UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) + // Delete provider + // (DELETE /api/admin/projects/{projectID}/providers/{providerID}) + DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) + // List subscriptions + // (GET /api/admin/projects/{projectID}/subscriptions) + ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) + // Create subscription type + // (POST /api/admin/projects/{projectID}/subscriptions) + CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Get subscription by ID + // (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) + GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) + // Update subscription type + // (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) + UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) + // List tags + // (GET /api/admin/projects/{projectID}/tags) + ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) + // Create tag + // (POST /api/admin/projects/{projectID}/tags) + CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete tag + // (DELETE /api/admin/projects/{projectID}/tags/{tagID}) + DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // Get tag by ID + // (GET /api/admin/projects/{projectID}/tags/{tagID}) + GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // Update tag + // (PATCH /api/admin/projects/{projectID}/tags/{tagID}) + UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // List users + // (GET /api/admin/projects/{projectID}/users) + ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) + // Identify user + // (POST /api/admin/projects/{projectID}/users) + IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Bulk import users + // (POST /api/admin/projects/{projectID}/users/import) + ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List user schemas + // (GET /api/admin/projects/{projectID}/users/schema) + ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete user + // (DELETE /api/admin/projects/{projectID}/users/{userID}) + DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Get user by ID + // (GET /api/admin/projects/{projectID}/users/{userID}) + GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Update user + // (PATCH /api/admin/projects/{projectID}/users/{userID}) + UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Get user events + // (GET /api/admin/projects/{projectID}/users/{userID}/events) + GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) + // Get user journeys + // (GET /api/admin/projects/{projectID}/users/{userID}/journeys) + GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) + // Get user subscriptions + // (GET /api/admin/projects/{projectID}/users/{userID}/subscriptions) + GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) + // Update user subscriptions + // (PATCH /api/admin/projects/{projectID}/users/{userID}/subscriptions) + UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Complete authentication + // (POST /api/auth/login/{driver}/callback) + AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) + // Get available auth methods + // (GET /api/auth/methods) + GetAuthMethods(w http.ResponseWriter, r *http.Request) + // Auth provider webhook + // (POST /api/auth/{driver}/webhook) + AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) } -// TestActionFunction operation middleware -func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "actionID" ------------- - var actionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) - return - } - - // ------------- Path parameter "functionID" ------------- - var functionID string - - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.TestActionFunction(w, r, projectID, actionID, functionID) - })) +// Unimplemented server implementation that returns http.StatusNotImplemented for each endpoint. - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +type Unimplemented struct{} - handler.ServeHTTP(w, r) +// Delete organization +// (DELETE /api/admin/organizations) +func (_ Unimplemented) DeleteOrganization(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) } -// ListProjectAdmins operation middleware -func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListProjectAdminsParams - - // ------------- Optional query parameter "limit" ------------- +// Get current organization +// (GET /api/admin/organizations) +func (_ Unimplemented) GetOrganization(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } +// Update organization +// (PATCH /api/admin/organizations) +func (_ Unimplemented) UpdateOrganization(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Optional query parameter "offset" ------------- +// List organization admins +// (GET /api/admin/organizations/admins) +func (_ Unimplemented) ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } +// Create or update admin +// (POST /api/admin/organizations/admins) +func (_ Unimplemented) CreateAdmin(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Optional query parameter "search" ------------- +// Delete admin +// (DELETE /api/admin/organizations/admins/{adminID}) +func (_ Unimplemented) DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } +// Get admin by ID +// (GET /api/admin/organizations/admins/{adminID}) +func (_ Unimplemented) GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProjectAdmins(w, r, projectID, params) - })) +// Update admin +// (PATCH /api/admin/organizations/admins/{adminID}) +func (_ Unimplemented) UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Get organization integrations +// (GET /api/admin/organizations/integrations) +func (_ Unimplemented) GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Get current admin +// (GET /api/admin/organizations/whoami) +func (_ Unimplemented) Whoami(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) } -// DeleteProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { +// Get current admin profile +// (GET /api/admin/profile) +func (_ Unimplemented) GetProfile(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// List projects +// (GET /api/admin/projects) +func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Create project +// (POST /api/admin/projects) +func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Get project by ID +// (GET /api/admin/projects/{projectID}) +func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID +// Update project +// (PATCH /api/admin/projects/{projectID}) +func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) - return - } +// List project admins +// (GET /api/admin/projects/{projectID}/admins) +func (_ Unimplemented) ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Remove admin from project +// (DELETE /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Get project admin +// (GET /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// Update project admin role +// (PATCH /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteProjectAdmin(w, r, projectID, adminID) - })) +// List campaigns +// (GET /api/admin/projects/{projectID}/campaigns) +func (_ Unimplemented) ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Create campaign +// (POST /api/admin/projects/{projectID}/campaigns) +func (_ Unimplemented) CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Delete campaign +// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// GetProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { +// Get campaign by ID +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// Update campaign +// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Duplicate campaign +// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) +func (_ Unimplemented) DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Create template +// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) +func (_ Unimplemented) CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID +// Delete template +// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) - return - } +// Get template by ID +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Update template +// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Get campaign users +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) +func (_ Unimplemented) GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// List documents +// (GET /api/admin/projects/{projectID}/documents) +func (_ Unimplemented) ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProjectAdmin(w, r, projectID, adminID) - })) +// Upload documents +// (POST /api/admin/projects/{projectID}/documents) +func (_ Unimplemented) UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Delete document +// (DELETE /api/admin/projects/{projectID}/documents/{documentID}) +func (_ Unimplemented) DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Retrieve a document +// (GET /api/admin/projects/{projectID}/documents/{documentID}) +func (_ Unimplemented) GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// UpdateProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { +// Get document metadata +// (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) +func (_ Unimplemented) GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// List events with schemas +// (GET /api/admin/projects/{projectID}/events/schema) +func (_ Unimplemented) ListEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// List journeys +// (GET /api/admin/projects/{projectID}/journeys) +func (_ Unimplemented) ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Create journey +// (POST /api/admin/projects/{projectID}/journeys) +func (_ Unimplemented) CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID +// Delete journey +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) - return - } +// Get journey by ID +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Update journey +// (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Duplicate journey +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) +func (_ Unimplemented) DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// List journey entrances +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) +func (_ Unimplemented) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProjectAdmin(w, r, projectID, adminID) - })) +// Publish journey +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) +func (_ Unimplemented) PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Get journey steps +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) +func (_ Unimplemented) GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Set journey steps +// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) +func (_ Unimplemented) SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// ListCampaigns operation middleware -func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { +// List users in journey step +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) +func (_ Unimplemented) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// Remove user from journey step +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) +func (_ Unimplemented) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Skip delay for user +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) +func (_ Unimplemented) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Trigger user into journey entrance +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) +func (_ Unimplemented) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Remove user from journey +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) +func (_ Unimplemented) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Create journey version +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) +func (_ Unimplemented) VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// List API keys +// (GET /api/admin/projects/{projectID}/keys) +func (_ Unimplemented) ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) { + w.WriteHeader(http.StatusNotImplemented) +} - // Parameter object where we will unmarshal all parameters from the context - var params ListCampaignsParams +// Create API key +// (POST /api/admin/projects/{projectID}/keys) +func (_ Unimplemented) CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Optional query parameter "limit" ------------- +// Delete API key +// (DELETE /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } +// Get API key by ID +// (GET /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Optional query parameter "offset" ------------- +// Update API key +// (PATCH /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } +// List lists +// (GET /api/admin/projects/{projectID}/lists) +func (_ Unimplemented) ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Optional query parameter "search" ------------- +// Create list +// (POST /api/admin/projects/{projectID}/lists) +func (_ Unimplemented) CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } +// Delete list +// (DELETE /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListCampaigns(w, r, projectID, params) - })) +// Get list by ID +// (GET /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Update list +// (PATCH /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Duplicate list +// (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) +func (_ Unimplemented) DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// CreateCampaign operation middleware -func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { +// Recount list users +// (POST /api/admin/projects/{projectID}/lists/{listID}/recount) +func (_ Unimplemented) RecountList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// Get list users +// (GET /api/admin/projects/{projectID}/lists/{listID}/users) +func (_ Unimplemented) GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Import list users +// (POST /api/admin/projects/{projectID}/lists/{listID}/users) +func (_ Unimplemented) ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// List locales +// (GET /api/admin/projects/{projectID}/locales) +func (_ Unimplemented) ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Create locale +// (POST /api/admin/projects/{projectID}/locales) +func (_ Unimplemented) CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Delete locale +// (DELETE /api/admin/projects/{projectID}/locales/{localeID}) +func (_ Unimplemented) DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// Get locale by ID +// (GET /api/admin/projects/{projectID}/locales/{localeID}) +func (_ Unimplemented) GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateCampaign(w, r, projectID) - })) +// List providers +// (GET /api/admin/projects/{projectID}/providers) +func (_ Unimplemented) ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// List all providers +// (GET /api/admin/projects/{projectID}/providers/all) +func (_ Unimplemented) ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// List available provider modules +// (GET /api/admin/projects/{projectID}/providers/meta) +func (_ Unimplemented) ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// DeleteCampaign operation middleware -func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { +// Create provider +// (POST /api/admin/projects/{projectID}/providers/{group}/{type}) +func (_ Unimplemented) CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// Get provider by ID +// (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) +func (_ Unimplemented) GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Update provider +// (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) +func (_ Unimplemented) UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Delete provider +// (DELETE /api/admin/projects/{projectID}/providers/{providerID}) +func (_ Unimplemented) DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID +// List subscriptions +// (GET /api/admin/projects/{projectID}/subscriptions) +func (_ Unimplemented) ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } +// Create subscription type +// (POST /api/admin/projects/{projectID}/subscriptions) +func (_ Unimplemented) CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Get subscription by ID +// (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) +func (_ Unimplemented) GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Update subscription type +// (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) +func (_ Unimplemented) UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// List tags +// (GET /api/admin/projects/{projectID}/tags) +func (_ Unimplemented) ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteCampaign(w, r, projectID, campaignID) - })) +// Create tag +// (POST /api/admin/projects/{projectID}/tags) +func (_ Unimplemented) CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Delete tag +// (DELETE /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Get tag by ID +// (GET /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// GetCampaign operation middleware -func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { +// Update tag +// (PATCH /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// List users +// (GET /api/admin/projects/{projectID}/users) +func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Identify user +// (POST /api/admin/projects/{projectID}/users) +func (_ Unimplemented) IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Bulk import users +// (POST /api/admin/projects/{projectID}/users/import) +func (_ Unimplemented) ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID +// List user schemas +// (GET /api/admin/projects/{projectID}/users/schema) +func (_ Unimplemented) ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } +// Delete user +// (DELETE /api/admin/projects/{projectID}/users/{userID}) +func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx := r.Context() +// Get user by ID +// (GET /api/admin/projects/{projectID}/users/{userID}) +func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// Update user +// (PATCH /api/admin/projects/{projectID}/users/{userID}) +func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} - r = r.WithContext(ctx) +// Get user events +// (GET /api/admin/projects/{projectID}/users/{userID}/events) +func (_ Unimplemented) GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetCampaign(w, r, projectID, campaignID) - })) +// Get user journeys +// (GET /api/admin/projects/{projectID}/users/{userID}/journeys) +func (_ Unimplemented) GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) { + w.WriteHeader(http.StatusNotImplemented) +} - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } +// Get user subscriptions +// (GET /api/admin/projects/{projectID}/users/{userID}/subscriptions) +func (_ Unimplemented) GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) { + w.WriteHeader(http.StatusNotImplemented) +} - handler.ServeHTTP(w, r) +// Update user subscriptions +// (PATCH /api/admin/projects/{projectID}/users/{userID}/subscriptions) +func (_ Unimplemented) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) } -// UpdateCampaign operation middleware -func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { +// Complete authentication +// (POST /api/auth/login/{driver}/callback) +func (_ Unimplemented) AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) { + w.WriteHeader(http.StatusNotImplemented) +} - var err error +// Get available auth methods +// (GET /api/auth/methods) +func (_ Unimplemented) GetAuthMethods(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID +// Auth provider webhook +// (POST /api/auth/{driver}/webhook) +func (_ Unimplemented) AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) { + w.WriteHeader(http.StatusNotImplemented) +} - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// ServerInterfaceWrapper converts contexts to parameters. +type ServerInterfaceWrapper struct { + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) +} - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID +type MiddlewareFunc func(http.Handler) http.Handler - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } +// DeleteOrganization operation middleware +func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -20985,7 +16595,7 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateCampaign(w, r, projectID, campaignID) + siw.Handler.DeleteOrganization(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20995,28 +16605,8 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DuplicateCampaign operation middleware -func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } +// GetOrganization operation middleware +func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -21025,7 +16615,7 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateCampaign(w, r, projectID, campaignID) + siw.Handler.GetOrganization(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21035,28 +16625,8 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// CreateTemplate operation middleware -func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } +// UpdateOrganization operation middleware +func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -21065,7 +16635,7 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateTemplate(w, r, projectID, campaignID) + siw.Handler.UpdateOrganization(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21075,38 +16645,58 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DeleteTemplate operation middleware -func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { +// ListAdmins operation middleware +func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListAdminsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Optional query parameter "offset" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Optional query parameter "search" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListAdmins(w, r, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateAdmin operation middleware +func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -21114,7 +16704,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.CreateAdmin(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21124,35 +16714,17 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetTemplate operation middleware -func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { +// DeleteAdmin operation middleware +func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } - - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -21163,7 +16735,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.DeleteAdmin(w, r, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21173,35 +16745,17 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// UpdateTemplate operation middleware -func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { +// GetAdmin operation middleware +func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } - - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -21212,7 +16766,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.GetAdmin(w, r, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21222,26 +16776,17 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetCampaignUsers operation middleware -func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { +// UpdateAdmin operation middleware +func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -21251,27 +16796,28 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params GetCampaignUsersParams - - // ------------- Optional query parameter "limit" ------------- + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateAdmin(w, r, adminID) + })) - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - // ------------- Optional query parameter "offset" ------------- + handler.ServeHTTP(w, r) +} - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } +// GetOrganizationIntegrations operation middleware +func (siw *ServerInterfaceWrapper) GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) { + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetCampaignUsers(w, r, projectID, campaignID, params) + siw.Handler.GetOrganizationIntegrations(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21281,19 +16827,8 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ListDocuments operation middleware -func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } +// Whoami operation middleware +func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -21301,27 +16836,28 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params ListDocumentsParams - - // ------------- Optional query parameter "limit" ------------- + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.Whoami(w, r) + })) - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - // ------------- Optional query parameter "offset" ------------- + handler.ServeHTTP(w, r) +} - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } +// GetProfile operation middleware +func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Request) { + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListDocuments(w, r, projectID, params) + siw.Handler.GetProfile(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21331,28 +16867,46 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// UploadDocuments operation middleware -func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { +// ListProjects operation middleware +func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListProjectsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + // ------------- Optional query parameter "search" ------------- - r = r.WithContext(ctx) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UploadDocuments(w, r, projectID) + siw.Handler.ListProjects(w, r, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21362,28 +16916,8 @@ func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// DeleteDocument operation middleware -func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) - return - } +// CreateProject operation middleware +func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -21392,7 +16926,7 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteDocument(w, r, projectID, documentID) + siw.Handler.CreateProject(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21402,8 +16936,8 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetDocument operation middleware -func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { +// GetProject operation middleware +func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { var err error @@ -21416,15 +16950,6 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -21432,7 +16957,7 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetDocument(w, r, projectID, documentID) + siw.Handler.GetProject(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21442,8 +16967,8 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// GetDocumentMetadata operation middleware -func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { +// UpdateProject operation middleware +func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { var err error @@ -21456,15 +16981,6 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r return } - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -21472,7 +16988,7 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetDocumentMetadata(w, r, projectID, documentID) + siw.Handler.UpdateProject(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21482,8 +16998,8 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// ListJourneys operation middleware -func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { +// ListProjectAdmins operation middleware +func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { var err error @@ -21503,7 +17019,7 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListJourneysParams + var params ListProjectAdminsParams // ------------- Optional query parameter "limit" ------------- @@ -21530,7 +17046,7 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListJourneys(w, r, projectID, params) + siw.Handler.ListProjectAdmins(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21540,8 +17056,8 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// CreateJourney operation middleware -func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { +// DeleteProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error @@ -21554,25 +17070,23 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. return } + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params CreateJourneyParams - - // ------------- Optional query parameter "publish" ------------- - - err = runtime.BindQueryParameter("form", true, false, "publish", r.URL.Query(), ¶ms.Publish) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateJourney(w, r, projectID, params) + siw.Handler.DeleteProjectAdmin(w, r, projectID, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21582,8 +17096,8 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// DeleteJourney operation middleware -func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { +// GetProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error @@ -21596,12 +17110,12 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -21612,7 +17126,7 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteJourney(w, r, projectID, journeyID) + siw.Handler.GetProjectAdmin(w, r, projectID, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21622,8 +17136,8 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetJourney operation middleware -func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { +// UpdateProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error @@ -21636,12 +17150,12 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -21652,7 +17166,7 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetJourney(w, r, projectID, journeyID) + siw.Handler.UpdateProjectAdmin(w, r, projectID, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21662,8 +17176,8 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// UpdateJourney operation middleware -func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { +// ListCampaigns operation middleware +func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { var err error @@ -21676,12 +17190,53 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListCampaignsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListCampaigns(w, r, projectID, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateCampaign operation middleware +func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } @@ -21692,7 +17247,7 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateJourney(w, r, projectID, journeyID) + siw.Handler.CreateCampaign(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21702,8 +17257,8 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// DuplicateJourney operation middleware -func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { +// DeleteCampaign operation middleware +func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { var err error @@ -21716,12 +17271,12 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -21732,7 +17287,7 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateJourney(w, r, projectID, journeyID) + siw.Handler.DeleteCampaign(w, r, projectID, campaignID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21742,8 +17297,8 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// PublishJourney operation middleware -func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { +// GetCampaign operation middleware +func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { var err error @@ -21756,12 +17311,12 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -21772,7 +17327,7 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PublishJourney(w, r, projectID, journeyID) + siw.Handler.GetCampaign(w, r, projectID, campaignID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21782,8 +17337,8 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetJourneySteps operation middleware -func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { +// UpdateCampaign operation middleware +func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { var err error @@ -21796,12 +17351,12 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -21812,7 +17367,7 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetJourneySteps(w, r, projectID, journeyID) + siw.Handler.UpdateCampaign(w, r, projectID, campaignID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21822,8 +17377,8 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// SetJourneySteps operation middleware -func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { +// DuplicateCampaign operation middleware +func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { var err error @@ -21836,12 +17391,12 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -21852,7 +17407,7 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.SetJourneySteps(w, r, projectID, journeyID) + siw.Handler.DuplicateCampaign(w, r, projectID, campaignID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21862,35 +17417,26 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// StreamUserJourneySteps operation middleware -func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request) { +// CreateTemplate operation middleware +func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { var err error // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -21901,7 +17447,7 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.StreamUserJourneySteps(w, r, projectID, journeyID, userID) + siw.Handler.CreateTemplate(w, r, projectID, campaignID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21911,8 +17457,8 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, handler.ServeHTTP(w, r) } -// TriggerUser operation middleware -func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Request) { +// DeleteTemplate operation middleware +func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { var err error @@ -21925,21 +17471,21 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return } @@ -21950,7 +17496,7 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.TriggerUser(w, r, projectID, journeyID, userID) + siw.Handler.DeleteTemplate(w, r, projectID, campaignID, templateID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -21960,8 +17506,8 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// AdvanceUserStep operation middleware -func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *http.Request) { +// GetTemplate operation middleware +func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { var err error @@ -21974,21 +17520,21 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return } @@ -21999,7 +17545,7 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.AdvanceUserStep(w, r, projectID, journeyID, userID) + siw.Handler.GetTemplate(w, r, projectID, campaignID, templateID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22009,8 +17555,8 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// GetUserJourneyState operation middleware -func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r *http.Request) { +// UpdateTemplate operation middleware +func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { var err error @@ -22023,21 +17569,21 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return } @@ -22048,7 +17594,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserJourneyState(w, r, projectID, journeyID, userID) + siw.Handler.UpdateTemplate(w, r, projectID, campaignID, templateID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22058,8 +17604,8 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// VersionJourney operation middleware -func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { +// GetCampaignUsers operation middleware +func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -22072,12 +17618,12 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return } @@ -22087,8 +17633,27 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params GetCampaignUsersParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.VersionJourney(w, r, projectID, journeyID) + siw.Handler.GetCampaignUsers(w, r, projectID, campaignID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22098,8 +17663,8 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// ListApiKeys operation middleware -func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Request) { +// ListDocuments operation middleware +func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { var err error @@ -22119,7 +17684,7 @@ func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListApiKeysParams + var params ListDocumentsParams // ------------- Optional query parameter "limit" ------------- @@ -22138,7 +17703,7 @@ func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Re } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListApiKeys(w, r, projectID, params) + siw.Handler.ListDocuments(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22148,8 +17713,8 @@ func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// CreateApiKey operation middleware -func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.Request) { +// UploadDocuments operation middleware +func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { var err error @@ -22169,7 +17734,7 @@ func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateApiKey(w, r, projectID) + siw.Handler.UploadDocuments(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22179,8 +17744,8 @@ func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// DeleteApiKey operation middleware -func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.Request) { +// DeleteDocument operation middleware +func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { var err error @@ -22193,12 +17758,12 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return } @@ -22209,7 +17774,7 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteApiKey(w, r, projectID, keyID) + siw.Handler.DeleteDocument(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22219,8 +17784,8 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// GetApiKey operation middleware -func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Request) { +// GetDocument operation middleware +func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { var err error @@ -22233,12 +17798,12 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return } @@ -22249,7 +17814,7 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetApiKey(w, r, projectID, keyID) + siw.Handler.GetDocument(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22259,8 +17824,8 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// UpdateApiKey operation middleware -func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.Request) { +// GetDocumentMetadata operation middleware +func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { var err error @@ -22273,12 +17838,12 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return } @@ -22289,7 +17854,7 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateApiKey(w, r, projectID, keyID) + siw.Handler.GetDocumentMetadata(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22299,8 +17864,39 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// ListLists operation middleware -func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { +// ListEvents operation middleware +func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListEvents(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListJourneys operation middleware +func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { var err error @@ -22320,7 +17916,7 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListListsParams + var params ListJourneysParams // ------------- Optional query parameter "limit" ------------- @@ -22338,16 +17934,8 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ return } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListLists(w, r, projectID, params) + siw.Handler.ListJourneys(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22357,8 +17945,8 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// CreateList operation middleware -func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { +// CreateJourney operation middleware +func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22378,7 +17966,7 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateList(w, r, projectID) + siw.Handler.CreateJourney(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22388,8 +17976,8 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// DeleteList operation middleware -func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { +// DeleteJourney operation middleware +func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22402,12 +17990,12 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22418,7 +18006,7 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteList(w, r, projectID, listID) + siw.Handler.DeleteJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22428,8 +18016,8 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetList operation middleware -func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { +// GetJourney operation middleware +func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22442,12 +18030,12 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22458,7 +18046,7 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetList(w, r, projectID, listID) + siw.Handler.GetJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22468,8 +18056,8 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques handler.ServeHTTP(w, r) } -// UpdateList operation middleware -func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { +// UpdateJourney operation middleware +func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22482,12 +18070,12 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22498,7 +18086,7 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateList(w, r, projectID, listID) + siw.Handler.UpdateJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22508,8 +18096,8 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// DuplicateList operation middleware -func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { +// DuplicateJourney operation middleware +func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22522,12 +18110,12 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22538,7 +18126,7 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateList(w, r, projectID, listID) + siw.Handler.DuplicateJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22548,8 +18136,8 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetListUsers operation middleware -func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { +// ListJourneyEntrances operation middleware +func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r *http.Request) { var err error @@ -22562,12 +18150,12 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22578,7 +18166,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params GetListUsersParams + var params ListJourneyEntrancesParams // ------------- Optional query parameter "limit" ------------- @@ -22605,7 +18193,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetListUsers(w, r, projectID, listID, params) + siw.Handler.ListJourneyEntrances(w, r, projectID, journeyID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22615,8 +18203,8 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// PreviewListUsers operation middleware -func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *http.Request) { +// PublishJourney operation middleware +func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22629,12 +18217,12 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22644,19 +18232,48 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params PreviewListUsersParams + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PublishJourney(w, r, projectID, journeyID) + })) - // ------------- Optional query parameter "limit" ------------- + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + handler.ServeHTTP(w, r) +} + +// GetJourneySteps operation middleware +func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PreviewListUsers(w, r, projectID, listID, params) + siw.Handler.GetJourneySteps(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22666,8 +18283,8 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ImportListUsers operation middleware -func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { +// SetJourneySteps operation middleware +func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error @@ -22680,12 +18297,12 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -22696,7 +18313,7 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ImportListUsers(w, r, projectID, listID) + siw.Handler.SetJourneySteps(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22706,8 +18323,8 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// ListLocales operation middleware -func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { +// ListJourneyStepUsers operation middleware +func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -22720,6 +18337,24 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re return } + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "stepID" ------------- + var stepID string + + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -22727,7 +18362,7 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListLocalesParams + var params ListJourneyStepUsersParams // ------------- Optional query parameter "limit" ------------- @@ -22746,7 +18381,7 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListLocales(w, r, projectID, params) + siw.Handler.ListJourneyStepUsers(w, r, projectID, journeyID, stepID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22756,8 +18391,8 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// CreateLocale operation middleware -func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { +// RemoveUserFromJourneyStep operation middleware +func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request) { var err error @@ -22770,43 +18405,30 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateLocale(w, r, projectID) - })) + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return } - handler.ServeHTTP(w, r) -} - -// DeleteLocale operation middleware -func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "stepID" ------------- + var stepID string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) return } - // ------------- Path parameter "localeID" ------------- - var localeID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -22817,7 +18439,7 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteLocale(w, r, projectID, localeID) + siw.Handler.RemoveUserFromJourneyStep(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22827,8 +18449,8 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// GetLocale operation middleware -func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { +// SkipJourneyStepDelay operation middleware +func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request) { var err error @@ -22841,12 +18463,30 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "localeID" ------------- - var localeID string + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "stepID" ------------- + var stepID string + + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -22857,7 +18497,7 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetLocale(w, r, projectID, localeID) + siw.Handler.SkipJourneyStepDelay(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22867,8 +18507,8 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// ListProviders operation middleware -func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { +// TriggerUserToJourneyStep operation middleware +func (siw *ServerInterfaceWrapper) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request) { var err error @@ -22881,53 +18521,30 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListProvidersParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + // ------------- Path parameter "stepID" ------------- + var stepID string - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) return } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProviders(w, r, projectID, params) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListAllProviders operation middleware -func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -22938,7 +18555,7 @@ func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListAllProviders(w, r, projectID) + siw.Handler.TriggerUserToJourneyStep(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22948,8 +18565,8 @@ func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ListProviderMeta operation middleware -func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { +// RemoveUserFromJourney operation middleware +func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22962,6 +18579,24 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht return } + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -22969,7 +18604,7 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProviderMeta(w, r, projectID) + siw.Handler.RemoveUserFromJourney(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -22979,8 +18614,8 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// CreateProvider operation middleware -func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { +// VersionJourney operation middleware +func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -22993,21 +18628,12 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "group" ------------- - var group string - - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) - return - } - - // ------------- Path parameter "type" ------------- - var pType string + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -23018,7 +18644,7 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateProvider(w, r, projectID, group, pType) + siw.Handler.VersionJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23028,8 +18654,8 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetProvider operation middleware -func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { +// ListApiKeys operation middleware +func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Request) { var err error @@ -23042,30 +18668,53 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "group" ------------- - var group string + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListApiKeysParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - // ------------- Path parameter "type" ------------- - var pType string + // ------------- Optional query parameter "offset" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListApiKeys(w, r, projectID, params) + })) - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateApiKey operation middleware +func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } @@ -23076,7 +18725,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProvider(w, r, projectID, group, pType, providerID) + siw.Handler.CreateApiKey(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23086,8 +18735,8 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// UpdateProvider operation middleware -func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { +// DeleteApiKey operation middleware +func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -23100,30 +18749,12 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "group" ------------- - var group string - - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) - return - } - - // ------------- Path parameter "type" ------------- - var pType string - - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) - return - } - - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) return } @@ -23134,7 +18765,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProvider(w, r, projectID, group, pType, providerID) + siw.Handler.DeleteApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23144,8 +18775,8 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DeleteProvider operation middleware -func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { +// GetApiKey operation middleware +func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -23158,12 +18789,12 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) return } @@ -23174,7 +18805,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteProvider(w, r, projectID, providerID) + siw.Handler.GetApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23184,8 +18815,8 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// ListOrganizationEventSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request) { +// UpdateApiKey operation middleware +func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -23198,6 +18829,15 @@ func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseW return } + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -23205,7 +18845,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseW r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListOrganizationEventSchemas(w, r, projectID) + siw.Handler.UpdateApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23215,8 +18855,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseW handler.ServeHTTP(w, r) } -// ListOrganizations operation middleware -func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *http.Request) { +// ListLists operation middleware +func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { var err error @@ -23236,7 +18876,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListOrganizationsParams + var params ListListsParams // ------------- Optional query parameter "limit" ------------- @@ -23254,16 +18894,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h return } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListOrganizations(w, r, projectID, params) + siw.Handler.ListLists(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23273,8 +18905,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// UpsertOrganization operation middleware -func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r *http.Request) { +// CreateList operation middleware +func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { var err error @@ -23294,7 +18926,7 @@ func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpsertOrganization(w, r, projectID) + siw.Handler.CreateList(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23304,8 +18936,8 @@ func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// ListOrganizationSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request) { +// DeleteList operation middleware +func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { var err error @@ -23318,6 +18950,15 @@ func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter return } + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -23325,7 +18966,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListOrganizationSchemas(w, r, projectID) + siw.Handler.DeleteList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23335,8 +18976,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter handler.ServeHTTP(w, r) } -// ListOrganizationMemberSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request) { +// GetList operation middleware +func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { var err error @@ -23349,6 +18990,15 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.Response return } + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -23356,7 +19006,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.Response r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListOrganizationMemberSchemas(w, r, projectID) + siw.Handler.GetList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23366,8 +19016,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.Response handler.ServeHTTP(w, r) } -// DeleteOrganization operation middleware -func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { +// UpdateList operation middleware +func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { var err error @@ -23380,12 +19030,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -23396,7 +19046,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteOrganization(w, r, projectID, organizationID) + siw.Handler.UpdateList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23406,8 +19056,8 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetOrganization operation middleware -func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { +// DuplicateList operation middleware +func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { var err error @@ -23420,12 +19070,12 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -23436,7 +19086,7 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetOrganization(w, r, projectID, organizationID) + siw.Handler.DuplicateList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23446,8 +19096,8 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// UpdateOrganization operation middleware -func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { +// RecountList operation middleware +func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Request) { var err error @@ -23460,12 +19110,12 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -23476,7 +19126,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateOrganization(w, r, projectID, organizationID) + siw.Handler.RecountList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23486,8 +19136,8 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetOrganizationEvents operation middleware -func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, r *http.Request) { +// GetListUsers operation middleware +func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -23500,12 +19150,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -23516,7 +19166,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params GetOrganizationEventsParams + var params GetListUsersParams // ------------- Optional query parameter "limit" ------------- @@ -23535,7 +19185,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetOrganizationEvents(w, r, projectID, organizationID, params) + siw.Handler.GetListUsers(w, r, projectID, listID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23545,8 +19195,8 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, handler.ServeHTTP(w, r) } -// ListOrganizationMembers operation middleware -func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter, r *http.Request) { +// ImportListUsers operation middleware +func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -23559,12 +19209,43 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ImportListUsers(w, r, projectID, listID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListLocales operation middleware +func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } @@ -23575,7 +19256,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListOrganizationMembersParams + var params ListLocalesParams // ------------- Optional query parameter "limit" ------------- @@ -23594,7 +19275,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListOrganizationMembers(w, r, projectID, organizationID, params) + siw.Handler.ListLocales(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23604,8 +19285,8 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter handler.ServeHTTP(w, r) } -// AddOrganizationMember operation middleware -func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, r *http.Request) { +// CreateLocale operation middleware +func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { var err error @@ -23618,15 +19299,6 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -23634,7 +19306,7 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.AddOrganizationMember(w, r, projectID, organizationID) + siw.Handler.CreateLocale(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23644,8 +19316,8 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, handler.ServeHTTP(w, r) } -// RemoveOrganizationMember operation middleware -func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request) { +// DeleteLocale operation middleware +func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { var err error @@ -23658,21 +19330,12 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite return } - // ------------- Path parameter "organizationID" ------------- - var organizationID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) - return - } - - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "localeID" ------------- + var localeID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return } @@ -23683,7 +19346,7 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.RemoveOrganizationMember(w, r, projectID, organizationID, userID) + siw.Handler.DeleteLocale(w, r, projectID, localeID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23693,17 +19356,26 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite handler.ServeHTTP(w, r) } -// ListUserEventSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r *http.Request) { +// GetLocale operation middleware +func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "localeID" ------------- + var localeID string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return } @@ -23714,7 +19386,7 @@ func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListUserEventSchemas(w, r, projectID) + siw.Handler.GetLocale(w, r, projectID, localeID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23724,8 +19396,8 @@ func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// ListUsers operation middleware -func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { +// ListProviders operation middleware +func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { var err error @@ -23745,7 +19417,7 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListUsersParams + var params ListProvidersParams // ------------- Optional query parameter "limit" ------------- @@ -23763,16 +19435,8 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ return } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListUsers(w, r, projectID, params) + siw.Handler.ListProviders(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23782,8 +19446,8 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// IdentifyUser operation middleware -func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { +// ListAllProviders operation middleware +func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *http.Request) { var err error @@ -23803,7 +19467,7 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.IdentifyUser(w, r, projectID) + siw.Handler.ListAllProviders(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23813,8 +19477,8 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// ImportUsers operation middleware -func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { +// ListProviderMeta operation middleware +func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { var err error @@ -23834,7 +19498,7 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ImportUsers(w, r, projectID) + siw.Handler.ListProviderMeta(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23844,8 +19508,8 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// ListUserSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { +// CreateProvider operation middleware +func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -23858,43 +19522,21 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListUserSchemas(w, r, projectID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// DeleteUser operation middleware -func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "group" ------------- + var group string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "type" ------------- + var pType string - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return } @@ -23905,7 +19547,7 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteUser(w, r, projectID, userID) + siw.Handler.CreateProvider(w, r, projectID, group, pType) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23915,8 +19557,8 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetUser operation middleware -func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { +// GetProvider operation middleware +func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -23929,52 +19571,30 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "group" ------------- + var group string - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUser(w, r, projectID, userID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// UpdateUser operation middleware -func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "type" ------------- + var pType string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return } @@ -23985,7 +19605,7 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateUser(w, r, projectID, userID) + siw.Handler.GetProvider(w, r, projectID, group, pType, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -23995,8 +19615,8 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetUserDevices operation middleware -func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http.Request) { +// UpdateProvider operation middleware +func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -24009,12 +19629,30 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "group" ------------- + var group string - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) + return + } + + // ------------- Path parameter "type" ------------- + var pType string + + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) + return + } + + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return } @@ -24025,7 +19663,7 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserDevices(w, r, projectID, userID) + siw.Handler.UpdateProvider(w, r, projectID, group, pType, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24035,8 +19673,8 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DeleteUserDevice operation middleware -func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *http.Request) { +// DeleteProvider operation middleware +func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -24049,21 +19687,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - - // ------------- Path parameter "deviceID" ------------- - var deviceID openapi_types.UUID + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "deviceID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return } @@ -24074,7 +19703,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteUserDevice(w, r, projectID, userID, deviceID) + siw.Handler.DeleteProvider(w, r, projectID, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24084,8 +19713,8 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// GetUserEvents operation middleware -func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { +// ListSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { var err error @@ -24098,15 +19727,6 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24114,7 +19734,7 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params GetUserEventsParams + var params ListSubscriptionsParams // ------------- Optional query parameter "limit" ------------- @@ -24132,16 +19752,39 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. return } - // ------------- Optional query parameter "search" ------------- + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListSubscriptions(w, r, projectID, params) + })) - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateSubscription operation middleware +func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserEvents(w, r, projectID, userID, params) + siw.Handler.CreateSubscription(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24151,8 +19794,8 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetUserJourneys operation middleware -func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { +// GetSubscription operation middleware +func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { var err error @@ -24165,12 +19808,12 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "subscriptionID" ------------- + var subscriptionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return } @@ -24180,27 +19823,48 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params GetUserJourneysParams + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetSubscription(w, r, projectID, subscriptionID) + })) - // ------------- Optional query parameter "limit" ------------- + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// UpdateSubscription operation middleware +func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + // ------------- Path parameter "subscriptionID" ------------- + var subscriptionID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserJourneys(w, r, projectID, userID, params) + siw.Handler.UpdateSubscription(w, r, projectID, subscriptionID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24210,8 +19874,8 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// GetUserOrganizations operation middleware -func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r *http.Request) { +// ListTags operation middleware +func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { var err error @@ -24224,15 +19888,6 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24240,7 +19895,7 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params GetUserOrganizationsParams + var params ListTagsParams // ------------- Optional query parameter "limit" ------------- @@ -24267,7 +19922,7 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserOrganizations(w, r, projectID, userID, params) + siw.Handler.ListTags(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24277,8 +19932,8 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// GetUserSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { +// CreateTag operation middleware +func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { var err error @@ -24291,42 +19946,14 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params GetUserSubscriptionsParams - - // ------------- Optional query parameter "limit" ------------- - - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } - - // ------------- Optional query parameter "offset" ------------- - - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserSubscriptions(w, r, projectID, userID, params) + siw.Handler.CreateTag(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24336,8 +19963,8 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// UpdateUserSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { +// DeleteTag operation middleware +func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { var err error @@ -24350,12 +19977,12 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return } @@ -24366,7 +19993,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateUserSubscriptions(w, r, projectID, userID) + siw.Handler.DeleteTag(w, r, projectID, tagID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24376,8 +20003,8 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter handler.ServeHTTP(w, r) } -// ListSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { +// GetTag operation middleware +func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { var err error @@ -24390,33 +20017,23 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListSubscriptionsParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + ctx := r.Context() - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListSubscriptions(w, r, projectID, params) + siw.Handler.GetTag(w, r, projectID, tagID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24426,8 +20043,8 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// CreateSubscription operation middleware -func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { +// UpdateTag operation middleware +func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { var err error @@ -24440,6 +20057,15 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * return } + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24447,7 +20073,7 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateSubscription(w, r, projectID) + siw.Handler.UpdateTag(w, r, projectID, tagID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24457,8 +20083,8 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetSubscription operation middleware -func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { +// ListUsers operation middleware +func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -24471,23 +20097,41 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "subscriptionID" ------------- - var subscriptionID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListUsersParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - ctx := r.Context() + // ------------- Optional query parameter "offset" ------------- - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } - r = r.WithContext(ctx) + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetSubscription(w, r, projectID, subscriptionID) + siw.Handler.ListUsers(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24497,8 +20141,8 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// UpdateSubscription operation middleware -func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { +// IdentifyUser operation middleware +func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { var err error @@ -24511,15 +20155,6 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * return } - // ------------- Path parameter "subscriptionID" ------------- - var subscriptionID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24527,7 +20162,7 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateSubscription(w, r, projectID, subscriptionID) + siw.Handler.IdentifyUser(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24537,8 +20172,8 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// ListTags operation middleware -func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { +// ImportUsers operation middleware +func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -24557,35 +20192,8 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params ListTagsParams - - // ------------- Optional query parameter "limit" ------------- - - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } - - // ------------- Optional query parameter "offset" ------------- - - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListTags(w, r, projectID, params) + siw.Handler.ImportUsers(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24595,8 +20203,8 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque handler.ServeHTTP(w, r) } -// CreateTag operation middleware -func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { +// ListUserSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { var err error @@ -24616,7 +20224,7 @@ func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateTag(w, r, projectID) + siw.Handler.ListUserSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24626,8 +20234,8 @@ func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// DeleteTag operation middleware -func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { +// DeleteUser operation middleware +func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { var err error @@ -24640,12 +20248,12 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -24656,7 +20264,7 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteTag(w, r, projectID, tagID) + siw.Handler.DeleteUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24666,8 +20274,8 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// GetTag operation middleware -func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { +// GetUser operation middleware +func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { var err error @@ -24680,12 +20288,12 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -24696,7 +20304,7 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetTag(w, r, projectID, tagID) + siw.Handler.GetUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24706,8 +20314,8 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request handler.ServeHTTP(w, r) } -// UpdateTag operation middleware -func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { +// UpdateUser operation middleware +func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { var err error @@ -24720,12 +20328,12 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -24736,7 +20344,7 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateTag(w, r, projectID, tagID) + siw.Handler.UpdateUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24746,11 +20354,29 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// ListAdmins operation middleware -func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { +// GetUserEvents operation middleware +func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { var err error + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24758,7 +20384,7 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListAdminsParams + var params GetUserEventsParams // ------------- Optional query parameter "limit" ------------- @@ -24776,16 +20402,8 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req return } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListAdmins(w, r, params) + siw.Handler.GetUserEvents(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24795,48 +20413,56 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// CreateAdmin operation middleware -func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Request) { +// GetUserJourneys operation middleware +func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() + var err error - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - r = r.WithContext(ctx) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateAdmin(w, r) - })) + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return } - handler.ServeHTTP(w, r) -} + ctx := r.Context() -// DeleteAdmin operation middleware -func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - var err error + r = r.WithContext(ctx) - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // Parameter object where we will unmarshal all parameters from the context + var params GetUserJourneysParams - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + // ------------- Optional query parameter "offset" ------------- - r = r.WithContext(ctx) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteAdmin(w, r, adminID) + siw.Handler.GetUserJourneys(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24846,17 +20472,26 @@ func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// GetAdmin operation middleware -func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { +// GetUserSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -24866,8 +20501,27 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params GetUserSubscriptionsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetAdmin(w, r, adminID) + siw.Handler.GetUserSubscriptions(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -24877,40 +20531,29 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque handler.ServeHTTP(w, r) } -// UpdateAdmin operation middleware -func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { +// UpdateUserSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateAdmin(w, r, adminID) - })) + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return } - handler.ServeHTTP(w, r) -} - -// Whoami operation middleware -func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -24918,7 +20561,7 @@ func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.Whoami(w, r) + siw.Handler.UpdateUserSubscriptions(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -25106,52 +20749,49 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl } r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/profile", wrapper.GetProfile) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects", wrapper.ListProjects) + r.Delete(options.BaseURL+"/api/admin/organizations", wrapper.DeleteOrganization) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects", wrapper.CreateProject) + r.Get(options.BaseURL+"/api/admin/organizations", wrapper.GetOrganization) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.DeleteProject) + r.Patch(options.BaseURL+"/api/admin/organizations", wrapper.UpdateOrganization) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.GetProject) + r.Get(options.BaseURL+"/api/admin/organizations/admins", wrapper.ListAdmins) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.UpdateProject) + r.Post(options.BaseURL+"/api/admin/organizations/admins", wrapper.CreateAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions", wrapper.ListActions) + r.Delete(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.DeleteAdmin) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions", wrapper.CreateAction) + r.Get(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.GetAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/meta", wrapper.ListActionMeta) + r.Patch(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.UpdateAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/meta/{actionType}/preview", wrapper.GetActionPreview) + r.Get(options.BaseURL+"/api/admin/organizations/integrations", wrapper.GetOrganizationIntegrations) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions/test", wrapper.TestAction) + r.Get(options.BaseURL+"/api/admin/organizations/whoami", wrapper.Whoami) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.DeleteAction) + r.Get(options.BaseURL+"/api/admin/profile", wrapper.GetProfile) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.GetAction) + r.Get(options.BaseURL+"/api/admin/projects", wrapper.ListProjects) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.UpdateAction) + r.Post(options.BaseURL+"/api/admin/projects", wrapper.CreateProject) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema", wrapper.ListActionSchemas) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.GetProject) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test", wrapper.TestActionFunction) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.UpdateProject) }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/admins", wrapper.ListProjectAdmins) @@ -25213,6 +20853,9 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/documents/{documentID}/metadata", wrapper.GetDocumentMetadata) }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/events/schema", wrapper.ListEvents) + }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys", wrapper.ListJourneys) }) @@ -25231,6 +20874,9 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/duplicate", wrapper.DuplicateJourney) }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/entrances", wrapper.ListJourneyEntrances) + }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/publish", wrapper.PublishJourney) }) @@ -25241,16 +20887,19 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Put(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/steps", wrapper.SetJourneySteps) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.StreamUserJourneySteps) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users", wrapper.ListJourneyStepUsers) + }) + r.Group(func(r chi.Router) { + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}", wrapper.RemoveUserFromJourneyStep) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.TriggerUser) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip", wrapper.SkipJourneyStepDelay) }) r.Group(func(r chi.Router) { - r.Put(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.AdvanceUserStep) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger", wrapper.TriggerUserToJourneyStep) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state", wrapper.GetUserJourneyState) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.RemoveUserFromJourney) }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/version", wrapper.VersionJourney) @@ -25289,13 +20938,13 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/duplicate", wrapper.DuplicateList) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users", wrapper.GetListUsers) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/recount", wrapper.RecountList) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users/preview", wrapper.PreviewListUsers) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users", wrapper.GetListUsers) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users/preview", wrapper.ImportListUsers) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users", wrapper.ImportListUsers) }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/locales", wrapper.ListLocales) @@ -25331,130 +20980,64 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/providers/{providerID}", wrapper.DeleteProvider) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organization/events/schema", wrapper.ListOrganizationEventSchemas) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations", wrapper.ListOrganizations) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations", wrapper.UpsertOrganization) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/schema", wrapper.ListOrganizationSchemas) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/users/schema", wrapper.ListOrganizationMemberSchemas) - }) - r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.DeleteOrganization) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.GetOrganization) - }) - r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.UpdateOrganization) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events", wrapper.GetOrganizationEvents) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users", wrapper.ListOrganizationMembers) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users", wrapper.AddOrganizationMember) - }) - r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}", wrapper.RemoveOrganizationMember) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/user/events/schema", wrapper.ListUserEventSchemas) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users", wrapper.ListUsers) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users", wrapper.IdentifyUser) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/import", wrapper.ImportUsers) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/schema", wrapper.ListUserSchemas) - }) - r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.DeleteUser) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.GetUser) - }) - r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.UpdateUser) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/devices", wrapper.GetUserDevices) - }) - r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}", wrapper.DeleteUserDevice) - }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/events", wrapper.GetUserEvents) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.ListSubscriptions) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/journeys", wrapper.GetUserJourneys) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.CreateSubscription) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations", wrapper.GetUserOrganizations) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.GetSubscription) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions", wrapper.GetUserSubscriptions) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.UpdateSubscription) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions", wrapper.UpdateUserSubscriptions) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.ListTags) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.ListSubscriptions) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.CreateTag) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.CreateSubscription) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.DeleteTag) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.GetSubscription) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.GetTag) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.UpdateSubscription) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.UpdateTag) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.ListTags) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users", wrapper.ListUsers) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.CreateTag) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/users", wrapper.IdentifyUser) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.DeleteTag) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/users/import", wrapper.ImportUsers) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.GetTag) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/schema", wrapper.ListUserSchemas) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.UpdateTag) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.DeleteUser) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/tenant/admins", wrapper.ListAdmins) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.GetUser) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/tenant/admins", wrapper.CreateAdmin) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.UpdateUser) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.DeleteAdmin) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/events", wrapper.GetUserEvents) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.GetAdmin) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/journeys", wrapper.GetUserJourneys) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.UpdateAdmin) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/subscriptions", wrapper.GetUserSubscriptions) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/tenant/whoami", wrapper.Whoami) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/subscriptions", wrapper.UpdateUserSubscriptions) }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/auth/login/{driver}/callback", wrapper.AuthCallback) From 910dab2e08b643a3b6edb3b2c354d8d1e9cc3b20 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Mar 2026 11:38:55 +0100 Subject: [PATCH 06/10] fix: lint and generate fixes --- console/src/oapi/management.generated.ts | 92 +++++++++---------- console/src/views/project/Projects.tsx | 20 ++-- .../v1/management/oapi/resources.yml | 35 +++++++ 3 files changed, 91 insertions(+), 56 deletions(-) diff --git a/console/src/oapi/management.generated.ts b/console/src/oapi/management.generated.ts index ebd1cdd75..7674e4af0 100644 --- a/console/src/oapi/management.generated.ts +++ b/console/src/oapi/management.generated.ts @@ -228,6 +228,26 @@ export interface paths { patch?: never; trace?: never; }; + "/api/admin/projects/{projectID}/lists/{listID}/recount": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Recount list users + * @description Recalculates the user count for a dynamic list by re-evaluating the rules + */ + post: operations["recountList"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/admin/projects/{projectID}/lists/{listID}": { parameters: { query?: never; @@ -300,26 +320,6 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/lists/{listID}/recount": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Recount list users - * @description Recalculates the user count for a dynamic list by re-evaluating the rules - */ - post: operations["recountList"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/admin/projects": { parameters: { query?: never; @@ -3462,6 +3462,32 @@ export interface operations { default: components["responses"]["Error"]; }; }; + recountList: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The list ID */ + listID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Recount started successfully. The list state will be set to 'loading'. */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["List"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; getList: { parameters: { query?: never; @@ -3633,32 +3659,6 @@ export interface operations { default: components["responses"]["Error"]; }; }; - recountList: { - parameters: { - query?: never; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The list ID */ - listID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Recount started successfully. The list state will be set to 'loading'. */ - 202: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["List"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; listProjects: { parameters: { query?: { diff --git a/console/src/views/project/Projects.tsx b/console/src/views/project/Projects.tsx index b02ca850c..665183856 100644 --- a/console/src/views/project/Projects.tsx +++ b/console/src/views/project/Projects.tsx @@ -26,9 +26,7 @@ export function Projects() { }, }) ) - if (!res) return null - const projects = res.data?.results || [] - + const projects = res?.data?.results || []; const recents = useMemo(() => { const recents = getRecentProjects() if (!projects?.length || !recents.length) return [] @@ -43,20 +41,22 @@ export function Projects() { a.push({ when, project, - }) + }); } - return a - }, []) - }, [projects]) - const [open, setOpen] = useState(false) + return a; + }, []); + }, [projects]); + const [open, setOpen] = useState(false); useEffect(() => { - if (projects && !projects.length) { + if (res && projects && !projects.length) { navigate("/onboarding/project")?.catch((e) => { console.error("Failed to navigate to onboarding:", e) }) } - }, [projects, navigate]) + }, [res, projects, navigate]); + + if (!res) return null; return ( Date: Fri, 6 Mar 2026 12:59:07 +0100 Subject: [PATCH 07/10] fix: github tests fix --- .../controllers/v1/management/controller.go | 8 + pnpm-lock.yaml | 1148 +++++++++++++++++ 2 files changed, 1156 insertions(+) create mode 100644 pnpm-lock.yaml diff --git a/internal/http/controllers/v1/management/controller.go b/internal/http/controllers/v1/management/controller.go index c8b3d80f5..71d464a29 100644 --- a/internal/http/controllers/v1/management/controller.go +++ b/internal/http/controllers/v1/management/controller.go @@ -1,9 +1,12 @@ package v1 import ( + "net/http" + "github.com/jmoiron/sqlx" "github.com/lunogram/platform/internal/actions" "github.com/lunogram/platform/internal/config" + mgmtoapi "github.com/lunogram/platform/internal/http/controllers/v1/management/oapi" "github.com/lunogram/platform/internal/providers" "github.com/lunogram/platform/internal/pubsub" "github.com/lunogram/platform/internal/rbac" @@ -11,6 +14,7 @@ import ( "github.com/lunogram/platform/internal/store/management" "github.com/lunogram/platform/internal/webhook" "github.com/nats-io/nats.go/jetstream" + openapi_types "github.com/oapi-codegen/runtime/types" "go.uber.org/zap" ) @@ -67,3 +71,7 @@ type Controller struct { *ApiKeysController *ActionsController } + +func (c *Controller) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params mgmtoapi.ListJourneyEntrancesParams) { + w.WriteHeader(http.StatusNotImplemented) +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 000000000..0b7000bcf --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,1148 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@openapitools/openapi-generator-cli': + specifier: ^2.29.0 + version: 2.30.2 + +packages: + + '@borewit/text-codec@0.2.1': + resolution: {integrity: sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==} + + '@inquirer/core@6.0.0': + resolution: {integrity: sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==} + engines: {node: '>=14.18.0'} + + '@inquirer/select@1.3.3': + resolution: {integrity: sha512-RzlRISXWqIKEf83FDC9ZtJ3JvuK1l7aGpretf41BCWYrvla2wU8W8MTRNMiPrPJ+1SIqrRC1nZdZ60hD9hRXLg==} + engines: {node: '>=14.18.0'} + + '@inquirer/type@1.5.5': + resolution: {integrity: sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==} + engines: {node: '>=18'} + + '@lukeed/csprng@1.1.0': + resolution: {integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==} + engines: {node: '>=8'} + + '@nestjs/axios@4.0.1': + resolution: {integrity: sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==} + peerDependencies: + '@nestjs/common': ^10.0.0 || ^11.0.0 + axios: ^1.3.1 + rxjs: ^7.0.0 + + '@nestjs/common@11.1.16': + resolution: {integrity: sha512-JSIeW+USuMJkkcNbiOdcPkVCeI3TSnXstIVEPpp3HiaKnPRuSbUUKm9TY9o/XpIcPHWUOQItAtC5BiAwFdVITQ==} + peerDependencies: + class-transformer: '>=0.4.1' + class-validator: '>=0.13.2' + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/core@11.1.16': + resolution: {integrity: sha512-tXWXyCiqWthelJjrE0KLFjf0O98VEt+WPVx5CrqCf+059kIxJ8y1Vw7Cy7N4fwQafWNrmFL2AfN87DDMbVAY0w==} + engines: {node: '>= 20'} + peerDependencies: + '@nestjs/common': ^11.0.0 + '@nestjs/microservices': ^11.0.0 + '@nestjs/platform-express': ^11.0.0 + '@nestjs/websockets': ^11.0.0 + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + '@nestjs/microservices': + optional: true + '@nestjs/platform-express': + optional: true + '@nestjs/websockets': + optional: true + + '@nuxt/opencollective@0.4.1': + resolution: {integrity: sha512-GXD3wy50qYbxCJ652bDrDzgMr3NFEkIS374+IgFQKkCvk9yiYcLvX2XDYr7UyQxf4wK0e+yqDYRubZ0DtOxnmQ==} + engines: {node: ^14.18.0 || >=16.10.0, npm: '>=5.10.0'} + hasBin: true + + '@nuxtjs/opencollective@0.3.2': + resolution: {integrity: sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==} + engines: {node: '>=8.0.0', npm: '>=5.0.0'} + hasBin: true + + '@openapitools/openapi-generator-cli@2.30.2': + resolution: {integrity: sha512-rGgLrY88f7/eTBc2wmehhcqQq7/1wEkNQUhvk1NF0nh/bCGGGRfzN6O4U2VHsREtshUT+IUaRoJwq4UeDrRXZQ==} + engines: {node: '>=20.19.0'} + hasBin: true + + '@tokenizer/inflate@0.4.1': + resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} + engines: {node: '>=18'} + + '@tokenizer/token@0.3.0': + resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} + + '@tootallnate/quickjs-emscripten@0.23.0': + resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} + + '@types/mute-stream@0.0.4': + resolution: {integrity: sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==} + + '@types/node@20.19.37': + resolution: {integrity: sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw==} + + '@types/wrap-ansi@3.0.0': + resolution: {integrity: sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==} + + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} + + ansi-escapes@4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ast-types@0.13.4: + resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} + engines: {node: '>=4'} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + axios@1.13.6: + resolution: {integrity: sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + basic-ftp@5.2.0: + resolution: {integrity: sha512-VoMINM2rqJwJgfdHq6RiUudKt2BV+FY5ZFezP/ypmwayk68+NzzAQy4XXLlqsGD4MCzq3DrmNFD/uUmBJuGoXw==} + engines: {node: '>=10.0.0'} + + brace-expansion@5.0.4: + resolution: {integrity: sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==} + engines: {node: 18 || 20 || >=22} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + cli-spinners@2.9.2: + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} + engines: {node: '>=6'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + + clone@1.0.4: + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@8.3.0: + resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} + engines: {node: '>= 12'} + + compare-versions@6.1.1: + resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} + + concurrently@9.2.1: + resolution: {integrity: sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==} + engines: {node: '>=18'} + hasBin: true + + consola@2.15.3: + resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} + + consola@3.4.2: + resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} + engines: {node: ^14.18.0 || >=16.10.0} + + console.table@0.10.0: + resolution: {integrity: sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==} + engines: {node: '> 0.10'} + + data-uri-to-buffer@6.0.2: + resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==} + engines: {node: '>= 14'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + defaults@1.0.4: + resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} + + degenerator@5.0.1: + resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} + engines: {node: '>= 14'} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + easy-table@1.1.0: + resolution: {integrity: sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} + + escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + figures@3.2.0: + resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} + engines: {node: '>=8'} + + file-type@21.3.0: + resolution: {integrity: sha512-8kPJMIGz1Yt/aPEwOsrR97ZyZaD1Iqm8PClb1nYFclUCkBi0Ma5IsYNQzvSFS9ib51lWyIw5mIT9rWzI/xjpzA==} + engines: {node: '>=20'} + + follow-redirects@1.15.11: + resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + + form-data@4.0.5: + resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==} + engines: {node: '>= 6'} + + fs-extra@11.3.4: + resolution: {integrity: sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==} + engines: {node: '>=14.14'} + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + get-uri@6.0.5: + resolution: {integrity: sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==} + engines: {node: '>= 14'} + + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + ip-address@10.1.0: + resolution: {integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==} + engines: {node: '>= 12'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + iterare@1.2.1: + resolution: {integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==} + engines: {node: '>=6'} + + jsonfile@6.2.0: + resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==} + + load-esm@1.0.3: + resolution: {integrity: sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==} + engines: {node: '>=13.2.0'} + + lru-cache@11.2.6: + resolution: {integrity: sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==} + engines: {node: 20 || >=22} + + lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + minimatch@10.2.4: + resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==} + engines: {node: 18 || 20 || >=22} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + mute-stream@1.0.0: + resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + + netmask@2.0.2: + resolution: {integrity: sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==} + engines: {node: '>= 0.4.0'} + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + pac-proxy-agent@7.2.0: + resolution: {integrity: sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==} + engines: {node: '>= 14'} + + pac-resolver@7.0.1: + resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} + engines: {node: '>= 14'} + + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + + path-to-regexp@8.3.0: + resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==} + + proxy-agent@6.5.0: + resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==} + engines: {node: '>= 14'} + + proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + + reflect-metadata@0.2.2: + resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + run-async@3.0.0: + resolution: {integrity: sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==} + engines: {node: '>=0.12.0'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + shell-quote@1.8.3: + resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==} + engines: {node: '>= 0.4'} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + smart-buffer@4.2.0: + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + + socks-proxy-agent@8.0.5: + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} + engines: {node: '>= 14'} + + socks@2.8.7: + resolution: {integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strtok3@10.3.4: + resolution: {integrity: sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==} + engines: {node: '>=18'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + token-types@6.1.2: + resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==} + engines: {node: '>=14.16'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + type-fest@0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + + uid@2.0.2: + resolution: {integrity: sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==} + engines: {node: '>=8'} + + uint8array-extras@1.5.0: + resolution: {integrity: sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==} + engines: {node: '>=18'} + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + wcwidth@1.0.1: + resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + +snapshots: + + '@borewit/text-codec@0.2.1': {} + + '@inquirer/core@6.0.0': + dependencies: + '@inquirer/type': 1.5.5 + '@types/mute-stream': 0.0.4 + '@types/node': 20.19.37 + '@types/wrap-ansi': 3.0.0 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-spinners: 2.9.2 + cli-width: 4.1.0 + figures: 3.2.0 + mute-stream: 1.0.0 + run-async: 3.0.0 + signal-exit: 4.1.0 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + + '@inquirer/select@1.3.3': + dependencies: + '@inquirer/core': 6.0.0 + '@inquirer/type': 1.5.5 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + figures: 3.2.0 + + '@inquirer/type@1.5.5': + dependencies: + mute-stream: 1.0.0 + + '@lukeed/csprng@1.1.0': {} + + '@nestjs/axios@4.0.1(@nestjs/common@11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2))(axios@1.13.6)(rxjs@7.8.2)': + dependencies: + '@nestjs/common': 11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2) + axios: 1.13.6 + rxjs: 7.8.2 + + '@nestjs/common@11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + file-type: 21.3.0 + iterare: 1.2.1 + load-esm: 1.0.3 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.8.1 + uid: 2.0.2 + transitivePeerDependencies: + - supports-color + + '@nestjs/core@11.1.16(@nestjs/common@11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + '@nestjs/common': 11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nuxt/opencollective': 0.4.1 + fast-safe-stringify: 2.1.1 + iterare: 1.2.1 + path-to-regexp: 8.3.0 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.8.1 + uid: 2.0.2 + + '@nuxt/opencollective@0.4.1': + dependencies: + consola: 3.4.2 + + '@nuxtjs/opencollective@0.3.2': + dependencies: + chalk: 4.1.2 + consola: 2.15.3 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + + '@openapitools/openapi-generator-cli@2.30.2': + dependencies: + '@inquirer/select': 1.3.3 + '@nestjs/axios': 4.0.1(@nestjs/common@11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2))(axios@1.13.6)(rxjs@7.8.2) + '@nestjs/common': 11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.16(@nestjs/common@11.1.16(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nuxtjs/opencollective': 0.3.2 + axios: 1.13.6 + chalk: 4.1.2 + commander: 8.3.0 + compare-versions: 6.1.1 + concurrently: 9.2.1 + console.table: 0.10.0 + fs-extra: 11.3.4 + glob: 13.0.6 + proxy-agent: 6.5.0 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.8.1 + transitivePeerDependencies: + - '@nestjs/microservices' + - '@nestjs/platform-express' + - '@nestjs/websockets' + - class-transformer + - class-validator + - debug + - encoding + - supports-color + + '@tokenizer/inflate@0.4.1': + dependencies: + debug: 4.4.3 + token-types: 6.1.2 + transitivePeerDependencies: + - supports-color + + '@tokenizer/token@0.3.0': {} + + '@tootallnate/quickjs-emscripten@0.23.0': {} + + '@types/mute-stream@0.0.4': + dependencies: + '@types/node': 20.19.37 + + '@types/node@20.19.37': + dependencies: + undici-types: 6.21.0 + + '@types/wrap-ansi@3.0.0': {} + + agent-base@7.1.4: {} + + ansi-escapes@4.3.2: + dependencies: + type-fest: 0.21.3 + + ansi-regex@5.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ast-types@0.13.4: + dependencies: + tslib: 2.8.1 + + asynckit@0.4.0: {} + + axios@1.13.6: + dependencies: + follow-redirects: 1.15.11 + form-data: 4.0.5 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + + balanced-match@4.0.4: {} + + basic-ftp@5.2.0: {} + + brace-expansion@5.0.4: + dependencies: + balanced-match: 4.0.4 + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + cli-spinners@2.9.2: {} + + cli-width@4.1.0: {} + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + clone@1.0.4: + optional: true + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + commander@8.3.0: {} + + compare-versions@6.1.1: {} + + concurrently@9.2.1: + dependencies: + chalk: 4.1.2 + rxjs: 7.8.2 + shell-quote: 1.8.3 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 17.7.2 + + consola@2.15.3: {} + + consola@3.4.2: {} + + console.table@0.10.0: + dependencies: + easy-table: 1.1.0 + + data-uri-to-buffer@6.0.2: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + defaults@1.0.4: + dependencies: + clone: 1.0.4 + optional: true + + degenerator@5.0.1: + dependencies: + ast-types: 0.13.4 + escodegen: 2.1.0 + esprima: 4.0.1 + + delayed-stream@1.0.0: {} + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + easy-table@1.1.0: + optionalDependencies: + wcwidth: 1.0.1 + + emoji-regex@8.0.0: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + + escalade@3.2.0: {} + + escape-string-regexp@1.0.5: {} + + escodegen@2.1.0: + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + + esprima@4.0.1: {} + + estraverse@5.3.0: {} + + esutils@2.0.3: {} + + fast-safe-stringify@2.1.1: {} + + figures@3.2.0: + dependencies: + escape-string-regexp: 1.0.5 + + file-type@21.3.0: + dependencies: + '@tokenizer/inflate': 0.4.1 + strtok3: 10.3.4 + token-types: 6.1.2 + uint8array-extras: 1.5.0 + transitivePeerDependencies: + - supports-color + + follow-redirects@1.15.11: {} + + form-data@4.0.5: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.2 + mime-types: 2.1.35 + + fs-extra@11.3.4: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.2.0 + universalify: 2.0.1 + + function-bind@1.1.2: {} + + get-caller-file@2.0.5: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + + get-uri@6.0.5: + dependencies: + basic-ftp: 5.2.0 + data-uri-to-buffer: 6.0.2 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + glob@13.0.6: + dependencies: + minimatch: 10.2.4 + minipass: 7.1.3 + path-scurry: 2.0.2 + + gopd@1.2.0: {} + + graceful-fs@4.2.11: {} + + has-flag@4.0.0: {} + + has-symbols@1.1.0: {} + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + http-proxy-agent@7.0.2: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + ieee754@1.2.1: {} + + ip-address@10.1.0: {} + + is-fullwidth-code-point@3.0.0: {} + + iterare@1.2.1: {} + + jsonfile@6.2.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + load-esm@1.0.3: {} + + lru-cache@11.2.6: {} + + lru-cache@7.18.3: {} + + math-intrinsics@1.1.0: {} + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + minimatch@10.2.4: + dependencies: + brace-expansion: 5.0.4 + + minipass@7.1.3: {} + + ms@2.1.3: {} + + mute-stream@1.0.0: {} + + netmask@2.0.2: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + pac-proxy-agent@7.2.0: + dependencies: + '@tootallnate/quickjs-emscripten': 0.23.0 + agent-base: 7.1.4 + debug: 4.4.3 + get-uri: 6.0.5 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + pac-resolver: 7.0.1 + socks-proxy-agent: 8.0.5 + transitivePeerDependencies: + - supports-color + + pac-resolver@7.0.1: + dependencies: + degenerator: 5.0.1 + netmask: 2.0.2 + + path-scurry@2.0.2: + dependencies: + lru-cache: 11.2.6 + minipass: 7.1.3 + + path-to-regexp@8.3.0: {} + + proxy-agent@6.5.0: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + lru-cache: 7.18.3 + pac-proxy-agent: 7.2.0 + proxy-from-env: 1.1.0 + socks-proxy-agent: 8.0.5 + transitivePeerDependencies: + - supports-color + + proxy-from-env@1.1.0: {} + + reflect-metadata@0.2.2: {} + + require-directory@2.1.1: {} + + run-async@3.0.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.8.1 + + shell-quote@1.8.3: {} + + signal-exit@4.1.0: {} + + smart-buffer@4.2.0: {} + + socks-proxy-agent@8.0.5: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + socks: 2.8.7 + transitivePeerDependencies: + - supports-color + + socks@2.8.7: + dependencies: + ip-address: 10.1.0 + smart-buffer: 4.2.0 + + source-map@0.6.1: + optional: true + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strtok3@10.3.4: + dependencies: + '@tokenizer/token': 0.3.0 + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + token-types@6.1.2: + dependencies: + '@borewit/text-codec': 0.2.1 + '@tokenizer/token': 0.3.0 + ieee754: 1.2.1 + + tr46@0.0.3: {} + + tree-kill@1.2.2: {} + + tslib@2.8.1: {} + + type-fest@0.21.3: {} + + uid@2.0.2: + dependencies: + '@lukeed/csprng': 1.1.0 + + uint8array-extras@1.5.0: {} + + undici-types@6.21.0: {} + + universalify@2.0.1: {} + + wcwidth@1.0.1: + dependencies: + defaults: 1.0.4 + optional: true + + webidl-conversions@3.0.1: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + y18n@5.0.8: {} + + yargs-parser@21.1.1: {} + + yargs@17.7.2: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 From dfa41e26e305230290f79d1a4fb11ec4b7aba27e Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Mar 2026 14:36:28 +0100 Subject: [PATCH 08/10] fix: removed changes in controller.go --- console/src/views/users/UserDetail.tsx | 2 -- internal/http/controllers/v1/management/controller.go | 8 -------- 2 files changed, 10 deletions(-) diff --git a/console/src/views/users/UserDetail.tsx b/console/src/views/users/UserDetail.tsx index 3d195f614..0896e3a40 100644 --- a/console/src/views/users/UserDetail.tsx +++ b/console/src/views/users/UserDetail.tsx @@ -109,8 +109,6 @@ export default function UserDetail() { setIsSavingTimezone(false) } } - } - } const handleLocaleChange = async (newLocale: string) => { setIsSavingLocale(true) diff --git a/internal/http/controllers/v1/management/controller.go b/internal/http/controllers/v1/management/controller.go index 71d464a29..c8b3d80f5 100644 --- a/internal/http/controllers/v1/management/controller.go +++ b/internal/http/controllers/v1/management/controller.go @@ -1,12 +1,9 @@ package v1 import ( - "net/http" - "github.com/jmoiron/sqlx" "github.com/lunogram/platform/internal/actions" "github.com/lunogram/platform/internal/config" - mgmtoapi "github.com/lunogram/platform/internal/http/controllers/v1/management/oapi" "github.com/lunogram/platform/internal/providers" "github.com/lunogram/platform/internal/pubsub" "github.com/lunogram/platform/internal/rbac" @@ -14,7 +11,6 @@ import ( "github.com/lunogram/platform/internal/store/management" "github.com/lunogram/platform/internal/webhook" "github.com/nats-io/nats.go/jetstream" - openapi_types "github.com/oapi-codegen/runtime/types" "go.uber.org/zap" ) @@ -71,7 +67,3 @@ type Controller struct { *ApiKeysController *ActionsController } - -func (c *Controller) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params mgmtoapi.ListJourneyEntrancesParams) { - w.WriteHeader(http.StatusNotImplemented) -} From d2db626ca2c241934db04fe9dba2ce7a40158c50 Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 9 Mar 2026 15:39:30 +0100 Subject: [PATCH 09/10] fix: updated oapi spec --- console/src/oapi/management.generated.ts | 5467 ++-- .../v1/management/oapi/resources.yml | 72 +- .../v1/management/oapi/resources_gen.go | 21464 ++++++++++------ internal/wasm/test/provider.wasm | Bin 508361 -> 505909 bytes 4 files changed, 17251 insertions(+), 9752 deletions(-) diff --git a/console/src/oapi/management.generated.ts b/console/src/oapi/management.generated.ts index 7674e4af0..b98769da5 100644 --- a/console/src/oapi/management.generated.ts +++ b/console/src/oapi/management.generated.ts @@ -309,6 +309,26 @@ export interface paths { */ get: operations["getListUsers"]; put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/lists/{listID}/users/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Preview list users + * @description Returns a limited preview of users that match the list's draft rule without modifying list membership + */ + get: operations["previewListUsers"]; + put?: never; /** * Import list users * @description Imports users to a static list from a CSV file @@ -358,7 +378,11 @@ export interface paths { get: operations["getProject"]; put?: never; post?: never; - delete?: never; + /** + * Delete project + * @description Soft deletes a project by setting its deleted_at timestamp + */ + delete: operations["deleteProject"]; options?: never; head?: never; /** @@ -420,6 +444,58 @@ export interface paths { patch: operations["updateJourney"]; trace?: never; }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get user journey state + * @description Retrieves the current state of a user in a journey + */ + get: operations["getUserJourneyState"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Stream user journey steps + * @description Streams the current steps and progress of a specific user in a journey in real-time using Server-Sent Events (SSE) + */ + get: operations["streamUserJourneySteps"]; + /** + * Advance user step + * @description Advances the current step for a user in a journey and moves to the next step + */ + put: operations["AdvanceUserStep"]; + /** + * Trigger a user into a journey + * @description Triggers a user into a journey at a specific entrance step, typically used for testing or manual overrides + */ + post: operations["triggerUser"]; + /** + * Remove user from journey + * @description Removes a user from all active entrances in a journey + */ + delete: operations["removeUserFromJourney"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/admin/projects/{projectID}/journeys/{journeyID}/steps": { parameters: { query?: never; @@ -584,26 +660,6 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * Remove user from journey - * @description Removes a user from all active entrances in a journey - */ - delete: operations["removeUserFromJourney"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/admin/projects/{projectID}/journeys/{journeyID}/entrances": { parameters: { query?: never; @@ -644,7 +700,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/organizations/admins": { + "/api/admin/tenant/admins": { parameters: { query?: never; header?: never; @@ -668,7 +724,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/organizations/admins/{adminID}": { + "/api/admin/tenant/admins/{adminID}": { parameters: { query?: never; header?: never; @@ -696,7 +752,7 @@ export interface paths { patch: operations["updateAdmin"]; trace?: never; }; - "/api/admin/organizations/whoami": { + "/api/admin/tenant/whoami": { parameters: { query?: never; header?: never; @@ -716,55 +772,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/organizations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get current organization - * @description Retrieves the current organization for the authenticated admin - */ - get: operations["getOrganization"]; - put?: never; - post?: never; - /** - * Delete organization - * @description Soft deletes the current organization (requires owner role) - */ - delete: operations["deleteOrganization"]; - options?: never; - head?: never; - /** - * Update organization - * @description Updates organization properties (requires owner role) - */ - patch: operations["updateOrganization"]; - trace?: never; - }; - "/api/admin/organizations/integrations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get organization integrations - * @description Retrieves all provider integrations for the organization - */ - get: operations["getOrganizationIntegrations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/projects/{projectID}/users": { + "/api/admin/projects/{projectID}/subjects/users": { parameters: { query?: never; header?: never; @@ -788,7 +796,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/users/import": { + "/api/admin/projects/{projectID}/subjects/users/import": { parameters: { query?: never; header?: never; @@ -808,7 +816,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/users/{userID}": { + "/api/admin/projects/{projectID}/subjects/users/{userID}": { parameters: { query?: never; header?: never; @@ -836,7 +844,7 @@ export interface paths { patch: operations["updateUser"]; trace?: never; }; - "/api/admin/projects/{projectID}/users/{userID}/events": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/events": { parameters: { query?: never; header?: never; @@ -856,7 +864,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/users/{userID}/subscriptions": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions": { parameters: { query?: never; header?: never; @@ -880,7 +888,7 @@ export interface paths { patch: operations["updateUserSubscriptions"]; trace?: never; }; - "/api/admin/projects/{projectID}/users/{userID}/journeys": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/journeys": { parameters: { query?: never; header?: never; @@ -900,7 +908,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/events/schema": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/devices": { parameters: { query?: never; header?: never; @@ -908,10 +916,10 @@ export interface paths { cookie?: never; }; /** - * List events with schemas - * @description Retrieves all events and their schema paths for a project + * Get user devices + * @description Retrieves registered devices for a specific user */ - get: operations["listEvents"]; + get: operations["getUserDevices"]; put?: never; post?: never; delete?: never; @@ -920,27 +928,27 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/users/schema": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** - * List user schemas - * @description Retrieves all user data schema paths for a project - */ - get: operations["listUserSchemas"]; + get?: never; put?: never; post?: never; - delete?: never; + /** + * Delete user device + * @description Soft deletes a registered device for a specific user + */ + delete: operations["deleteUserDevice"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/tags": { + "/api/admin/projects/{projectID}/subjects/user/events/schema": { parameters: { query?: never; header?: never; @@ -948,23 +956,19 @@ export interface paths { cookie?: never; }; /** - * List tags - * @description Retrieves a list of tags with optional search filtering + * List user event schemas + * @description Retrieves all user events and their schema paths for a project */ - get: operations["listTags"]; + get: operations["listUserEventSchemas"]; put?: never; - /** - * Create tag - * @description Creates a new tag - */ - post: operations["createTag"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/tags/{tagID}": { + "/api/admin/projects/{projectID}/subjects/users/schema": { parameters: { query?: never; header?: never; @@ -972,27 +976,19 @@ export interface paths { cookie?: never; }; /** - * Get tag by ID - * @description Retrieves a specific tag + * List user schemas + * @description Retrieves all user data schema paths for a project */ - get: operations["getTag"]; + get: operations["listUserSchemas"]; put?: never; post?: never; - /** - * Delete tag - * @description Deletes a specific tag - */ - delete: operations["deleteTag"]; + delete?: never; options?: never; head?: never; - /** - * Update tag - * @description Updates a specific tag - */ - patch: operations["updateTag"]; + patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subscriptions": { + "/api/admin/projects/{projectID}/subjects/organizations": { parameters: { query?: never; header?: never; @@ -1000,23 +996,23 @@ export interface paths { cookie?: never; }; /** - * List subscriptions - * @description Retrieves a list of subscription types for a project + * List subject organizations + * @description Retrieves a paginated list of organizations (subjects) in a project */ - get: operations["listSubscriptions"]; + get: operations["listOrganizations"]; put?: never; /** - * Create subscription type - * @description Creates a new subscription type + * Create or update subject organization + * @description Creates or updates an organization (subject) by external_id */ - post: operations["createSubscription"]; + post: operations["upsertOrganization"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/subscriptions/{subscriptionID}": { + "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}": { parameters: { query?: never; header?: never; @@ -1024,23 +1020,27 @@ export interface paths { cookie?: never; }; /** - * Get subscription by ID - * @description Retrieves a specific subscription type + * Get subject organization by ID + * @description Retrieves a specific organization (subject) */ - get: operations["getSubscription"]; + get: operations["getOrganization"]; put?: never; post?: never; - delete?: never; + /** + * Delete subject organization + * @description Deletes an organization and removes all user memberships + */ + delete: operations["deleteOrganization"]; options?: never; head?: never; /** - * Update subscription type - * @description Updates a specific subscription type + * Update subject organization + * @description Updates organization properties */ - patch: operations["updateSubscription"]; + patch: operations["updateOrganization"]; trace?: never; }; - "/api/admin/projects/{projectID}/locales": { + "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users": { parameters: { query?: never; header?: never; @@ -1048,47 +1048,43 @@ export interface paths { cookie?: never; }; /** - * List locales - * @description Retrieves a paginated list of locales for a project + * List organization users + * @description Retrieves users belonging to an organization with their org-specific data */ - get: operations["listLocales"]; + get: operations["listOrganizationMembers"]; put?: never; /** - * Create locale - * @description Creates a new locale for a project + * Add user to organization + * @description Adds a user to an organization with optional org-specific data */ - post: operations["createLocale"]; + post: operations["addOrganizationMember"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/locales/{localeID}": { + "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** - * Get locale by ID - * @description Retrieves a specific locale - */ - get: operations["getLocale"]; + get?: never; put?: never; post?: never; /** - * Delete locale - * @description Deletes a locale from a project + * Remove user from organization + * @description Removes a user from an organization */ - delete: operations["deleteLocale"]; + delete: operations["removeOrganizationMember"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/documents": { + "/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events": { parameters: { query?: never; header?: never; @@ -1096,23 +1092,19 @@ export interface paths { cookie?: never; }; /** - * List documents - * @description Retrieves a paginated list of documents for a project + * Get organization events + * @description Retrieves events for a specific organization */ - get: operations["listDocuments"]; + get: operations["getOrganizationEvents"]; put?: never; - /** - * Upload documents - * @description Uploads one or more documents using multipart/form-data - */ - post: operations["uploadDocuments"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/documents/{documentID}": { + "/api/admin/projects/{projectID}/subjects/organization/events/schema": { parameters: { query?: never; header?: never; @@ -1120,23 +1112,19 @@ export interface paths { cookie?: never; }; /** - * Retrieve a document - * @description Retrieves a document file by ID + * List organization event schemas + * @description Retrieves all organization events and their schema paths for a project */ - get: operations["getDocument"]; + get: operations["listOrganizationEventSchemas"]; put?: never; post?: never; - /** - * Delete document - * @description Soft deletes a document - */ - delete: operations["deleteDocument"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/documents/{documentID}/metadata": { + "/api/admin/projects/{projectID}/subjects/organizations/schema": { parameters: { query?: never; header?: never; @@ -1144,10 +1132,10 @@ export interface paths { cookie?: never; }; /** - * Get document metadata - * @description Retrieves detailed metadata about a document without downloading the file + * List organization schemas + * @description Retrieves all organization data schema paths for a project */ - get: operations["getDocumentMetadata"]; + get: operations["listOrganizationSchemas"]; put?: never; post?: never; delete?: never; @@ -1156,7 +1144,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/admins": { + "/api/admin/projects/{projectID}/subjects/organizations/users/schema": { parameters: { query?: never; header?: never; @@ -1164,10 +1152,10 @@ export interface paths { cookie?: never; }; /** - * List project admins - * @description Retrieves a list of admins for a project with optional filtering + * List organization user schemas + * @description Retrieves all organization user data schema paths for a project */ - get: operations["listProjectAdmins"]; + get: operations["listOrganizationMemberSchemas"]; put?: never; post?: never; delete?: never; @@ -1176,7 +1164,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/admins/{adminID}": { + "/api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations": { parameters: { query?: never; header?: never; @@ -1184,27 +1172,19 @@ export interface paths { cookie?: never; }; /** - * Get project admin - * @description Retrieves a specific project admin by ID + * Get user organizations + * @description Retrieves all organizations a user belongs to */ - get: operations["getProjectAdmin"]; + get: operations["getUserOrganizations"]; put?: never; post?: never; - /** - * Remove admin from project - * @description Removes an admin from a project (soft delete) - */ - delete: operations["deleteProjectAdmin"]; + delete?: never; options?: never; head?: never; - /** - * Update project admin role - * @description Updates the role of an admin in a project - */ - patch: operations["updateProjectAdmin"]; + patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/keys": { + "/api/admin/projects/{projectID}/tags": { parameters: { query?: never; header?: never; @@ -1212,23 +1192,23 @@ export interface paths { cookie?: never; }; /** - * List API keys - * @description Retrieves a paginated list of API keys for a project + * List tags + * @description Retrieves a list of tags with optional search filtering */ - get: operations["listApiKeys"]; + get: operations["listTags"]; put?: never; /** - * Create API key - * @description Creates a new API key for a project + * Create tag + * @description Creates a new tag */ - post: operations["createApiKey"]; + post: operations["createTag"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/keys/{keyID}": { + "/api/admin/projects/{projectID}/tags/{tagID}": { parameters: { query?: never; header?: never; @@ -1236,27 +1216,27 @@ export interface paths { cookie?: never; }; /** - * Get API key by ID - * @description Retrieves a specific API key + * Get tag by ID + * @description Retrieves a specific tag */ - get: operations["getApiKey"]; + get: operations["getTag"]; put?: never; post?: never; /** - * Delete API key - * @description Deletes an API key, revoking access + * Delete tag + * @description Deletes a specific tag */ - delete: operations["deleteApiKey"]; + delete: operations["deleteTag"]; options?: never; head?: never; /** - * Update API key - * @description Updates an API key's name or description (scope cannot be changed) + * Update tag + * @description Updates a specific tag */ - patch: operations["updateApiKey"]; + patch: operations["updateTag"]; trace?: never; }; - "/api/admin/projects/{projectID}/providers": { + "/api/admin/projects/{projectID}/subscriptions": { parameters: { query?: never; header?: never; @@ -1264,19 +1244,23 @@ export interface paths { cookie?: never; }; /** - * List providers - * @description Retrieves a paginated list of providers for a project + * List subscriptions + * @description Retrieves a list of subscription types for a project */ - get: operations["listProviders"]; + get: operations["listSubscriptions"]; put?: never; - post?: never; + /** + * Create subscription type + * @description Creates a new subscription type + */ + post: operations["createSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/providers/all": { + "/api/admin/projects/{projectID}/subscriptions/{subscriptionID}": { parameters: { query?: never; header?: never; @@ -1284,19 +1268,47 @@ export interface paths { cookie?: never; }; /** - * List all providers - * @description Retrieves all providers for a project without pagination + * Get subscription by ID + * @description Retrieves a specific subscription type */ - get: operations["listAllProviders"]; + get: operations["getSubscription"]; put?: never; post?: never; delete?: never; options?: never; head?: never; + /** + * Update subscription type + * @description Updates a specific subscription type + */ + patch: operations["updateSubscription"]; + trace?: never; + }; + "/api/admin/projects/{projectID}/locales": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List locales + * @description Retrieves a paginated list of locales for a project + */ + get: operations["listLocales"]; + put?: never; + /** + * Create locale + * @description Creates a new locale for a project + */ + post: operations["createLocale"]; + delete?: never; + options?: never; + head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/providers/meta": { + "/api/admin/projects/{projectID}/locales/{localeID}": { parameters: { query?: never; header?: never; @@ -1304,39 +1316,91 @@ export interface paths { cookie?: never; }; /** - * List available provider modules - * @description Retrieves all available provider modules (integrations) that can be configured + * Get locale by ID + * @description Retrieves a specific locale */ - get: operations["listProviderMeta"]; + get: operations["getLocale"]; put?: never; post?: never; + /** + * Delete locale + * @description Deletes a locale from a project + */ + delete: operations["deleteLocale"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/documents": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List documents + * @description Retrieves a paginated list of documents for a project + */ + get: operations["listDocuments"]; + put?: never; + /** + * Upload documents + * @description Uploads one or more documents using multipart/form-data + */ + post: operations["uploadDocuments"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/providers/{group}/{type}": { + "/api/admin/projects/{projectID}/documents/{documentID}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** + * Retrieve a document + * @description Retrieves a document file by ID + */ + get: operations["getDocument"]; put?: never; + post?: never; /** - * Create provider - * @description Creates a new provider configuration + * Delete document + * @description Soft deletes a document */ - post: operations["createProvider"]; + delete: operations["deleteDocument"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/documents/{documentID}/metadata": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get document metadata + * @description Retrieves detailed metadata about a document without downloading the file + */ + get: operations["getDocumentMetadata"]; + put?: never; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}": { + "/api/admin/projects/{projectID}/admins": { parameters: { query?: never; header?: never; @@ -1344,328 +1408,407 @@ export interface paths { cookie?: never; }; /** - * Get provider by ID - * @description Retrieves a specific provider + * List project admins + * @description Retrieves a list of admins for a project with optional filtering */ - get: operations["getProvider"]; + get: operations["listProjectAdmins"]; put?: never; post?: never; delete?: never; options?: never; head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/admins/{adminID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Update provider - * @description Updates provider configuration + * Get project admin + * @description Retrieves a specific project admin by ID */ - patch: operations["updateProvider"]; + get: operations["getProjectAdmin"]; + put?: never; + post?: never; + /** + * Remove admin from project + * @description Removes an admin from a project (soft delete) + */ + delete: operations["deleteProjectAdmin"]; + options?: never; + head?: never; + /** + * Update project admin role + * @description Updates the role of an admin in a project + */ + patch: operations["updateProjectAdmin"]; trace?: never; }; - "/api/admin/projects/{projectID}/providers/{providerID}": { + "/api/admin/projects/{projectID}/keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** + * List API keys + * @description Retrieves a paginated list of API keys for a project + */ + get: operations["listApiKeys"]; + put?: never; + /** + * Create API key + * @description Creates a new API key for a project + */ + post: operations["createApiKey"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/keys/{keyID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get API key by ID + * @description Retrieves a specific API key + */ + get: operations["getApiKey"]; put?: never; post?: never; /** - * Delete provider - * @description Soft deletes a provider + * Delete API key + * @description Deletes an API key, revoking access */ - delete: operations["deleteProvider"]; + delete: operations["deleteApiKey"]; + options?: never; + head?: never; + /** + * Update API key + * @description Updates an API key's name or description (scope cannot be changed) + */ + patch: operations["updateApiKey"]; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List actions + * @description Retrieves a paginated list of actions for a project + */ + get: operations["listActions"]; + put?: never; + /** + * Create action + * @description Creates a new action for a project + */ + post: operations["createAction"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; -} -export type webhooks = Record; -export interface components { - schemas: { + "/api/admin/projects/{projectID}/actions/{actionID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * @description Communication channel type - * @example email - * @enum {string} + * Get action by ID + * @description Retrieves a specific action */ - Channel: "email" | "text" | "push" | "webhook"; + get: operations["getAction"]; + put?: never; + post?: never; /** - * @description Journey step type - * @example entrance - * @enum {string} + * Delete action + * @description Deletes an action */ - JourneyStepType: "entrance" | "exit" | "delay" | "action" | "gate" | "experiment" | "link" | "sticky" | "balancer" | "update" | "event"; - /** @description Data for entrance step - entry point into journey */ - EntranceStepData: { - /** - * @description Trigger type for entrance - * @example event - * @enum {string} - */ - trigger?: "none" | "event" | "schedule"; - /** - * @description Event name that triggers entrance - * @example user_signup - */ - event_name?: string; - /** @description Rule for filtering events */ - rule?: { - [key: string]: unknown; - }; - /** - * @description Allow multiple entries - * @example false - */ - multiple?: boolean; - /** - * @description Allow concurrent journey runs - * @example false - */ - concurrent?: boolean; - /** - * Format: uuid - * @description List ID for scheduled entrance - */ - list_id?: string; - /** - * @description RRule schedule string - * @example FREQ=DAILY;BYHOUR=9;BYMINUTE=0 - */ - schedule?: string; - }; - /** @description Data for exit step - exits user from journey */ - ExitStepData: { - /** - * @description External ID of entrance to exit from - * @example step_abc123 - */ - entrance_uuid: string; - }; - /** @description Data for delay step - wait before proceeding */ - DelayStepData: { - /** - * @description Format of delay - * @example duration - * @enum {string} - */ - format: "duration" | "time" | "date"; - /** - * @description Minutes to delay (for duration format) - * @example 30 - */ - minutes?: number; - /** - * @description Hours to delay (for duration format) - * @example 1 - */ - hours?: number; - /** - * @description Days to delay (for duration format) - * @example 0 - */ - days?: number; - /** - * @description Time of day HH:mm (for time format) - * @example 09:00 - */ - time?: string; - /** - * @description Date template string (for date format) - * @example 2025-12-31T23:59:59Z - */ - date?: string; - /** @description Days to exclude (0=Sunday, 6=Saturday) */ - exclusion_days?: number[]; - }; - /** @description Data for action step - send campaign */ - ActionStepData: { - /** - * Format: uuid - * @description Campaign to send - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa - */ - campaign_id: string; - }; - /** @description Data for gate step - conditional branching */ - GateStepData: { - /** @description Rule set for conditional evaluation */ - rule: { - [key: string]: unknown; - }; - }; - /** @description Data for experiment step - A/B testing */ - ExperimentStepData: { - /** - * @description Experiment name - * @example Welcome Email Test - */ - name?: string; - }; - /** @description Data for link step - add user to another journey */ - LinkStepData: { - /** - * Format: uuid - * @description Target journey ID to link to - */ - target_id: string; - /** - * @description Delay before adding to journey - * @example 1 day - * @enum {string} - */ - delay?: "1 minute" | "15 minutes" | "1 hour" | "1 day"; - }; - /** @description Data for sticky step - placeholder for sticky logic */ - StickyStepData: Record; - /** @description Data for balancer step - rate-limited distribution */ - BalancerStepData: { - /** - * @description Maximum users per interval - * @example 100 - */ - rate_limit: number; - /** - * @description Rate limit interval - * @example hour - * @enum {string} - */ - interval: "second" | "minute" | "hour" | "day"; - }; - /** @description Data for update step - update user data */ - UpdateStepData: { - /** - * @description JSON template string for updating user data - * @example {"last_journey": "onboarding"} - */ - template: string; + delete: operations["deleteAction"]; + options?: never; + head?: never; + /** + * Update action + * @description Updates an action's name, type, or config + */ + patch: operations["updateAction"]; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions/meta": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description Data for event step - trigger custom event */ - EventStepData: { - /** - * @description Name of event to trigger - * @example journey_milestone - */ - event_name: string; - /** - * @description JSON template string for event data - * @example {"milestone": "completed_step_1"} - */ - template?: string; + /** + * List available action modules + * @description Retrieves all available action modules that can be configured + */ + get: operations["listActionMeta"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions/meta/{actionType}/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description Data for experiment step children - defines branch ratio */ - ExperimentChildData: { - /** - * Format: float - * @description Ratio for this experiment branch (0-1) - * @example 0.5 - */ - ratio: number; + /** + * Get action module preview + * @description Returns raw HTML preview for a specific action module + */ + get: operations["getActionPreview"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** @description Data for gate step children - typically empty, path determines branch */ - GateChildData: Record; + get?: never; + put?: never; /** - * @description Role within an organization - * @example member - * @enum {string} + * Test an action configuration + * @description Validates an action's configuration (e.g. API keys, OAuth credentials, bearer tokens) by calling the module's validate function. Does not require the action to be saved first. */ - OrganizationRole: "owner" | "admin" | "member"; + post: operations["testAction"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * @description Role within a project - * @example admin - * @enum {string} + * List action function schemas + * @description Retrieves the schema paths for an action function's execution result metadata */ - ProjectRole: "support" | "editor" | "publisher" | "admin"; + get: operations["listActionSchemas"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; /** - * @description User subscription state - * @example subscribed - * @enum {string} + * Test action function execution + * @description Tests executing an action function with the given input, useful for validating function calls in the journey editor */ - SubscriptionState: "subscribed" | "unsubscribed"; - Problem: { - /** - * @description A short summary of the problem type. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. - * @example some title for the error situation - */ - title: string; - /** - * @description A human readable explanation specific to this occurrence of the problem that is helpful to locate the problem and give advice on how to proceed. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. - * @example some description for the error situation - */ - detail: string; + post: operations["testActionFunction"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - PaginatedResponse: { - /** - * @description Total number of items matching the filters - * @example 42 - */ - total: number; - /** - * @description Maximum number of items returned - * @example 20 - */ - limit: number; - /** - * @description Number of items skipped - * @example 0 - */ - offset: number; + /** + * List providers + * @description Retrieves a paginated list of providers for a project + */ + get: operations["listProviders"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers/all": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - UserList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["User"][]; + /** + * List all providers + * @description Retrieves all providers for a project without pagination + */ + get: operations["listAllProviders"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers/meta": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - AdminList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Admin"][]; + /** + * List available provider modules + * @description Retrieves all available provider modules (integrations) that can be configured + */ + get: operations["listProviderMeta"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers/{group}/{type}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - ProjectList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Project"][]; + get?: never; + put?: never; + /** + * Create provider + * @description Creates a new provider configuration + */ + post: operations["createProvider"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - Project: { + /** + * Get provider by ID + * @description Retrieves a specific provider + */ + get: operations["getProvider"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + /** + * Update provider + * @description Updates provider configuration + */ + patch: operations["updateProvider"]; + trace?: never; + }; + "/api/admin/projects/{projectID}/providers/{providerID}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** + * Delete provider + * @description Soft deletes a provider + */ + delete: operations["deleteProvider"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** + * @description Communication channel type + * @example email + * @enum {string} + */ + Channel: "email" | "text" | "push" | "webhook"; + /** + * @description Type of action (module ID from registered action modules) + * @example webhook + */ + ActionType: string; + Action: { /** * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d */ id: string; /** * Format: uuid - * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ - organization_id?: string; - /** @example My Project */ + project_id: string; + /** @example My Webhook Action */ name: string; - /** @example A project for managing customer communications */ - description?: string; - /** @example America/New_York */ - timezone: string; - /** @example en-US */ - locale: string; - /** @example admin */ - role: string; - /** @example Reply STOP to unsubscribe */ - text_opt_out_message?: string; - /** @example Reply HELP for assistance */ - text_help_message?: string; - /** @example false */ - link_wrap_email?: boolean; - /** @example false */ - link_wrap_push?: boolean; - /** - * @example [ - * "analytics", - * "reporting" - * ] - */ - tools?: string[]; - /** @example 3 */ - integrations_count?: number; - /** @example 12 */ - campaigns_count?: number; - /** @example 5 */ - journeys_count?: number; - /** @example 1523 */ - users_count?: number; - /** @example 8 */ - lists_count?: number; + type: components["schemas"]["ActionType"]; + /** @description Action configuration (varies by type) */ + config: { + [key: string]: unknown; + }; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -1677,460 +1820,383 @@ export interface components { */ updated_at: string; }; - CreateProject: { - /** @example My New Project */ + CreateAction: { + /** @example My Webhook Action */ name: string; - /** @example A project for managing customer communications */ - description?: string; - /** @example America/New_York */ - timezone: string; - /** @example en-US */ - locale: string; - /** @example Reply STOP to unsubscribe */ - text_opt_out_message?: string; - /** @example Reply HELP for assistance */ - text_help_message?: string; - /** @example false */ - link_wrap_email?: boolean; - /** @example false */ - link_wrap_push?: boolean; - /** - * @example [ - * "analytics" - * ] - */ - tools?: string[]; + type: components["schemas"]["ActionType"]; + /** @description Action configuration (varies by type) */ + config?: { + [key: string]: unknown; + }; }; - UpdateProject: { - /** @example Updated Project Name */ + UpdateAction: { + /** @example Updated Action Name */ name?: string; - /** @example Updated description */ - description?: string; - /** @example America/Los_Angeles */ - timezone?: string; - /** @example es-ES */ - locale?: string; - /** @example Reply STOP to unsubscribe */ - text_opt_out_message?: string; - /** @example Reply HELP for assistance */ - text_help_message?: string; - /** @example true */ - link_wrap_email?: boolean; - /** @example true */ - link_wrap_push?: boolean; + type?: components["schemas"]["ActionType"]; + /** @description Action configuration (varies by type) */ + config?: { + [key: string]: unknown; + }; + }; + ActionMeta: { /** - * @example [ - * "analytics", - * "reporting" - * ] + * @description Module ID + * @example webhook + */ + type: string; + /** + * @description Human-readable module name + * @example Webhook */ - tools?: string[]; - }; - CreateCampaign: { - /** @example Welcome Campaign */ name: string; - channel: components["schemas"]["Channel"]; /** - * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + * @description Module description + * @example Send HTTP webhooks to external services */ - provider_id?: string; - /** Format: uuid */ - subscription_id?: string; + description?: string; + /** @description JSON Schema for module-level configuration (API keys, etc.) */ + config_schema?: { + [key: string]: unknown; + }; + /** @description Available functions in this action module */ + functions: components["schemas"]["ActionFunction"][]; + /** @description Whether this module is hidden from the UI */ + hidden?: boolean; }; - UpdateCampaign: { - /** @example epic hopper */ - name?: string; + ActionFunction: { /** - * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + * @description Function identifier + * @example send_request */ - provider_id?: string; - }; - CreateTemplate: { + id: string; /** - * @description The locale/language code for the template - * @example en + * @description Human-readable function name + * @example Send Request */ - locale: string; - /** @description Template-specific data based on type. Structure varies by template type. */ - data?: { + title: string; + /** + * @description Function description + * @example Send an HTTP request to an external endpoint + */ + description?: string; + /** @description JSON Schema for function input */ + input_schema?: { [key: string]: unknown; - } | null; + }; }; - UpdateTemplate: { - /** @description Template-specific data based on type. Structure varies by template type. */ - data?: { + TestActionRequest: { + type: components["schemas"]["ActionType"]; + /** @description Action configuration to validate (API keys, OAuth tokens, etc.) */ + config?: { [key: string]: unknown; - } | null; + }; }; - Campaign: { - /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z - */ - created_at: string; + TestActionResult: { /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @description Status code returned by the validation (e.g. 200 for success, 400/401/500 for errors) + * @example 200 */ - updated_at: string; + status_code: number; /** - * Format: uuid - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + * @description Human-readable validation message + * @example Configuration is valid */ - id: string; - /** Format: uuid */ - project_id: string; - /** @example Welcome to the program! */ - name: string; - channel: components["schemas"]["Channel"]; - /** Format: uuid */ - subscription_id?: string; - provider?: components["schemas"]["Provider"]; - templates: components["schemas"]["Template"][]; - delivery: components["schemas"]["Delivery"]; + message?: string; }; - Delivery: { - /** @example 0 */ - sent: number; - /** @example 0 */ - opens: number; - /** @example 0 */ - total: number; - /** @example 0 */ - clicks: number; + TestActionFunctionRequest: { + /** @description Input parameters for the function execution */ + input?: { + [key: string]: unknown; + }; }; - CampaignUser: { + TestActionFunctionResult: { /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + * @description Status code returned by the function execution (e.g. 200 for success, 400/500 for errors) + * @example 200 */ - campaign_id: string; + status_code: number; /** - * Format: uuid - * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b + * @description Metadata returned by the function execution + * @example { + * "response_body": "OK" + * } */ - user_id: string; + metadata?: { + [key: string]: unknown; + }; + }; + /** + * @description Journey step type + * @example entrance + * @enum {string} + */ + JourneyStepType: "entrance" | "exit" | "delay" | "action" | "campaign" | "gate" | "experiment" | "link" | "sticky" | "balancer" | "update" | "event"; + /** @description Data for entrance step - entry point into journey */ + EntranceStepData: { /** - * @example sent + * @description Trigger type for entrance + * @example event * @enum {string} */ - status: "pending" | "throttled" | "sent" | "aborted" | "failed" | "opened"; - /** - * Format: date-time - * @example 2025-11-23T17:30:00.000Z - */ - sent_at?: string; - /** - * Format: date-time - * @example 2025-11-23T17:20:00.000Z - */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-23T17:30:00.000Z - */ - updated_at: string; - }; - CreateList: { - /** @example Active Users */ - name: string; + trigger?: "none" | "event"; /** - * @example dynamic - * @enum {string} + * @description Event name that triggers entrance + * @example user_signup */ - type: "static" | "dynamic"; + event_name?: string; + /** @description Rule for filtering events */ rule?: { [key: string]: unknown; }; - tags?: string[]; - }; - UpdateList: { - /** @example Premium Users */ - name: string; - rule?: { + /** @description Rule for filtering users (used with organization events) */ + user_rule?: { [key: string]: unknown; }; - tags?: string[]; - published?: boolean; - }; - List: { /** - * Format: uuid - * @example 9a3e5c7d-2b4f-4e8a-9c1d-3b5e7f9a1c2d + * @description Allow multiple entries + * @example false */ - id: string; - /** Format: uuid */ - project_id: string; - /** @example Active Users */ - name: string; + multiple?: boolean; /** - * @example dynamic - * @enum {string} + * @description Allow concurrent journey runs + * @example false */ - type: "static" | "dynamic"; + concurrent?: boolean; + }; + /** @description Data for exit step - exits user from journey */ + ExitStepData: { /** - * @example ready - * @enum {string} + * @description External ID of entrance to exit from + * @example step_abc123 */ - state: "draft" | "ready" | "loading"; - /** Format: uuid */ - rule_id?: string; - rule?: { - [key: string]: unknown; - }; - /** @example 1 */ - version: number; - /** @example 1250 */ - users_count: number; - tags?: string[]; - /** Format: date-time */ - refreshed_at?: string; + entrance_uuid: string; + }; + /** @description Data for delay step - wait before proceeding */ + DelayStepData: { /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @description Format of delay + * @example duration + * @enum {string} */ - created_at: string; + format: "duration" | "time" | "date"; /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @description Minutes to delay (for duration format) + * @example 30 */ - updated_at: string; - }; - Provider: { + minutes?: number; /** - * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + * @description Hours to delay (for duration format) + * @example 1 */ - id: string; - /** @example webhook */ - module: string; - /** @example Lunogram */ - name: string; + hours?: number; /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + * @description Days to delay (for duration format) + * @example 0 */ - project_id: string; - channel: components["schemas"]["Channel"]; - data?: components["schemas"]["EmailProviderData"] | components["schemas"]["SmsProviderData"] | components["schemas"]["PushProviderData"]; - /** @example true */ - is_default: boolean; - /** @example 0 */ - rate_limit?: number; + days?: number; /** - * @example second - * @enum {string} + * @description Time of day HH:mm (for time format) + * @example 09:00 */ - rate_interval?: "second" | "minute" | "hour" | "day"; + time?: string; /** - * Format: date-time - * @example 2025-11-05T13:38:03.861Z + * @description Date template string (for date format) + * @example 2025-12-31T23:59:59Z */ - created_at: string; + date?: string; + /** @description Days to exclude (0=Sunday, 6=Saturday) */ + exclusion_days?: number[]; + }; + /** @description Data for campaign step - send campaign */ + CampaignStepData: { /** - * Format: date-time - * @example 2025-11-11T13:58:40.657Z + * Format: uuid + * @description Campaign to send + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa */ - updated_at: string; + campaign_id: string; }; - CreateProvider: { - /** @example My Email Provider */ - name: string; - data?: { - [key: string]: unknown; - }; - /** @example false */ - is_default?: boolean; - rate_limit?: number; - /** @enum {string} */ - rate_interval?: "second" | "minute" | "hour" | "day"; + /** @description Data for action step - execute WASM action */ + ActionStepData: { + /** + * Format: uuid + * @description Action to execute + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + */ + action_id: string; }; - UpdateProvider: { - /** @example My Email Provider */ - name?: string; - data?: { + /** @description Data for gate step - conditional branching */ + GateStepData: { + /** @description Rule set for conditional evaluation */ + rule: { [key: string]: unknown; }; - is_default?: boolean; - rate_limit?: number; - /** @enum {string} */ - rate_interval?: "second" | "minute" | "hour" | "day"; }; - ProviderMeta: { + /** @description Data for experiment step - A/B testing */ + ExperimentStepData: { /** - * @description Module ID - * @example resend + * @description Experiment name + * @example Welcome Email Test */ - type: string; - /** @example Resend Email */ - name: string; - /** @example Resend email service integration */ - description?: string; - /** @example https://resend.com */ - url?: string; - icon?: string; - /** @example email */ - group: string; - schema: { - [key: string]: unknown; - }; + name?: string; }; - Template: { + /** @description Data for link step - add user to another journey */ + LinkStepData: { /** - * Format: date-time - * @example 2025-11-19T14:18:43.020Z + * Format: uuid + * @description Target journey ID to link to */ - created_at: string; - /** - * Format: date-time - * @example 2025-11-24T10:06:34.082Z - */ - updated_at: string; + target_id: string; /** - * Format: uuid - * @example 4fe0d7e3-3071-40aa-a3ee-ecfb8e26a269 + * @description Delay before adding to journey + * @example 1 day + * @enum {string} */ - id: string; + delay?: "1 minute" | "15 minutes" | "1 hour" | "1 day"; + }; + /** @description Data for sticky step - placeholder for sticky logic */ + StickyStepData: Record; + /** @description Data for balancer step - rate-limited distribution */ + BalancerStepData: { /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + * @description Maximum users per interval + * @example 100 */ - project_id: string; + rate_limit: number; /** - * Format: uuid - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + * @description Rate limit interval + * @example hour + * @enum {string} */ - campaign_id: string; - type: components["schemas"]["Channel"]; - data: components["schemas"]["EmailTemplateData"] | components["schemas"]["SmsTemplateData"] | components["schemas"]["PushTemplateData"]; - /** @example en */ - locale: string; - }; - EmailTemplateData: { - from?: Record; - /** @example Quick question for you... */ - subject?: string; - /** @description HTML content of the email template */ - html?: string; - /** @description Editor configuration and content structure */ - editor?: { - root?: { - props?: Record; - }; - zones?: Record; - content?: Record[]; - }; + interval: "second" | "minute" | "hour" | "day"; }; - SmsTemplateData: { + /** @description Data for update step - update user data */ + UpdateStepData: { /** - * @description SMS message body - * @example Your verification code is: {{code}} + * @description JSON template string for updating user data + * @example {"last_journey": "onboarding"} */ - body?: string; + template: string; }; - PushTemplateData: { + /** @description Data for event step - trigger custom event */ + EventStepData: { /** - * @description Push notification title - * @example New message + * @description Name of event to trigger + * @example journey_milestone */ - title?: string; + event_name: string; /** - * @description Push notification body - * @example You have a new message from {{sender}} + * @description JSON template string for event data + * @example {"milestone": "completed_step_1"} */ - body?: string; - /** @description Additional data payload for the push notification */ - data?: Record; - }; - EmailProviderData: { - /** @example 8f0512c2-e606-4a58-95cb-60a4a7f859e1@campaign.lunogram.com */ - default_from?: string; - /** @example Onboarding */ - default_from_name?: string; - /** @example true */ - default_from_locked?: boolean; + template?: string; }; - SmsProviderData: Record; - PushProviderData: Record; - Admin: { + /** @description Data for experiment step children - defines branch ratio */ + ExperimentChildData: { /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * Format: float + * @description Ratio for this experiment branch (0-1) + * @example 0.5 */ - id: string; + ratio: number; + }; + /** @description Data for gate step children - typically empty, path determines branch */ + GateChildData: Record; + /** + * @description Role within an organization + * @example member + * @enum {string} + */ + OrganizationRole: "owner" | "admin" | "member"; + /** + * @description Role within a project + * @example admin + * @enum {string} + */ + ProjectRole: "support" | "client" | "editor" | "admin"; + /** + * @description User subscription state + * @example subscribed + * @enum {string} + */ + SubscriptionState: "subscribed" | "unsubscribed"; + Problem: { /** - * Format: uuid - * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b + * @description A short summary of the problem type. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. + * @example some title for the error situation */ - organization_id: string; - /** @example user_2abc123def */ - external_id?: string; + title: string; /** - * Format: email - * @example admin@example.com + * @description A human readable explanation specific to this occurrence of the problem that is helpful to locate the problem and give advice on how to proceed. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. + * @example some description for the error situation */ - email: string; - /** @example John */ - first_name?: string; - /** @example Doe */ - last_name?: string; - /** @example https://example.com/avatar.jpg */ - image_url?: string; - role: components["schemas"]["OrganizationRole"]; + detail: string; + }; + PaginatedResponse: { /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @description Total number of items matching the filters + * @example 42 */ - created_at: string; + total: number; /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @description Maximum number of items returned + * @example 20 */ - updated_at: string; - }; - CreateAdmin: { + limit: number; /** - * Format: email - * @example newadmin@example.com + * @description Number of items skipped + * @example 0 */ - email: string; - role: components["schemas"]["OrganizationRole"]; - /** @example Jane */ - first_name?: string; - /** @example Smith */ - last_name?: string; + offset: number; }; - UpdateAdmin: { + UserList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["User"][]; + }; + AdminList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Admin"][]; + }; + ProjectList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Project"][]; + }; + Project: { /** - * Format: email - * @example updated@example.com + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ - email?: string; - role?: components["schemas"]["OrganizationRole"]; - /** @example Jane */ - first_name?: string; - /** @example Smith */ - last_name?: string; - }; - Organization: { + id: string; /** * Format: uuid * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b */ - id: string; - /** @example Acme Corporation */ + organization_id?: string; + /** @example My Project */ name: string; - /** @example https://acme.com/track */ - tracking_deeplink_mirror_url?: string; - /** Format: uuid */ - notification_provider_id?: string; + /** @example A project for managing customer communications */ + description?: string; + /** @example America/New_York */ + timezone: string; + /** @example en-US */ + locale: string; + /** @example admin */ + role: string; + /** @example Reply STOP to unsubscribe */ + text_opt_out_message?: string; + /** @example Reply HELP for assistance */ + text_help_message?: string; + /** @example false */ + link_wrap_email?: boolean; + /** @example false */ + link_wrap_push?: boolean; + /** @example 3 */ + integrations_count?: number; + /** @example 12 */ + campaigns_count?: number; + /** @example 5 */ + journeys_count?: number; + /** @example 1523 */ + users_count?: number; + /** @example 8 */ + lists_count?: number; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2142,53 +2208,81 @@ export interface components { */ updated_at: string; }; - UpdateOrganization: { - /** @example https://acme.com/track */ - tracking_deeplink_mirror_url?: string; + CreateProject: { + /** @example My New Project */ + name: string; + /** @example A project for managing customer communications */ + description?: string; + /** @example America/New_York */ + timezone: string; + /** @example en-US */ + locale: string; + /** @example Reply STOP to unsubscribe */ + text_opt_out_message?: string; + /** @example Reply HELP for assistance */ + text_help_message?: string; + /** @example false */ + link_wrap_email?: boolean; + /** @example false */ + link_wrap_push?: boolean; }; - User: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - project_id: string; - /** @example anon_abc123xyz */ - anonymous_id: string; - /** @example user_123 */ - external_id?: string; - /** - * Format: email - * @example user@example.com + UpdateProject: { + /** @example Updated Project Name */ + name?: string; + /** @example Updated description */ + description?: string; + /** @example America/Los_Angeles */ + timezone?: string; + /** @example es-ES */ + locale?: string; + /** @example Reply STOP to unsubscribe */ + text_opt_out_message?: string; + /** @example Reply HELP for assistance */ + text_help_message?: string; + /** @example true */ + link_wrap_email?: boolean; + /** @example true */ + link_wrap_push?: boolean; + }; + CreateCampaign: { + /** @example Welcome Campaign */ + name: string; + channel: components["schemas"]["Channel"]; + /** + * Format: uuid + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad */ - email?: string; + provider_id?: string; + /** Format: uuid */ + subscription_id?: string; + }; + UpdateCampaign: { + /** @example epic hopper */ + name?: string; /** - * Format: phone - * @description E.164 formatted phone number - * @example +1234567890 + * Format: uuid + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad */ - phone?: string; + provider_id?: string; + }; + CreateTemplate: { /** - * @example { - * "first_name": "John", - * "last_name": "Doe" - * } + * @description The locale/language code for the template + * @example en-US */ - data: { + locale: string; + /** @description Template-specific data based on type. Structure varies by template type. */ + data?: { [key: string]: unknown; - }; - /** @example America/New_York */ - timezone?: string; - /** @example en-US */ - locale?: string; - /** @example false */ - has_push_device: boolean; - /** @example 1 */ - version: number; + } | null; + }; + UpdateTemplate: { + /** @description Template-specific data based on type. Structure varies by template type. */ + data?: { + [key: string]: unknown; + } | null; + }; + Campaign: { /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2199,64 +2293,33 @@ export interface components { * @example 2025-11-23T17:20:00.021Z */ updated_at: string; - }; - IdentifyUser: { - /** @example anon_abc123xyz */ - anonymous_id?: string; - /** @example user_123 */ - external_id?: string; - /** - * Format: email - * @example user@example.com - */ - email?: string; - /** - * Format: phone - * @description E.164 formatted phone number - * @example +1234567890 - */ - phone?: string; - /** @example America/New_York */ - timezone?: string; - /** @example en-US */ - locale?: string; - /** - * @example { - * "first_name": "John", - * "last_name": "Doe" - * } - */ - data?: { - [key: string]: unknown; - }; - } & (unknown | unknown); - UpdateUser: { - /** - * Format: email - * @example updated@example.com - */ - email?: string; - /** - * Format: phone - * @description E.164 formatted phone number - * @example +1234567890 - */ - phone?: string; - /** @example America/New_York */ - timezone?: string; - /** @example en-US */ - locale?: string; /** - * @example { - * "first_name": "Jane", - * "last_name": "Smith" - * } + * Format: uuid + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa */ - data?: { - [key: string]: unknown; - }; + id: string; + /** Format: uuid */ + project_id: string; + /** @example Welcome to the program! */ + name: string; + channel: components["schemas"]["Channel"]; + /** Format: uuid */ + subscription_id?: string; + provider?: components["schemas"]["Provider"]; + templates: components["schemas"]["Template"][]; + delivery: components["schemas"]["Delivery"]; }; - UserEvent: { + Delivery: { + /** @example 0 */ + sent: number; + /** @example 0 */ + opens: number; + /** @example 0 */ + total: number; + /** @example 0 */ + clicks: number; + }; + CampaignUser: { /** * Format: uuid * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d @@ -2264,25 +2327,24 @@ export interface components { id: string; /** * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa */ - project_id: string; + campaign_id: string; /** * Format: uuid * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b */ user_id: string; - /** @example page_viewed */ - name: string; /** - * @example { - * "page": "/home", - * "referrer": "/landing" - * } + * @example sent + * @enum {string} */ - data?: { - [key: string]: unknown; - }; + status: "pending" | "throttled" | "sent" | "aborted" | "failed" | "opened"; + /** + * Format: date-time + * @example 2025-11-23T17:30:00.000Z + */ + sent_at?: string; /** * Format: date-time * @example 2025-11-23T17:20:00.000Z @@ -2290,73 +2352,74 @@ export interface components { created_at: string; /** * Format: date-time - * @example 2025-11-23T17:20:00.000Z + * @example 2025-11-23T17:30:00.000Z */ updated_at: string; }; - UserEventList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["UserEvent"][]; - }; - UserSubscription: { + CreateList: { + /** @example Active Users */ + name: string; /** - * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + * @example dynamic + * @enum {string} */ - subscription_id: string; - /** @example Marketing Newsletter */ - name: string; - channel: components["schemas"]["Channel"]; - state: components["schemas"]["SubscriptionState"]; + type: "static" | "dynamic"; + rule?: { + [key: string]: unknown; + }; + tags?: string[]; }; - UserSubscriptionList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["UserSubscription"][]; + UpdateList: { + /** @example Premium Users */ + name: string; + rule?: { + [key: string]: unknown; + }; + tags?: string[]; + /** @description When true, publishes the current draft rule making it active */ + published?: boolean; }; - UpdateUserSubscriptions: { - /** - * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad - */ - subscription_id: string; - state: components["schemas"]["SubscriptionState"]; - }[]; - Journey: { + List: { /** * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * @example 9a3e5c7d-2b4f-4e8a-9c1d-3b5e7f9a1c2d */ id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ + /** Format: uuid */ project_id: string; - /** @example Onboarding Flow */ + /** @example Active Users */ name: string; - /** @example Welcome new users to the platform */ - description?: string; /** - * @description Status of the active version (draft, published, or archived) + * @example dynamic + * @enum {string} + */ + type: "static" | "dynamic"; + /** + * @description draft = not yet published, ready = published and active, loading = recomputing * @example draft * @enum {string} */ - status: "draft" | "published" | "archived"; + state: "draft" | "ready" | "loading"; + /** @description Published rule definition (from the published version) */ + rule?: { + [key: string]: unknown; + }; + /** @description Draft rule definition (from the draft version, if one exists) */ + draft_rule?: { + [key: string]: unknown; + }; /** - * @description Version number of the active version + * @description Current version number of the active list version * @example 1 */ version_number?: number; - /** - * Format: uuid - * @description ID of the draft version if one exists - * @example 1b2deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - draft_version_id?: string; - /** - * Format: uuid - * @description ID of the published version if one exists - * @example 2b3deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - published_version_id?: string; + /** @example 1 */ + version: number; + /** @example 1250 */ + users_count: number; + tags?: string[]; + /** Format: date-time */ + refreshed_at?: string; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2368,94 +2431,152 @@ export interface components { */ updated_at: string; }; - CreateJourney: { - /** @example Onboarding Flow */ - name: string; - /** @example Welcome new users to the platform */ - description?: string; - }; - UpdateJourney: { - /** @example Updated Onboarding Flow */ - name?: string; - /** @example Welcome new users to the platform */ - description?: string; - }; - UserJourneyEntrance: { + Provider: { /** * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad */ id: string; + /** @example webhook */ + module: string; + /** @example Lunogram */ + name: string; /** * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ - entrance_id: string; - journey?: components["schemas"]["Journey"]; + project_id: string; + channel: components["schemas"]["Channel"]; + data?: components["schemas"]["EmailProviderData"] | components["schemas"]["SmsProviderData"] | components["schemas"]["PushProviderData"]; + /** @example true */ + is_default: boolean; /** * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @example 2025-11-05T13:38:03.861Z */ created_at: string; /** * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @example 2025-11-11T13:58:40.657Z */ updated_at: string; + }; + CreateProvider: { + /** @example My Email Provider */ + name: string; + data?: { + [key: string]: unknown; + }; + /** @example false */ + is_default?: boolean; + }; + UpdateProvider: { + /** @example My Email Provider */ + name?: string; + data?: { + [key: string]: unknown; + }; + is_default?: boolean; + }; + ProviderMeta: { /** - * Format: date-time - * @example 2025-11-24T10:30:00.000Z + * @description Module ID + * @example resend */ - ended_at?: string; - }; - UserJourneyList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["UserJourneyEntrance"][]; + type: string; + /** @example Resend Email */ + name: string; + /** @example Resend email service integration */ + description?: string; + /** @example https://resend.com */ + url?: string; + icon?: string; + /** @example email */ + group: string; + schema: { + [key: string]: unknown; + }; + /** @description Whether this module is hidden from the UI */ + hidden?: boolean; }; - JourneyUserStep: { + Template: { /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * Format: date-time + * @example 2025-11-19T14:18:43.020Z */ - id: string; + created_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:06:34.082Z + */ + updated_at: string; /** * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * @example 4fe0d7e3-3071-40aa-a3ee-ecfb8e26a269 */ - entrance_id: string; + id: string; /** - * @description Status/type of the user step - * @example waiting - * @enum {string} + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ - type: "waiting" | "completed" | "skipped" | "exited"; + project_id: string; /** - * Format: date-time - * @example 2025-11-24T10:30:00.000Z + * Format: uuid + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa */ - delay_until?: string; + campaign_id: string; + type: components["schemas"]["Channel"]; + data: components["schemas"]["EmailTemplateData"] | components["schemas"]["SmsTemplateData"] | components["schemas"]["PushTemplateData"]; + /** @example en-US */ + locale: string; + }; + EmailTemplateData: { + from?: Record; + /** @example Quick question for you... */ + subject?: string; + /** @description HTML content of the email template */ + html?: string; + /** @description Editor configuration and content structure */ + editor?: { + root?: { + props?: Record; + }; + zones?: Record; + content?: Record[]; + }; + }; + SmsTemplateData: { /** - * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @description SMS message body + * @example Your verification code is: {{code}} */ - created_at: string; + body?: string; + }; + PushTemplateData: { /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @description Push notification title + * @example New message */ - updated_at: string; + title?: string; /** - * Format: date-time - * @example 2025-11-24T10:30:00.000Z + * @description Push notification body + * @example You have a new message from {{sender}} */ - ended_at?: string; - user?: components["schemas"]["User"]; - journey?: components["schemas"]["Journey"]; - step?: components["schemas"]["JourneyStep"]; + body?: string; + /** @description Additional data payload for the push notification */ + data?: Record; }; - JourneyUserStepList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["JourneyUserStep"][]; + EmailProviderData: { + /** @example 8f0512c2-e606-4a58-95cb-60a4a7f859e1@campaign.lunogram.com */ + default_from?: string; + /** @example Onboarding */ + default_from_name?: string; + /** @example true */ + default_from_locked?: boolean; }; - JourneyUserEntrance: { + SmsProviderData: Record; + PushProviderData: Record; + Admin: { /** * Format: uuid * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d @@ -2463,9 +2584,23 @@ export interface components { id: string; /** * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b */ - entrance_id: string; + organization_id: string; + /** @example user_2abc123def */ + external_id?: string; + /** + * Format: email + * @example admin@example.com + */ + email: string; + /** @example John */ + first_name?: string; + /** @example Doe */ + last_name?: string; + /** @example https://example.com/avatar.jpg */ + image_url?: string; + role: components["schemas"]["OrganizationRole"]; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2476,83 +2611,74 @@ export interface components { * @example 2025-11-23T17:20:00.021Z */ updated_at: string; + }; + CreateAdmin: { /** - * Format: date-time - * @example 2025-11-24T10:30:00.000Z + * Format: email + * @example newadmin@example.com */ - ended_at?: string; - user?: components["schemas"]["User"]; - journey?: components["schemas"]["Journey"]; - }; - JourneyUserEntranceListResponse: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["JourneyUserEntrance"][]; - }; - /** @description Map of journey steps keyed by external_id */ - JourneyStepMap: { - [key: string]: components["schemas"]["JourneyStep"]; + email: string; + role: components["schemas"]["OrganizationRole"]; + /** @example Jane */ + first_name?: string; + /** @example Smith */ + last_name?: string; }; - JourneyStep: { - type: components["schemas"]["JourneyStepType"]; + UpdateAdmin: { /** - * @description Display name for the step - * @example Welcome Email + * Format: email + * @example updated@example.com */ - name?: string; + email?: string; + role?: components["schemas"]["OrganizationRole"]; + /** @example Jane */ + first_name?: string; + /** @example Smith */ + last_name?: string; + }; + User: { /** - * @description Step-specific configuration data (structure varies by step type). - * The step 'type' field determines which data structure to expect. - * See StepData types in Go code for specific structures. + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d */ - data: { - [key: string]: unknown; - }; + id: string; /** - * @description Key for storing step data in user journey context - * @example entrance_data + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ - data_key?: string; + project_id: string; + /** @example anon_abc123xyz */ + anonymous_id: string; + /** @example user_123 */ + external_id?: string; /** - * Format: float - * @description X coordinate for visual positioning - * @example 100 + * Format: email + * @example user@example.com */ - x: number; + email?: string; /** - * Format: float - * @description Y coordinate for visual positioning - * @example 200 + * Format: phone + * @description E.164 formatted phone number + * @example +1234567890 */ - y: number; - /** @description Child steps connected to this step */ - children: components["schemas"]["JourneyStepChild"][]; - }; - JourneyStepChild: { + phone?: string; /** - * @description External ID of the child step - * @example step_abc123 - */ - external_id: string; - /** - * @description Branch path (e.g., 'yes', 'no' for gates) - * @example yes - */ - path?: string; - /** @description Child-specific configuration data (structure varies by parent step type) */ - data?: (components["schemas"]["ExperimentChildData"] | components["schemas"]["GateChildData"]) | null; - }; - Tag: { - /** - * Format: uuid - * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d - */ - id: string; - /** - * Format: uuid - * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + * @example { + * "first_name": "John", + * "last_name": "Doe" + * } */ - project_id: string; - /** @example important */ - name: string; + data: { + [key: string]: unknown; + }; + /** @example America/New_York */ + timezone?: string; + /** @example en-US */ + locale?: string; + /** @example false */ + has_push_device: boolean; + /** @example 1 */ + version: number; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2564,15 +2690,63 @@ export interface components { */ updated_at: string; }; - CreateTag: { - /** @example important */ - name: string; - }; - UpdateTag: { - /** @example updated-tag-name */ - name: string; + IdentifyUser: { + /** @example anon_abc123xyz */ + anonymous_id?: string; + /** @example user_123 */ + external_id?: string; + /** + * Format: email + * @example user@example.com + */ + email?: string; + /** + * Format: phone + * @description E.164 formatted phone number + * @example +1234567890 + */ + phone?: string; + /** @example America/New_York */ + timezone?: string; + /** @example en-US */ + locale?: string; + /** + * @example { + * "first_name": "John", + * "last_name": "Doe" + * } + */ + data?: { + [key: string]: unknown; + }; + } & (unknown | unknown); + UpdateUser: { + /** + * Format: email + * @example updated@example.com + */ + email?: string; + /** + * Format: phone + * @description E.164 formatted phone number + * @example +1234567890 + */ + phone?: string; + /** @example America/New_York */ + timezone?: string; + /** @example en-US */ + locale?: string; + /** + * @example { + * "first_name": "Jane", + * "last_name": "Smith" + * } + */ + data?: { + [key: string]: unknown; + }; }; - Subscription: { + Organization: { /** * Format: uuid * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d @@ -2583,14 +2757,24 @@ export interface components { * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ project_id: string; - /** @example Marketing Newsletter */ - name: string; - channel: components["schemas"]["Channel"]; /** - * @description Whether users can manage this subscription in preferences - * @example true + * @description External identifier for the organization from your system + * @example org_123 */ - is_public: boolean; + external_id: string; + /** @example Acme Corp */ + name?: string; + /** + * @example { + * "industry": "technology", + * "size": "enterprise" + * } + */ + data: { + [key: string]: unknown; + }; + /** @example 1 */ + version: number; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2602,67 +2786,80 @@ export interface components { */ updated_at: string; }; - CreateSubscription: { - /** @example Product Updates */ - name: string; - channel: components["schemas"]["Channel"]; - /** - * @description Whether users can manage this subscription in preferences - * @example true - */ - is_public?: boolean; - }; - UpdateSubscription: { - /** @example Updated Subscription Name */ - name: string; - /** @example false */ - is_public: boolean; + OrganizationList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Organization"][]; }; - Locale: { + OrganizationEvent: { /** * Format: uuid - * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d */ id: string; - /** Format: uuid */ + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ project_id: string; /** - * @description Locale key (e.g., language code) - * @example en + * Format: uuid + * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b */ - key: string; + organization_id: string; + /** @example subscription_upgraded */ + name: string; /** - * @description Human-readable locale label - * @example English + * @example { + * "plan": "enterprise", + * "seats": 50 + * } */ - label: string; + data?: { + [key: string]: unknown; + }; /** * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @example 2025-11-23T17:20:00.000Z */ created_at: string; + }; + OrganizationEventList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["OrganizationEvent"][]; + }; + UpsertOrganization: { /** - * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @description External identifier for the organization from your system + * @example org_123 */ - updated_at: string; - }; - CreateLocale: { + external_id: string; + /** @example Acme Corp */ + name?: string; /** - * @description Locale key (e.g., language code) - * @example en + * @example { + * "industry": "technology", + * "size": "enterprise" + * } */ - key: string; + data?: { + [key: string]: unknown; + }; + }; + UpdateOrganization: { + /** @example Acme Corporation */ + name?: string; /** - * @description Human-readable locale label - * @example English + * @example { + * "industry": "technology", + * "size": "enterprise" + * } */ - label: string; + data?: { + [key: string]: unknown; + }; }; - Document: { + OrganizationMember: { /** * Format: uuid - * @example 6870cd7c-9ff2-4a08-9e9a-fe2d3b12f899 + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d */ id: string; /** @@ -2670,32 +2867,38 @@ export interface components { * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ project_id: string; + /** @example anon_abc123xyz */ + anonymous_id: string; + /** @example user_123 */ + external_id?: string; /** - * @description User-friendly name for the document - * @example Annual Report - */ - name: string; - /** - * @description Original filename when uploaded - * @example annual-report-2025.pdf - */ - filename: string; - /** - * @description Storage key/path for retrieving the file - * @example 6870cd7c-9ff2-4a08-9e9a-fe2d3b12f899.pdf + * Format: email + * @example user@example.com */ - key: string; + email?: string; /** - * @description MIME type of the file - * @example application/pdf + * Format: phone + * @description E.164 formatted phone number + * @example +1234567890 */ - content_type: string; + phone?: string; /** - * Format: int64 - * @description File size in bytes - * @example 1048576 + * @example { + * "first_name": "John", + * "last_name": "Doe" + * } */ - size_bytes: number; + data: { + [key: string]: unknown; + }; + /** @example America/New_York */ + timezone?: string; + /** @example en-US */ + locale?: string; + /** @example false */ + has_push_device: boolean; + /** @example 1 */ + version: number; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2706,8 +2909,39 @@ export interface components { * @example 2025-11-23T17:20:00.021Z */ updated_at: string; + /** + * @description Organization-specific data for this user + * @example { + * "role": "admin", + * "department": "engineering" + * } + */ + organization_data: { + [key: string]: unknown; + }; }; - ProjectAdmin: { + OrganizationMemberList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["OrganizationMember"][]; + }; + AddOrganizationMember: { + /** + * Format: uuid + * @description The user ID to add to the organization + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + user_id: string; + /** + * @description Organization-specific data for this user + * @example { + * "role": "member", + * "department": "sales" + * } + */ + data?: { + [key: string]: unknown; + }; + }; + UserEvent: { /** * Format: uuid * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d @@ -2720,43 +2954,91 @@ export interface components { project_id: string; /** * Format: uuid - * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + * @example 7c1e3c5a-2b4d-4e8f-9a1b-3c5d7e9f1a2b */ - admin_id: string; - role: components["schemas"]["ProjectRole"]; + user_id: string; + /** @example page_viewed */ + name: string; /** - * Format: email - * @example admin@example.com + * @example { + * "page": "/home", + * "referrer": "/landing" + * } */ - email?: string; - /** @example John */ - first_name?: string; - /** @example Doe */ - last_name?: string; + data?: { + [key: string]: unknown; + }; /** * Format: date-time - * @example 2025-11-19T14:18:42.960Z + * @example 2025-11-23T17:20:00.000Z */ created_at: string; /** * Format: date-time - * @example 2025-11-23T17:20:00.021Z + * @example 2025-11-23T17:20:00.000Z */ updated_at: string; }; - UpdateProjectAdmin: { - role: components["schemas"]["ProjectRole"]; + UserEventList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["UserEvent"][]; }; - ProjectAdminList: components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["ProjectAdmin"][]; + UserDevice: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** @example AB12CD34-EF56-GH78-IJ90 */ + device_id: string; + /** @example fcm_token_abc123 */ + token?: string | null; + /** @example iOS */ + os?: string | null; + /** @example 17.2 */ + os_version?: string | null; + /** @example iPhone 15 Pro */ + model?: string | null; + /** @example 142 */ + app_build?: string | null; + /** @example 2.1.0 */ + app_version?: string | null; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.000Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.000Z + */ + updated_at: string; }; - /** - * @description API key scope - public keys are safe to expose in client-side code - * @example secret - * @enum {string} - */ - ApiKeyScope: "public" | "secret"; - ApiKey: { + UserDeviceList: { + results: components["schemas"]["UserDevice"][]; + }; + UserSubscription: { + /** + * Format: uuid + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + */ + subscription_id: string; + /** @example Marketing Newsletter */ + name: string; + channel: components["schemas"]["Channel"]; + state: components["schemas"]["SubscriptionState"]; + }; + UserSubscriptionList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["UserSubscription"][]; + }; + UpdateUserSubscriptions: { + /** + * Format: uuid + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + */ + subscription_id: string; + state: components["schemas"]["SubscriptionState"]; + }[]; + Journey: { /** * Format: uuid * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d @@ -2767,17 +3049,33 @@ export interface components { * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b */ project_id: string; - /** @example Production API Key */ + /** @example Onboarding Flow */ name: string; + /** @example Welcome new users to the platform */ + description?: string; /** - * @description The API key value - * @example a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2 + * @description Status of the active version (draft, published, or archived) + * @example draft + * @enum {string} */ - value: string; - scope: components["schemas"]["ApiKeyScope"]; - role: components["schemas"]["ProjectRole"]; - /** @example API key for production environment */ - description?: string; + status: "draft" | "published" | "archived"; + /** + * @description Version number of the active version + * @example 1 + */ + version_number?: number; + /** + * Format: uuid + * @description ID of the draft version if one exists + * @example 1b2deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + draft_version_id?: string; + /** + * Format: uuid + * @description ID of the published version if one exists + * @example 2b3deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + published_version_id?: string; /** * Format: date-time * @example 2025-11-19T14:18:42.960Z @@ -2789,311 +3087,1186 @@ export interface components { */ updated_at: string; }; - CreateApiKey: { - /** @example Production API Key */ + CreateJourney: { + /** @example Onboarding Flow */ name: string; - scope: components["schemas"]["ApiKeyScope"]; - role?: components["schemas"]["ProjectRole"]; - /** @example API key for production environment */ + /** @example Welcome new users to the platform */ + description?: string; + }; + UpdateJourney: { + /** @example Updated Onboarding Flow */ + name?: string; + /** @example Welcome new users to the platform */ description?: string; }; - UpdateApiKey: { - /** @example Updated API Key Name */ - name?: string; - role?: components["schemas"]["ProjectRole"]; - /** @example Updated description */ - description?: string; + UserJourneyEntrance: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + entrance_id: string; + journey?: components["schemas"]["Journey"]; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + ended_at?: string; + }; + UserJourneyList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["UserJourneyEntrance"][]; + }; + JourneyUserStep: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + entrance_id: string; + /** + * @description Status/type of the user step + * @example waiting + * @enum {string} + */ + type: "waiting" | "completed" | "skipped" | "exited"; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + delay_until?: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + ended_at?: string; + user?: components["schemas"]["User"]; + journey?: components["schemas"]["Journey"]; + step?: components["schemas"]["JourneyStep"]; + }; + JourneyUserStepList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserStep"][]; + }; + JourneyUserEntrance: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + entrance_id: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + /** + * Format: date-time + * @example 2025-11-24T10:30:00.000Z + */ + ended_at?: string; + user?: components["schemas"]["User"]; + journey?: components["schemas"]["Journey"]; + }; + JourneyUserEntranceListResponse: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserEntrance"][]; + }; + /** @description Map of journey steps keyed by external_id */ + JourneyStepMap: { + [key: string]: components["schemas"]["JourneyStep"]; + }; + JourneyStep: { + type: components["schemas"]["JourneyStepType"]; + /** + * @description Display name for the step + * @example Welcome Email + */ + name?: string; + /** + * @description Step-specific configuration data (structure varies by step type). + * The step 'type' field determines which data structure to expect. + * See StepData types in Go code for specific structures. + */ + data: { + [key: string]: unknown; + }; + /** + * @description Key for storing step data in user journey context + * @example entrance_data + */ + data_key?: string; + /** + * Format: float + * @description X coordinate for visual positioning + * @example 100 + */ + x: number; + /** + * Format: float + * @description Y coordinate for visual positioning + * @example 200 + */ + y: number; + /** @description Child steps connected to this step */ + children: components["schemas"]["JourneyStepChild"][]; + }; + JourneyStepChild: { + /** + * @description External ID of the child step + * @example step_abc123 + */ + external_id: string; + /** + * @description Branch path (e.g., 'yes', 'no' for gates) + * @example yes + */ + path?: string; + /** @description Child-specific configuration data (structure varies by parent step type) */ + data?: (components["schemas"]["ExperimentChildData"] | components["schemas"]["GateChildData"]) | null; + }; + Tag: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + project_id: string; + /** @example important */ + name: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + CreateTag: { + /** @example important */ + name: string; + }; + UpdateTag: { + /** @example updated-tag-name */ + name: string; + }; + Subscription: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + project_id: string; + /** @example Marketing Newsletter */ + name: string; + channel: components["schemas"]["Channel"]; + /** + * @description Whether users can manage this subscription in preferences + * @example true + */ + is_public: boolean; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + CreateSubscription: { + /** @example Product Updates */ + name: string; + channel: components["schemas"]["Channel"]; + /** + * @description Whether users can manage this subscription in preferences + * @example true + */ + is_public?: boolean; + }; + UpdateSubscription: { + /** @example Updated Subscription Name */ + name: string; + /** @example false */ + is_public: boolean; + }; + Locale: { + /** + * Format: uuid + * @example 52f3f921-1343-48af-b795-87c0fd3b44aa + */ + id: string; + /** Format: uuid */ + project_id: string; + /** + * @description Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") + * @example en-US + */ + key: string; + /** + * @description Human-readable locale label + * @example English (United States) + */ + label: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + CreateLocale: { + /** + * @description Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") + * @example en-US + */ + key: string; + /** + * @description Human-readable locale label + * @example English (United States) + */ + label: string; + }; + Document: { + /** + * Format: uuid + * @example 6870cd7c-9ff2-4a08-9e9a-fe2d3b12f899 + */ + id: string; + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + project_id: string; + /** + * @description User-friendly name for the document + * @example Annual Report + */ + name: string; + /** + * @description Original filename when uploaded + * @example annual-report-2025.pdf + */ + filename: string; + /** + * @description Storage key/path for retrieving the file + * @example 6870cd7c-9ff2-4a08-9e9a-fe2d3b12f899.pdf + */ + key: string; + /** + * @description MIME type of the file + * @example application/pdf + */ + content_type: string; + /** + * Format: int64 + * @description File size in bytes + * @example 1048576 + */ + size_bytes: number; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + ProjectAdmin: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + project_id: string; + /** + * Format: uuid + * @example 5143f27c-cca9-4dc4-9059-e1dbb08144ad + */ + admin_id: string; + role: components["schemas"]["ProjectRole"]; + /** + * Format: email + * @example admin@example.com + */ + email?: string; + /** @example John */ + first_name?: string; + /** @example Doe */ + last_name?: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + UpdateProjectAdmin: { + role: components["schemas"]["ProjectRole"]; + }; + ProjectAdminList: components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["ProjectAdmin"][]; + }; + /** + * @description API key scope - public keys are safe to expose in client-side code + * @example secret + * @enum {string} + */ + ApiKeyScope: "public" | "secret"; + ApiKey: { + /** + * Format: uuid + * @example 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d + */ + id: string; + /** + * Format: uuid + * @example 4c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + project_id: string; + /** @example Production API Key */ + name: string; + /** + * @description The API key value + * @example a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2 + */ + value: string; + scope: components["schemas"]["ApiKeyScope"]; + role: components["schemas"]["ProjectRole"]; + /** @example API key for production environment */ + description?: string; + /** + * Format: date-time + * @example 2025-11-19T14:18:42.960Z + */ + created_at: string; + /** + * Format: date-time + * @example 2025-11-23T17:20:00.021Z + */ + updated_at: string; + }; + CreateApiKey: { + /** @example Production API Key */ + name: string; + scope: components["schemas"]["ApiKeyScope"]; + role?: components["schemas"]["ProjectRole"]; + /** @example API key for production environment */ + description?: string; + }; + UpdateApiKey: { + /** @example Updated API Key Name */ + name?: string; + role?: components["schemas"]["ProjectRole"]; + /** @example Updated description */ + description?: string; + }; + ClientEvent: { + /** + * @description The name of the event + * @example purchase_completed + */ + name: string; + /** + * @description Anonymous identifier for the user + * @example anon_abc123 + */ + anonymous_id?: string | null; + /** + * @description External identifier for the user from your system + * @example user_12345 + */ + external_id?: string | null; + /** + * @description Event-specific data + * @example { + * "product_id": "prod_789", + * "amount": 99.99 + * } + */ + data?: { + [key: string]: unknown; + } | null; + user?: components["schemas"]["ClientEventUser"]; + }; + ClientEventUser: { + /** + * Format: email + * @example user@example.com + */ + email?: string; + /** + * Format: phone + * @description E.164 formatted phone number + * @example +1234567890 + */ + phone?: string; + /** @example America/New_York */ + timezone?: string | null; + /** @example en-US */ + locale?: string | null; + /** + * @description User-specific attributes + * @example { + * "plan": "premium", + * "signup_date": "2025-01-15" + * } + */ + data?: { + [key: string]: unknown; + } | null; + } | null; + EventWithSchema: { + /** + * Format: uuid + * @example 5c9d3163-7b64-4f9e-9068-d2e4b96be56b + */ + id: string; + /** @example purchase_completed */ + name: string; + schema: components["schemas"]["SchemaPath"][]; + }; + SchemaPath: { + /** @example .email */ + path: string; + /** + * @example [ + * "string" + * ] + */ + types: string[]; + }; + ActionSchemaListResponse: { + results: components["schemas"]["SchemaPath"][]; + }; + AuthCallbackRequest: { + /** + * Format: email + * @description Email address (required for basic auth) + * @example admin@example.com + */ + email?: string; + /** + * @description Password (required for basic auth) + * @example password123 + */ + password?: string; + /** + * @description URL to redirect after successful auth + * @example / + */ + redirect?: string; + }; + }; + responses: { + /** @description Error response */ + Error: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Problem"]; + }; + }; + /** @description Campaigns retrieved successfully */ + CampaignListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Campaign"][]; + }; + }; + }; + /** @description Journeys retrieved successfully */ + JourneyListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Journey"][]; + }; + }; + }; + /** @description Journey user steps retrieved successfully */ + JourneyUserStepListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["JourneyUserStep"][]; + }; + }; + }; + /** @description Tags retrieved successfully */ + TagListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Tag"][]; + }; + }; + }; + /** @description Subscriptions retrieved successfully */ + SubscriptionListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Subscription"][]; + }; + }; + }; + /** @description Documents retrieved successfully */ + DocumentListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Document"][]; + }; + }; + }; + /** @description Lists retrieved successfully */ + ListListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["List"][]; + }; + }; + }; + /** @description Events retrieved successfully */ + EventListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + results: components["schemas"]["EventWithSchema"][]; + }; + }; + }; + /** @description Providers retrieved successfully */ + ProviderListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Provider"][]; + }; + }; + }; + /** @description API keys retrieved successfully */ + ApiKeyListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["ApiKey"][]; + }; + }; + }; + /** @description Actions retrieved successfully */ + ActionListResponse: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PaginatedResponse"] & { + results: components["schemas"]["Action"][]; + }; + }; + }; + }; + parameters: { + /** @description Maximum number of items to return */ + Limit: number; + /** @description Number of items to skip */ + Offset: number; + /** @description Search query string */ + Search: string; + }; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + getAuthMethods: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Auth methods retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string[]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + authCallback: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The authentication driver */ + driver: "basic" | "clerk"; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["AuthCallbackRequest"]; + }; + }; + responses: { + /** @description Authentication successful */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + authWebhook: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The authentication driver */ + driver: "clerk"; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Webhook processed successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + listCampaigns: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: components["responses"]["CampaignListResponse"]; + default: components["responses"]["Error"]; + }; + }; + createCampaign: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateCampaign"]; + }; + }; + responses: { + /** @description Campaign created successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Campaign"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + getCampaign: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Campaign retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["Campaign"]; + }; + }; + }; + default: components["responses"]["Error"]; + }; + }; + deleteCampaign: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + }; + cookie?: never; }; - ClientEvent: { - /** - * @description The name of the event - * @example purchase_completed - */ - name: string; - /** - * @description Anonymous identifier for the user - * @example anon_abc123 - */ - anonymous_id?: string | null; - /** - * @description External identifier for the user from your system - * @example user_12345 - */ - external_id?: string | null; - /** - * @description Event-specific data - * @example { - * "product_id": "prod_789", - * "amount": 99.99 - * } - */ - data?: { - [key: string]: unknown; - } | null; - user?: components["schemas"]["ClientEventUser"]; + requestBody?: never; + responses: { + /** @description Campaign deleted successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; }; - ClientEventUser: { - /** - * Format: email - * @example user@example.com - */ - email?: string; - /** - * Format: phone - * @description E.164 formatted phone number - * @example +1234567890 - */ - phone?: string; - /** @example America/New_York */ - timezone?: string | null; - /** @example en-US */ - locale?: string | null; - /** - * @description User-specific attributes - * @example { - * "plan": "premium", - * "signup_date": "2025-01-15" - * } - */ - data?: { - [key: string]: unknown; - } | null; - } | null; - EventWithSchema: { - /** - * Format: uuid - * @example 5c9d3163-7b64-4f9e-9068-d2e4b96be56b - */ - id: string; - /** @example purchase_completed */ - name: string; - schema: components["schemas"]["SchemaPath"][]; + }; + updateCampaign: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + }; + cookie?: never; }; - SchemaPath: { - /** @example .email */ - path: string; - /** - * @example [ - * "string" - * ] - */ - types: string[]; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateCampaign"]; + }; }; - AuthCallbackRequest: { - /** - * Format: email - * @description Email address (required for basic auth) - * @example admin@example.com - */ - email?: string; - /** - * @description Password (required for basic auth) - * @example password123 - */ - password?: string; - /** - * @description URL to redirect after successful auth - * @example / - */ - redirect?: string; + responses: { + /** @description Campaign updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Campaign"]; + }; + }; + default: components["responses"]["Error"]; }; }; - responses: { - /** @description Error response */ - Error: { - headers: { - [name: string]: unknown; + createTemplate: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; }; + cookie?: never; + }; + requestBody: { content: { - "application/json": components["schemas"]["Problem"]; + "application/json": components["schemas"]["CreateTemplate"]; }; }; - /** @description Campaigns retrieved successfully */ - CampaignListResponse: { - headers: { - [name: string]: unknown; + responses: { + /** @description Template created successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Template"]; + }; }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Campaign"][]; + default: components["responses"]["Error"]; + }; + }; + getTemplate: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Template retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["Template"]; + }; }; }; + default: components["responses"]["Error"]; }; - /** @description Journeys retrieved successfully */ - JourneyListResponse: { - headers: { - [name: string]: unknown; + }; + deleteTemplate: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Journey"][]; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Template deleted successfully */ + 204: { + headers: { + [name: string]: unknown; }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + updateTemplate: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; + /** @description The template ID */ + templateID: string; }; + cookie?: never; }; - /** @description Journey user steps retrieved successfully */ - JourneyUserStepListResponse: { - headers: { - [name: string]: unknown; - }; + requestBody: { content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["JourneyUserStep"][]; - }; + "application/json": components["schemas"]["UpdateTemplate"]; }; }; - /** @description Tags retrieved successfully */ - TagListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Tag"][]; + responses: { + /** @description Template updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Template"]; }; }; + default: components["responses"]["Error"]; }; - /** @description Subscriptions retrieved successfully */ - SubscriptionListResponse: { - headers: { - [name: string]: unknown; + }; + duplicateCampaign: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID to duplicate */ + campaignID: string; }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Subscription"][]; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Campaign duplicated successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Campaign"]; }; }; + default: components["responses"]["Error"]; }; - /** @description Documents retrieved successfully */ - DocumentListResponse: { - headers: { - [name: string]: unknown; + }; + getCampaignUsers: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Document"][]; - }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The campaign ID */ + campaignID: string; }; + cookie?: never; }; - /** @description Lists retrieved successfully */ - ListListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["List"][]; + requestBody?: never; + responses: { + /** @description Campaign users retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CampaignUser"][]; + total: number; + limit: number; + offset: number; + }; }; }; + default: components["responses"]["Error"]; }; - /** @description Events retrieved successfully */ - EventListResponse: { - headers: { - [name: string]: unknown; + }; + listLists: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; }; - content: { - "application/json": { - results: components["schemas"]["EventWithSchema"][]; - }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; }; + cookie?: never; }; - /** @description Providers retrieved successfully */ - ProviderListResponse: { - headers: { - [name: string]: unknown; + requestBody?: never; + responses: { + 200: components["responses"]["ListListResponse"]; + default: components["responses"]["Error"]; + }; + }; + createList: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; }; + cookie?: never; + }; + requestBody: { content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["Provider"][]; - }; + "application/json": components["schemas"]["CreateList"]; }; }; - /** @description API keys retrieved successfully */ - ApiKeyListResponse: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PaginatedResponse"] & { - results: components["schemas"]["ApiKey"][]; + responses: { + /** @description List created successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["List"]; }; }; + default: components["responses"]["Error"]; }; }; - parameters: { - /** @description Maximum number of items to return */ - Limit: number; - /** @description Number of items to skip */ - Offset: number; - /** @description Search query string */ - Search: string; - }; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - getAuthMethods: { + recountList: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The list ID */ + listID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Auth methods retrieved successfully */ - 200: { + /** @description Recount started successfully. The list state will be set to 'loading'. */ + 202: { headers: { [name: string]: unknown; }; content: { - "application/json": string[]; + "application/json": components["schemas"]["List"]; }; }; default: components["responses"]["Error"]; }; }; - authCallback: { + getList: { parameters: { query?: never; header?: never; path: { - /** @description The authentication driver */ - driver: "basic" | "clerk"; + /** @description The project ID */ + projectID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["AuthCallbackRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description Authentication successful */ + /** @description List retrieved successfully */ 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["List"]; + }; }; default: components["responses"]["Error"]; }; }; - authWebhook: { + deleteList: { parameters: { query?: never; header?: never; path: { - /** @description The authentication driver */ - driver: "clerk"; + /** @description The project ID */ + projectID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Webhook processed successfully */ - 200: { + /** @description List deleted successfully */ + 204: { headers: { [name: string]: unknown; }; @@ -3102,214 +4275,248 @@ export interface operations { default: components["responses"]["Error"]; }; }; - listCampaigns: { + updateList: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateList"]; + }; + }; responses: { - 200: components["responses"]["CampaignListResponse"]; + /** @description List updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["List"]; + }; + }; default: components["responses"]["Error"]; }; }; - createCampaign: { + duplicateList: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The list ID to duplicate */ + listID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateCampaign"]; - }; - }; + requestBody?: never; responses: { - /** @description Campaign created successfully */ + /** @description List duplicated successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Campaign"]; + "application/json": components["schemas"]["List"]; }; }; default: components["responses"]["Error"]; }; }; - getCampaign: { + getListUsers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Campaign retrieved successfully */ + /** @description List users retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["Campaign"]; - }; + "application/json": components["schemas"]["UserList"]; }; }; default: components["responses"]["Error"]; }; }; - deleteCampaign: { + previewListUsers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Campaign deleted successfully */ - 204: { + /** @description Preview users retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["UserList"]; + }; }; default: components["responses"]["Error"]; }; }; - updateCampaign: { + importListUsers: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description The list ID */ + listID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateCampaign"]; + "multipart/form-data": { + /** + * Format: binary + * @description CSV file containing user data. Must include external_id column. + */ + file: string; + }; }; }; responses: { - /** @description Campaign updated successfully */ + /** @description Users imported successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + listProjects: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Projects retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Campaign"]; + "application/json": components["schemas"]["ProjectList"]; }; }; default: components["responses"]["Error"]; }; }; - createTemplate: { + createProject: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The campaign ID */ - campaignID: string; - }; + path?: never; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["CreateTemplate"]; + "application/json": components["schemas"]["CreateProject"]; }; }; responses: { - /** @description Template created successfully */ + /** @description Project created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Template"]; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - getTemplate: { + getProject: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Template retrieved successfully */ + /** @description Project retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["Template"]; - }; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - deleteTemplate: { + deleteProject: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Template deleted successfully */ + /** @description Project deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -3319,217 +4526,256 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateTemplate: { + updateProject: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; - /** @description The template ID */ - templateID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateTemplate"]; + "application/json": components["schemas"]["UpdateProject"]; }; }; responses: { - /** @description Template updated successfully */ + /** @description Project updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Template"]; + "application/json": components["schemas"]["Project"]; }; }; default: components["responses"]["Error"]; }; }; - duplicateCampaign: { + listJourneys: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID to duplicate */ - campaignID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Campaign duplicated successfully */ + 200: components["responses"]["JourneyListResponse"]; + default: components["responses"]["Error"]; + }; + }; + createJourney: { + parameters: { + query?: { + /** @description If true, immediately publish the journey after creation */ + publish?: boolean; + }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateJourney"]; + }; + }; + responses: { + /** @description Journey created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Campaign"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - getCampaignUsers: { + getJourney: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The campaign ID */ - campaignID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Campaign users retrieved successfully */ + /** @description Journey retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["CampaignUser"][]; - total: number; - limit: number; - offset: number; - }; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - listLists: { + deleteJourney: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - 200: components["responses"]["ListListResponse"]; + /** @description Journey deleted successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; default: components["responses"]["Error"]; }; }; - createList: { + updateJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["CreateList"]; + "application/json": components["schemas"]["UpdateJourney"]; }; }; responses: { - /** @description List created successfully */ - 201: { + /** @description Journey updated successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["List"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - recountList: { + getUserJourneyState: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Recount started successfully. The list state will be set to 'loading'. */ - 202: { + /** @description User journey state retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["List"]; + "application/json": { + external_step_id?: string; + step_type?: string; + is_completed?: boolean; + }[]; }; }; default: components["responses"]["Error"]; }; }; - getList: { + streamUserJourneySteps: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID to check journey status for */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description List retrieved successfully */ + /** @description Server-Sent Event stream of user journey step updates */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["List"]; + "text/event-stream": string; }; }; default: components["responses"]["Error"]; }; }; - deleteList: { + AdvanceUserStep: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID whose current step should be advanced */ + userID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": { + /** + * Format: uuid + * @description The external ID of the current step to advance + */ + externalStepID: string; + }; + }; + }; responses: { - /** @description List deleted successfully */ - 204: { + /** @description Current step advanced successfully */ + 200: { headers: { [name: string]: unknown; }; @@ -3538,233 +4784,203 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateList: { + triggerUser: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID to enroll in the journey */ + userID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateList"]; + "application/json": { + /** + * Format: uuid + * @description The ID of the journey entry to enroll the user in + */ + externalStepID: string; + }; }; }; responses: { - /** @description List updated successfully */ + /** @description User enrolled in journey successfully */ 200: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["List"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - duplicateList: { + removeUserFromJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID to duplicate */ - listID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description List duplicated successfully */ - 201: { + /** @description User removed from journey successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["List"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - getListUsers: { + getJourneySteps: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description List users retrieved successfully */ + /** @description Journey steps retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserList"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; }; default: components["responses"]["Error"]; }; }; - importListUsers: { + setJourneySteps: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The list ID */ - listID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody: { content: { - "multipart/form-data": { - /** - * Format: binary - * @description CSV file containing user data. Must include external_id column. - */ - file: string; - }; - }; - }; - responses: { - /** @description Users imported successfully */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - default: components["responses"]["Error"]; - }; - }; - listProjects: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; - header?: never; - path?: never; - cookie?: never; }; - requestBody?: never; responses: { - /** @description Projects retrieved successfully */ + /** @description Journey steps updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["ProjectList"]; + "application/json": components["schemas"]["JourneyStepMap"]; }; }; default: components["responses"]["Error"]; }; }; - createProject: { + versionJourney: { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateProject"]; + path: { + /** @description The project ID */ + projectID: string; + /** @description The journey ID */ + journeyID: string; }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Project created successfully */ + /** @description Journey version created successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - getProject: { + duplicateJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Project retrieved successfully */ - 200: { + /** @description Journey duplicated successfully */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - updateProject: { + publishJourney: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateProject"]; - }; - }; + requestBody?: never; responses: { - /** @description Project updated successfully */ + /** @description Journey published successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Project"]; + "application/json": components["schemas"]["Journey"]; }; }; default: components["responses"]["Error"]; }; }; - listJourneys: { + listJourneyStepUsers: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -3776,44 +4992,50 @@ export interface operations { path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID */ + stepID: string; }; cookie?: never; }; requestBody?: never; responses: { - 200: components["responses"]["JourneyListResponse"]; + 200: components["responses"]["JourneyUserStepListResponse"]; default: components["responses"]["Error"]; }; }; - createJourney: { + triggerUserToJourneyStep: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The journey ID */ + journeyID: string; + /** @description The step external ID (must be an entrance step) */ + stepID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateJourney"]; - }; - }; + requestBody?: never; responses: { - /** @description Journey created successfully */ + /** @description User added to journey entrance successfully */ 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["JourneyUserStep"]; }; }; default: components["responses"]["Error"]; }; }; - getJourney: { + skipJourneyStepDelay: { parameters: { query?: never; header?: never; @@ -3822,24 +5044,26 @@ export interface operations { projectID: string; /** @description The journey ID */ journeyID: string; + /** @description The step external ID (must be a delay step) */ + stepID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey retrieved successfully */ + /** @description Delay skipped successfully */ 200: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["Journey"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - deleteJourney: { + removeUserFromJourneyStep: { parameters: { query?: never; header?: never; @@ -3848,12 +5072,16 @@ export interface operations { projectID: string; /** @description The journey ID */ journeyID: string; + /** @description The step external ID */ + stepID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey deleted successfully */ + /** @description User removed from journey step successfully */ 204: { headers: { [name: string]: unknown; @@ -3863,9 +5091,16 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateJourney: { + listJourneyEntrances: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { /** @description The project ID */ @@ -3875,286 +5110,271 @@ export interface operations { }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateJourney"]; - }; - }; + requestBody?: never; responses: { - /** @description Journey updated successfully */ + /** @description Journey entrances retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["JourneyUserEntranceListResponse"]; }; }; default: components["responses"]["Error"]; }; }; - getJourneySteps: { + getProfile: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Profile retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Admin"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + listAdmins: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; }; + header?: never; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey steps retrieved successfully */ + /** @description Admins retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["JourneyStepMap"]; + "application/json": components["schemas"]["AdminList"]; }; }; default: components["responses"]["Error"]; }; }; - setJourneySteps: { + createAdmin: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; - }; + path?: never; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["JourneyStepMap"]; + "application/json": components["schemas"]["CreateAdmin"]; }; }; responses: { - /** @description Journey steps updated successfully */ - 200: { + /** @description Admin created successfully */ + 201: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["JourneyStepMap"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - versionJourney: { + getAdmin: { parameters: { query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey version created successfully */ - 201: { + /** @description Admin retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - duplicateJourney: { + deleteAdmin: { parameters: { query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey duplicated successfully */ - 201: { + /** @description Admin deleted successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["Journey"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - publishJourney: { + updateAdmin: { parameters: { query?: never; header?: never; path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The admin ID */ + adminID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateAdmin"]; + }; + }; responses: { - /** @description Journey published successfully */ + /** @description Admin updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Journey"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - listJourneyStepUsers: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; - header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The step external ID */ - stepID: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: components["responses"]["JourneyUserStepListResponse"]; - default: components["responses"]["Error"]; - }; - }; - triggerUserToJourneyStep: { + whoami: { parameters: { query?: never; header?: never; - path: { - /** @description The project ID */ - projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The step external ID (must be an entrance step) */ - stepID: string; - /** @description The user ID */ - userID: string; - }; + path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description User added to journey entrance successfully */ - 201: { + /** @description Current admin retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["JourneyUserStep"]; + "application/json": components["schemas"]["Admin"]; }; }; default: components["responses"]["Error"]; }; }; - skipJourneyStepDelay: { + listUsers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The step external ID (must be a delay step) */ - stepID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Delay skipped successfully */ + /** @description Users retrieved successfully */ 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["UserList"]; + }; }; default: components["responses"]["Error"]; }; }; - removeUserFromJourneyStep: { + identifyUser: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The step external ID */ - stepID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["IdentifyUser"]; + }; + }; responses: { - /** @description User removed from journey step successfully */ - 204: { + /** @description User identified successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["User"]; + }; }; default: components["responses"]["Error"]; }; }; - removeUserFromJourney: { + importUsers: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "multipart/form-data": { + /** + * Format: binary + * @description CSV file with user data (must include external_id column) + */ + file: string; + }; + }; + }; responses: { - /** @description User removed from journey successfully */ + /** @description Users imported successfully */ 204: { headers: { [name: string]: unknown; @@ -4164,239 +5384,254 @@ export interface operations { default: components["responses"]["Error"]; }; }; - listJourneyEntrances: { + getUser: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The journey ID */ - journeyID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Journey entrances retrieved successfully */ + /** @description User retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["JourneyUserEntranceListResponse"]; + "application/json": components["schemas"]["User"]; }; }; default: components["responses"]["Error"]; }; }; - getProfile: { + deleteUser: { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Profile retrieved successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Admin"]; - }; - }; - default: components["responses"]["Error"]; - }; - }; - listAdmins: { - parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - /** @description Search query string */ - search?: components["parameters"]["Search"]; + path: { + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; }; - header?: never; - path?: never; cookie?: never; }; requestBody?: never; responses: { - /** @description Admins retrieved successfully */ - 200: { + /** @description User deleted successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["AdminList"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - createAdmin: { + updateUser: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; + }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["CreateAdmin"]; + "application/json": components["schemas"]["UpdateUser"]; }; }; responses: { - /** @description Admin created successfully */ - 201: { + /** @description User updated successfully */ + 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["User"]; }; }; default: components["responses"]["Error"]; }; }; - getAdmin: { + getUserEvents: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Admin retrieved successfully */ + /** @description User events retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["UserEventList"]; }; }; default: components["responses"]["Error"]; }; }; - deleteAdmin: { + getUserSubscriptions: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Admin deleted successfully */ - 204: { + /** @description User subscriptions retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["UserSubscriptionList"]; + }; }; default: components["responses"]["Error"]; }; }; - updateAdmin: { + updateUserSubscriptions: { parameters: { query?: never; header?: never; path: { - /** @description The admin ID */ - adminID: string; + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateAdmin"]; + "application/json": components["schemas"]["UpdateUserSubscriptions"]; }; }; responses: { - /** @description Admin updated successfully */ + /** @description User subscriptions updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["User"]; }; }; default: components["responses"]["Error"]; }; }; - whoami: { + getUserJourneys: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Current admin retrieved successfully */ + /** @description User journeys retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Admin"]; + "application/json": components["schemas"]["UserJourneyList"]; }; }; default: components["responses"]["Error"]; }; }; - getOrganization: { + getUserDevices: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Organization retrieved successfully */ + /** @description User devices retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Organization"]; + "application/json": components["schemas"]["UserDeviceList"]; }; }; default: components["responses"]["Error"]; }; }; - deleteOrganization: { + deleteUserDevice: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The user ID */ + userID: string; + /** @description The device ID */ + deviceID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Organization deleted successfully */ + /** @description Device deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -4406,53 +5641,49 @@ export interface operations { default: components["responses"]["Error"]; }; }; - updateOrganization: { + listUserEventSchemas: { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateOrganization"]; + path: { + /** @description The project ID */ + projectID: string; }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Organization updated successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["Organization"]; - }; - }; + 200: components["responses"]["EventListResponse"]; default: components["responses"]["Error"]; }; }; - getOrganizationIntegrations: { + listUserSchemas: { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The project ID */ + projectID: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Integrations retrieved successfully */ + /** @description User schemas retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Provider"][]; + "application/json": { + results: components["schemas"]["SchemaPath"][]; + }; }; }; default: components["responses"]["Error"]; }; }; - listUsers: { + listOrganizations: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -4471,19 +5702,19 @@ export interface operations { }; requestBody?: never; responses: { - /** @description Users retrieved successfully */ + /** @description Organizations retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserList"]; + "application/json": components["schemas"]["OrganizationList"]; }; }; default: components["responses"]["Error"]; }; }; - identifyUser: { + upsertOrganization: { parameters: { query?: never; header?: never; @@ -4495,45 +5726,63 @@ export interface operations { }; requestBody: { content: { - "application/json": components["schemas"]["IdentifyUser"]; + "application/json": components["schemas"]["UpsertOrganization"]; }; }; responses: { - /** @description User identified successfully */ + /** @description Organization upserted successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["Organization"]; }; }; default: components["responses"]["Error"]; }; }; - importUsers: { + getOrganization: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The organization ID */ + organizationID: string; }; cookie?: never; }; - requestBody: { - content: { - "multipart/form-data": { - /** - * Format: binary - * @description CSV file with user data (must include external_id column) - */ - file: string; + requestBody?: never; + responses: { + /** @description Organization retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; }; + content: { + "application/json": components["schemas"]["Organization"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + deleteOrganization: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The organization ID */ + organizationID: string; }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description Users imported successfully */ + /** @description Organization deleted successfully */ 204: { headers: { [name: string]: unknown; @@ -4543,98 +5792,104 @@ export interface operations { default: components["responses"]["Error"]; }; }; - getUser: { + updateOrganization: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The organization ID */ + organizationID: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateOrganization"]; + }; + }; responses: { - /** @description User retrieved successfully */ + /** @description Organization updated successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["User"]; + "application/json": components["schemas"]["Organization"]; }; }; default: components["responses"]["Error"]; }; }; - deleteUser: { + listOrganizationMembers: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The organization ID */ + organizationID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User deleted successfully */ - 204: { + /** @description Organization users retrieved successfully */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": components["schemas"]["OrganizationMemberList"]; + }; }; default: components["responses"]["Error"]; }; }; - updateUser: { + addOrganizationMember: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The organization ID */ + organizationID: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["UpdateUser"]; + "application/json": components["schemas"]["AddOrganizationMember"]; }; }; responses: { - /** @description User updated successfully */ + /** @description User added to organization successfully */ 200: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["User"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - getUserEvents: { + removeOrganizationMember: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The organization ID */ + organizationID: string; /** @description The user ID */ userID: string; }; @@ -4642,19 +5897,17 @@ export interface operations { }; requestBody?: never; responses: { - /** @description User events retrieved successfully */ - 200: { + /** @description User removed from organization successfully */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": components["schemas"]["UserEventList"]; - }; + content?: never; }; default: components["responses"]["Error"]; }; }; - getUserSubscriptions: { + getOrganizationEvents: { parameters: { query?: { /** @description Maximum number of items to return */ @@ -4666,87 +5919,68 @@ export interface operations { path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; + /** @description The organization ID */ + organizationID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User subscriptions retrieved successfully */ + /** @description Organization events retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserSubscriptionList"]; + "application/json": components["schemas"]["OrganizationEventList"]; }; }; default: components["responses"]["Error"]; }; }; - updateUserSubscriptions: { + listOrganizationEventSchemas: { parameters: { query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateUserSubscriptions"]; - }; - }; + requestBody?: never; responses: { - /** @description User subscriptions updated successfully */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["User"]; - }; - }; + 200: components["responses"]["EventListResponse"]; default: components["responses"]["Error"]; }; }; - getUserJourneys: { + listOrganizationSchemas: { parameters: { - query?: { - /** @description Maximum number of items to return */ - limit?: components["parameters"]["Limit"]; - /** @description Number of items to skip */ - offset?: components["parameters"]["Offset"]; - }; + query?: never; header?: never; path: { /** @description The project ID */ projectID: string; - /** @description The user ID */ - userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User journeys retrieved successfully */ + /** @description Organization schemas retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["UserJourneyList"]; + "application/json": { + results: components["schemas"]["SchemaPath"][]; + }; }; }; default: components["responses"]["Error"]; }; }; - listEvents: { + listOrganizationMemberSchemas: { parameters: { query?: never; header?: never; @@ -4758,30 +5992,52 @@ export interface operations { }; requestBody?: never; responses: { - 200: components["responses"]["EventListResponse"]; + /** @description Organization user schemas retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + results: components["schemas"]["SchemaPath"][]; + }; + }; + }; default: components["responses"]["Error"]; }; }; - listUserSchemas: { + getUserOrganizations: { parameters: { - query?: never; + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; header?: never; path: { /** @description The project ID */ projectID: string; + /** @description The user ID */ + userID: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description User schemas retrieved successfully */ + /** @description User organizations retrieved successfully */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - results: components["schemas"]["SchemaPath"][]; + results: components["schemas"]["Organization"][]; + total: number; + limit: number; + offset: number; }; }; }; @@ -5510,6 +6766,275 @@ export interface operations { default: components["responses"]["Error"]; }; }; + listActions: { + parameters: { + query?: { + /** @description Maximum number of items to return */ + limit?: components["parameters"]["Limit"]; + /** @description Number of items to skip */ + offset?: components["parameters"]["Offset"]; + /** @description Search query string */ + search?: components["parameters"]["Search"]; + }; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: components["responses"]["ActionListResponse"]; + default: components["responses"]["Error"]; + }; + }; + createAction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateAction"]; + }; + }; + responses: { + /** @description Action created successfully */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Action"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + getAction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action ID */ + actionID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Action retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Action"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + deleteAction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action ID */ + actionID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Action deleted successfully */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + default: components["responses"]["Error"]; + }; + }; + updateAction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action ID */ + actionID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateAction"]; + }; + }; + responses: { + /** @description Action updated successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["Action"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + listActionMeta: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Action modules retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ActionMeta"][]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + getActionPreview: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action module type (module ID) */ + actionType: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Action preview HTML retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "text/html": string; + }; + }; + default: components["responses"]["Error"]; + }; + }; + testAction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TestActionRequest"]; + }; + }; + responses: { + /** @description Action test executed successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TestActionResult"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + listActionSchemas: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action ID */ + actionID: string; + /** @description The function ID within the action module */ + functionID: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Action schemas retrieved successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ActionSchemaListResponse"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; + testActionFunction: { + parameters: { + query?: never; + header?: never; + path: { + /** @description The project ID */ + projectID: string; + /** @description The action ID */ + actionID: string; + /** @description The function ID within the action module */ + functionID: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TestActionFunctionRequest"]; + }; + }; + responses: { + /** @description Action function test executed successfully */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TestActionFunctionResult"]; + }; + }; + default: components["responses"]["Error"]; + }; + }; listProviders: { parameters: { query?: { diff --git a/internal/http/controllers/v1/management/oapi/resources.yml b/internal/http/controllers/v1/management/oapi/resources.yml index 6bae41a6f..ceecec625 100644 --- a/internal/http/controllers/v1/management/oapi/resources.yml +++ b/internal/http/controllers/v1/management/oapi/resources.yml @@ -1318,6 +1318,41 @@ paths: description: Current step advanced successfully default: $ref: "#/components/responses/Error" + delete: + summary: Remove user from journey + description: Removes a user from all active entrances in a journey + operationId: removeUserFromJourney + tags: + - Journeys + security: + - HttpBearerAuth: [] + parameters: + - name: projectID + in: path + required: true + schema: + type: string + format: uuid + description: The project ID + - name: journeyID + in: path + required: true + schema: + type: string + format: uuid + description: The journey ID + - name: userID + in: path + required: true + schema: + type: string + format: uuid + description: The user ID + responses: + "204": + description: User removed from journey successfully + default: + $ref: "#/components/responses/Error" /api/admin/projects/{projectID}/journeys/{journeyID}/steps: get: @@ -1665,43 +1700,6 @@ paths: default: $ref: "#/components/responses/Error" - /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}: - delete: - summary: Remove user from journey - description: Removes a user from all active entrances in a journey - operationId: removeUserFromJourney - tags: - - Journeys - security: - - HttpBearerAuth: [] - parameters: - - name: projectID - in: path - required: true - schema: - type: string - format: uuid - description: The project ID - - name: journeyID - in: path - required: true - schema: - type: string - format: uuid - description: The journey ID - - name: userID - in: path - required: true - schema: - type: string - format: uuid - description: The user ID - responses: - "204": - description: User removed from journey successfully - default: - $ref: "#/components/responses/Error" - /api/admin/projects/{projectID}/journeys/{journeyID}/entrances: get: summary: List journey entrances diff --git a/internal/http/controllers/v1/management/oapi/resources_gen.go b/internal/http/controllers/v1/management/oapi/resources_gen.go index 6df3f9bcb..26729fb6c 100644 --- a/internal/http/controllers/v1/management/oapi/resources_gen.go +++ b/internal/http/controllers/v1/management/oapi/resources_gen.go @@ -54,14 +54,6 @@ const ( CreateListTypeStatic CreateListType = "static" ) -// Defines values for CreateProviderRateInterval. -const ( - CreateProviderRateIntervalDay CreateProviderRateInterval = "day" - CreateProviderRateIntervalHour CreateProviderRateInterval = "hour" - CreateProviderRateIntervalMinute CreateProviderRateInterval = "minute" - CreateProviderRateIntervalSecond CreateProviderRateInterval = "second" -) - // Defines values for JourneyStatus. const ( JourneyStatusArchived JourneyStatus = "archived" @@ -71,17 +63,18 @@ const ( // Defines values for JourneyStepType. const ( - Action JourneyStepType = "action" - Balancer JourneyStepType = "balancer" - Delay JourneyStepType = "delay" - Entrance JourneyStepType = "entrance" - Event JourneyStepType = "event" - Exit JourneyStepType = "exit" - Experiment JourneyStepType = "experiment" - Gate JourneyStepType = "gate" - Link JourneyStepType = "link" - Sticky JourneyStepType = "sticky" - Update JourneyStepType = "update" + JourneyStepTypeAction JourneyStepType = "action" + JourneyStepTypeBalancer JourneyStepType = "balancer" + JourneyStepTypeCampaign JourneyStepType = "campaign" + JourneyStepTypeDelay JourneyStepType = "delay" + JourneyStepTypeEntrance JourneyStepType = "entrance" + JourneyStepTypeEvent JourneyStepType = "event" + JourneyStepTypeExit JourneyStepType = "exit" + JourneyStepTypeExperiment JourneyStepType = "experiment" + JourneyStepTypeGate JourneyStepType = "gate" + JourneyStepTypeLink JourneyStepType = "link" + JourneyStepTypeSticky JourneyStepType = "sticky" + JourneyStepTypeUpdate JourneyStepType = "update" ) // Defines values for JourneyUserStepType. @@ -114,18 +107,10 @@ const ( // Defines values for ProjectRole. const ( - ProjectRoleAdmin ProjectRole = "admin" - ProjectRoleEditor ProjectRole = "editor" - ProjectRolePublisher ProjectRole = "publisher" - ProjectRoleSupport ProjectRole = "support" -) - -// Defines values for ProviderRateInterval. -const ( - ProviderRateIntervalDay ProviderRateInterval = "day" - ProviderRateIntervalHour ProviderRateInterval = "hour" - ProviderRateIntervalMinute ProviderRateInterval = "minute" - ProviderRateIntervalSecond ProviderRateInterval = "second" + ProjectRoleAdmin ProjectRole = "admin" + ProjectRoleClient ProjectRole = "client" + ProjectRoleEditor ProjectRole = "editor" + ProjectRoleSupport ProjectRole = "support" ) // Defines values for SubscriptionState. @@ -134,14 +119,6 @@ const ( Unsubscribed SubscriptionState = "unsubscribed" ) -// Defines values for UpdateProviderRateInterval. -const ( - Day UpdateProviderRateInterval = "day" - Hour UpdateProviderRateInterval = "hour" - Minute UpdateProviderRateInterval = "minute" - Second UpdateProviderRateInterval = "second" -) - // Defines values for AuthCallbackParamsDriver. const ( AuthCallbackParamsDriverBasic AuthCallbackParamsDriver = "basic" @@ -153,6 +130,73 @@ const ( AuthWebhookParamsDriverClerk AuthWebhookParamsDriver = "clerk" ) +// Action defines model for Action. +type Action struct { + // Config Action configuration (varies by type) + Config json.RawMessage `json:"config"` + CreatedAt time.Time `json:"created_at"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` + + // Type Type of action (module ID from registered action modules) + Type ActionType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` +} + +// ActionFunction defines model for ActionFunction. +type ActionFunction struct { + // Description Function description + Description *string `json:"description,omitempty"` + + // Id Function identifier + Id string `json:"id"` + + // InputSchema JSON Schema for function input + InputSchema *json.RawMessage `json:"input_schema,omitempty"` + + // Title Human-readable function name + Title string `json:"title"` +} + +// ActionMeta defines model for ActionMeta. +type ActionMeta struct { + // ConfigSchema JSON Schema for module-level configuration (API keys, etc.) + ConfigSchema *json.RawMessage `json:"config_schema,omitempty"` + + // Description Module description + Description *string `json:"description,omitempty"` + + // Functions Available functions in this action module + Functions []ActionFunction `json:"functions"` + + // Hidden Whether this module is hidden from the UI + Hidden *bool `json:"hidden,omitempty"` + + // Name Human-readable module name + Name string `json:"name"` + + // Type Module ID + Type string `json:"type"` +} + +// ActionSchemaListResponse defines model for ActionSchemaListResponse. +type ActionSchemaListResponse struct { + Results []SchemaPath `json:"results"` +} + +// ActionType Type of action (module ID from registered action modules) +type ActionType = string + +// AddOrganizationMember defines model for AddOrganizationMember. +type AddOrganizationMember struct { + // Data Organization-specific data for this user + Data *map[string]any `json:"data,omitempty"` + + // UserId The user ID to add to the organization + UserId openapi_types.UUID `json:"user_id"` +} + // Admin defines model for Admin. type Admin struct { CreatedAt time.Time `json:"created_at"` @@ -248,6 +292,16 @@ type CampaignUserStatus string // Channel Communication channel type type Channel string +// CreateAction defines model for CreateAction. +type CreateAction struct { + // Config Action configuration (varies by type) + Config *json.RawMessage `json:"config,omitempty"` + Name string `json:"name"` + + // Type Type of action (module ID from registered action modules) + Type ActionType `json:"type"` +} + // CreateAdmin defines model for CreateAdmin. type CreateAdmin struct { Email string `json:"email"` @@ -298,7 +352,7 @@ type CreateListType string // CreateLocale defines model for CreateLocale. type CreateLocale struct { - // Key Locale key (e.g., language code) + // Key Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") Key string `json:"key"` // Label Human-readable locale label @@ -307,29 +361,23 @@ type CreateLocale struct { // CreateProject defines model for CreateProject. type CreateProject struct { - Description *string `json:"description,omitempty"` - LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` - LinkWrapPush *bool `json:"link_wrap_push,omitempty"` - Locale string `json:"locale"` - Name string `json:"name"` - TextHelpMessage *string `json:"text_help_message,omitempty"` - TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` - Timezone string `json:"timezone"` - Tools *[]string `json:"tools,omitempty"` + Description *string `json:"description,omitempty"` + LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` + LinkWrapPush *bool `json:"link_wrap_push,omitempty"` + Locale string `json:"locale"` + Name string `json:"name"` + TextHelpMessage *string `json:"text_help_message,omitempty"` + TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` + Timezone string `json:"timezone"` } // CreateProvider defines model for CreateProvider. type CreateProvider struct { - Data *json.RawMessage `json:"data,omitempty"` - IsDefault *bool `json:"is_default,omitempty"` - Name string `json:"name"` - RateInterval *CreateProviderRateInterval `json:"rate_interval,omitempty"` - RateLimit *int32 `json:"rate_limit,omitempty"` + Data *json.RawMessage `json:"data,omitempty"` + IsDefault *bool `json:"is_default,omitempty"` + Name string `json:"name"` } -// CreateProviderRateInterval defines model for CreateProvider.RateInterval. -type CreateProviderRateInterval string - // CreateSubscription defines model for CreateSubscription. type CreateSubscription struct { // Channel Communication channel type @@ -558,22 +606,31 @@ type JourneyUserStepType string // List defines model for List. type List struct { - CreatedAt time.Time `json:"created_at"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` - RefreshedAt *time.Time `json:"refreshed_at,omitempty"` - Rule *rules.RuleSet `json:"rule,omitempty"` - RuleId *openapi_types.UUID `json:"rule_id,omitempty"` - State ListState `json:"state"` - Tags *[]string `json:"tags,omitempty"` - Type ListType `json:"type"` - UpdatedAt time.Time `json:"updated_at"` - UsersCount int `json:"users_count"` - Version int `json:"version"` -} - -// ListState defines model for List.State. + CreatedAt time.Time `json:"created_at"` + + // DraftRule Draft rule definition (from the draft version, if one exists) + DraftRule *rules.RuleSet `json:"draft_rule,omitempty"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` + RefreshedAt *time.Time `json:"refreshed_at,omitempty"` + + // Rule Published rule definition (from the published version) + Rule *rules.RuleSet `json:"rule,omitempty"` + + // State draft = not yet published, ready = published and active, loading = recomputing + State ListState `json:"state"` + Tags *[]string `json:"tags,omitempty"` + Type ListType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + UsersCount int `json:"users_count"` + Version int `json:"version"` + + // VersionNumber Current version number of the active list version + VersionNumber *int `json:"version_number,omitempty"` +} + +// ListState draft = not yet published, ready = published and active, loading = recomputing type ListState string // ListType defines model for List.Type. @@ -584,7 +641,7 @@ type Locale struct { CreatedAt time.Time `json:"created_at"` Id openapi_types.UUID `json:"id"` - // Key Locale key (e.g., language code) + // Key Locale key (BCP 47 language tag, e.g., "en-US", "pt-BR") Key string `json:"key"` // Label Human-readable locale label @@ -595,12 +652,87 @@ type Locale struct { // Organization defines model for Organization. type Organization struct { - CreatedAt time.Time `json:"created_at"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - NotificationProviderId *openapi_types.UUID `json:"notification_provider_id,omitempty"` - TrackingDeeplinkMirrorUrl *string `json:"tracking_deeplink_mirror_url,omitempty"` - UpdatedAt time.Time `json:"updated_at"` + CreatedAt time.Time `json:"created_at"` + Data json.RawMessage `json:"data"` + + // ExternalId External identifier for the organization from your system + ExternalId string `json:"external_id"` + Id openapi_types.UUID `json:"id"` + Name *string `json:"name,omitempty"` + ProjectId openapi_types.UUID `json:"project_id"` + UpdatedAt time.Time `json:"updated_at"` + Version int32 `json:"version"` +} + +// OrganizationEvent defines model for OrganizationEvent. +type OrganizationEvent struct { + CreatedAt time.Time `json:"created_at"` + Data *json.RawMessage `json:"data,omitempty"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + OrganizationId openapi_types.UUID `json:"organization_id"` + ProjectId openapi_types.UUID `json:"project_id"` +} + +// OrganizationEventList defines model for OrganizationEventList. +type OrganizationEventList struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []OrganizationEvent `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` +} + +// OrganizationList defines model for OrganizationList. +type OrganizationList struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Organization `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` +} + +// OrganizationMember defines model for OrganizationMember. +type OrganizationMember struct { + AnonymousId string `json:"anonymous_id"` + CreatedAt time.Time `json:"created_at"` + Data json.RawMessage `json:"data"` + Email *string `json:"email,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + HasPushDevice bool `json:"has_push_device"` + Id openapi_types.UUID `json:"id"` + Locale *string `json:"locale,omitempty"` + + // OrganizationData Organization-specific data for this user + OrganizationData json.RawMessage `json:"organization_data"` + + // Phone E.164 formatted phone number + Phone *string `json:"phone,omitempty"` + ProjectId openapi_types.UUID `json:"project_id"` + Timezone *string `json:"timezone,omitempty"` + UpdatedAt time.Time `json:"updated_at"` + Version int32 `json:"version"` +} + +// OrganizationMemberList defines model for OrganizationMemberList. +type OrganizationMemberList struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []OrganizationMember `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` } // OrganizationRole Role within an organization @@ -645,7 +777,6 @@ type Project struct { TextHelpMessage *string `json:"text_help_message,omitempty"` TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` Timezone string `json:"timezone"` - Tools *[]string `json:"tools,omitempty"` UpdatedAt time.Time `json:"updated_at"` UsersCount *int `json:"users_count,omitempty"` } @@ -697,29 +828,27 @@ type ProjectRole string // Provider defines model for Provider. type Provider struct { // Channel Communication channel type - Channel Channel `json:"channel"` - CreatedAt time.Time `json:"created_at"` - Data *json.RawMessage `json:"data,omitempty"` - Id openapi_types.UUID `json:"id"` - IsDefault bool `json:"is_default"` - Module string `json:"module"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` - RateInterval *ProviderRateInterval `json:"rate_interval,omitempty"` - RateLimit *int32 `json:"rate_limit,omitempty"` - UpdatedAt time.Time `json:"updated_at"` -} - -// ProviderRateInterval defines model for Provider.RateInterval. -type ProviderRateInterval string + Channel Channel `json:"channel"` + CreatedAt time.Time `json:"created_at"` + Data *json.RawMessage `json:"data,omitempty"` + Id openapi_types.UUID `json:"id"` + IsDefault bool `json:"is_default"` + Module string `json:"module"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` + UpdatedAt time.Time `json:"updated_at"` +} // ProviderMeta defines model for ProviderMeta. type ProviderMeta struct { - Description *string `json:"description,omitempty"` - Group string `json:"group"` - Icon *string `json:"icon,omitempty"` - Name string `json:"name"` - Schema json.RawMessage `json:"schema"` + Description *string `json:"description,omitempty"` + Group string `json:"group"` + + // Hidden Whether this module is hidden from the UI + Hidden *bool `json:"hidden,omitempty"` + Icon *string `json:"icon,omitempty"` + Name string `json:"name"` + Schema json.RawMessage `json:"schema"` // Type Module ID Type string `json:"type"` @@ -796,6 +925,49 @@ type Template struct { UpdatedAt time.Time `json:"updated_at"` } +// TestActionFunctionRequest defines model for TestActionFunctionRequest. +type TestActionFunctionRequest struct { + // Input Input parameters for the function execution + Input *map[string]interface{} `json:"input,omitempty"` +} + +// TestActionFunctionResult defines model for TestActionFunctionResult. +type TestActionFunctionResult struct { + // Metadata Metadata returned by the function execution + Metadata *map[string]interface{} `json:"metadata,omitempty"` + + // StatusCode Status code returned by the function execution (e.g. 200 for success, 400/500 for errors) + StatusCode int `json:"status_code"` +} + +// TestActionRequest defines model for TestActionRequest. +type TestActionRequest struct { + // Config Action configuration to validate (API keys, OAuth tokens, etc.) + Config *json.RawMessage `json:"config,omitempty"` + + // Type Type of action (module ID from registered action modules) + Type ActionType `json:"type"` +} + +// TestActionResult defines model for TestActionResult. +type TestActionResult struct { + // Message Human-readable validation message + Message *string `json:"message,omitempty"` + + // StatusCode Status code returned by the validation (e.g. 200 for success, 400/401/500 for errors) + StatusCode int `json:"status_code"` +} + +// UpdateAction defines model for UpdateAction. +type UpdateAction struct { + // Config Action configuration (varies by type) + Config *json.RawMessage `json:"config,omitempty"` + Name *string `json:"name,omitempty"` + + // Type Type of action (module ID from registered action modules) + Type *ActionType `json:"type,omitempty"` +} + // UpdateAdmin defines model for UpdateAdmin. type UpdateAdmin struct { Email *string `json:"email,omitempty"` @@ -829,7 +1001,9 @@ type UpdateJourney struct { // UpdateList defines model for UpdateList. type UpdateList struct { - Name string `json:"name"` + Name string `json:"name"` + + // Published When true, publishes the current draft rule making it active Published *bool `json:"published,omitempty"` Rule *rules.RuleSet `json:"rule,omitempty"` Tags *[]string `json:"tags,omitempty"` @@ -837,20 +1011,20 @@ type UpdateList struct { // UpdateOrganization defines model for UpdateOrganization. type UpdateOrganization struct { - TrackingDeeplinkMirrorUrl *string `json:"tracking_deeplink_mirror_url,omitempty"` + Data *json.RawMessage `json:"data,omitempty"` + Name *string `json:"name,omitempty"` } // UpdateProject defines model for UpdateProject. type UpdateProject struct { - Description *string `json:"description,omitempty"` - LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` - LinkWrapPush *bool `json:"link_wrap_push,omitempty"` - Locale *string `json:"locale,omitempty"` - Name *string `json:"name,omitempty"` - TextHelpMessage *string `json:"text_help_message,omitempty"` - TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` - Timezone *string `json:"timezone,omitempty"` - Tools *[]string `json:"tools,omitempty"` + Description *string `json:"description,omitempty"` + LinkWrapEmail *bool `json:"link_wrap_email,omitempty"` + LinkWrapPush *bool `json:"link_wrap_push,omitempty"` + Locale *string `json:"locale,omitempty"` + Name *string `json:"name,omitempty"` + TextHelpMessage *string `json:"text_help_message,omitempty"` + TextOptOutMessage *string `json:"text_opt_out_message,omitempty"` + Timezone *string `json:"timezone,omitempty"` } // UpdateProjectAdmin defines model for UpdateProjectAdmin. @@ -861,16 +1035,11 @@ type UpdateProjectAdmin struct { // UpdateProvider defines model for UpdateProvider. type UpdateProvider struct { - Data *json.RawMessage `json:"data,omitempty"` - IsDefault *bool `json:"is_default,omitempty"` - Name *string `json:"name,omitempty"` - RateInterval *UpdateProviderRateInterval `json:"rate_interval,omitempty"` - RateLimit *int32 `json:"rate_limit,omitempty"` + Data *json.RawMessage `json:"data,omitempty"` + IsDefault *bool `json:"is_default,omitempty"` + Name *string `json:"name,omitempty"` } -// UpdateProviderRateInterval defines model for UpdateProvider.RateInterval. -type UpdateProviderRateInterval string - // UpdateSubscription defines model for UpdateSubscription. type UpdateSubscription struct { IsPublic bool `json:"is_public"` @@ -906,6 +1075,15 @@ type UpdateUserSubscriptions = []struct { SubscriptionId openapi_types.UUID `json:"subscription_id"` } +// UpsertOrganization defines model for UpsertOrganization. +type UpsertOrganization struct { + Data *map[string]any `json:"data,omitempty"` + + // ExternalId External identifier for the organization from your system + ExternalId string `json:"external_id"` + Name *string `json:"name,omitempty"` +} + // User defines model for User. type User struct { AnonymousId string `json:"anonymous_id"` @@ -925,6 +1103,25 @@ type User struct { Version int32 `json:"version"` } +// UserDevice defines model for UserDevice. +type UserDevice struct { + AppBuild *string `json:"app_build"` + AppVersion *string `json:"app_version"` + CreatedAt time.Time `json:"created_at"` + DeviceId string `json:"device_id"` + Id openapi_types.UUID `json:"id"` + Model *string `json:"model"` + Os *string `json:"os"` + OsVersion *string `json:"os_version"` + Token *string `json:"token"` + UpdatedAt time.Time `json:"updated_at"` +} + +// UserDeviceList defines model for UserDeviceList. +type UserDeviceList struct { + Results []UserDevice `json:"results"` +} + // UserEvent defines model for UserEvent. type UserEvent struct { CreatedAt time.Time `json:"created_at"` @@ -1018,6 +1215,19 @@ type Offset = PaginationOffset // Search defines model for Search. type Search = PaginationSearch +// ActionListResponse defines model for ActionListResponse. +type ActionListResponse struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Action `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` +} + // ApiKeyListResponse defines model for ApiKeyListResponse. type ApiKeyListResponse struct { // Limit Maximum number of items returned @@ -1143,8 +1353,8 @@ type TagListResponse struct { Total int `json:"total"` } -// ListAdminsParams defines parameters for ListAdmins. -type ListAdminsParams struct { +// ListProjectsParams defines parameters for ListProjects. +type ListProjectsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` @@ -1155,8 +1365,8 @@ type ListAdminsParams struct { Search *Search `form:"search,omitempty" json:"search,omitempty"` } -// ListProjectsParams defines parameters for ListProjects. -type ListProjectsParams struct { +// ListActionsParams defines parameters for ListActions. +type ListActionsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` @@ -1186,6 +1396,9 @@ type ListCampaignsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetCampaignUsersParams defines parameters for GetCampaignUsers. @@ -1219,6 +1432,15 @@ type ListJourneysParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + +// CreateJourneyParams defines parameters for CreateJourney. +type CreateJourneyParams struct { + // Publish If true, immediately publish the journey after creation + Publish *bool `form:"publish,omitempty" json:"publish,omitempty"` } // ListJourneyEntrancesParams defines parameters for ListJourneyEntrances. @@ -1242,6 +1464,18 @@ type ListJourneyStepUsersParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } +// TriggerUserJSONBody defines parameters for TriggerUser. +type TriggerUserJSONBody struct { + // ExternalStepID The ID of the journey entry to enroll the user in + ExternalStepID openapi_types.UUID `json:"externalStepID"` +} + +// AdvanceUserStepJSONBody defines parameters for AdvanceUserStep. +type AdvanceUserStepJSONBody struct { + // ExternalStepID The external ID of the current step to advance + ExternalStepID openapi_types.UUID `json:"externalStepID"` +} + // ListApiKeysParams defines parameters for ListApiKeys. type ListApiKeysParams struct { // Limit Maximum number of items to return @@ -1258,6 +1492,9 @@ type ListListsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetListUsersParams defines parameters for GetListUsers. @@ -1267,6 +1504,15 @@ type GetListUsersParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + +// PreviewListUsersParams defines parameters for PreviewListUsers. +type PreviewListUsersParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` } // ImportListUsersMultipartBody defines parameters for ImportListUsers. @@ -1293,25 +1539,34 @@ type ListProvidersParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } -// ListSubscriptionsParams defines parameters for ListSubscriptions. -type ListSubscriptionsParams struct { +// ListOrganizationsParams defines parameters for ListOrganizations. +type ListOrganizationsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` } -// ListTagsParams defines parameters for ListTags. -type ListTagsParams struct { +// GetOrganizationEventsParams defines parameters for GetOrganizationEvents. +type GetOrganizationEventsParams struct { // Limit Maximum number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +} - // Search Search query string - Search *Search `form:"search,omitempty" json:"search,omitempty"` +// ListOrganizationMembersParams defines parameters for ListOrganizationMembers. +type ListOrganizationMembersParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } // ListUsersParams defines parameters for ListUsers. @@ -1339,6 +1594,9 @@ type GetUserEventsParams struct { // Offset Number of items to skip Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` } // GetUserJourneysParams defines parameters for GetUserJourneys. @@ -1350,6 +1608,18 @@ type GetUserJourneysParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } +// GetUserOrganizationsParams defines parameters for GetUserOrganizations. +type GetUserOrganizationsParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + // GetUserSubscriptionsParams defines parameters for GetUserSubscriptions. type GetUserSubscriptionsParams struct { // Limit Maximum number of items to return @@ -1359,29 +1629,65 @@ type GetUserSubscriptionsParams struct { Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` } +// ListSubscriptionsParams defines parameters for ListSubscriptions. +type ListSubscriptionsParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +} + +// ListTagsParams defines parameters for ListTags. +type ListTagsParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + +// ListAdminsParams defines parameters for ListAdmins. +type ListAdminsParams struct { + // Limit Maximum number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Offset Number of items to skip + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Search query string + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + // AuthCallbackParamsDriver defines parameters for AuthCallback. type AuthCallbackParamsDriver string // AuthWebhookParamsDriver defines parameters for AuthWebhook. type AuthWebhookParamsDriver string -// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. -type UpdateOrganizationJSONRequestBody = UpdateOrganization - -// CreateAdminJSONRequestBody defines body for CreateAdmin for application/json ContentType. -type CreateAdminJSONRequestBody = CreateAdmin - -// UpdateAdminJSONRequestBody defines body for UpdateAdmin for application/json ContentType. -type UpdateAdminJSONRequestBody = UpdateAdmin - // CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType. type CreateProjectJSONRequestBody = CreateProject // UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType. type UpdateProjectJSONRequestBody = UpdateProject -// UpdateProjectAdminJSONRequestBody defines body for UpdateProjectAdmin for application/json ContentType. -type UpdateProjectAdminJSONRequestBody = UpdateProjectAdmin +// CreateActionJSONRequestBody defines body for CreateAction for application/json ContentType. +type CreateActionJSONRequestBody = CreateAction + +// TestActionJSONRequestBody defines body for TestAction for application/json ContentType. +type TestActionJSONRequestBody = TestActionRequest + +// UpdateActionJSONRequestBody defines body for UpdateAction for application/json ContentType. +type UpdateActionJSONRequestBody = UpdateAction + +// TestActionFunctionJSONRequestBody defines body for TestActionFunction for application/json ContentType. +type TestActionFunctionJSONRequestBody = TestActionFunctionRequest + +// UpdateProjectAdminJSONRequestBody defines body for UpdateProjectAdmin for application/json ContentType. +type UpdateProjectAdminJSONRequestBody = UpdateProjectAdmin // CreateCampaignJSONRequestBody defines body for CreateCampaign for application/json ContentType. type CreateCampaignJSONRequestBody = CreateCampaign @@ -1407,6 +1713,12 @@ type UpdateJourneyJSONRequestBody = UpdateJourney // SetJourneyStepsJSONRequestBody defines body for SetJourneySteps for application/json ContentType. type SetJourneyStepsJSONRequestBody = JourneyStepMap +// TriggerUserJSONRequestBody defines body for TriggerUser for application/json ContentType. +type TriggerUserJSONRequestBody TriggerUserJSONBody + +// AdvanceUserStepJSONRequestBody defines body for AdvanceUserStep for application/json ContentType. +type AdvanceUserStepJSONRequestBody AdvanceUserStepJSONBody + // CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType. type CreateApiKeyJSONRequestBody = CreateApiKey @@ -1431,17 +1743,14 @@ type CreateProviderJSONRequestBody = CreateProvider // UpdateProviderJSONRequestBody defines body for UpdateProvider for application/json ContentType. type UpdateProviderJSONRequestBody = UpdateProvider -// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. -type CreateSubscriptionJSONRequestBody = CreateSubscription - -// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType. -type UpdateSubscriptionJSONRequestBody = UpdateSubscription +// UpsertOrganizationJSONRequestBody defines body for UpsertOrganization for application/json ContentType. +type UpsertOrganizationJSONRequestBody = UpsertOrganization -// CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType. -type CreateTagJSONRequestBody = CreateTag +// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. +type UpdateOrganizationJSONRequestBody = UpdateOrganization -// UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType. -type UpdateTagJSONRequestBody = UpdateTag +// AddOrganizationMemberJSONRequestBody defines body for AddOrganizationMember for application/json ContentType. +type AddOrganizationMemberJSONRequestBody = AddOrganizationMember // IdentifyUserJSONRequestBody defines body for IdentifyUser for application/json ContentType. type IdentifyUserJSONRequestBody = IdentifyUser @@ -1455,6 +1764,24 @@ type UpdateUserJSONRequestBody = UpdateUser // UpdateUserSubscriptionsJSONRequestBody defines body for UpdateUserSubscriptions for application/json ContentType. type UpdateUserSubscriptionsJSONRequestBody = UpdateUserSubscriptions +// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. +type CreateSubscriptionJSONRequestBody = CreateSubscription + +// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType. +type UpdateSubscriptionJSONRequestBody = UpdateSubscription + +// CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType. +type CreateTagJSONRequestBody = CreateTag + +// UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType. +type UpdateTagJSONRequestBody = UpdateTag + +// CreateAdminJSONRequestBody defines body for CreateAdmin for application/json ContentType. +type CreateAdminJSONRequestBody = CreateAdmin + +// UpdateAdminJSONRequestBody defines body for UpdateAdmin for application/json ContentType. +type UpdateAdminJSONRequestBody = UpdateAdmin + // AuthCallbackJSONRequestBody defines body for AuthCallback for application/json ContentType. type AuthCallbackJSONRequestBody = AuthCallbackRequest @@ -1711,60 +2038,65 @@ func WithRequestEditorFn(fn RequestEditorFn) ClientOption { // The interface specification for the client above. type ClientInterface interface { - // DeleteOrganization request - DeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetProfile request + GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetOrganization request - GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListProjects request + ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateOrganizationWithBody request with any body - UpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateProjectWithBody request with any body + CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateOrganization(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListAdmins request - ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteProject request + DeleteProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateAdminWithBody request with any body - CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetProject request + GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateProjectWithBody request with any body + UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteAdmin request - DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetAdmin request - GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListActions request + ListActions(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateAdminWithBody request with any body - UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateActionWithBody request with any body + CreateActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateAction(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetOrganizationIntegrations request - GetOrganizationIntegrations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListActionMeta request + ListActionMeta(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // Whoami request - Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetActionPreview request + GetActionPreview(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetProfile request - GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // TestActionWithBody request with any body + TestActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListProjects request - ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + TestAction(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateProjectWithBody request with any body - CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteAction request + DeleteAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAction request + GetAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetProject request - GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateActionWithBody request with any body + UpdateActionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateProjectWithBody request with any body - UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListActionSchemas request + ListActionSchemas(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TestActionFunctionWithBody request with any body + TestActionFunctionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TestActionFunction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListProjectAdmins request ListProjectAdmins(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1836,16 +2168,13 @@ type ClientInterface interface { // GetDocumentMetadata request GetDocumentMetadata(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListEvents request - ListEvents(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListJourneys request ListJourneys(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateJourneyWithBody request with any body - CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateJourney(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateJourney(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteJourney request DeleteJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1890,6 +2219,22 @@ type ClientInterface interface { // RemoveUserFromJourney request RemoveUserFromJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // StreamUserJourneySteps request + StreamUserJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TriggerUserWithBody request with any body + TriggerUserWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TriggerUser(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AdvanceUserStepWithBody request with any body + AdvanceUserStepWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AdvanceUserStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserJourneyState request + GetUserJourneyState(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // VersionJourney request VersionJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1940,6 +2285,9 @@ type ClientInterface interface { // GetListUsers request GetListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PreviewListUsers request + PreviewListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ImportListUsersWithBody request with any body ImportListUsersWithBody(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1982,40 +2330,50 @@ type ClientInterface interface { // DeleteProvider request DeleteProvider(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListSubscriptions request - ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizationEventSchemas request + ListOrganizationEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateSubscriptionWithBody request with any body - CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizations request + ListOrganizations(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpsertOrganizationWithBody request with any body + UpsertOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetSubscription request - GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpsertOrganization(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateSubscriptionWithBody request with any body - UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizationSchemas request + ListOrganizationSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizationMemberSchemas request + ListOrganizationMemberSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListTags request - ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteOrganization request + DeleteOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateTagWithBody request with any body - CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganization request + GetOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateOrganizationWithBody request with any body + UpdateOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteTag request - DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetTag request - GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganizationEvents request + GetOrganizationEvents(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateTagWithBody request with any body - UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizationMembers request + ListOrganizationMembers(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // AddOrganizationMemberWithBody request with any body + AddOrganizationMemberWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveOrganizationMember request + RemoveOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListUserEventSchemas request + ListUserEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // ListUsers request ListUsers(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2042,12 +2400,21 @@ type ClientInterface interface { UpdateUser(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetUserDevices request + GetUserDevices(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUserDevice request + DeleteUserDevice(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetUserEvents request GetUserEvents(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserJourneys request GetUserJourneys(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetUserOrganizations request + GetUserOrganizations(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetUserSubscriptions request GetUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2056,6 +2423,63 @@ type ClientInterface interface { UpdateUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListSubscriptions request + ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSubscriptionWithBody request with any body + CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSubscription request + GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSubscriptionWithBody request with any body + UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListTags request + ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateTagWithBody request with any body + CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteTag request + DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTag request + GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTagWithBody request with any body + UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListAdmins request + ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAdminWithBody request with any body + CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAdmin request + DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAdmin request + GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAdminWithBody request with any body + UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Whoami request + Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // AuthCallbackWithBody request with any body AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2068,8 +2492,8 @@ type ClientInterface interface { AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) } -func (c *Client) DeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrganizationRequest(c.Server) +func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProfileRequest(c.Server) if err != nil { return nil, err } @@ -2080,8 +2504,8 @@ func (c *Client) DeleteOrganization(ctx context.Context, reqEditors ...RequestEd return c.Client.Do(req) } -func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationRequest(c.Server) +func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListProjectsRequest(c.Server, params) if err != nil { return nil, err } @@ -2092,8 +2516,8 @@ func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEdito return c.Client.Do(req) } -func (c *Client) UpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequestWithBody(c.Server, contentType, body) +func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2104,8 +2528,8 @@ func (c *Client) UpdateOrganizationWithBody(ctx context.Context, contentType str return c.Client.Do(req) } -func (c *Client) UpdateOrganization(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequest(c.Server, body) +func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateProjectRequest(c.Server, body) if err != nil { return nil, err } @@ -2116,8 +2540,8 @@ func (c *Client) UpdateOrganization(ctx context.Context, body UpdateOrganization return c.Client.Do(req) } -func (c *Client) ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAdminsRequest(c.Server, params) +func (c *Client) DeleteProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteProjectRequest(c.Server, projectID) if err != nil { return nil, err } @@ -2128,8 +2552,8 @@ func (c *Client) ListAdmins(ctx context.Context, params *ListAdminsParams, reqEd return c.Client.Do(req) } -func (c *Client) CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAdminRequestWithBody(c.Server, contentType, body) +func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectRequest(c.Server, projectID) if err != nil { return nil, err } @@ -2140,8 +2564,8 @@ func (c *Client) CreateAdminWithBody(ctx context.Context, contentType string, bo return c.Client.Do(req) } -func (c *Client) CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAdminRequest(c.Server, body) +func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -2152,8 +2576,8 @@ func (c *Client) CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBod return c.Client.Do(req) } -func (c *Client) DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAdminRequest(c.Server, adminID) +func (c *Client) UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -2164,8 +2588,8 @@ func (c *Client) DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, re return c.Client.Do(req) } -func (c *Client) GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAdminRequest(c.Server, adminID) +func (c *Client) ListActions(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListActionsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -2176,8 +2600,8 @@ func (c *Client) GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEd return c.Client.Do(req) } -func (c *Client) UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAdminRequestWithBody(c.Server, adminID, contentType, body) +func (c *Client) CreateActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateActionRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -2188,8 +2612,8 @@ func (c *Client) UpdateAdminWithBody(ctx context.Context, adminID openapi_types. return c.Client.Do(req) } -func (c *Client) UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAdminRequest(c.Server, adminID, body) +func (c *Client) CreateAction(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateActionRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -2200,8 +2624,8 @@ func (c *Client) UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, bo return c.Client.Do(req) } -func (c *Client) GetOrganizationIntegrations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationIntegrationsRequest(c.Server) +func (c *Client) ListActionMeta(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListActionMetaRequest(c.Server, projectID) if err != nil { return nil, err } @@ -2212,8 +2636,8 @@ func (c *Client) GetOrganizationIntegrations(ctx context.Context, reqEditors ... return c.Client.Do(req) } -func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewWhoamiRequest(c.Server) +func (c *Client) GetActionPreview(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetActionPreviewRequest(c.Server, projectID, actionType) if err != nil { return nil, err } @@ -2224,8 +2648,8 @@ func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*ht return c.Client.Do(req) } -func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetProfileRequest(c.Server) +func (c *Client) TestActionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestActionRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -2236,8 +2660,8 @@ func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListProjectsRequest(c.Server, params) +func (c *Client) TestAction(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestActionRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -2248,8 +2672,8 @@ func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, r return c.Client.Do(req) } -func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body) +func (c *Client) DeleteAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteActionRequest(c.Server, projectID, actionID) if err != nil { return nil, err } @@ -2260,8 +2684,8 @@ func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, return c.Client.Do(req) } -func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectRequest(c.Server, body) +func (c *Client) GetAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetActionRequest(c.Server, projectID, actionID) if err != nil { return nil, err } @@ -2272,8 +2696,8 @@ func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONReques return c.Client.Do(req) } -func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetProjectRequest(c.Server, projectID) +func (c *Client) UpdateActionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateActionRequestWithBody(c.Server, projectID, actionID, contentType, body) if err != nil { return nil, err } @@ -2284,8 +2708,8 @@ func (c *Client) GetProject(ctx context.Context, projectID openapi_types.UUID, r return c.Client.Do(req) } -func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateProjectRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) UpdateAction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateActionRequest(c.Server, projectID, actionID, body) if err != nil { return nil, err } @@ -2296,8 +2720,32 @@ func (c *Client) UpdateProjectWithBody(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) UpdateProject(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateProjectRequest(c.Server, projectID, body) +func (c *Client) ListActionSchemas(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListActionSchemasRequest(c.Server, projectID, actionID, functionID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestActionFunctionWithBody(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestActionFunctionRequestWithBody(c.Server, projectID, actionID, functionID, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestActionFunction(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestActionFunctionRequest(c.Server, projectID, actionID, functionID, body) if err != nil { return nil, err } @@ -2608,18 +3056,6 @@ func (c *Client) GetDocumentMetadata(ctx context.Context, projectID openapi_type return c.Client.Do(req) } -func (c *Client) ListEvents(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListEventsRequest(c.Server, projectID) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - func (c *Client) ListJourneys(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListJourneysRequest(c.Server, projectID, params) if err != nil { @@ -2632,8 +3068,8 @@ func (c *Client) ListJourneys(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateJourneyRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateJourneyRequestWithBody(c.Server, projectID, params, contentType, body) if err != nil { return nil, err } @@ -2644,8 +3080,8 @@ func (c *Client) CreateJourneyWithBody(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) CreateJourney(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateJourneyRequest(c.Server, projectID, body) +func (c *Client) CreateJourney(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateJourneyRequest(c.Server, projectID, params, body) if err != nil { return nil, err } @@ -2836,8 +3272,8 @@ func (c *Client) RemoveUserFromJourney(ctx context.Context, projectID openapi_ty return c.Client.Do(req) } -func (c *Client) VersionJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVersionJourneyRequest(c.Server, projectID, journeyID) +func (c *Client) StreamUserJourneySteps(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStreamUserJourneyStepsRequest(c.Server, projectID, journeyID, userID) if err != nil { return nil, err } @@ -2848,8 +3284,8 @@ func (c *Client) VersionJourney(ctx context.Context, projectID openapi_types.UUI return c.Client.Do(req) } -func (c *Client) ListApiKeys(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListApiKeysRequest(c.Server, projectID, params) +func (c *Client) TriggerUserWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTriggerUserRequestWithBody(c.Server, projectID, journeyID, userID, contentType, body) if err != nil { return nil, err } @@ -2860,8 +3296,80 @@ func (c *Client) ListApiKeys(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } -func (c *Client) CreateApiKeyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateApiKeyRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) TriggerUser(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTriggerUserRequest(c.Server, projectID, journeyID, userID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AdvanceUserStepWithBody(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAdvanceUserStepRequestWithBody(c.Server, projectID, journeyID, userID, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AdvanceUserStep(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAdvanceUserStepRequest(c.Server, projectID, journeyID, userID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserJourneyState(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserJourneyStateRequest(c.Server, projectID, journeyID, userID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) VersionJourney(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewVersionJourneyRequest(c.Server, projectID, journeyID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListApiKeys(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListApiKeysRequest(c.Server, projectID, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateApiKeyWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateApiKeyRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -3052,6 +3560,18 @@ func (c *Client) GetListUsers(ctx context.Context, projectID openapi_types.UUID, return c.Client.Do(req) } +func (c *Client) PreviewListUsers(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPreviewListUsersRequest(c.Server, projectID, listID, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ImportListUsersWithBody(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewImportListUsersRequestWithBody(c.Server, projectID, listID, contentType, body) if err != nil { @@ -3232,8 +3752,8 @@ func (c *Client) DeleteProvider(ctx context.Context, projectID openapi_types.UUI return c.Client.Do(req) } -func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSubscriptionsRequest(c.Server, projectID, params) +func (c *Client) ListOrganizationEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationEventSchemasRequest(c.Server, projectID) if err != nil { return nil, err } @@ -3244,8 +3764,8 @@ func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types. return c.Client.Do(req) } -func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) ListOrganizations(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -3256,8 +3776,8 @@ func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID opena return c.Client.Do(req) } -func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionRequest(c.Server, projectID, body) +func (c *Client) UpsertOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertOrganizationRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -3268,8 +3788,8 @@ func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSubscriptionRequest(c.Server, projectID, subscriptionID) +func (c *Client) UpsertOrganization(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertOrganizationRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -3280,8 +3800,8 @@ func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } -func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSubscriptionRequestWithBody(c.Server, projectID, subscriptionID, contentType, body) +func (c *Client) ListOrganizationSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationSchemasRequest(c.Server, projectID) if err != nil { return nil, err } @@ -3292,8 +3812,8 @@ func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, projectID opena return c.Client.Do(req) } -func (c *Client) UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSubscriptionRequest(c.Server, projectID, subscriptionID, body) +func (c *Client) ListOrganizationMemberSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationMemberSchemasRequest(c.Server, projectID) if err != nil { return nil, err } @@ -3304,8 +3824,8 @@ func (c *Client) UpdateSubscription(ctx context.Context, projectID openapi_types return c.Client.Do(req) } -func (c *Client) ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTagsRequest(c.Server, projectID, params) +func (c *Client) DeleteOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrganizationRequest(c.Server, projectID, organizationID) if err != nil { return nil, err } @@ -3316,8 +3836,8 @@ func (c *Client) ListTags(ctx context.Context, projectID openapi_types.UUID, par return c.Client.Do(req) } -func (c *Client) CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTagRequestWithBody(c.Server, projectID, contentType, body) +func (c *Client) GetOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationRequest(c.Server, projectID, organizationID) if err != nil { return nil, err } @@ -3328,8 +3848,8 @@ func (c *Client) CreateTagWithBody(ctx context.Context, projectID openapi_types. return c.Client.Do(req) } -func (c *Client) CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTagRequest(c.Server, projectID, body) +func (c *Client) UpdateOrganizationWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequestWithBody(c.Server, projectID, organizationID, contentType, body) if err != nil { return nil, err } @@ -3340,8 +3860,8 @@ func (c *Client) CreateTag(ctx context.Context, projectID openapi_types.UUID, bo return c.Client.Do(req) } -func (c *Client) DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTagRequest(c.Server, projectID, tagID) +func (c *Client) UpdateOrganization(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequest(c.Server, projectID, organizationID, body) if err != nil { return nil, err } @@ -3352,8 +3872,8 @@ func (c *Client) DeleteTag(ctx context.Context, projectID openapi_types.UUID, ta return c.Client.Do(req) } -func (c *Client) GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTagRequest(c.Server, projectID, tagID) +func (c *Client) GetOrganizationEvents(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationEventsRequest(c.Server, projectID, organizationID, params) if err != nil { return nil, err } @@ -3364,8 +3884,8 @@ func (c *Client) GetTag(ctx context.Context, projectID openapi_types.UUID, tagID return c.Client.Do(req) } -func (c *Client) UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTagRequestWithBody(c.Server, projectID, tagID, contentType, body) +func (c *Client) ListOrganizationMembers(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationMembersRequest(c.Server, projectID, organizationID, params) if err != nil { return nil, err } @@ -3376,8 +3896,44 @@ func (c *Client) UpdateTagWithBody(ctx context.Context, projectID openapi_types. return c.Client.Do(req) } -func (c *Client) UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTagRequest(c.Server, projectID, tagID, body) +func (c *Client) AddOrganizationMemberWithBody(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddOrganizationMemberRequestWithBody(c.Server, projectID, organizationID, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddOrganizationMemberRequest(c.Server, projectID, organizationID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveOrganizationMember(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveOrganizationMemberRequest(c.Server, projectID, organizationID, userID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListUserEventSchemas(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListUserEventSchemasRequest(c.Server, projectID) if err != nil { return nil, err } @@ -3496,6 +4052,30 @@ func (c *Client) UpdateUser(ctx context.Context, projectID openapi_types.UUID, u return c.Client.Do(req) } +func (c *Client) GetUserDevices(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserDevicesRequest(c.Server, projectID, userID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteUserDevice(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserDeviceRequest(c.Server, projectID, userID, deviceID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetUserEvents(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetUserEventsRequest(c.Server, projectID, userID, params) if err != nil { @@ -3520,6 +4100,18 @@ func (c *Client) GetUserJourneys(ctx context.Context, projectID openapi_types.UU return c.Client.Do(req) } +func (c *Client) GetUserOrganizations(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserOrganizationsRequest(c.Server, projectID, userID, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetUserSubscriptions(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetUserSubscriptionsRequest(c.Server, projectID, userID, params) if err != nil { @@ -3556,8 +4148,8 @@ func (c *Client) UpdateUserSubscriptions(ctx context.Context, projectID openapi_ return c.Client.Do(req) } -func (c *Client) AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthCallbackRequestWithBody(c.Server, driver, contentType, body) +func (c *Client) ListSubscriptions(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSubscriptionsRequest(c.Server, projectID, params) if err != nil { return nil, err } @@ -3568,8 +4160,8 @@ func (c *Client) AuthCallbackWithBody(ctx context.Context, driver AuthCallbackPa return c.Client.Do(req) } -func (c *Client) AuthCallback(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthCallbackRequest(c.Server, driver, body) +func (c *Client) CreateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } @@ -3580,8 +4172,8 @@ func (c *Client) AuthCallback(ctx context.Context, driver AuthCallbackParamsDriv return c.Client.Do(req) } -func (c *Client) GetAuthMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAuthMethodsRequest(c.Server) +func (c *Client) CreateSubscription(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequest(c.Server, projectID, body) if err != nil { return nil, err } @@ -3592,8 +4184,8 @@ func (c *Client) GetAuthMethods(ctx context.Context, reqEditors ...RequestEditor return c.Client.Do(req) } -func (c *Client) AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthWebhookRequest(c.Server, driver) +func (c *Client) GetSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSubscriptionRequest(c.Server, projectID, subscriptionID) if err != nil { return nil, err } @@ -3604,102 +4196,287 @@ func (c *Client) AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver return c.Client.Do(req) } -// NewDeleteOrganizationRequest generates requests for DeleteOrganization -func NewDeleteOrganizationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequestWithBody(c.Server, projectID, subscriptionID, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/admin/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) UpdateSubscription(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequest(c.Server, projectID, subscriptionID, body) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewGetOrganizationRequest generates requests for GetOrganization -func NewGetOrganizationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) ListTags(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTagsRequest(c.Server, projectID, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/admin/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) CreateTagWithBody(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTagRequestWithBody(c.Server, projectID, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body -func NewUpdateOrganizationRequest(server string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) CreateTag(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTagRequest(c.Server, projectID, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateOrganizationRequestWithBody(server, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body -func NewUpdateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) DeleteTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTagRequest(c.Server, projectID, tagID) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/admin/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) GetTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagRequest(c.Server, projectID, tagID) if err != nil { return nil, err } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) +func (c *Client) UpdateTagWithBody(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagRequestWithBody(c.Server, projectID, tagID, contentType, body) if err != nil { return nil, err } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - req.Header.Add("Content-Type", contentType) +func (c *Client) UpdateTag(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagRequest(c.Server, projectID, tagID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListAdmins(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAdminsRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAdminRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateAdmin(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAdminRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAdminRequest(c.Server, adminID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAdmin(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAdminRequest(c.Server, adminID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAdminWithBody(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAdminRequestWithBody(c.Server, adminID, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAdmin(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAdminRequest(c.Server, adminID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWhoamiRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AuthCallbackWithBody(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthCallbackRequestWithBody(c.Server, driver, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AuthCallback(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthCallbackRequest(c.Server, driver, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAuthMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAuthMethodsRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AuthWebhook(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthWebhookRequest(c.Server, driver) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// NewGetProfileRequest generates requests for GetProfile +func NewGetProfileRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/profile") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } return req, nil } -// NewListAdminsRequest generates requests for ListAdmins -func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Request, error) { +// NewListProjectsRequest generates requests for ListProjects +func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3707,7 +4484,7 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/admins") + operationPath := fmt.Sprintf("/api/admin/projects") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3779,19 +4556,19 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques return req, nil } -// NewCreateAdminRequest calls the generic CreateAdmin builder with application/json body -func NewCreateAdminRequest(server string, body CreateAdminJSONRequestBody) (*http.Request, error) { +// NewCreateProjectRequest calls the generic CreateProject builder with application/json body +func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAdminRequestWithBody(server, "application/json", bodyReader) + return NewCreateProjectRequestWithBody(server, "application/json", bodyReader) } -// NewCreateAdminRequestWithBody generates requests for CreateAdmin with any type of body -func NewCreateAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body +func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3799,7 +4576,7 @@ func NewCreateAdminRequestWithBody(server string, contentType string, body io.Re return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/admins") + operationPath := fmt.Sprintf("/api/admin/projects") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3819,13 +4596,13 @@ func NewCreateAdminRequestWithBody(server string, contentType string, body io.Re return req, nil } -// NewDeleteAdminRequest generates requests for DeleteAdmin -func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { +// NewDeleteProjectRequest generates requests for DeleteProject +func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -3835,7 +4612,7 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3853,13 +4630,13 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req return req, nil } -// NewGetAdminRequest generates requests for GetAdmin -func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { +// NewGetProjectRequest generates requests for GetProject +func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -3869,7 +4646,7 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3887,24 +4664,24 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques return req, nil } -// NewUpdateAdminRequest calls the generic UpdateAdmin builder with application/json body -func NewUpdateAdminRequest(server string, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody) (*http.Request, error) { +// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body +func NewUpdateProjectRequest(server string, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateAdminRequestWithBody(server, adminID, "application/json", bodyReader) + return NewUpdateProjectRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewUpdateAdminRequestWithBody generates requests for UpdateAdmin with any type of body -func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body +func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -3914,7 +4691,7 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/admins/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3934,16 +4711,23 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co return req, nil } -// NewGetOrganizationIntegrationsRequest generates requests for GetOrganizationIntegrations -func NewGetOrganizationIntegrationsRequest(server string) (*http.Request, error) { +// NewListActionsRequest generates requests for ListActions +func NewListActionsRequest(server string, projectID openapi_types.UUID, params *ListActionsParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/organizations/integrations") + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3953,91 +4737,10 @@ func NewGetOrganizationIntegrationsRequest(server string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} + if params != nil { + queryValues := queryURL.Query() -// NewWhoamiRequest generates requests for Whoami -func NewWhoamiRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/organizations/whoami") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetProfileRequest generates requests for GetProfile -func NewGetProfileRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/profile") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListProjectsRequest generates requests for ListProjects -func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { + if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { return nil, err @@ -4096,27 +4799,34 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re return req, nil } -// NewCreateProjectRequest calls the generic CreateProject builder with application/json body -func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) { +// NewCreateActionRequest calls the generic CreateAction builder with application/json body +func NewCreateActionRequest(server string, projectID openapi_types.UUID, body CreateActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateProjectRequestWithBody(server, "application/json", bodyReader) + return NewCreateActionRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body -func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateActionRequestWithBody generates requests for CreateAction with any type of body +func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects") + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4136,8 +4846,8 @@ func NewCreateProjectRequestWithBody(server string, contentType string, body io. return req, nil } -// NewGetProjectRequest generates requests for GetProject -func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewListActionMetaRequest generates requests for ListActionMeta +func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4152,7 +4862,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/meta", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4170,19 +4880,8 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return req, nil } -// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body -func NewUpdateProjectRequest(server string, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateProjectRequestWithBody(server, projectID, "application/json", bodyReader) -} - -// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body -func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetActionPreviewRequest generates requests for GetActionPreview +func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, actionType string) (*http.Request, error) { var err error var pathParam0 string @@ -4192,12 +4891,19 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionType", runtime.ParamLocationPath, actionType) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/meta/%s/preview", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4207,18 +4913,27 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListProjectAdminsRequest generates requests for ListProjectAdmins -func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, params *ListProjectAdminsParams) (*http.Request, error) { +// NewTestActionRequest calls the generic TestAction builder with application/json body +func NewTestActionRequest(server string, projectID openapi_types.UUID, body TestActionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTestActionRequestWithBody(server, projectID, "application/json", bodyReader) +} + +// NewTestActionRequestWithBody generates requests for TestAction with any type of body +func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4233,7 +4948,7 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/test", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4243,70 +4958,18 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewDeleteProjectAdminRequest generates requests for DeleteProjectAdmin -func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { +// NewDeleteActionRequest generates requests for DeleteAction +func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4318,7 +4981,7 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -4328,7 +4991,7 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4346,8 +5009,8 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a return req, nil } -// NewGetProjectAdminRequest generates requests for GetProjectAdmin -func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { +// NewGetActionRequest generates requests for GetAction +func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4359,7 +5022,7 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -4369,7 +5032,7 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4387,19 +5050,19 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi return req, nil } -// NewUpdateProjectAdminRequest calls the generic UpdateProjectAdmin builder with application/json body -func NewUpdateProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody) (*http.Request, error) { +// NewUpdateActionRequest calls the generic UpdateAction builder with application/json body +func NewUpdateActionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateProjectAdminRequestWithBody(server, projectID, adminID, "application/json", bodyReader) + return NewUpdateActionRequestWithBody(server, projectID, actionID, "application/json", bodyReader) } -// NewUpdateProjectAdminRequestWithBody generates requests for UpdateProjectAdmin with any type of body -func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateActionRequestWithBody generates requests for UpdateAction with any type of body +func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4411,7 +5074,7 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -4421,7 +5084,7 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4441,8 +5104,8 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types return req, nil } -// NewListCampaignsRequest generates requests for ListCampaigns -func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params *ListCampaignsParams) (*http.Request, error) { +// NewListActionSchemasRequest generates requests for ListActionSchemas +func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) (*http.Request, error) { var err error var pathParam0 string @@ -4452,12 +5115,26 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s/functions/%s/schema", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4467,44 +5144,6 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -4513,19 +5152,19 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params return req, nil } -// NewCreateCampaignRequest calls the generic CreateCampaign builder with application/json body -func NewCreateCampaignRequest(server string, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody) (*http.Request, error) { +// NewTestActionFunctionRequest calls the generic TestActionFunction builder with application/json body +func NewTestActionFunctionRequest(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateCampaignRequestWithBody(server, projectID, "application/json", bodyReader) + return NewTestActionFunctionRequestWithBody(server, projectID, actionID, functionID, "application/json", bodyReader) } -// NewCreateCampaignRequestWithBody generates requests for CreateCampaign with any type of body -func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewTestActionFunctionRequestWithBody generates requests for TestActionFunction with any type of body +func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4535,12 +5174,26 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - serverURL, err := url.Parse(server) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/actions/%s/functions/%s/test", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4560,8 +5213,96 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI return req, nil } -// NewDeleteCampaignRequest generates requests for DeleteCampaign -func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { +// NewListProjectAdminsRequest generates requests for ListProjectAdmins +func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, params *ListProjectAdminsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteProjectAdminRequest generates requests for DeleteProjectAdmin +func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4573,7 +5314,7 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4583,7 +5324,7 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4601,8 +5342,8 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa return req, nil } -// NewGetCampaignRequest generates requests for GetCampaign -func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { +// NewGetProjectAdminRequest generates requests for GetProjectAdmin +func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4614,7 +5355,7 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4624,7 +5365,7 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4642,19 +5383,19 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign return req, nil } -// NewUpdateCampaignRequest calls the generic UpdateCampaign builder with application/json body -func NewUpdateCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody) (*http.Request, error) { +// NewUpdateProjectAdminRequest calls the generic UpdateProjectAdmin builder with application/json body +func NewUpdateProjectAdminRequest(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateCampaignRequestWithBody(server, projectID, campaignID, "application/json", bodyReader) + return NewUpdateProjectAdminRequestWithBody(server, projectID, adminID, "application/json", bodyReader) } -// NewUpdateCampaignRequestWithBody generates requests for UpdateCampaign with any type of body -func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProjectAdminRequestWithBody generates requests for UpdateProjectAdmin with any type of body +func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4666,7 +5407,7 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -4676,7 +5417,7 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/admins/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4696,8 +5437,8 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI return req, nil } -// NewDuplicateCampaignRequest generates requests for DuplicateCampaign -func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { +// NewListCampaignsRequest generates requests for ListCampaigns +func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params *ListCampaignsParams) (*http.Request, error) { var err error var pathParam0 string @@ -4707,19 +5448,12 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/duplicate", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4729,7 +5463,61 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4737,19 +5525,19 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca return req, nil } -// NewCreateTemplateRequest calls the generic CreateTemplate builder with application/json body -func NewCreateTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody) (*http.Request, error) { +// NewCreateCampaignRequest calls the generic CreateCampaign builder with application/json body +func NewCreateCampaignRequest(server string, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTemplateRequestWithBody(server, projectID, campaignID, "application/json", bodyReader) + return NewCreateCampaignRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewCreateTemplateRequestWithBody generates requests for CreateTemplate with any type of body -func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateCampaignRequestWithBody generates requests for CreateCampaign with any type of body +func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4759,19 +5547,12 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4791,8 +5572,8 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI return req, nil } -// NewDeleteTemplateRequest generates requests for DeleteTemplate -func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) (*http.Request, error) { +// NewDeleteCampaignRequest generates requests for DeleteCampaign +func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4809,19 +5590,12 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4839,8 +5613,8 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa return req, nil } -// NewGetTemplateRequest generates requests for GetTemplate -func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) (*http.Request, error) { +// NewGetCampaignRequest generates requests for GetCampaign +func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -4857,19 +5631,12 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4887,19 +5654,264 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign return req, nil } -// NewUpdateTemplateRequest calls the generic UpdateTemplate builder with application/json body -func NewUpdateTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody) (*http.Request, error) { +// NewUpdateCampaignRequest calls the generic UpdateCampaign builder with application/json body +func NewUpdateCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateTemplateRequestWithBody(server, projectID, campaignID, templateID, "application/json", bodyReader) + return NewUpdateCampaignRequestWithBody(server, projectID, campaignID, "application/json", bodyReader) } -// NewUpdateTemplateRequestWithBody generates requests for UpdateTemplate with any type of body -func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateCampaignRequestWithBody generates requests for UpdateCampaign with any type of body +func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDuplicateCampaignRequest generates requests for DuplicateCampaign +func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/duplicate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateTemplateRequest calls the generic CreateTemplate builder with application/json body +func NewCreateTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateTemplateRequestWithBody(server, projectID, campaignID, "application/json", bodyReader) +} + +// NewCreateTemplateRequestWithBody generates requests for CreateTemplate with any type of body +func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteTemplateRequest generates requests for DeleteTemplate +func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTemplateRequest generates requests for GetTemplate +func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/campaigns/%s/templates/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateTemplateRequest calls the generic UpdateTemplate builder with application/json body +func NewUpdateTemplateRequest(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTemplateRequestWithBody(server, projectID, campaignID, templateID, "application/json", bodyReader) +} + +// NewUpdateTemplateRequestWithBody generates requests for UpdateTemplate with any type of body +func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -5258,8 +6270,8 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, return req, nil } -// NewListEventsRequest generates requests for ListEvents -func NewListEventsRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewListJourneysRequest generates requests for ListJourneys +func NewListJourneysRequest(server string, projectID openapi_types.UUID, params *ListJourneysParams) (*http.Request, error) { var err error var pathParam0 string @@ -5274,7 +6286,7 @@ func NewListEventsRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/events/schema", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5284,42 +6296,8 @@ func NewListEventsRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListJourneysRequest generates requests for ListJourneys -func NewListJourneysRequest(server string, projectID openapi_types.UUID, params *ListJourneysParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() + if params != nil { + queryValues := queryURL.Query() if params.Limit != nil { @@ -5353,6 +6331,22 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -5365,18 +6359,18 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } // NewCreateJourneyRequest calls the generic CreateJourney builder with application/json body -func NewCreateJourneyRequest(server string, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody) (*http.Request, error) { +func NewCreateJourneyRequest(server string, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateJourneyRequestWithBody(server, projectID, "application/json", bodyReader) + return NewCreateJourneyRequestWithBody(server, projectID, params, "application/json", bodyReader) } // NewCreateJourneyRequestWithBody generates requests for CreateJourney with any type of body -func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -5401,6 +6395,28 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Publish != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "publish", runtime.ParamLocationQuery, *params.Publish); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -6118,8 +7134,8 @@ func NewRemoveUserFromJourneyRequest(server string, projectID openapi_types.UUID return req, nil } -// NewVersionJourneyRequest generates requests for VersionJourney -func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID) (*http.Request, error) { +// NewStreamUserJourneyStepsRequest generates requests for StreamUserJourneySteps +func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6136,36 +7152,9 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/version", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListApiKeysRequest generates requests for ListApiKeys -func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params *ListApiKeysParams) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam2 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6175,7 +7164,7 @@ func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params * return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/keys", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6185,44 +7174,6 @@ func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params * return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -6231,19 +7182,19 @@ func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params * return req, nil } -// NewCreateApiKeyRequest calls the generic CreateApiKey builder with application/json body -func NewCreateApiKeyRequest(server string, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody) (*http.Request, error) { +// NewTriggerUserRequest calls the generic TriggerUser builder with application/json body +func NewTriggerUserRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateApiKeyRequestWithBody(server, projectID, "application/json", bodyReader) + return NewTriggerUserRequestWithBody(server, projectID, journeyID, userID, "application/json", bodyReader) } -// NewCreateApiKeyRequestWithBody generates requests for CreateApiKey with any type of body -func NewCreateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewTriggerUserRequestWithBody generates requests for TriggerUser with any type of body +func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6253,12 +7204,26 @@ func NewCreateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/keys", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6278,8 +7243,19 @@ func NewCreateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, return req, nil } -// NewDeleteApiKeyRequest generates requests for DeleteApiKey -func NewDeleteApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID) (*http.Request, error) { +// NewAdvanceUserStepRequest calls the generic AdvanceUserStep builder with application/json body +func NewAdvanceUserStepRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAdvanceUserStepRequestWithBody(server, projectID, journeyID, userID, "application/json", bodyReader) +} + +// NewAdvanceUserStepRequestWithBody generates requests for AdvanceUserStep with any type of body +func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6291,7 +7267,14 @@ func NewDeleteApiKeyRequest(server string, projectID openapi_types.UUID, keyID o var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6301,7 +7284,7 @@ func NewDeleteApiKeyRequest(server string, projectID openapi_types.UUID, keyID o return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6311,16 +7294,18 @@ func NewDeleteApiKeyRequest(server string, projectID openapi_types.UUID, keyID o return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetApiKeyRequest generates requests for GetApiKey -func NewGetApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID) (*http.Request, error) { +// NewGetUserJourneyStateRequest generates requests for GetUserJourneyState +func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6332,7 +7317,14 @@ func NewGetApiKeyRequest(server string, projectID openapi_types.UUID, keyID open var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -6342,7 +7334,7 @@ func NewGetApiKeyRequest(server string, projectID openapi_types.UUID, keyID open return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/users/%s/state", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6360,19 +7352,8 @@ func NewGetApiKeyRequest(server string, projectID openapi_types.UUID, keyID open return req, nil } -// NewUpdateApiKeyRequest calls the generic UpdateApiKey builder with application/json body -func NewUpdateApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateApiKeyRequestWithBody(server, projectID, keyID, "application/json", bodyReader) -} - -// NewUpdateApiKeyRequestWithBody generates requests for UpdateApiKey with any type of body -func NewUpdateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewVersionJourneyRequest generates requests for VersionJourney +func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journeyID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6384,7 +7365,7 @@ func NewUpdateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -6394,7 +7375,7 @@ func NewUpdateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/journeys/%s/version", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6404,18 +7385,16 @@ func NewUpdateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListListsRequest generates requests for ListLists -func NewListListsRequest(server string, projectID openapi_types.UUID, params *ListListsParams) (*http.Request, error) { +// NewListApiKeysRequest generates requests for ListApiKeys +func NewListApiKeysRequest(server string, projectID openapi_types.UUID, params *ListApiKeysParams) (*http.Request, error) { var err error var pathParam0 string @@ -6430,7 +7409,7 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/keys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6486,19 +7465,19 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li return req, nil } -// NewCreateListRequest calls the generic CreateList builder with application/json body -func NewCreateListRequest(server string, projectID openapi_types.UUID, body CreateListJSONRequestBody) (*http.Request, error) { +// NewCreateApiKeyRequest calls the generic CreateApiKey builder with application/json body +func NewCreateApiKeyRequest(server string, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateListRequestWithBody(server, projectID, "application/json", bodyReader) + return NewCreateApiKeyRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewCreateListRequestWithBody generates requests for CreateList with any type of body -func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateApiKeyRequestWithBody generates requests for CreateApiKey with any type of body +func NewCreateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6513,7 +7492,7 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/keys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6533,8 +7512,8 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c return req, nil } -// NewDeleteListRequest generates requests for DeleteList -func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { +// NewDeleteApiKeyRequest generates requests for DeleteApiKey +func NewDeleteApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6546,7 +7525,7 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) if err != nil { return nil, err } @@ -6556,7 +7535,7 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6574,8 +7553,8 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op return req, nil } -// NewGetListRequest generates requests for GetList -func NewGetListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { +// NewGetApiKeyRequest generates requests for GetApiKey +func NewGetApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6587,7 +7566,7 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) if err != nil { return nil, err } @@ -6597,7 +7576,7 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6615,19 +7594,19 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena return req, nil } -// NewUpdateListRequest calls the generic UpdateList builder with application/json body -func NewUpdateListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody) (*http.Request, error) { +// NewUpdateApiKeyRequest calls the generic UpdateApiKey builder with application/json body +func NewUpdateApiKeyRequest(server string, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateListRequestWithBody(server, projectID, listID, "application/json", bodyReader) + return NewUpdateApiKeyRequestWithBody(server, projectID, keyID, "application/json", bodyReader) } -// NewUpdateListRequestWithBody generates requests for UpdateList with any type of body -func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateApiKeyRequestWithBody generates requests for UpdateApiKey with any type of body +func NewUpdateApiKeyRequestWithBody(server string, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6639,7 +7618,7 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "keyID", runtime.ParamLocationPath, keyID) if err != nil { return nil, err } @@ -6649,7 +7628,7 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/keys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6669,90 +7648,8 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l return req, nil } -// NewDuplicateListRequest generates requests for DuplicateList -func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/duplicate", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRecountListRequest generates requests for RecountList -func NewRecountListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/recount", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetListUsersRequest generates requests for GetListUsers -func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams) (*http.Request, error) { +// NewListListsRequest generates requests for ListLists +func NewListListsRequest(server string, projectID openapi_types.UUID, params *ListListsParams) (*http.Request, error) { var err error var pathParam0 string @@ -6762,19 +7659,12 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6819,6 +7709,22 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -6830,20 +7736,24 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID return req, nil } -// NewImportListUsersRequestWithBody generates requests for ImportListUsers with any type of body -func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) +// NewCreateListRequest calls the generic CreateList builder with application/json body +func NewCreateListRequest(server string, projectID openapi_types.UUID, body CreateListJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateListRequestWithBody(server, projectID, "application/json", bodyReader) +} - var pathParam1 string +// NewCreateListRequestWithBody generates requests for CreateList with any type of body +func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -6853,7 +7763,7 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6873,8 +7783,8 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU return req, nil } -// NewListLocalesRequest generates requests for ListLocales -func NewListLocalesRequest(server string, projectID openapi_types.UUID, params *ListLocalesParams) (*http.Request, error) { +// NewDeleteListRequest generates requests for DeleteList +func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -6884,12 +7794,19 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/locales", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6899,42 +7816,45 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Limit != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } +// NewGetListRequest generates requests for GetList +func NewGetListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Offset != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + var pathParam1 string - } + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -6945,19 +7865,19 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * return req, nil } -// NewCreateLocaleRequest calls the generic CreateLocale builder with application/json body -func NewCreateLocaleRequest(server string, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody) (*http.Request, error) { +// NewUpdateListRequest calls the generic UpdateList builder with application/json body +func NewUpdateListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateLocaleRequestWithBody(server, projectID, "application/json", bodyReader) + return NewUpdateListRequestWithBody(server, projectID, listID, "application/json", bodyReader) } -// NewCreateLocaleRequestWithBody generates requests for CreateLocale with any type of body -func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateListRequestWithBody generates requests for UpdateList with any type of body +func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6967,12 +7887,19 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/locales", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6982,7 +7909,7 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -6992,8 +7919,8 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, return req, nil } -// NewDeleteLocaleRequest generates requests for DeleteLocale -func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeID openapi_types.UUID) (*http.Request, error) { +// NewDuplicateListRequest generates requests for DuplicateList +func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7005,7 +7932,7 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -7015,7 +7942,7 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/locales/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/duplicate", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7025,7 +7952,7 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7033,8 +7960,8 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI return req, nil } -// NewGetLocaleRequest generates requests for GetLocale -func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID string) (*http.Request, error) { +// NewRecountListRequest generates requests for RecountList +func NewRecountListRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7046,7 +7973,7 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -7056,7 +7983,7 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/locales/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/recount", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7066,7 +7993,7 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -7074,8 +8001,8 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s return req, nil } -// NewListProvidersRequest generates requests for ListProviders -func NewListProvidersRequest(server string, projectID openapi_types.UUID, params *ListProvidersParams) (*http.Request, error) { +// NewGetListUsersRequest generates requests for GetListUsers +func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams) (*http.Request, error) { var err error var pathParam0 string @@ -7085,12 +8012,19 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7135,6 +8069,22 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -7146,8 +8096,8 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params return req, nil } -// NewListAllProvidersRequest generates requests for ListAllProviders -func NewListAllProvidersRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewPreviewListUsersRequest generates requests for PreviewListUsers +func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams) (*http.Request, error) { var err error var pathParam0 string @@ -7157,12 +8107,19 @@ func NewListAllProvidersRequest(server string, projectID openapi_types.UUID) (*h return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/all", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users/preview", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7172,6 +8129,28 @@ func NewListAllProvidersRequest(server string, projectID openapi_types.UUID) (*h return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -7180,8 +8159,8 @@ func NewListAllProvidersRequest(server string, projectID openapi_types.UUID) (*h return req, nil } -// NewListProviderMetaRequest generates requests for ListProviderMeta -func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewImportListUsersRequestWithBody generates requests for ImportListUsers with any type of body +func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7191,12 +8170,19 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/meta", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/lists/%s/users/preview", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7206,27 +8192,18 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewCreateProviderRequest calls the generic CreateProvider builder with application/json body -func NewCreateProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateProviderRequestWithBody(server, projectID, group, pType, "application/json", bodyReader) + return req, nil } -// NewCreateProviderRequestWithBody generates requests for CreateProvider with any type of body -func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader) (*http.Request, error) { +// NewListLocalesRequest generates requests for ListLocales +func NewListLocalesRequest(server string, projectID openapi_types.UUID, params *ListLocalesParams) (*http.Request, error) { var err error var pathParam0 string @@ -7236,26 +8213,12 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/api/admin/projects/%s/locales", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7265,44 +8228,70 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.Limit != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } -// NewGetProviderRequest generates requests for GetProvider -func NewGetProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Offset != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam2 string + return req, nil +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) +// NewCreateLocaleRequest calls the generic CreateLocale builder with application/json body +func NewCreateLocaleRequest(server string, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateLocaleRequestWithBody(server, projectID, "application/json", bodyReader) +} - var pathParam3 string +// NewCreateLocaleRequestWithBody generates requests for CreateLocale with any type of body +func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7312,7 +8301,7 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, group st return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/api/admin/projects/%s/locales", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7322,27 +8311,18 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, group st return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateProviderRequest calls the generic UpdateProvider builder with application/json body -func NewUpdateProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateProviderRequestWithBody(server, projectID, group, pType, providerID, "application/json", bodyReader) + return req, nil } -// NewUpdateProviderRequestWithBody generates requests for UpdateProvider with any type of body -func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteLocaleRequest generates requests for DeleteLocale +func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7354,21 +8334,7 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) if err != nil { return nil, err } @@ -7378,7 +8344,7 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/api/admin/projects/%s/locales/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7388,18 +8354,16 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteProviderRequest generates requests for DeleteProvider -func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, providerID openapi_types.UUID) (*http.Request, error) { +// NewGetLocaleRequest generates requests for GetLocale +func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID string) (*http.Request, error) { var err error var pathParam0 string @@ -7411,7 +8375,7 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, provi var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) if err != nil { return nil, err } @@ -7421,7 +8385,7 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, provi return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/locales/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7431,7 +8395,7 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, provi return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7439,8 +8403,8 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, provi return req, nil } -// NewListSubscriptionsRequest generates requests for ListSubscriptions -func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, params *ListSubscriptionsParams) (*http.Request, error) { +// NewListProvidersRequest generates requests for ListProviders +func NewListProvidersRequest(server string, projectID openapi_types.UUID, params *ListProvidersParams) (*http.Request, error) { var err error var pathParam0 string @@ -7455,7 +8419,7 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7511,19 +8475,8 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa return req, nil } -// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body -func NewCreateSubscriptionRequest(server string, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateSubscriptionRequestWithBody(server, projectID, "application/json", bodyReader) -} - -// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body -func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewListAllProvidersRequest generates requests for ListAllProviders +func NewListAllProvidersRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7538,7 +8491,7 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/all", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7548,18 +8501,16 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetSubscriptionRequest generates requests for GetSubscription -func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) (*http.Request, error) { +// NewListProviderMetaRequest generates requests for ListProviderMeta +func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7569,19 +8520,12 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/meta", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7599,19 +8543,19 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs return req, nil } -// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body -func NewUpdateSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) { +// NewCreateProviderRequest calls the generic CreateProvider builder with application/json body +func NewCreateProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSubscriptionRequestWithBody(server, projectID, subscriptionID, "application/json", bodyReader) + return NewCreateProviderRequestWithBody(server, projectID, group, pType, "application/json", bodyReader) } -// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body -func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateProviderRequestWithBody generates requests for CreateProvider with any type of body +func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7623,7 +8567,14 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } @@ -7633,7 +8584,7 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7643,7 +8594,7 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7653,8 +8604,8 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types return req, nil } -// NewListTagsRequest generates requests for ListTags -func NewListTagsRequest(server string, projectID openapi_types.UUID, params *ListTagsParams) (*http.Request, error) { +// NewGetProviderRequest generates requests for GetProvider +func NewGetProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7664,73 +8615,40 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis return nil, err } - serverURL, err := url.Parse(server) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam2 string - queryURL, err := serverURL.Parse(operationPath) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } + var pathParam3 string - if params.Search != nil { + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -7741,19 +8659,19 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis return req, nil } -// NewCreateTagRequest calls the generic CreateTag builder with application/json body -func NewCreateTagRequest(server string, projectID openapi_types.UUID, body CreateTagJSONRequestBody) (*http.Request, error) { +// NewUpdateProviderRequest calls the generic UpdateProvider builder with application/json body +func NewUpdateProviderRequest(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTagRequestWithBody(server, projectID, "application/json", bodyReader) + return NewUpdateProviderRequestWithBody(server, projectID, group, pType, providerID, "application/json", bodyReader) } -// NewCreateTagRequestWithBody generates requests for CreateTag with any type of body -func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProviderRequestWithBody generates requests for UpdateProvider with any type of body +func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7763,45 +8681,23 @@ func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, co return nil, err } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + var pathParam1 string - req, err := http.NewRequest("POST", queryURL.String(), body) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group", runtime.ParamLocationPath, group) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteTagRequest generates requests for DeleteTag -func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam2 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } - var pathParam1 string + var pathParam3 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) if err != nil { return nil, err } @@ -7811,7 +8707,7 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7821,16 +8717,18 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetTagRequest generates requests for GetTag -func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { +// NewDeleteProviderRequest generates requests for DeleteProvider +func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, providerID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7842,7 +8740,7 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) if err != nil { return nil, err } @@ -7852,7 +8750,7 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/providers/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7862,7 +8760,7 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -7870,19 +8768,8 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi return req, nil } -// NewUpdateTagRequest calls the generic UpdateTag builder with application/json body -func NewUpdateTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateTagRequestWithBody(server, projectID, tagID, "application/json", bodyReader) -} - -// NewUpdateTagRequestWithBody generates requests for UpdateTag with any type of body -func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewListOrganizationEventSchemasRequest generates requests for ListOrganizationEventSchemas +func NewListOrganizationEventSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -7892,19 +8779,12 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organization/events/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7914,18 +8794,16 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListUsersRequest generates requests for ListUsers -func NewListUsersRequest(server string, projectID openapi_types.UUID, params *ListUsersParams) (*http.Request, error) { +// NewListOrganizationsRequest generates requests for ListOrganizations +func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, params *ListOrganizationsParams) (*http.Request, error) { var err error var pathParam0 string @@ -7940,7 +8818,7 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8012,19 +8890,19 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li return req, nil } -// NewIdentifyUserRequest calls the generic IdentifyUser builder with application/json body -func NewIdentifyUserRequest(server string, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody) (*http.Request, error) { +// NewUpsertOrganizationRequest calls the generic UpsertOrganization builder with application/json body +func NewUpsertOrganizationRequest(server string, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewIdentifyUserRequestWithBody(server, projectID, "application/json", bodyReader) + return NewUpsertOrganizationRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewIdentifyUserRequestWithBody generates requests for IdentifyUser with any type of body -func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpsertOrganizationRequestWithBody generates requests for UpsertOrganization with any type of body +func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8039,7 +8917,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8059,8 +8937,8 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, return req, nil } -// NewImportUsersRequestWithBody generates requests for ImportUsers with any type of body -func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewListOrganizationSchemasRequest generates requests for ListOrganizationSchemas +func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8075,7 +8953,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/import", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8085,18 +8963,16 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListUserSchemasRequest generates requests for ListUserSchemas -func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { +// NewListOrganizationMemberSchemasRequest generates requests for ListOrganizationMemberSchemas +func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8111,7 +8987,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/schema", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/users/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8129,8 +9005,8 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht return req, nil } -// NewDeleteUserRequest generates requests for DeleteUser -func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewDeleteOrganizationRequest generates requests for DeleteOrganization +func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8142,7 +9018,7 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8152,7 +9028,7 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8170,8 +9046,8 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op return req, nil } -// NewGetUserRequest generates requests for GetUser -func NewGetUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { +// NewGetOrganizationRequest generates requests for GetOrganization +func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -8183,7 +9059,7 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8193,7 +9069,7 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8211,19 +9087,19 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena return req, nil } -// NewUpdateUserRequest calls the generic UpdateUser builder with application/json body -func NewUpdateUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody) (*http.Request, error) { +// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body +func NewUpdateOrganizationRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateUserRequestWithBody(server, projectID, userID, "application/json", bodyReader) + return NewUpdateOrganizationRequestWithBody(server, projectID, organizationID, "application/json", bodyReader) } -// NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body -func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body +func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8235,7 +9111,7 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8245,7 +9121,7 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8265,8 +9141,8 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return req, nil } -// NewGetUserEventsRequest generates requests for GetUserEvents -func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams) (*http.Request, error) { +// NewGetOrganizationEventsRequest generates requests for GetOrganizationEvents +func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8278,7 +9154,7 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8288,7 +9164,7 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/events", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/events", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8344,8 +9220,8 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID return req, nil } -// NewGetUserJourneysRequest generates requests for GetUserJourneys -func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams) (*http.Request, error) { +// NewListOrganizationMembersRequest generates requests for ListOrganizationMembers +func NewListOrganizationMembersRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams) (*http.Request, error) { var err error var pathParam0 string @@ -8357,7 +9233,7 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8367,7 +9243,7 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/journeys", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8423,8 +9299,19 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user return req, nil } -// NewGetUserSubscriptionsRequest generates requests for GetUserSubscriptions -func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams) (*http.Request, error) { +// NewAddOrganizationMemberRequest calls the generic AddOrganizationMember builder with application/json body +func NewAddOrganizationMemberRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddOrganizationMemberRequestWithBody(server, projectID, organizationID, "application/json", bodyReader) +} + +// NewAddOrganizationMemberRequestWithBody generates requests for AddOrganizationMember with any type of body +func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8436,7 +9323,7 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -8446,7 +9333,7 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/subscriptions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8456,8 +9343,126 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveOrganizationMemberRequest generates requests for RemoveOrganizationMember +func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/organizations/%s/users/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListUserEventSchemasRequest generates requests for ListUserEventSchemas +func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/user/events/schema", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListUsersRequest generates requests for ListUsers +func NewListUsersRequest(server string, projectID openapi_types.UUID, params *ListUsersParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() if params.Limit != nil { @@ -8491,6 +9496,22 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -8502,19 +9523,19 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, return req, nil } -// NewUpdateUserSubscriptionsRequest calls the generic UpdateUserSubscriptions builder with application/json body -func NewUpdateUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody) (*http.Request, error) { +// NewIdentifyUserRequest calls the generic IdentifyUser builder with application/json body +func NewIdentifyUserRequest(server string, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateUserSubscriptionsRequestWithBody(server, projectID, userID, "application/json", bodyReader) + return NewIdentifyUserRequestWithBody(server, projectID, "application/json", bodyReader) } -// NewUpdateUserSubscriptionsRequestWithBody generates requests for UpdateUserSubscriptions with any type of body -func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewIdentifyUserRequestWithBody generates requests for IdentifyUser with any type of body +func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8524,19 +9545,12 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/admin/projects/%s/users/%s/subscriptions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8546,7 +9560,7 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -8556,24 +9570,13 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return req, nil } -// NewAuthCallbackRequest calls the generic AuthCallback builder with application/json body -func NewAuthCallbackRequest(server string, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthCallbackRequestWithBody(server, driver, "application/json", bodyReader) -} - -// NewAuthCallbackRequestWithBody generates requests for AuthCallback with any type of body -func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriver, contentType string, body io.Reader) (*http.Request, error) { +// NewImportUsersRequestWithBody generates requests for ImportUsers with any type of body +func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8583,7 +9586,7 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv return nil, err } - operationPath := fmt.Sprintf("/api/auth/login/%s/callback", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/import", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8603,16 +9606,23 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv return req, nil } -// NewGetAuthMethodsRequest generates requests for GetAuthMethods -func NewGetAuthMethodsRequest(server string) (*http.Request, error) { +// NewListUserSchemasRequest generates requests for ListUserSchemas +func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/auth/methods") + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8630,13 +9640,20 @@ func NewGetAuthMethodsRequest(server string) (*http.Request, error) { return req, nil } -// NewAuthWebhookRequest generates requests for AuthWebhook -func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http.Request, error) { +// NewDeleteUserRequest generates requests for DeleteUser +func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -8646,7 +9663,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http return nil, err } - operationPath := fmt.Sprintf("/api/auth/%s/webhook", pathParam0) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8656,7 +9673,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -8664,2238 +9681,1954 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http return req, nil } -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} +// NewGetUserRequest generates requests for GetUser +func NewGetUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { + var err error -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + var pathParam0 string -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } - return &ClientWithResponses{client}, nil -} -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err } -} -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // DeleteOrganizationWithResponse request - DeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // GetOrganizationWithResponse request - GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // UpdateOrganizationWithBodyWithResponse request with any body - UpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - UpdateOrganizationWithResponse(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // ListAdminsWithResponse request - ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) + return req, nil +} - // CreateAdminWithBodyWithResponse request with any body - CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) +// NewUpdateUserRequest calls the generic UpdateUser builder with application/json body +func NewUpdateUserRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserRequestWithBody(server, projectID, userID, "application/json", bodyReader) +} - CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) +// NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body +func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - // DeleteAdminWithResponse request - DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) + var pathParam0 string - // GetAdminWithResponse request - GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // UpdateAdminWithBodyWithResponse request with any body - UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) + var pathParam1 string - UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // GetOrganizationIntegrationsWithResponse request - GetOrganizationIntegrationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationIntegrationsResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // WhoamiWithResponse request - WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetProfileWithResponse request - GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ListProjectsWithResponse request - ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - // CreateProjectWithBodyWithResponse request with any body - CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) + req.Header.Add("Content-Type", contentType) - CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) + return req, nil +} - // GetProjectWithResponse request - GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) +// NewGetUserDevicesRequest generates requests for GetUserDevices +func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID) (*http.Request, error) { + var err error - // UpdateProjectWithBodyWithResponse request with any body - UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) + var pathParam0 string - UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // ListProjectAdminsWithResponse request - ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) + var pathParam1 string - // DeleteProjectAdminWithResponse request - DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // GetProjectAdminWithResponse request - GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateProjectAdminWithBodyWithResponse request with any body - UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/devices", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ListCampaignsWithResponse request - ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // CreateCampaignWithBodyWithResponse request with any body - CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) + return req, nil +} - CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) +// NewDeleteUserDeviceRequest generates requests for DeleteUserDevice +func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) (*http.Request, error) { + var err error - // DeleteCampaignWithResponse request - DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) + var pathParam0 string - // GetCampaignWithResponse request - GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // UpdateCampaignWithBodyWithResponse request with any body - UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) + var pathParam1 string - UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // DuplicateCampaignWithResponse request - DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) + var pathParam2 string - // CreateTemplateWithBodyWithResponse request with any body - CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deviceID", runtime.ParamLocationPath, deviceID) + if err != nil { + return nil, err + } - CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteTemplateWithResponse request - DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/devices/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetTemplateWithResponse request - GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateTemplateWithBodyWithResponse request with any body - UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) + return req, nil +} - // GetCampaignUsersWithResponse request - GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) +// NewGetUserEventsRequest generates requests for GetUserEvents +func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams) (*http.Request, error) { + var err error - // ListDocumentsWithResponse request - ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) + var pathParam0 string - // UploadDocumentsWithBodyWithResponse request with any body - UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // DeleteDocumentWithResponse request - DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) + var pathParam1 string - // GetDocumentWithResponse request - GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // GetDocumentMetadataWithResponse request - GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListEventsWithResponse request - ListEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/events", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListJourneysWithResponse request - ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // CreateJourneyWithBodyWithResponse request with any body - CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) + if params != nil { + queryValues := queryURL.Query() - CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) + if params.Limit != nil { - // DeleteJourneyWithResponse request - DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // GetJourneyWithResponse request - GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) + } - // UpdateJourneyWithBodyWithResponse request with any body - UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) + if params.Offset != nil { - UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // DuplicateJourneyWithResponse request - DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) + } - // ListJourneyEntrancesWithResponse request - ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) + if params.Search != nil { - // PublishJourneyWithResponse request - PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // GetJourneyStepsWithResponse request - GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) - - // SetJourneyStepsWithBodyWithResponse request with any body - SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) + } - SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // ListJourneyStepUsersWithResponse request - ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // RemoveUserFromJourneyStepWithResponse request - RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) + return req, nil +} - // SkipJourneyStepDelayWithResponse request - SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) +// NewGetUserJourneysRequest generates requests for GetUserJourneys +func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams) (*http.Request, error) { + var err error - // TriggerUserToJourneyStepWithResponse request - TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) + var pathParam0 string - // RemoveUserFromJourneyWithResponse request - RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // VersionJourneyWithResponse request - VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) + var pathParam1 string - // ListApiKeysWithResponse request - ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // CreateApiKeyWithBodyWithResponse request with any body - CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/journeys", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteApiKeyWithResponse request - DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetApiKeyWithResponse request - GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) + if params != nil { + queryValues := queryURL.Query() - // UpdateApiKeyWithBodyWithResponse request with any body - UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) + if params.Limit != nil { - UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // ListListsWithResponse request - ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) + } - // CreateListWithBodyWithResponse request with any body - CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) + if params.Offset != nil { - CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // DeleteListWithResponse request - DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) + } - // GetListWithResponse request - GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // UpdateListWithBodyWithResponse request with any body - UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) + return req, nil +} - // DuplicateListWithResponse request - DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) +// NewGetUserOrganizationsRequest generates requests for GetUserOrganizations +func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams) (*http.Request, error) { + var err error - // RecountListWithResponse request - RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) + var pathParam0 string - // GetListUsersWithResponse request - GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // ImportListUsersWithBodyWithResponse request with any body - ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) + var pathParam1 string - // ListLocalesWithResponse request - ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // CreateLocaleWithBodyWithResponse request with any body - CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subject-organizations", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteLocaleWithResponse request - DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetLocaleWithResponse request - GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) + if params != nil { + queryValues := queryURL.Query() - // ListProvidersWithResponse request - ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) + if params.Limit != nil { - // ListAllProvidersWithResponse request - ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // ListProviderMetaWithResponse request - ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) + } - // CreateProviderWithBodyWithResponse request with any body - CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) + if params.Offset != nil { - CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // GetProviderWithResponse request - GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) + } - // UpdateProviderWithBodyWithResponse request with any body - UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) + if params.Search != nil { - UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // DeleteProviderWithResponse request - DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) + } - // ListSubscriptionsWithResponse request - ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // CreateSubscriptionWithBodyWithResponse request with any body - CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + return req, nil +} - // GetSubscriptionWithResponse request - GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) +// NewGetUserSubscriptionsRequest generates requests for GetUserSubscriptions +func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams) (*http.Request, error) { + var err error - // UpdateSubscriptionWithBodyWithResponse request with any body - UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + var pathParam0 string - UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // ListTagsWithResponse request - ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) + var pathParam1 string - // CreateTagWithBodyWithResponse request with any body - CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteTagWithResponse request - DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subscriptions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetTagWithResponse request - GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateTagWithBodyWithResponse request with any body - UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) + if params != nil { + queryValues := queryURL.Query() - UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) + if params.Limit != nil { - // ListUsersWithResponse request - ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // IdentifyUserWithBodyWithResponse request with any body - IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) + } - IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) + if params.Offset != nil { - // ImportUsersWithBodyWithResponse request with any body - ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // ListUserSchemasWithResponse request - ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) + } - // DeleteUserWithResponse request - DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // GetUserWithResponse request - GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UpdateUserWithBodyWithResponse request with any body - UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) + return req, nil +} - UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) +// NewUpdateUserSubscriptionsRequest calls the generic UpdateUserSubscriptions builder with application/json body +func NewUpdateUserSubscriptionsRequest(server string, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserSubscriptionsRequestWithBody(server, projectID, userID, "application/json", bodyReader) +} - // GetUserEventsWithResponse request - GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) +// NewUpdateUserSubscriptionsRequestWithBody generates requests for UpdateUserSubscriptions with any type of body +func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetUserJourneysWithResponse request - GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) + var pathParam0 string - // GetUserSubscriptionsWithResponse request - GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err + } - // UpdateUserSubscriptionsWithBodyWithResponse request with any body - UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) + var pathParam1 string - UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + if err != nil { + return nil, err + } - // AuthCallbackWithBodyWithResponse request with any body - AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) + operationPath := fmt.Sprintf("/api/admin/projects/%s/subjects/users/%s/subscriptions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetAuthMethodsWithResponse request - GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthWebhookWithResponse request - AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) -} + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } -type DeleteOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r DeleteOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewListSubscriptionsRequest generates requests for ListSubscriptions +func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, params *ListSubscriptionsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type GetOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization - JSONDefault *Error -} + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -// Status returns HTTPResponse.Status -func (r GetOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type UpdateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization - JSONDefault *Error -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r UpdateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type ListAdminsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AdminList - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r ListAdminsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body +func NewCreateSubscriptionRequest(server string, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewCreateSubscriptionRequestWithBody(server, projectID, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListAdminsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body +func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type CreateAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Admin - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r CreateAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return 0 -} - -type DeleteAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r DeleteAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type GetAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r GetAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewGetSubscriptionRequest generates requests for GetSubscription +func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type UpdateAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error -} + var pathParam1 string -// Status returns HTTPResponse.Status -func (r UpdateAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type GetOrganizationIntegrationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]Provider - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r GetOrganizationIntegrationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationIntegrationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type WhoamiResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r WhoamiResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body +func NewUpdateSubscriptionRequest(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewUpdateSubscriptionRequestWithBody(server, projectID, subscriptionID, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r WhoamiResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body +func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type GetProfileResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Admin - JSONDefault *Error -} + var pathParam1 string -// Status returns HTTPResponse.Status -func (r GetProfileResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetProfileResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type ListProjectsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectList - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/projects/%s/subscriptions/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r ListProjectsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListProjectsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type CreateProjectResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Project - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r CreateProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} +// NewListTagsRequest generates requests for ListTags +func NewListTagsRequest(server string, projectID openapi_types.UUID, params *ListTagsParams) (*http.Request, error) { + var err error -type GetProjectResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Project - JSONDefault *Error -} + var pathParam0 string -// Status returns HTTPResponse.Status -func (r GetProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type UpdateProjectResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Project - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r UpdateProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type ListProjectAdminsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectAdminList - JSONDefault *Error -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r ListProjectAdminsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + if params.Limit != nil { -// StatusCode returns HTTPResponse.StatusCode -func (r ListProjectAdminsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } -type DeleteProjectAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + } -// Status returns HTTPResponse.Status -func (r DeleteProjectAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type GetProjectAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectAdmin - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r GetProjectAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewCreateTagRequest calls the generic CreateTag builder with application/json body +func NewCreateTagRequest(server string, projectID openapi_types.UUID, body CreateTagJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewCreateTagRequestWithBody(server, projectID, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetProjectAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} +// NewCreateTagRequestWithBody generates requests for CreateTag with any type of body +func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error -type UpdateProjectAdminResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectAdmin - JSONDefault *Error -} + var pathParam0 string -// Status returns HTTPResponse.Status -func (r UpdateProjectAdminResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectAdminResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type ListCampaignsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CampaignListResponse - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r ListCampaignsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListCampaignsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type CreateCampaignResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Campaign - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r CreateCampaignResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateCampaignResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewDeleteTagRequest generates requests for DeleteTag +func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type DeleteCampaignResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + var pathParam1 string -// Status returns HTTPResponse.Status -func (r DeleteCampaignResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteCampaignResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type GetCampaignResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data Campaign `json:"data"` + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r GetCampaignResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetCampaignResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type UpdateCampaignResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Campaign - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r UpdateCampaignResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewGetTagRequest generates requests for GetTag +func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCampaignResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type DuplicateCampaignResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Campaign - JSONDefault *Error -} + var pathParam1 string -// Status returns HTTPResponse.Status -func (r DuplicateCampaignResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DuplicateCampaignResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type CreateTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Template - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r CreateTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} - -type DeleteTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r DeleteTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 + return req, nil } -type GetTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data Template `json:"data"` +// NewUpdateTagRequest calls the generic UpdateTag builder with application/json body +func NewUpdateTagRequest(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - JSONDefault *Error + bodyReader = bytes.NewReader(buf) + return NewUpdateTagRequestWithBody(server, projectID, tagID, "application/json", bodyReader) } -// Status returns HTTPResponse.Status -func (r GetTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewUpdateTagRequestWithBody generates requests for UpdateTag with any type of body +func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r GetTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + if err != nil { + return nil, err } - return 0 -} -type UpdateTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Template - JSONDefault *Error -} + var pathParam1 string -// Status returns HTTPResponse.Status -func (r UpdateTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type GetCampaignUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data []CampaignUser `json:"data"` - Limit int `json:"limit"` - Offset int `json:"offset"` - Total int `json:"total"` + operationPath := fmt.Sprintf("/api/admin/projects/%s/tags/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r GetCampaignUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetCampaignUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type ListDocumentsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *DocumentListResponse - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r ListDocumentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r ListDocumentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewListAdminsRequest generates requests for ListAdmins +func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type UploadDocumentsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - // Documents UUIDs of the uploaded documents - Documents []openapi_types.UUID `json:"documents"` + operationPath := fmt.Sprintf("/api/admin/tenant/admins") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - JSONDefault *Error -} -// Status returns HTTPResponse.Status -func (r UploadDocumentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UploadDocumentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + if params != nil { + queryValues := queryURL.Query() -type DeleteDocumentResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + if params.Limit != nil { -// Status returns HTTPResponse.Status -func (r DeleteDocumentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteDocumentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type GetDocumentResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r GetDocumentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewCreateAdminRequest calls the generic CreateAdmin builder with application/json body +func NewCreateAdminRequest(server string, body CreateAdminJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewCreateAdminRequestWithBody(server, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetDocumentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewCreateAdminRequestWithBody generates requests for CreateAdmin with any type of body +func NewCreateAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type GetDocumentMetadataResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Document - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/tenant/admins") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r GetDocumentMetadataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetDocumentMetadataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type ListEventsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *EventListResponse - JSONDefault *Error + req.Header.Add("Content-Type", contentType) + + return req, nil } -// Status returns HTTPResponse.Status -func (r ListEventsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewDeleteAdminRequest generates requests for DeleteAdmin +func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListEventsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type ListJourneysResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *JourneyListResponse - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r ListJourneysResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListJourneysResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type CreateJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Journey - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r CreateJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewGetAdminRequest generates requests for GetAdmin +func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type DeleteJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r DeleteJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 + + return req, nil } -type GetJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Journey - JSONDefault *Error -} - -// Status returns HTTPResponse.Status -func (r GetJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewUpdateAdminRequest calls the generic UpdateAdmin builder with application/json body +func NewUpdateAdminRequest(server string, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewUpdateAdminRequestWithBody(server, adminID, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} +// NewUpdateAdminRequestWithBody generates requests for UpdateAdmin with any type of body +func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error -type UpdateJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Journey - JSONDefault *Error -} + var pathParam0 string -// Status returns HTTPResponse.Status -func (r UpdateJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type DuplicateJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Journey - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/admin/tenant/admins/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r DuplicateJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DuplicateJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type ListJourneyEntrancesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *JourneyUserEntranceListResponse - JSONDefault *Error + req.Header.Add("Content-Type", contentType) + + return req, nil } -// Status returns HTTPResponse.Status -func (r ListJourneyEntrancesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewWhoamiRequest generates requests for Whoami +func NewWhoamiRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListJourneyEntrancesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + operationPath := fmt.Sprintf("/api/admin/tenant/whoami") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return 0 -} -type PublishJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Journey - JSONDefault *Error -} + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } -// Status returns HTTPResponse.Status -func (r PublishJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return http.StatusText(0) + + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r PublishJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewAuthCallbackRequest calls the generic AuthCallback builder with application/json body +func NewAuthCallbackRequest(server string, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - return 0 + bodyReader = bytes.NewReader(buf) + return NewAuthCallbackRequestWithBody(server, driver, "application/json", bodyReader) } -type GetJourneyStepsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *JourneyStepMap - JSONDefault *Error -} +// NewAuthCallbackRequestWithBody generates requests for AuthCallback with any type of body +func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriver, contentType string, body io.Reader) (*http.Request, error) { + var err error -// Status returns HTTPResponse.Status -func (r GetJourneyStepsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetJourneyStepsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type SetJourneyStepsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *JourneyStepMap - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/auth/login/%s/callback", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r SetJourneyStepsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r SetJourneyStepsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type ListJourneyStepUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *JourneyUserStepListResponse - JSONDefault *Error -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r ListJourneyStepUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r ListJourneyStepUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewGetAuthMethodsRequest generates requests for GetAuthMethods +func NewGetAuthMethodsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type RemoveUserFromJourneyStepResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/auth/methods") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r RemoveUserFromJourneyStepResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r RemoveUserFromJourneyStepResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 + + return req, nil } -type SkipJourneyStepDelayResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} +// NewAuthWebhookRequest generates requests for AuthWebhook +func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http.Request, error) { + var err error -// Status returns HTTPResponse.Status -func (r SkipJourneyStepDelayResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r SkipJourneyStepDelayResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type TriggerUserToJourneyStepResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *JourneyUserStep - JSONDefault *Error -} + operationPath := fmt.Sprintf("/api/auth/%s/webhook", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r TriggerUserToJourneyStepResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r TriggerUserToJourneyStepResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type RemoveUserFromJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error + return req, nil } -// Status returns HTTPResponse.Status -func (r RemoveUserFromJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RemoveUserFromJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } } - return 0 + return nil } -type VersionJourneyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Journey - JSONDefault *Error +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface } -// Status returns HTTPResponse.Status -func (r VersionJourneyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) + if err != nil { + return nil, err } - return http.StatusText(0) + return &ClientWithResponses{client}, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r VersionJourneyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil } - return 0 } -type ListApiKeysResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ApiKeyListResponse - JSONDefault *Error -} +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // GetProfileWithResponse request + GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) -// Status returns HTTPResponse.Status -func (r ListApiKeysResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // ListProjectsWithResponse request + ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListApiKeysResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // CreateProjectWithBodyWithResponse request with any body + CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) -type CreateApiKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ApiKey - JSONDefault *Error -} + CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) -// Status returns HTTPResponse.Status -func (r CreateApiKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // DeleteProjectWithResponse request + DeleteProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r CreateApiKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetProjectWithResponse request + GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) -type DeleteApiKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + // UpdateProjectWithBodyWithResponse request with any body + UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) -// Status returns HTTPResponse.Status -func (r DeleteApiKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteApiKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // ListActionsWithResponse request + ListActionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error) -type GetApiKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ApiKey - JSONDefault *Error -} + // CreateActionWithBodyWithResponse request with any body + CreateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) -// Status returns HTTPResponse.Status -func (r GetApiKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + CreateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r GetApiKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // ListActionMetaWithResponse request + ListActionMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListActionMetaResponse, error) -type UpdateApiKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ApiKey - JSONDefault *Error -} + // GetActionPreviewWithResponse request + GetActionPreviewWithResponse(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*GetActionPreviewResponse, error) -// Status returns HTTPResponse.Status -func (r UpdateApiKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // TestActionWithBodyWithResponse request with any body + TestActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateApiKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + TestActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionResponse, error) -type ListListsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListListResponse - JSONDefault *Error -} + // DeleteActionWithResponse request + DeleteActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteActionResponse, error) -// Status returns HTTPResponse.Status -func (r ListListsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // GetActionWithResponse request + GetActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetActionResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListListsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // UpdateActionWithBodyWithResponse request with any body + UpdateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) -type CreateListResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *List - JSONDefault *Error -} + UpdateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) -// Status returns HTTPResponse.Status -func (r CreateListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // ListActionSchemasWithResponse request + ListActionSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*ListActionSchemasResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r CreateListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // TestActionFunctionWithBodyWithResponse request with any body + TestActionFunctionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) -type DeleteListResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + TestActionFunctionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) -// Status returns HTTPResponse.Status -func (r DeleteListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // ListProjectAdminsWithResponse request + ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // DeleteProjectAdminWithResponse request + DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) -type GetListResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *List - JSONDefault *Error -} + // GetProjectAdminWithResponse request + GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) -// Status returns HTTPResponse.Status -func (r GetListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // UpdateProjectAdminWithBodyWithResponse request with any body + UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r GetListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) -type UpdateListResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *List - JSONDefault *Error -} + // ListCampaignsWithResponse request + ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) -// Status returns HTTPResponse.Status -func (r UpdateListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // CreateCampaignWithBodyWithResponse request with any body + CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) -type DuplicateListResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *List - JSONDefault *Error -} + // DeleteCampaignWithResponse request + DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) -// Status returns HTTPResponse.Status -func (r DuplicateListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // GetCampaignWithResponse request + GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r DuplicateListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // UpdateCampaignWithBodyWithResponse request with any body + UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) -type RecountListResponse struct { - Body []byte - HTTPResponse *http.Response - JSON202 *List - JSONDefault *Error -} + UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) -// Status returns HTTPResponse.Status -func (r RecountListResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // DuplicateCampaignWithResponse request + DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r RecountListResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // CreateTemplateWithBodyWithResponse request with any body + CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) -type GetListUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserList - JSONDefault *Error -} + CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) -// Status returns HTTPResponse.Status -func (r GetListUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // DeleteTemplateWithResponse request + DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r GetListUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetTemplateWithResponse request + GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) -type ImportListUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + // UpdateTemplateWithBodyWithResponse request with any body + UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) -// Status returns HTTPResponse.Status -func (r ImportListUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ImportListUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetCampaignUsersWithResponse request + GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) -type ListLocalesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` + // ListDocumentsWithResponse request + ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Locale `json:"results"` + // UploadDocumentsWithBodyWithResponse request with any body + UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) - // Total Total number of items matching the filters - Total int `json:"total"` - } - JSONDefault *Error -} + // DeleteDocumentWithResponse request + DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) -// Status returns HTTPResponse.Status -func (r ListLocalesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // GetDocumentWithResponse request + GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListLocalesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetDocumentMetadataWithResponse request + GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) -type CreateLocaleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Locale - JSONDefault *Error -} + // ListJourneysWithResponse request + ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) -// Status returns HTTPResponse.Status -func (r CreateLocaleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // CreateJourneyWithBodyWithResponse request with any body + CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r CreateLocaleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) -type DeleteLocaleResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + // DeleteJourneyWithResponse request + DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) -// Status returns HTTPResponse.Status -func (r DeleteLocaleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // GetJourneyWithResponse request + GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteLocaleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // UpdateJourneyWithBodyWithResponse request with any body + UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) -type GetLocaleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Locale - JSONDefault *Error -} + UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) -// Status returns HTTPResponse.Status -func (r GetLocaleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // DuplicateJourneyWithResponse request + DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r GetLocaleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // ListJourneyEntrancesWithResponse request + ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) -type ListProvidersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProviderListResponse - JSONDefault *Error -} + // PublishJourneyWithResponse request + PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) -// Status returns HTTPResponse.Status -func (r ListProvidersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // GetJourneyStepsWithResponse request + GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListProvidersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // SetJourneyStepsWithBodyWithResponse request with any body + SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) -type ListAllProvidersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]Provider - JSONDefault *Error -} + SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) -// Status returns HTTPResponse.Status -func (r ListAllProvidersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // ListJourneyStepUsersWithResponse request + ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllProvidersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // RemoveUserFromJourneyStepWithResponse request + RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) -type ListProviderMetaResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]ProviderMeta - JSONDefault *Error -} + // SkipJourneyStepDelayWithResponse request + SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) -// Status returns HTTPResponse.Status -func (r ListProviderMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // TriggerUserToJourneyStepWithResponse request + TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListProviderMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // RemoveUserFromJourneyWithResponse request + RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) -type CreateProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Provider - JSONDefault *Error -} + // StreamUserJourneyStepsWithResponse request + StreamUserJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamUserJourneyStepsResponse, error) -// Status returns HTTPResponse.Status -func (r CreateProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // TriggerUserWithBodyWithResponse request with any body + TriggerUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r CreateProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + TriggerUserWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) -type GetProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Provider - JSONDefault *Error -} + // AdvanceUserStepWithBodyWithResponse request with any body + AdvanceUserStepWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) -// Status returns HTTPResponse.Status -func (r GetProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + AdvanceUserStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r GetProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetUserJourneyStateWithResponse request + GetUserJourneyStateWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserJourneyStateResponse, error) -type UpdateProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Provider - JSONDefault *Error -} + // VersionJourneyWithResponse request + VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) -// Status returns HTTPResponse.Status -func (r UpdateProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // ListApiKeysWithResponse request + ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // CreateApiKeyWithBodyWithResponse request with any body + CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) -type DeleteProviderResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *Error -} + CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) -// Status returns HTTPResponse.Status -func (r DeleteProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + // DeleteApiKeyWithResponse request + DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // GetApiKeyWithResponse request + GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) -type ListSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SubscriptionListResponse - JSONDefault *Error -} + // UpdateApiKeyWithBodyWithResponse request with any body + UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) -// Status returns HTTPResponse.Status -func (r ListSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r ListSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} + // ListListsWithResponse request + ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) -type CreateSubscriptionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Subscription - JSONDefault *Error -} + // CreateListWithBodyWithResponse request with any body + CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) -// Status returns HTTPResponse.Status -func (r CreateSubscriptionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSubscriptionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 + // DeleteListWithResponse request + DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) + + // GetListWithResponse request + GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) + + // UpdateListWithBodyWithResponse request with any body + UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) + + UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) + + // DuplicateListWithResponse request + DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) + + // RecountListWithResponse request + RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) + + // GetListUsersWithResponse request + GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) + + // PreviewListUsersWithResponse request + PreviewListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*PreviewListUsersResponse, error) + + // ImportListUsersWithBodyWithResponse request with any body + ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) + + // ListLocalesWithResponse request + ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) + + // CreateLocaleWithBodyWithResponse request with any body + CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) + + CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) + + // DeleteLocaleWithResponse request + DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) + + // GetLocaleWithResponse request + GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) + + // ListProvidersWithResponse request + ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) + + // ListAllProvidersWithResponse request + ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) + + // ListProviderMetaWithResponse request + ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) + + // CreateProviderWithBodyWithResponse request with any body + CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) + + CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) + + // GetProviderWithResponse request + GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) + + // UpdateProviderWithBodyWithResponse request with any body + UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) + + UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) + + // DeleteProviderWithResponse request + DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) + + // ListOrganizationEventSchemasWithResponse request + ListOrganizationEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationEventSchemasResponse, error) + + // ListOrganizationsWithResponse request + ListOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error) + + // UpsertOrganizationWithBodyWithResponse request with any body + UpsertOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) + + UpsertOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) + + // ListOrganizationSchemasWithResponse request + ListOrganizationSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationSchemasResponse, error) + + // ListOrganizationMemberSchemasWithResponse request + ListOrganizationMemberSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationMemberSchemasResponse, error) + + // DeleteOrganizationWithResponse request + DeleteOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) + + // GetOrganizationWithResponse request + GetOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) + + // UpdateOrganizationWithBodyWithResponse request with any body + UpdateOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + + UpdateOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + + // GetOrganizationEventsWithResponse request + GetOrganizationEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*GetOrganizationEventsResponse, error) + + // ListOrganizationMembersWithResponse request + ListOrganizationMembersWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error) + + // AddOrganizationMemberWithBodyWithResponse request with any body + AddOrganizationMemberWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) + + AddOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) + + // RemoveOrganizationMemberWithResponse request + RemoveOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveOrganizationMemberResponse, error) + + // ListUserEventSchemasWithResponse request + ListUserEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserEventSchemasResponse, error) + + // ListUsersWithResponse request + ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) + + // IdentifyUserWithBodyWithResponse request with any body + IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) + + IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) + + // ImportUsersWithBodyWithResponse request with any body + ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) + + // ListUserSchemasWithResponse request + ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) + + // DeleteUserWithResponse request + DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + + // UpdateUserWithBodyWithResponse request with any body + UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) + + UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) + + // GetUserDevicesWithResponse request + GetUserDevicesWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserDevicesResponse, error) + + // DeleteUserDeviceWithResponse request + DeleteUserDeviceWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserDeviceResponse, error) + + // GetUserEventsWithResponse request + GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) + + // GetUserJourneysWithResponse request + GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) + + // GetUserOrganizationsWithResponse request + GetUserOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*GetUserOrganizationsResponse, error) + + // GetUserSubscriptionsWithResponse request + GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) + + // UpdateUserSubscriptionsWithBodyWithResponse request with any body + UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) + + UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) + + // ListSubscriptionsWithResponse request + ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) + + // CreateSubscriptionWithBodyWithResponse request with any body + CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + + CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + + // GetSubscriptionWithResponse request + GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) + + // UpdateSubscriptionWithBodyWithResponse request with any body + UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + + UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + + // ListTagsWithResponse request + ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) + + // CreateTagWithBodyWithResponse request with any body + CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) + + CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) + + // DeleteTagWithResponse request + DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) + + // GetTagWithResponse request + GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) + + // UpdateTagWithBodyWithResponse request with any body + UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) + + UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) + + // ListAdminsWithResponse request + ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) + + // CreateAdminWithBodyWithResponse request with any body + CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) + + CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) + + // DeleteAdminWithResponse request + DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) + + // GetAdminWithResponse request + GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) + + // UpdateAdminWithBodyWithResponse request with any body + UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) + + UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) + + // WhoamiWithResponse request + WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) + + // AuthCallbackWithBodyWithResponse request with any body + AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) + + AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) + + // GetAuthMethodsWithResponse request + GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) + + // AuthWebhookWithResponse request + AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) } -type GetSubscriptionResponse struct { +type GetProfileResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Subscription + JSON200 *Admin JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetSubscriptionResponse) Status() string { +func (r GetProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10903,22 +11636,22 @@ func (r GetSubscriptionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSubscriptionResponse) StatusCode() int { +func (r GetProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSubscriptionResponse struct { +type ListProjectsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Subscription + JSON200 *ProjectList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateSubscriptionResponse) Status() string { +func (r ListProjectsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10926,22 +11659,22 @@ func (r UpdateSubscriptionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSubscriptionResponse) StatusCode() int { +func (r ListProjectsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListTagsResponse struct { +type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TagListResponse + JSON201 *Project JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListTagsResponse) Status() string { +func (r CreateProjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10949,22 +11682,21 @@ func (r ListTagsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListTagsResponse) StatusCode() int { +func (r CreateProjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateTagResponse struct { +type DeleteProjectResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Tag JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateTagResponse) Status() string { +func (r DeleteProjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10972,21 +11704,22 @@ func (r CreateTagResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTagResponse) StatusCode() int { +func (r DeleteProjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTagResponse struct { +type GetProjectResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Project JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteTagResponse) Status() string { +func (r GetProjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10994,22 +11727,22 @@ func (r DeleteTagResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTagResponse) StatusCode() int { +func (r GetProjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTagResponse struct { +type UpdateProjectResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Tag + JSON200 *Project JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetTagResponse) Status() string { +func (r UpdateProjectResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11017,22 +11750,22 @@ func (r GetTagResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTagResponse) StatusCode() int { +func (r UpdateProjectResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateTagResponse struct { +type ListActionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Tag + JSON200 *ActionListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateTagResponse) Status() string { +func (r ListActionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11040,22 +11773,22 @@ func (r UpdateTagResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateTagResponse) StatusCode() int { +func (r ListActionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListUsersResponse struct { +type CreateActionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserList + JSON201 *Action JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListUsersResponse) Status() string { +func (r CreateActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11063,22 +11796,22 @@ func (r ListUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListUsersResponse) StatusCode() int { +func (r CreateActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type IdentifyUserResponse struct { +type ListActionMetaResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON200 *[]ActionMeta JSONDefault *Error } // Status returns HTTPResponse.Status -func (r IdentifyUserResponse) Status() string { +func (r ListActionMetaResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11086,21 +11819,21 @@ func (r IdentifyUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r IdentifyUserResponse) StatusCode() int { +func (r ListActionMetaResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ImportUsersResponse struct { +type GetActionPreviewResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ImportUsersResponse) Status() string { +func (r GetActionPreviewResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11108,24 +11841,22 @@ func (r ImportUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ImportUsersResponse) StatusCode() int { +func (r GetActionPreviewResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListUserSchemasResponse struct { +type TestActionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Results []SchemaPath `json:"results"` - } - JSONDefault *Error + JSON200 *TestActionResult + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListUserSchemasResponse) Status() string { +func (r TestActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11133,21 +11864,21 @@ func (r ListUserSchemasResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListUserSchemasResponse) StatusCode() int { +func (r TestActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteUserResponse struct { +type DeleteActionResponse struct { Body []byte HTTPResponse *http.Response JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteUserResponse) Status() string { +func (r DeleteActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11155,22 +11886,22 @@ func (r DeleteUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserResponse) StatusCode() int { +func (r DeleteActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetUserResponse struct { +type GetActionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON200 *Action JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetUserResponse) Status() string { +func (r GetActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11178,22 +11909,22 @@ func (r GetUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserResponse) StatusCode() int { +func (r GetActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateUserResponse struct { +type UpdateActionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User + JSON200 *Action JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateUserResponse) Status() string { +func (r UpdateActionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11201,22 +11932,22 @@ func (r UpdateUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserResponse) StatusCode() int { +func (r UpdateActionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetUserEventsResponse struct { +type ListActionSchemasResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserEventList + JSON200 *ActionSchemaListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetUserEventsResponse) Status() string { +func (r ListActionSchemasResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11224,22 +11955,22 @@ func (r GetUserEventsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserEventsResponse) StatusCode() int { +func (r ListActionSchemasResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetUserJourneysResponse struct { +type TestActionFunctionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserJourneyList + JSON200 *TestActionFunctionResult JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetUserJourneysResponse) Status() string { +func (r TestActionFunctionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11247,22 +11978,22 @@ func (r GetUserJourneysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserJourneysResponse) StatusCode() int { +func (r TestActionFunctionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetUserSubscriptionsResponse struct { +type ListProjectAdminsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserSubscriptionList + JSON200 *ProjectAdminList JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetUserSubscriptionsResponse) Status() string { +func (r ListProjectAdminsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11270,22 +12001,21 @@ func (r GetUserSubscriptionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserSubscriptionsResponse) StatusCode() int { +func (r ListProjectAdminsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateUserSubscriptionsResponse struct { +type DeleteProjectAdminResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateUserSubscriptionsResponse) Status() string { +func (r DeleteProjectAdminResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11293,21 +12023,22 @@ func (r UpdateUserSubscriptionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserSubscriptionsResponse) StatusCode() int { +func (r DeleteProjectAdminResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AuthCallbackResponse struct { +type GetProjectAdminResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ProjectAdmin JSONDefault *Error } // Status returns HTTPResponse.Status -func (r AuthCallbackResponse) Status() string { +func (r GetProjectAdminResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11315,22 +12046,22 @@ func (r AuthCallbackResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthCallbackResponse) StatusCode() int { +func (r GetProjectAdminResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetAuthMethodsResponse struct { +type UpdateProjectAdminResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]string + JSON200 *ProjectAdmin JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetAuthMethodsResponse) Status() string { +func (r UpdateProjectAdminResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11338,21 +12069,22 @@ func (r GetAuthMethodsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthMethodsResponse) StatusCode() int { +func (r UpdateProjectAdminResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AuthWebhookResponse struct { +type ListCampaignsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *CampaignListResponse JSONDefault *Error } // Status returns HTTPResponse.Status -func (r AuthWebhookResponse) Status() string { +func (r ListCampaignsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11360,3861 +12092,3909 @@ func (r AuthWebhookResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthWebhookResponse) StatusCode() int { +func (r ListCampaignsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse -func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) { - rsp, err := c.DeleteOrganization(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteOrganizationResponse(rsp) +type CreateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Campaign + JSONDefault *Error } -// GetOrganizationWithResponse request returning *GetOrganizationResponse -func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) { - rsp, err := c.GetOrganization(ctx, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetOrganizationResponse(rsp) + return http.StatusText(0) } -// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse -func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganizationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateOrganizationResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganization(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateOrganizationResponse(rsp) +type DeleteCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ListAdminsWithResponse request returning *ListAdminsResponse -func (c *ClientWithResponses) ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) { - rsp, err := c.ListAdmins(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListAdminsResponse(rsp) + return http.StatusText(0) } -// CreateAdminWithBodyWithResponse request with arbitrary body returning *CreateAdminResponse -func (c *ClientWithResponses) CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { - rsp, err := c.CreateAdminWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateAdminResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { - rsp, err := c.CreateAdmin(ctx, body, reqEditors...) - if err != nil { - return nil, err +type GetCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Campaign `json:"data"` } - return ParseCreateAdminResponse(rsp) + JSONDefault *Error } -// DeleteAdminWithResponse request returning *DeleteAdminResponse -func (c *ClientWithResponses) DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) { - rsp, err := c.DeleteAdmin(ctx, adminID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteAdminResponse(rsp) + return http.StatusText(0) } -// GetAdminWithResponse request returning *GetAdminResponse -func (c *ClientWithResponses) GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) { - rsp, err := c.GetAdmin(ctx, adminID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetAdminResponse(rsp) + return 0 } -// UpdateAdminWithBodyWithResponse request with arbitrary body returning *UpdateAdminResponse -func (c *ClientWithResponses) UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { - rsp, err := c.UpdateAdminWithBody(ctx, adminID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAdminResponse(rsp) +type UpdateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Campaign + JSONDefault *Error } -func (c *ClientWithResponses) UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { - rsp, err := c.UpdateAdmin(ctx, adminID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateAdminResponse(rsp) + return http.StatusText(0) } -// GetOrganizationIntegrationsWithResponse request returning *GetOrganizationIntegrationsResponse -func (c *ClientWithResponses) GetOrganizationIntegrationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationIntegrationsResponse, error) { - rsp, err := c.GetOrganizationIntegrations(ctx, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetOrganizationIntegrationsResponse(rsp) + return 0 } -// WhoamiWithResponse request returning *WhoamiResponse -func (c *ClientWithResponses) WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) { - rsp, err := c.Whoami(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseWhoamiResponse(rsp) +type DuplicateCampaignResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Campaign + JSONDefault *Error } -// GetProfileWithResponse request returning *GetProfileResponse -func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) { - rsp, err := c.GetProfile(ctx, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DuplicateCampaignResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetProfileResponse(rsp) + return http.StatusText(0) } -// ListProjectsWithResponse request returning *ListProjectsResponse -func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) { - rsp, err := c.ListProjects(ctx, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateCampaignResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListProjectsResponse(rsp) + return 0 } -// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse -func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { - rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateProjectResponse(rsp) +type CreateTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Template + JSONDefault *Error } -func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { - rsp, err := c.CreateProject(ctx, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateProjectResponse(rsp) + return http.StatusText(0) } -// GetProjectWithResponse request returning *GetProjectResponse -func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { - rsp, err := c.GetProject(ctx, projectID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetProjectResponse(rsp) + return 0 } -// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse -func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { - rsp, err := c.UpdateProjectWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateProjectResponse(rsp) +type DeleteTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { - rsp, err := c.UpdateProject(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateProjectResponse(rsp) + return http.StatusText(0) } -// ListProjectAdminsWithResponse request returning *ListProjectAdminsResponse -func (c *ClientWithResponses) ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) { - rsp, err := c.ListProjectAdmins(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListProjectAdminsResponse(rsp) + return 0 } -// DeleteProjectAdminWithResponse request returning *DeleteProjectAdminResponse -func (c *ClientWithResponses) DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) { - rsp, err := c.DeleteProjectAdmin(ctx, projectID, adminID, reqEditors...) - if err != nil { - return nil, err +type GetTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Template `json:"data"` } - return ParseDeleteProjectAdminResponse(rsp) + JSONDefault *Error } -// GetProjectAdminWithResponse request returning *GetProjectAdminResponse -func (c *ClientWithResponses) GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) { - rsp, err := c.GetProjectAdmin(ctx, projectID, adminID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetProjectAdminResponse(rsp) + return http.StatusText(0) } -// UpdateProjectAdminWithBodyWithResponse request with arbitrary body returning *UpdateProjectAdminResponse -func (c *ClientWithResponses) UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { - rsp, err := c.UpdateProjectAdminWithBody(ctx, projectID, adminID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateProjectAdminResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { - rsp, err := c.UpdateProjectAdmin(ctx, projectID, adminID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateProjectAdminResponse(rsp) +type UpdateTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Template + JSONDefault *Error } -// ListCampaignsWithResponse request returning *ListCampaignsResponse -func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) { - rsp, err := c.ListCampaigns(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListCampaignsResponse(rsp) + return http.StatusText(0) } -// CreateCampaignWithBodyWithResponse request with arbitrary body returning *CreateCampaignResponse -func (c *ClientWithResponses) CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { - rsp, err := c.CreateCampaignWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateCampaignResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { - rsp, err := c.CreateCampaign(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +type GetCampaignUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data []CampaignUser `json:"data"` + Limit int `json:"limit"` + Offset int `json:"offset"` + Total int `json:"total"` } - return ParseCreateCampaignResponse(rsp) + JSONDefault *Error } -// DeleteCampaignWithResponse request returning *DeleteCampaignResponse -func (c *ClientWithResponses) DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) { - rsp, err := c.DeleteCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetCampaignUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteCampaignResponse(rsp) + return http.StatusText(0) } -// GetCampaignWithResponse request returning *GetCampaignResponse -func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) { - rsp, err := c.GetCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetCampaignUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetCampaignResponse(rsp) + return 0 } -// UpdateCampaignWithBodyWithResponse request with arbitrary body returning *UpdateCampaignResponse -func (c *ClientWithResponses) UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { - rsp, err := c.UpdateCampaignWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCampaignResponse(rsp) +type ListDocumentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DocumentListResponse + JSONDefault *Error } -func (c *ClientWithResponses) UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { - rsp, err := c.UpdateCampaign(ctx, projectID, campaignID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListDocumentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateCampaignResponse(rsp) + return http.StatusText(0) } -// DuplicateCampaignWithResponse request returning *DuplicateCampaignResponse -func (c *ClientWithResponses) DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) { - rsp, err := c.DuplicateCampaign(ctx, projectID, campaignID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListDocumentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDuplicateCampaignResponse(rsp) + return 0 } -// CreateTemplateWithBodyWithResponse request with arbitrary body returning *CreateTemplateResponse -func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { - rsp, err := c.CreateTemplateWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) - if err != nil { - return nil, err +type UploadDocumentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *struct { + // Documents UUIDs of the uploaded documents + Documents []openapi_types.UUID `json:"documents"` } - return ParseCreateTemplateResponse(rsp) + JSONDefault *Error } -func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { - rsp, err := c.CreateTemplate(ctx, projectID, campaignID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UploadDocumentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateTemplateResponse(rsp) + return http.StatusText(0) } -// DeleteTemplateWithResponse request returning *DeleteTemplateResponse -func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) { - rsp, err := c.DeleteTemplate(ctx, projectID, campaignID, templateID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UploadDocumentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteTemplateResponse(rsp) + return 0 } -// GetTemplateWithResponse request returning *GetTemplateResponse -func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) { - rsp, err := c.GetTemplate(ctx, projectID, campaignID, templateID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTemplateResponse(rsp) +type DeleteDocumentResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// UpdateTemplateWithBodyWithResponse request with arbitrary body returning *UpdateTemplateResponse -func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { - rsp, err := c.UpdateTemplateWithBody(ctx, projectID, campaignID, templateID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteDocumentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateTemplateResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { - rsp, err := c.UpdateTemplate(ctx, projectID, campaignID, templateID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteDocumentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateTemplateResponse(rsp) + return 0 } -// GetCampaignUsersWithResponse request returning *GetCampaignUsersResponse -func (c *ClientWithResponses) GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) { - rsp, err := c.GetCampaignUsers(ctx, projectID, campaignID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCampaignUsersResponse(rsp) +type GetDocumentResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ListDocumentsWithResponse request returning *ListDocumentsResponse -func (c *ClientWithResponses) ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) { - rsp, err := c.ListDocuments(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetDocumentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListDocumentsResponse(rsp) + return http.StatusText(0) } -// UploadDocumentsWithBodyWithResponse request with arbitrary body returning *UploadDocumentsResponse -func (c *ClientWithResponses) UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) { - rsp, err := c.UploadDocumentsWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetDocumentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUploadDocumentsResponse(rsp) + return 0 } -// DeleteDocumentWithResponse request returning *DeleteDocumentResponse -func (c *ClientWithResponses) DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) { - rsp, err := c.DeleteDocument(ctx, projectID, documentID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteDocumentResponse(rsp) +type GetDocumentMetadataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Document + JSONDefault *Error } -// GetDocumentWithResponse request returning *GetDocumentResponse -func (c *ClientWithResponses) GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) { - rsp, err := c.GetDocument(ctx, projectID, documentID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetDocumentMetadataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetDocumentResponse(rsp) + return http.StatusText(0) } -// GetDocumentMetadataWithResponse request returning *GetDocumentMetadataResponse -func (c *ClientWithResponses) GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) { - rsp, err := c.GetDocumentMetadata(ctx, projectID, documentID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetDocumentMetadataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetDocumentMetadataResponse(rsp) + return 0 } -// ListEventsWithResponse request returning *ListEventsResponse -func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventsResponse, error) { - rsp, err := c.ListEvents(ctx, projectID, reqEditors...) - if err != nil { - return nil, err - } - return ParseListEventsResponse(rsp) +type ListJourneysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *JourneyListResponse + JSONDefault *Error } -// ListJourneysWithResponse request returning *ListJourneysResponse -func (c *ClientWithResponses) ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) { - rsp, err := c.ListJourneys(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListJourneysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListJourneysResponse(rsp) + return http.StatusText(0) } -// CreateJourneyWithBodyWithResponse request with arbitrary body returning *CreateJourneyResponse -func (c *ClientWithResponses) CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { - rsp, err := c.CreateJourneyWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListJourneysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateJourneyResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { - rsp, err := c.CreateJourney(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateJourneyResponse(rsp) +type CreateJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Journey + JSONDefault *Error } -// DeleteJourneyWithResponse request returning *DeleteJourneyResponse -func (c *ClientWithResponses) DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) { - rsp, err := c.DeleteJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteJourneyResponse(rsp) + return http.StatusText(0) } -// GetJourneyWithResponse request returning *GetJourneyResponse -func (c *ClientWithResponses) GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) { - rsp, err := c.GetJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetJourneyResponse(rsp) + return 0 } -// UpdateJourneyWithBodyWithResponse request with arbitrary body returning *UpdateJourneyResponse -func (c *ClientWithResponses) UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { - rsp, err := c.UpdateJourneyWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateJourneyResponse(rsp) +type DeleteJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -func (c *ClientWithResponses) UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { - rsp, err := c.UpdateJourney(ctx, projectID, journeyID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateJourneyResponse(rsp) + return http.StatusText(0) } -// DuplicateJourneyWithResponse request returning *DuplicateJourneyResponse -func (c *ClientWithResponses) DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) { - rsp, err := c.DuplicateJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDuplicateJourneyResponse(rsp) + return 0 } -// ListJourneyEntrancesWithResponse request returning *ListJourneyEntrancesResponse -func (c *ClientWithResponses) ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) { - rsp, err := c.ListJourneyEntrances(ctx, projectID, journeyID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListJourneyEntrancesResponse(rsp) +type GetJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Journey + JSONDefault *Error } -// PublishJourneyWithResponse request returning *PublishJourneyResponse -func (c *ClientWithResponses) PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) { - rsp, err := c.PublishJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePublishJourneyResponse(rsp) + return http.StatusText(0) } -// GetJourneyStepsWithResponse request returning *GetJourneyStepsResponse -func (c *ClientWithResponses) GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) { - rsp, err := c.GetJourneySteps(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetJourneyStepsResponse(rsp) + return 0 } -// SetJourneyStepsWithBodyWithResponse request with arbitrary body returning *SetJourneyStepsResponse -func (c *ClientWithResponses) SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { - rsp, err := c.SetJourneyStepsWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSetJourneyStepsResponse(rsp) +type UpdateJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Journey + JSONDefault *Error } -func (c *ClientWithResponses) SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { - rsp, err := c.SetJourneySteps(ctx, projectID, journeyID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSetJourneyStepsResponse(rsp) + return http.StatusText(0) } -// ListJourneyStepUsersWithResponse request returning *ListJourneyStepUsersResponse -func (c *ClientWithResponses) ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) { - rsp, err := c.ListJourneyStepUsers(ctx, projectID, journeyID, stepID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListJourneyStepUsersResponse(rsp) + return 0 } -// RemoveUserFromJourneyStepWithResponse request returning *RemoveUserFromJourneyStepResponse -func (c *ClientWithResponses) RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) { - rsp, err := c.RemoveUserFromJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseRemoveUserFromJourneyStepResponse(rsp) +type DuplicateJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Journey + JSONDefault *Error } -// SkipJourneyStepDelayWithResponse request returning *SkipJourneyStepDelayResponse -func (c *ClientWithResponses) SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) { - rsp, err := c.SkipJourneyStepDelay(ctx, projectID, journeyID, stepID, userID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DuplicateJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSkipJourneyStepDelayResponse(rsp) + return http.StatusText(0) } -// TriggerUserToJourneyStepWithResponse request returning *TriggerUserToJourneyStepResponse -func (c *ClientWithResponses) TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) { - rsp, err := c.TriggerUserToJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTriggerUserToJourneyStepResponse(rsp) + return 0 } -// RemoveUserFromJourneyWithResponse request returning *RemoveUserFromJourneyResponse -func (c *ClientWithResponses) RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) { - rsp, err := c.RemoveUserFromJourney(ctx, projectID, journeyID, userID, reqEditors...) - if err != nil { - return nil, err +type ListJourneyEntrancesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *JourneyUserEntranceListResponse + JSONDefault *Error +} + +// Status returns HTTPResponse.Status +func (r ListJourneyEntrancesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseRemoveUserFromJourneyResponse(rsp) + return http.StatusText(0) } -// VersionJourneyWithResponse request returning *VersionJourneyResponse -func (c *ClientWithResponses) VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) { - rsp, err := c.VersionJourney(ctx, projectID, journeyID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListJourneyEntrancesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseVersionJourneyResponse(rsp) + return 0 } -// ListApiKeysWithResponse request returning *ListApiKeysResponse -func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) { - rsp, err := c.ListApiKeys(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListApiKeysResponse(rsp) +type PublishJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Journey + JSONDefault *Error } -// CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse -func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKeyWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r PublishJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateApiKeyResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKey(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r PublishJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateApiKeyResponse(rsp) + return 0 } -// DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse -func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { - rsp, err := c.DeleteApiKey(ctx, projectID, keyID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteApiKeyResponse(rsp) +type GetJourneyStepsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *JourneyStepMap + JSONDefault *Error } -// GetApiKeyWithResponse request returning *GetApiKeyResponse -func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) { - rsp, err := c.GetApiKey(ctx, projectID, keyID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetJourneyStepsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetApiKeyResponse(rsp) + return http.StatusText(0) } -// UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse -func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKeyWithBody(ctx, projectID, keyID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetJourneyStepsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateApiKeyResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKey(ctx, projectID, keyID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateApiKeyResponse(rsp) +type SetJourneyStepsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *JourneyStepMap + JSONDefault *Error } -// ListListsWithResponse request returning *ListListsResponse -func (c *ClientWithResponses) ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) { - rsp, err := c.ListLists(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r SetJourneyStepsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListListsResponse(rsp) + return http.StatusText(0) } -// CreateListWithBodyWithResponse request with arbitrary body returning *CreateListResponse -func (c *ClientWithResponses) CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { - rsp, err := c.CreateListWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SetJourneyStepsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateListResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { - rsp, err := c.CreateList(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateListResponse(rsp) +type ListJourneyStepUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *JourneyUserStepListResponse + JSONDefault *Error } -// DeleteListWithResponse request returning *DeleteListResponse -func (c *ClientWithResponses) DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) { - rsp, err := c.DeleteList(ctx, projectID, listID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListJourneyStepUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteListResponse(rsp) + return http.StatusText(0) } -// GetListWithResponse request returning *GetListResponse -func (c *ClientWithResponses) GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) { - rsp, err := c.GetList(ctx, projectID, listID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListJourneyStepUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetListResponse(rsp) + return 0 } -// UpdateListWithBodyWithResponse request with arbitrary body returning *UpdateListResponse -func (c *ClientWithResponses) UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { - rsp, err := c.UpdateListWithBody(ctx, projectID, listID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateListResponse(rsp) +type RemoveUserFromJourneyStepResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -func (c *ClientWithResponses) UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { - rsp, err := c.UpdateList(ctx, projectID, listID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r RemoveUserFromJourneyStepResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateListResponse(rsp) + return http.StatusText(0) } -// DuplicateListWithResponse request returning *DuplicateListResponse -func (c *ClientWithResponses) DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) { - rsp, err := c.DuplicateList(ctx, projectID, listID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUserFromJourneyStepResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDuplicateListResponse(rsp) + return 0 } -// RecountListWithResponse request returning *RecountListResponse -func (c *ClientWithResponses) RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) { - rsp, err := c.RecountList(ctx, projectID, listID, reqEditors...) - if err != nil { - return nil, err - } - return ParseRecountListResponse(rsp) +type SkipJourneyStepDelayResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// GetListUsersWithResponse request returning *GetListUsersResponse -func (c *ClientWithResponses) GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) { - rsp, err := c.GetListUsers(ctx, projectID, listID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r SkipJourneyStepDelayResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetListUsersResponse(rsp) + return http.StatusText(0) } -// ImportListUsersWithBodyWithResponse request with arbitrary body returning *ImportListUsersResponse -func (c *ClientWithResponses) ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) { - rsp, err := c.ImportListUsersWithBody(ctx, projectID, listID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SkipJourneyStepDelayResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseImportListUsersResponse(rsp) + return 0 } -// ListLocalesWithResponse request returning *ListLocalesResponse -func (c *ClientWithResponses) ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) { - rsp, err := c.ListLocales(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListLocalesResponse(rsp) +type TriggerUserToJourneyStepResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *JourneyUserStep + JSONDefault *Error } -// CreateLocaleWithBodyWithResponse request with arbitrary body returning *CreateLocaleResponse -func (c *ClientWithResponses) CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { - rsp, err := c.CreateLocaleWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TriggerUserToJourneyStepResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateLocaleResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { - rsp, err := c.CreateLocale(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TriggerUserToJourneyStepResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateLocaleResponse(rsp) + return 0 } -// DeleteLocaleWithResponse request returning *DeleteLocaleResponse -func (c *ClientWithResponses) DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) { - rsp, err := c.DeleteLocale(ctx, projectID, localeID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteLocaleResponse(rsp) +type RemoveUserFromJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// GetLocaleWithResponse request returning *GetLocaleResponse -func (c *ClientWithResponses) GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) { - rsp, err := c.GetLocale(ctx, projectID, localeID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r RemoveUserFromJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetLocaleResponse(rsp) + return http.StatusText(0) } -// ListProvidersWithResponse request returning *ListProvidersResponse -func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) { - rsp, err := c.ListProviders(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUserFromJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListProvidersResponse(rsp) + return 0 } -// ListAllProvidersWithResponse request returning *ListAllProvidersResponse -func (c *ClientWithResponses) ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) { - rsp, err := c.ListAllProviders(ctx, projectID, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAllProvidersResponse(rsp) +type StreamUserJourneyStepsResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ListProviderMetaWithResponse request returning *ListProviderMetaResponse -func (c *ClientWithResponses) ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) { - rsp, err := c.ListProviderMeta(ctx, projectID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r StreamUserJourneyStepsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListProviderMetaResponse(rsp) + return http.StatusText(0) } -// CreateProviderWithBodyWithResponse request with arbitrary body returning *CreateProviderResponse -func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { - rsp, err := c.CreateProviderWithBody(ctx, projectID, group, pType, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r StreamUserJourneyStepsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateProviderResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { - rsp, err := c.CreateProvider(ctx, projectID, group, pType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateProviderResponse(rsp) +type TriggerUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// GetProviderWithResponse request returning *GetProviderResponse -func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) { - rsp, err := c.GetProvider(ctx, projectID, group, pType, providerID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TriggerUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetProviderResponse(rsp) + return http.StatusText(0) } -// UpdateProviderWithBodyWithResponse request with arbitrary body returning *UpdateProviderResponse -func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { - rsp, err := c.UpdateProviderWithBody(ctx, projectID, group, pType, providerID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TriggerUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateProviderResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { - rsp, err := c.UpdateProvider(ctx, projectID, group, pType, providerID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateProviderResponse(rsp) +type AdvanceUserStepResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// DeleteProviderWithResponse request returning *DeleteProviderResponse -func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) { - rsp, err := c.DeleteProvider(ctx, projectID, providerID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AdvanceUserStepResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteProviderResponse(rsp) + return http.StatusText(0) } -// ListSubscriptionsWithResponse request returning *ListSubscriptionsResponse -func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) { - rsp, err := c.ListSubscriptions(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AdvanceUserStepResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListSubscriptionsResponse(rsp) + return 0 } -// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse -func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { - rsp, err := c.CreateSubscriptionWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +type GetUserJourneyStateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + ExternalStepId *string `json:"external_step_id,omitempty"` + IsCompleted *bool `json:"is_completed,omitempty"` + StepType *string `json:"step_type,omitempty"` } - return ParseCreateSubscriptionResponse(rsp) + JSONDefault *Error } -func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { - rsp, err := c.CreateSubscription(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetUserJourneyStateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSubscriptionResponse(rsp) + return http.StatusText(0) } -// GetSubscriptionWithResponse request returning *GetSubscriptionResponse -func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) { - rsp, err := c.GetSubscription(ctx, projectID, subscriptionID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserJourneyStateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSubscriptionResponse(rsp) + return 0 } -// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse -func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { - rsp, err := c.UpdateSubscriptionWithBody(ctx, projectID, subscriptionID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSubscriptionResponse(rsp) +type VersionJourneyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Journey + JSONDefault *Error } -func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { - rsp, err := c.UpdateSubscription(ctx, projectID, subscriptionID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r VersionJourneyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSubscriptionResponse(rsp) + return http.StatusText(0) } -// ListTagsWithResponse request returning *ListTagsResponse -func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) { - rsp, err := c.ListTags(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r VersionJourneyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListTagsResponse(rsp) + return 0 } -// CreateTagWithBodyWithResponse request with arbitrary body returning *CreateTagResponse -func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { - rsp, err := c.CreateTagWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateTagResponse(rsp) +type ListApiKeysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApiKeyListResponse + JSONDefault *Error } -func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { - rsp, err := c.CreateTag(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListApiKeysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateTagResponse(rsp) + return http.StatusText(0) } -// DeleteTagWithResponse request returning *DeleteTagResponse -func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) { - rsp, err := c.DeleteTag(ctx, projectID, tagID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListApiKeysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteTagResponse(rsp) + return 0 } -// GetTagWithResponse request returning *GetTagResponse -func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) { - rsp, err := c.GetTag(ctx, projectID, tagID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTagResponse(rsp) +type CreateApiKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApiKey + JSONDefault *Error } -// UpdateTagWithBodyWithResponse request with arbitrary body returning *UpdateTagResponse -func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { - rsp, err := c.UpdateTagWithBody(ctx, projectID, tagID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateApiKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateTagResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { - rsp, err := c.UpdateTag(ctx, projectID, tagID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateApiKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateTagResponse(rsp) + return 0 } -// ListUsersWithResponse request returning *ListUsersResponse -func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) { - rsp, err := c.ListUsers(ctx, projectID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListUsersResponse(rsp) +type DeleteApiKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// IdentifyUserWithBodyWithResponse request with arbitrary body returning *IdentifyUserResponse -func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { - rsp, err := c.IdentifyUserWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteApiKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseIdentifyUserResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { - rsp, err := c.IdentifyUser(ctx, projectID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteApiKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseIdentifyUserResponse(rsp) + return 0 } -// ImportUsersWithBodyWithResponse request with arbitrary body returning *ImportUsersResponse -func (c *ClientWithResponses) ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) { - rsp, err := c.ImportUsersWithBody(ctx, projectID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseImportUsersResponse(rsp) +type GetApiKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApiKey + JSONDefault *Error } -// ListUserSchemasWithResponse request returning *ListUserSchemasResponse -func (c *ClientWithResponses) ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) { - rsp, err := c.ListUserSchemas(ctx, projectID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetApiKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListUserSchemasResponse(rsp) + return http.StatusText(0) } -// DeleteUserWithResponse request returning *DeleteUserResponse -func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { - rsp, err := c.DeleteUser(ctx, projectID, userID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetApiKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteUserResponse(rsp) + return 0 } -// GetUserWithResponse request returning *GetUserResponse -func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { - rsp, err := c.GetUser(ctx, projectID, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetUserResponse(rsp) +type UpdateApiKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApiKey + JSONDefault *Error } -// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse -func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { - rsp, err := c.UpdateUserWithBody(ctx, projectID, userID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateApiKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateUserResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { - rsp, err := c.UpdateUser(ctx, projectID, userID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateApiKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateUserResponse(rsp) + return 0 } -// GetUserEventsWithResponse request returning *GetUserEventsResponse -func (c *ClientWithResponses) GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) { - rsp, err := c.GetUserEvents(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetUserEventsResponse(rsp) +type ListListsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListListResponse + JSONDefault *Error } -// GetUserJourneysWithResponse request returning *GetUserJourneysResponse -func (c *ClientWithResponses) GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) { - rsp, err := c.GetUserJourneys(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListListsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetUserJourneysResponse(rsp) + return http.StatusText(0) } -// GetUserSubscriptionsWithResponse request returning *GetUserSubscriptionsResponse -func (c *ClientWithResponses) GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) { - rsp, err := c.GetUserSubscriptions(ctx, projectID, userID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListListsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetUserSubscriptionsResponse(rsp) + return 0 } -// UpdateUserSubscriptionsWithBodyWithResponse request with arbitrary body returning *UpdateUserSubscriptionsResponse -func (c *ClientWithResponses) UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { - rsp, err := c.UpdateUserSubscriptionsWithBody(ctx, projectID, userID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateUserSubscriptionsResponse(rsp) +type CreateListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *List + JSONDefault *Error } -func (c *ClientWithResponses) UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { - rsp, err := c.UpdateUserSubscriptions(ctx, projectID, userID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateUserSubscriptionsResponse(rsp) + return http.StatusText(0) } -// AuthCallbackWithBodyWithResponse request with arbitrary body returning *AuthCallbackResponse -func (c *ClientWithResponses) AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { - rsp, err := c.AuthCallbackWithBody(ctx, driver, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthCallbackResponse(rsp) + return 0 } -func (c *ClientWithResponses) AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { - rsp, err := c.AuthCallback(ctx, driver, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthCallbackResponse(rsp) +type DeleteListResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// GetAuthMethodsWithResponse request returning *GetAuthMethodsResponse -func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) { - rsp, err := c.GetAuthMethods(ctx, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetAuthMethodsResponse(rsp) + return http.StatusText(0) } -// AuthWebhookWithResponse request returning *AuthWebhookResponse -func (c *ClientWithResponses) AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) { - rsp, err := c.AuthWebhook(ctx, driver, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthWebhookResponse(rsp) + return 0 } -// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call -func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type GetListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *List + JSONDefault *Error +} - response := &DeleteOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// Status returns HTTPResponse.Status +func (r GetListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// StatusCode returns HTTPResponse.StatusCode +func (r GetListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UpdateListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *List + JSONDefault *Error } -// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call -func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type DuplicateListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *List + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r DuplicateListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call -func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type RecountListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON202 *List + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r RecountListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r RecountListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetListUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserList + JSONDefault *Error } -// ParseListAdminsResponse parses an HTTP response from a ListAdminsWithResponse call -func ParseListAdminsResponse(rsp *http.Response) (*ListAdminsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetListUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListAdminsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetListUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AdminList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type PreviewListUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserList + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r PreviewListUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r PreviewListUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ImportListUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ParseCreateAdminResponse parses an HTTP response from a CreateAdminWithResponse call -func ParseCreateAdminResponse(rsp *http.Response) (*CreateAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ImportListUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &CreateAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ImportListUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +type ListLocalesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Locale `json:"results"` + // Total Total number of items matching the filters + Total int `json:"total"` } - - return response, nil + JSONDefault *Error } -// ParseDeleteAdminResponse parses an HTTP response from a DeleteAdminWithResponse call -func ParseDeleteAdminResponse(rsp *http.Response) (*DeleteAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListLocalesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DeleteAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListLocalesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type CreateLocaleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Locale + JSONDefault *Error +} + +// Status returns HTTPResponse.Status +func (r CreateLocaleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r CreateLocaleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type DeleteLocaleResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ParseGetAdminResponse parses an HTTP response from a GetAdminWithResponse call -func ParseGetAdminResponse(rsp *http.Response) (*GetAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteLocaleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteLocaleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type GetLocaleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Locale + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r GetLocaleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseUpdateAdminResponse parses an HTTP response from a UpdateAdminWithResponse call -func ParseUpdateAdminResponse(rsp *http.Response) (*UpdateAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetLocaleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ListProvidersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProviderListResponse + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListProvidersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListProvidersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ListAllProvidersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Provider + JSONDefault *Error } -// ParseGetOrganizationIntegrationsResponse parses an HTTP response from a GetOrganizationIntegrationsWithResponse call -func ParseGetOrganizationIntegrationsResponse(rsp *http.Response) (*GetOrganizationIntegrationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAllProvidersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetOrganizationIntegrationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListAllProvidersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ListProviderMetaResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProviderMeta + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListProviderMetaResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListProviderMetaResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateProviderResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Provider + JSONDefault *Error } -// ParseWhoamiResponse parses an HTTP response from a WhoamiWithResponse call -func ParseWhoamiResponse(rsp *http.Response) (*WhoamiResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateProviderResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &WhoamiResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateProviderResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type GetProviderResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Provider + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetProviderResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetProviderResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UpdateProviderResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Provider + JSONDefault *Error } -// ParseGetProfileResponse parses an HTTP response from a GetProfileWithResponse call -func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateProviderResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetProfileResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProviderResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Admin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type DeleteProviderResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r DeleteProviderResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteProviderResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ListOrganizationEventSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EventListResponse + JSONDefault *Error } -// ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call -func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListOrganizationEventSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListProjectsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationEventSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil +type ListOrganizationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationList + JSONDefault *Error } -// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call -func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListOrganizationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &CreateProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Project - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type UpsertOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r UpsertOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call -func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpsertOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &GetProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +type ListOrganizationSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Results []SchemaPath `json:"results"` } + JSONDefault *Error +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListOrganizationSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ListOrganizationMemberSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Results []SchemaPath `json:"results"` + } + JSONDefault *Error } -// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call -func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListOrganizationMemberSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UpdateProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationMemberSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type DeleteOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r DeleteOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization + JSONDefault *Error } -// ParseListProjectAdminsResponse parses an HTTP response from a ListProjectAdminsWithResponse call -func ParseListProjectAdminsResponse(rsp *http.Response) (*ListProjectAdminsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListProjectAdminsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdminList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type UpdateOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r UpdateOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetOrganizationEventsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationEventList + JSONDefault *Error } -// ParseDeleteProjectAdminResponse parses an HTTP response from a DeleteProjectAdminWithResponse call -func ParseDeleteProjectAdminResponse(rsp *http.Response) (*DeleteProjectAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetOrganizationEventsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DeleteProjectAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationEventsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type ListOrganizationMembersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationMemberList + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r ListOrganizationMembersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseGetProjectAdminResponse parses an HTTP response from a GetProjectAdminWithResponse call -func ParseGetProjectAdminResponse(rsp *http.Response) (*GetProjectAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetProjectAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationMembersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdmin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type AddOrganizationMemberResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r AddOrganizationMemberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r AddOrganizationMemberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type RemoveOrganizationMemberResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ParseUpdateProjectAdminResponse parses an HTTP response from a UpdateProjectAdminWithResponse call -func ParseUpdateProjectAdminResponse(rsp *http.Response) (*UpdateProjectAdminResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r RemoveOrganizationMemberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UpdateProjectAdminResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveOrganizationMemberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAdmin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ListUserEventSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EventListResponse + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListUserEventSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListUserEventSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ListUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserList + JSONDefault *Error } -// ParseListCampaignsResponse parses an HTTP response from a ListCampaignsWithResponse call -func ParseListCampaignsResponse(rsp *http.Response) (*ListCampaignsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListCampaignsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CampaignListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type IdentifyUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r IdentifyUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r IdentifyUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ImportUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ParseCreateCampaignResponse parses an HTTP response from a CreateCampaignWithResponse call -func ParseCreateCampaignResponse(rsp *http.Response) (*CreateCampaignResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ImportUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &CreateCampaignResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ImportUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Campaign - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +type ListUserSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Results []SchemaPath `json:"results"` } - - return response, nil + JSONDefault *Error } -// ParseDeleteCampaignResponse parses an HTTP response from a DeleteCampaignWithResponse call -func ParseDeleteCampaignResponse(rsp *http.Response) (*DeleteCampaignResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListUserSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DeleteCampaignResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListUserSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type DeleteUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r DeleteUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseGetCampaignResponse parses an HTTP response from a GetCampaignWithResponse call -func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &GetCampaignResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data Campaign `json:"data"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type GetUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UpdateUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error } -// ParseUpdateCampaignResponse parses an HTTP response from a UpdateCampaignWithResponse call -func ParseUpdateCampaignResponse(rsp *http.Response) (*UpdateCampaignResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UpdateCampaignResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Campaign - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type GetUserDevicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDeviceList + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetUserDevicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserDevicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type DeleteUserDeviceResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error } -// ParseDuplicateCampaignResponse parses an HTTP response from a DuplicateCampaignWithResponse call -func ParseDuplicateCampaignResponse(rsp *http.Response) (*DuplicateCampaignResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteUserDeviceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DuplicateCampaignResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserDeviceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Campaign - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +type GetUserEventsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserEventList + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetUserEventsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserEventsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetUserJourneysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserJourneyList + JSONDefault *Error } -// ParseCreateTemplateResponse parses an HTTP response from a CreateTemplateWithResponse call -func ParseCreateTemplateResponse(rsp *http.Response) (*CreateTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetUserJourneysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &CreateTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserJourneysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Template - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +type GetUserOrganizationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Limit int `json:"limit"` + Offset int `json:"offset"` + Results []Organization `json:"results"` + Total int `json:"total"` + } + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetUserOrganizationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserOrganizationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetUserSubscriptionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserSubscriptionList + JSONDefault *Error } -// ParseDeleteTemplateResponse parses an HTTP response from a DeleteTemplateWithResponse call -func ParseDeleteTemplateResponse(rsp *http.Response) (*DeleteTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetUserSubscriptionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DeleteTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserSubscriptionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type UpdateUserSubscriptionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r UpdateUserSubscriptionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call -func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserSubscriptionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data Template `json:"data"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ListSubscriptionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SubscriptionListResponse + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListSubscriptionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListSubscriptionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Subscription + JSONDefault *Error } -// ParseUpdateTemplateResponse parses an HTTP response from a UpdateTemplateWithResponse call -func ParseUpdateTemplateResponse(rsp *http.Response) (*UpdateTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UpdateTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Template - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type GetSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Subscription + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r GetSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r GetSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UpdateSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Subscription + JSONDefault *Error } -// ParseGetCampaignUsersResponse parses an HTTP response from a GetCampaignUsersWithResponse call -func ParseGetCampaignUsersResponse(rsp *http.Response) (*GetCampaignUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetCampaignUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data []CampaignUser `json:"data"` - Limit int `json:"limit"` - Offset int `json:"offset"` - Total int `json:"total"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ListTagsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TagListResponse + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r ListTagsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListTagsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateTagResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Tag + JSONDefault *Error } -// ParseListDocumentsResponse parses an HTTP response from a ListDocumentsWithResponse call -func ParseListDocumentsResponse(rsp *http.Response) (*ListDocumentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateTagResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListDocumentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTagResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DocumentListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type DeleteTagResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r DeleteTagResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTagResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetTagResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Tag + JSONDefault *Error } -// ParseUploadDocumentsResponse parses an HTTP response from a UploadDocumentsWithResponse call -func ParseUploadDocumentsResponse(rsp *http.Response) (*UploadDocumentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTagResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UploadDocumentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetTagResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - // Documents UUIDs of the uploaded documents - Documents []openapi_types.UUID `json:"documents"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +type UpdateTagResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Tag + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r UpdateTagResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTagResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type ListAdminsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AdminList + JSONDefault *Error } -// ParseDeleteDocumentResponse parses an HTTP response from a DeleteDocumentWithResponse call -func ParseDeleteDocumentResponse(rsp *http.Response) (*DeleteDocumentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAdminsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DeleteDocumentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ListAdminsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type CreateAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Admin + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r CreateAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseGetDocumentResponse parses an HTTP response from a GetDocumentWithResponse call -func ParseGetDocumentResponse(rsp *http.Response) (*GetDocumentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &GetDocumentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +type DeleteAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r DeleteAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error } -// ParseGetDocumentMetadataResponse parses an HTTP response from a GetDocumentMetadataWithResponse call -func ParseGetDocumentMetadataResponse(rsp *http.Response) (*GetDocumentMetadataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &GetDocumentMetadataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Document - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type UpdateAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r UpdateAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type WhoamiResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Admin + JSONDefault *Error } -// ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call -func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r WhoamiResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListEventsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r WhoamiResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EventListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type AuthCallbackResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// Status returns HTTPResponse.Status +func (r AuthCallbackResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r AuthCallbackResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetAuthMethodsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string + JSONDefault *Error } -// ParseListJourneysResponse parses an HTTP response from a ListJourneysWithResponse call -func ParseListJourneysResponse(rsp *http.Response) (*ListJourneysResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAuthMethodsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ListJourneysResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetAuthMethodsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +type AuthWebhookResponse struct { + Body []byte + HTTPResponse *http.Response + JSONDefault *Error +} +// Status returns HTTPResponse.Status +func (r AuthWebhookResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - return response, nil +// StatusCode returns HTTPResponse.StatusCode +func (r AuthWebhookResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// ParseCreateJourneyResponse parses an HTTP response from a CreateJourneyWithResponse call -func ParseCreateJourneyResponse(rsp *http.Response) (*CreateJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetProfileWithResponse request returning *GetProfileResponse +func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error) { + rsp, err := c.GetProfile(ctx, reqEditors...) if err != nil { return nil, err } + return ParseGetProfileResponse(rsp) +} - response := &CreateJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListProjectsWithResponse request returning *ListProjectsResponse +func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error) { + rsp, err := c.ListProjects(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListProjectsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse +func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { + rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateProjectResponse(rsp) } -// ParseDeleteJourneyResponse parses an HTTP response from a DeleteJourneyWithResponse call -func ParseDeleteJourneyResponse(rsp *http.Response) (*DeleteJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) { + rsp, err := c.CreateProject(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateProjectResponse(rsp) +} - response := &DeleteJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteProjectWithResponse request returning *DeleteProjectResponse +func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) { + rsp, err := c.DeleteProject(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteProjectResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetProjectWithResponse request returning *GetProjectResponse +func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { + rsp, err := c.GetProject(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetProjectResponse(rsp) } -// ParseGetJourneyResponse parses an HTTP response from a GetJourneyWithResponse call -func ParseGetJourneyResponse(rsp *http.Response) (*GetJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse +func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProjectWithBody(ctx, projectID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateProjectResponse(rsp) +} - response := &GetJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProject(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateProjectResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListActionsWithResponse request returning *ListActionsResponse +func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListActionsParams, reqEditors ...RequestEditorFn) (*ListActionsResponse, error) { + rsp, err := c.ListActions(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListActionsResponse(rsp) } -// ParseUpdateJourneyResponse parses an HTTP response from a UpdateJourneyWithResponse call -func ParseUpdateJourneyResponse(rsp *http.Response) (*UpdateJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateActionWithBodyWithResponse request with arbitrary body returning *CreateActionResponse +func (c *ClientWithResponses) CreateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) { + rsp, err := c.CreateActionWithBody(ctx, projectID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateActionResponse(rsp) +} - response := &UpdateJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateActionResponse, error) { + rsp, err := c.CreateAction(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateActionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListActionMetaWithResponse request returning *ListActionMetaResponse +func (c *ClientWithResponses) ListActionMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListActionMetaResponse, error) { + rsp, err := c.ListActionMeta(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListActionMetaResponse(rsp) } -// ParseDuplicateJourneyResponse parses an HTTP response from a DuplicateJourneyWithResponse call -func ParseDuplicateJourneyResponse(rsp *http.Response) (*DuplicateJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetActionPreviewWithResponse request returning *GetActionPreviewResponse +func (c *ClientWithResponses) GetActionPreviewWithResponse(ctx context.Context, projectID openapi_types.UUID, actionType string, reqEditors ...RequestEditorFn) (*GetActionPreviewResponse, error) { + rsp, err := c.GetActionPreview(ctx, projectID, actionType, reqEditors...) if err != nil { return nil, err } + return ParseGetActionPreviewResponse(rsp) +} - response := &DuplicateJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// TestActionWithBodyWithResponse request with arbitrary body returning *TestActionResponse +func (c *ClientWithResponses) TestActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionResponse, error) { + rsp, err := c.TestActionWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseTestActionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) TestActionWithResponse(ctx context.Context, projectID openapi_types.UUID, body TestActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionResponse, error) { + rsp, err := c.TestAction(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseTestActionResponse(rsp) } -// ParseListJourneyEntrancesResponse parses an HTTP response from a ListJourneyEntrancesWithResponse call -func ParseListJourneyEntrancesResponse(rsp *http.Response) (*ListJourneyEntrancesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteActionWithResponse request returning *DeleteActionResponse +func (c *ClientWithResponses) DeleteActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteActionResponse, error) { + rsp, err := c.DeleteAction(ctx, projectID, actionID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteActionResponse(rsp) +} - response := &ListJourneyEntrancesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetActionWithResponse request returning *GetActionResponse +func (c *ClientWithResponses) GetActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetActionResponse, error) { + rsp, err := c.GetAction(ctx, projectID, actionID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetActionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyUserEntranceListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// UpdateActionWithBodyWithResponse request with arbitrary body returning *UpdateActionResponse +func (c *ClientWithResponses) UpdateActionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) { + rsp, err := c.UpdateActionWithBody(ctx, projectID, actionID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateActionResponse(rsp) +} +func (c *ClientWithResponses) UpdateActionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, body UpdateActionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActionResponse, error) { + rsp, err := c.UpdateAction(ctx, projectID, actionID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateActionResponse(rsp) +} - return response, nil +// ListActionSchemasWithResponse request returning *ListActionSchemasResponse +func (c *ClientWithResponses) ListActionSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, reqEditors ...RequestEditorFn) (*ListActionSchemasResponse, error) { + rsp, err := c.ListActionSchemas(ctx, projectID, actionID, functionID, reqEditors...) + if err != nil { + return nil, err + } + return ParseListActionSchemasResponse(rsp) } -// ParsePublishJourneyResponse parses an HTTP response from a PublishJourneyWithResponse call -func ParsePublishJourneyResponse(rsp *http.Response) (*PublishJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// TestActionFunctionWithBodyWithResponse request with arbitrary body returning *TestActionFunctionResponse +func (c *ClientWithResponses) TestActionFunctionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) { + rsp, err := c.TestActionFunctionWithBody(ctx, projectID, actionID, functionID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseTestActionFunctionResponse(rsp) +} - response := &PublishJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) TestActionFunctionWithResponse(ctx context.Context, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string, body TestActionFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*TestActionFunctionResponse, error) { + rsp, err := c.TestActionFunction(ctx, projectID, actionID, functionID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseTestActionFunctionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListProjectAdminsWithResponse request returning *ListProjectAdminsResponse +func (c *ClientWithResponses) ListProjectAdminsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProjectAdminsParams, reqEditors ...RequestEditorFn) (*ListProjectAdminsResponse, error) { + rsp, err := c.ListProjectAdmins(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListProjectAdminsResponse(rsp) } -// ParseGetJourneyStepsResponse parses an HTTP response from a GetJourneyStepsWithResponse call -func ParseGetJourneyStepsResponse(rsp *http.Response) (*GetJourneyStepsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteProjectAdminWithResponse request returning *DeleteProjectAdminResponse +func (c *ClientWithResponses) DeleteProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProjectAdminResponse, error) { + rsp, err := c.DeleteProjectAdmin(ctx, projectID, adminID, reqEditors...) if err != nil { return nil, err } - - response := &GetJourneyStepsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyStepMap - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil + return ParseDeleteProjectAdminResponse(rsp) } -// ParseSetJourneyStepsResponse parses an HTTP response from a SetJourneyStepsWithResponse call -func ParseSetJourneyStepsResponse(rsp *http.Response) (*SetJourneyStepsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetProjectAdminWithResponse request returning *GetProjectAdminResponse +func (c *ClientWithResponses) GetProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectAdminResponse, error) { + rsp, err := c.GetProjectAdmin(ctx, projectID, adminID, reqEditors...) if err != nil { return nil, err } + return ParseGetProjectAdminResponse(rsp) +} - response := &SetJourneyStepsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateProjectAdminWithBodyWithResponse request with arbitrary body returning *UpdateProjectAdminResponse +func (c *ClientWithResponses) UpdateProjectAdminWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { + rsp, err := c.UpdateProjectAdminWithBody(ctx, projectID, adminID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateProjectAdminResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyStepMap - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) UpdateProjectAdminWithResponse(ctx context.Context, projectID openapi_types.UUID, adminID openapi_types.UUID, body UpdateProjectAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAdminResponse, error) { + rsp, err := c.UpdateProjectAdmin(ctx, projectID, adminID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateProjectAdminResponse(rsp) } -// ParseListJourneyStepUsersResponse parses an HTTP response from a ListJourneyStepUsersWithResponse call -func ParseListJourneyStepUsersResponse(rsp *http.Response) (*ListJourneyStepUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListCampaignsWithResponse request returning *ListCampaignsResponse +func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListCampaignsParams, reqEditors ...RequestEditorFn) (*ListCampaignsResponse, error) { + rsp, err := c.ListCampaigns(ctx, projectID, params, reqEditors...) if err != nil { return nil, err } + return ParseListCampaignsResponse(rsp) +} - response := &ListJourneyStepUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateCampaignWithBodyWithResponse request with arbitrary body returning *CreateCampaignResponse +func (c *ClientWithResponses) CreateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { + rsp, err := c.CreateCampaignWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateCampaignResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest JourneyUserStepListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) CreateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCampaignResponse, error) { + rsp, err := c.CreateCampaign(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateCampaignResponse(rsp) } -// ParseRemoveUserFromJourneyStepResponse parses an HTTP response from a RemoveUserFromJourneyStepWithResponse call -func ParseRemoveUserFromJourneyStepResponse(rsp *http.Response) (*RemoveUserFromJourneyStepResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteCampaignWithResponse request returning *DeleteCampaignResponse +func (c *ClientWithResponses) DeleteCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCampaignResponse, error) { + rsp, err := c.DeleteCampaign(ctx, projectID, campaignID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteCampaignResponse(rsp) +} - response := &RemoveUserFromJourneyStepResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetCampaignWithResponse request returning *GetCampaignResponse +func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCampaignResponse, error) { + rsp, err := c.GetCampaign(ctx, projectID, campaignID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetCampaignResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// UpdateCampaignWithBodyWithResponse request with arbitrary body returning *UpdateCampaignResponse +func (c *ClientWithResponses) UpdateCampaignWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { + rsp, err := c.UpdateCampaignWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateCampaignResponse(rsp) } -// ParseSkipJourneyStepDelayResponse parses an HTTP response from a SkipJourneyStepDelayWithResponse call -func ParseSkipJourneyStepDelayResponse(rsp *http.Response) (*SkipJourneyStepDelayResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpdateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body UpdateCampaignJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCampaignResponse, error) { + rsp, err := c.UpdateCampaign(ctx, projectID, campaignID, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateCampaignResponse(rsp) +} - response := &SkipJourneyStepDelayResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DuplicateCampaignWithResponse request returning *DuplicateCampaignResponse +func (c *ClientWithResponses) DuplicateCampaignWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateCampaignResponse, error) { + rsp, err := c.DuplicateCampaign(ctx, projectID, campaignID, reqEditors...) + if err != nil { + return nil, err } + return ParseDuplicateCampaignResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// CreateTemplateWithBodyWithResponse request with arbitrary body returning *CreateTemplateResponse +func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { + rsp, err := c.CreateTemplateWithBody(ctx, projectID, campaignID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateTemplateResponse(rsp) } -// ParseTriggerUserToJourneyStepResponse parses an HTTP response from a TriggerUserToJourneyStepWithResponse call -func ParseTriggerUserToJourneyStepResponse(rsp *http.Response) (*TriggerUserToJourneyStepResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResponse, error) { + rsp, err := c.CreateTemplate(ctx, projectID, campaignID, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateTemplateResponse(rsp) +} - response := &TriggerUserToJourneyStepResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteTemplateWithResponse request returning *DeleteTemplateResponse +func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateResponse, error) { + rsp, err := c.DeleteTemplate(ctx, projectID, campaignID, templateID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteTemplateResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest JourneyUserStep - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetTemplateWithResponse request returning *GetTemplateResponse +func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) { + rsp, err := c.GetTemplate(ctx, projectID, campaignID, templateID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetTemplateResponse(rsp) } -// ParseRemoveUserFromJourneyResponse parses an HTTP response from a RemoveUserFromJourneyWithResponse call -func ParseRemoveUserFromJourneyResponse(rsp *http.Response) (*RemoveUserFromJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateTemplateWithBodyWithResponse request with arbitrary body returning *UpdateTemplateResponse +func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { + rsp, err := c.UpdateTemplateWithBody(ctx, projectID, campaignID, templateID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateTemplateResponse(rsp) +} - response := &RemoveUserFromJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResponse, error) { + rsp, err := c.UpdateTemplate(ctx, projectID, campaignID, templateID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateTemplateResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetCampaignUsersWithResponse request returning *GetCampaignUsersResponse +func (c *ClientWithResponses) GetCampaignUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, campaignID openapi_types.UUID, params *GetCampaignUsersParams, reqEditors ...RequestEditorFn) (*GetCampaignUsersResponse, error) { + rsp, err := c.GetCampaignUsers(ctx, projectID, campaignID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetCampaignUsersResponse(rsp) } -// ParseVersionJourneyResponse parses an HTTP response from a VersionJourneyWithResponse call -func ParseVersionJourneyResponse(rsp *http.Response) (*VersionJourneyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListDocumentsWithResponse request returning *ListDocumentsResponse +func (c *ClientWithResponses) ListDocumentsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListDocumentsParams, reqEditors ...RequestEditorFn) (*ListDocumentsResponse, error) { + rsp, err := c.ListDocuments(ctx, projectID, params, reqEditors...) if err != nil { return nil, err } + return ParseListDocumentsResponse(rsp) +} - response := &VersionJourneyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UploadDocumentsWithBodyWithResponse request with arbitrary body returning *UploadDocumentsResponse +func (c *ClientWithResponses) UploadDocumentsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentsResponse, error) { + rsp, err := c.UploadDocumentsWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUploadDocumentsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Journey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteDocumentWithResponse request returning *DeleteDocumentResponse +func (c *ClientWithResponses) DeleteDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDocumentResponse, error) { + rsp, err := c.DeleteDocument(ctx, projectID, documentID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteDocumentResponse(rsp) } -// ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call -func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetDocumentWithResponse request returning *GetDocumentResponse +func (c *ClientWithResponses) GetDocumentWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentResponse, error) { + rsp, err := c.GetDocument(ctx, projectID, documentID, reqEditors...) if err != nil { return nil, err } + return ParseGetDocumentResponse(rsp) +} - response := &ListApiKeysResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetDocumentMetadataWithResponse request returning *GetDocumentMetadataResponse +func (c *ClientWithResponses) GetDocumentMetadataWithResponse(ctx context.Context, projectID openapi_types.UUID, documentID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDocumentMetadataResponse, error) { + rsp, err := c.GetDocumentMetadata(ctx, projectID, documentID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetDocumentMetadataResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKeyListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListJourneysWithResponse request returning *ListJourneysResponse +func (c *ClientWithResponses) ListJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListJourneysParams, reqEditors ...RequestEditorFn) (*ListJourneysResponse, error) { + rsp, err := c.ListJourneys(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListJourneysResponse(rsp) } -// ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call -func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateJourneyWithBodyWithResponse request with arbitrary body returning *CreateJourneyResponse +func (c *ClientWithResponses) CreateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { + rsp, err := c.CreateJourneyWithBody(ctx, projectID, params, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateJourneyResponse(rsp) +} - response := &CreateApiKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, params *CreateJourneyParams, body CreateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJourneyResponse, error) { + rsp, err := c.CreateJourney(ctx, projectID, params, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateJourneyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ApiKey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteJourneyWithResponse request returning *DeleteJourneyResponse +func (c *ClientWithResponses) DeleteJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteJourneyResponse, error) { + rsp, err := c.DeleteJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteJourneyResponse(rsp) } -// ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call -func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetJourneyWithResponse request returning *GetJourneyResponse +func (c *ClientWithResponses) GetJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyResponse, error) { + rsp, err := c.GetJourney(ctx, projectID, journeyID, reqEditors...) if err != nil { return nil, err } + return ParseGetJourneyResponse(rsp) +} - response := &DeleteApiKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateJourneyWithBodyWithResponse request with arbitrary body returning *UpdateJourneyResponse +func (c *ClientWithResponses) UpdateJourneyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { + rsp, err := c.UpdateJourneyWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateJourneyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) UpdateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body UpdateJourneyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJourneyResponse, error) { + rsp, err := c.UpdateJourney(ctx, projectID, journeyID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateJourneyResponse(rsp) } -// ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call -func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DuplicateJourneyWithResponse request returning *DuplicateJourneyResponse +func (c *ClientWithResponses) DuplicateJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateJourneyResponse, error) { + rsp, err := c.DuplicateJourney(ctx, projectID, journeyID, reqEditors...) if err != nil { return nil, err } + return ParseDuplicateJourneyResponse(rsp) +} - response := &GetApiKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListJourneyEntrancesWithResponse request returning *ListJourneyEntrancesResponse +func (c *ClientWithResponses) ListJourneyEntrancesWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, params *ListJourneyEntrancesParams, reqEditors ...RequestEditorFn) (*ListJourneyEntrancesResponse, error) { + rsp, err := c.ListJourneyEntrances(ctx, projectID, journeyID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListJourneyEntrancesResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// PublishJourneyWithResponse request returning *PublishJourneyResponse +func (c *ClientWithResponses) PublishJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*PublishJourneyResponse, error) { + rsp, err := c.PublishJourney(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err + } + return ParsePublishJourneyResponse(rsp) +} +// GetJourneyStepsWithResponse request returning *GetJourneyStepsResponse +func (c *ClientWithResponses) GetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJourneyStepsResponse, error) { + rsp, err := c.GetJourneySteps(ctx, projectID, journeyID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetJourneyStepsResponse(rsp) +} - return response, nil +// SetJourneyStepsWithBodyWithResponse request with arbitrary body returning *SetJourneyStepsResponse +func (c *ClientWithResponses) SetJourneyStepsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { + rsp, err := c.SetJourneyStepsWithBody(ctx, projectID, journeyID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetJourneyStepsResponse(rsp) } -// ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call -func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) SetJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, body SetJourneyStepsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetJourneyStepsResponse, error) { + rsp, err := c.SetJourneySteps(ctx, projectID, journeyID, body, reqEditors...) if err != nil { return nil, err } + return ParseSetJourneyStepsResponse(rsp) +} - response := &UpdateApiKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListJourneyStepUsersWithResponse request returning *ListJourneyStepUsersResponse +func (c *ClientWithResponses) ListJourneyStepUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params *ListJourneyStepUsersParams, reqEditors ...RequestEditorFn) (*ListJourneyStepUsersResponse, error) { + rsp, err := c.ListJourneyStepUsers(ctx, projectID, journeyID, stepID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListJourneyStepUsersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApiKey - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// RemoveUserFromJourneyStepWithResponse request returning *RemoveUserFromJourneyStepResponse +func (c *ClientWithResponses) RemoveUserFromJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyStepResponse, error) { + rsp, err := c.RemoveUserFromJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseRemoveUserFromJourneyStepResponse(rsp) } -// ParseListListsResponse parses an HTTP response from a ListListsWithResponse call -func ParseListListsResponse(rsp *http.Response) (*ListListsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// SkipJourneyStepDelayWithResponse request returning *SkipJourneyStepDelayResponse +func (c *ClientWithResponses) SkipJourneyStepDelayWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*SkipJourneyStepDelayResponse, error) { + rsp, err := c.SkipJourneyStepDelay(ctx, projectID, journeyID, stepID, userID, reqEditors...) if err != nil { return nil, err } + return ParseSkipJourneyStepDelayResponse(rsp) +} - response := &ListListsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// TriggerUserToJourneyStepWithResponse request returning *TriggerUserToJourneyStepResponse +func (c *ClientWithResponses) TriggerUserToJourneyStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*TriggerUserToJourneyStepResponse, error) { + rsp, err := c.TriggerUserToJourneyStep(ctx, projectID, journeyID, stepID, userID, reqEditors...) + if err != nil { + return nil, err } + return ParseTriggerUserToJourneyStepResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// RemoveUserFromJourneyWithResponse request returning *RemoveUserFromJourneyResponse +func (c *ClientWithResponses) RemoveUserFromJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserFromJourneyResponse, error) { + rsp, err := c.RemoveUserFromJourney(ctx, projectID, journeyID, userID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseRemoveUserFromJourneyResponse(rsp) } -// ParseCreateListResponse parses an HTTP response from a CreateListWithResponse call -func ParseCreateListResponse(rsp *http.Response) (*CreateListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// StreamUserJourneyStepsWithResponse request returning *StreamUserJourneyStepsResponse +func (c *ClientWithResponses) StreamUserJourneyStepsWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamUserJourneyStepsResponse, error) { + rsp, err := c.StreamUserJourneySteps(ctx, projectID, journeyID, userID, reqEditors...) if err != nil { return nil, err } + return ParseStreamUserJourneyStepsResponse(rsp) +} - response := &CreateListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// TriggerUserWithBodyWithResponse request with arbitrary body returning *TriggerUserResponse +func (c *ClientWithResponses) TriggerUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) { + rsp, err := c.TriggerUserWithBody(ctx, projectID, journeyID, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseTriggerUserResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) TriggerUserWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body TriggerUserJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerUserResponse, error) { + rsp, err := c.TriggerUser(ctx, projectID, journeyID, userID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseTriggerUserResponse(rsp) } -// ParseDeleteListResponse parses an HTTP response from a DeleteListWithResponse call -func ParseDeleteListResponse(rsp *http.Response) (*DeleteListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AdvanceUserStepWithBodyWithResponse request with arbitrary body returning *AdvanceUserStepResponse +func (c *ClientWithResponses) AdvanceUserStepWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) { + rsp, err := c.AdvanceUserStepWithBody(ctx, projectID, journeyID, userID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseAdvanceUserStepResponse(rsp) +} - response := &DeleteListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) AdvanceUserStepWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, body AdvanceUserStepJSONRequestBody, reqEditors ...RequestEditorFn) (*AdvanceUserStepResponse, error) { + rsp, err := c.AdvanceUserStep(ctx, projectID, journeyID, userID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseAdvanceUserStepResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetUserJourneyStateWithResponse request returning *GetUserJourneyStateResponse +func (c *ClientWithResponses) GetUserJourneyStateWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserJourneyStateResponse, error) { + rsp, err := c.GetUserJourneyState(ctx, projectID, journeyID, userID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetUserJourneyStateResponse(rsp) } -// ParseGetListResponse parses an HTTP response from a GetListWithResponse call -func ParseGetListResponse(rsp *http.Response) (*GetListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// VersionJourneyWithResponse request returning *VersionJourneyResponse +func (c *ClientWithResponses) VersionJourneyWithResponse(ctx context.Context, projectID openapi_types.UUID, journeyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*VersionJourneyResponse, error) { + rsp, err := c.VersionJourney(ctx, projectID, journeyID, reqEditors...) if err != nil { return nil, err } + return ParseVersionJourneyResponse(rsp) +} - response := &GetListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListApiKeysWithResponse request returning *ListApiKeysResponse +func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error) { + rsp, err := c.ListApiKeys(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListApiKeysResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse +func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKeyWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateApiKeyResponse(rsp) } -// ParseUpdateListResponse parses an HTTP response from a UpdateListWithResponse call -func ParseUpdateListResponse(rsp *http.Response) (*UpdateListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKey(ctx, projectID, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateApiKeyResponse(rsp) +} - response := &UpdateListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse +func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { + rsp, err := c.DeleteApiKey(ctx, projectID, keyID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteApiKeyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetApiKeyWithResponse request returning *GetApiKeyResponse +func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) { + rsp, err := c.GetApiKey(ctx, projectID, keyID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetApiKeyResponse(rsp) } -// ParseDuplicateListResponse parses an HTTP response from a DuplicateListWithResponse call -func ParseDuplicateListResponse(rsp *http.Response) (*DuplicateListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse +func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKeyWithBody(ctx, projectID, keyID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateApiKeyResponse(rsp) +} - response := &DuplicateListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, projectID openapi_types.UUID, keyID openapi_types.UUID, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKey(ctx, projectID, keyID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateApiKeyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListListsWithResponse request returning *ListListsResponse +func (c *ClientWithResponses) ListListsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListListsParams, reqEditors ...RequestEditorFn) (*ListListsResponse, error) { + rsp, err := c.ListLists(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListListsResponse(rsp) } -// ParseRecountListResponse parses an HTTP response from a RecountListWithResponse call -func ParseRecountListResponse(rsp *http.Response) (*RecountListResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateListWithBodyWithResponse request with arbitrary body returning *CreateListResponse +func (c *ClientWithResponses) CreateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { + rsp, err := c.CreateListWithBody(ctx, projectID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateListResponse(rsp) +} - response := &RecountListResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateListWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateListResponse, error) { + rsp, err := c.CreateList(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateListResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest List - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON202 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteListWithResponse request returning *DeleteListResponse +func (c *ClientWithResponses) DeleteListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteListResponse, error) { + rsp, err := c.DeleteList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteListResponse(rsp) } -// ParseGetListUsersResponse parses an HTTP response from a GetListUsersWithResponse call -func ParseGetListUsersResponse(rsp *http.Response) (*GetListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetListWithResponse request returning *GetListResponse +func (c *ClientWithResponses) GetListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetListResponse, error) { + rsp, err := c.GetList(ctx, projectID, listID, reqEditors...) if err != nil { return nil, err } + return ParseGetListResponse(rsp) +} - response := &GetListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateListWithBodyWithResponse request with arbitrary body returning *UpdateListResponse +func (c *ClientWithResponses) UpdateListWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { + rsp, err := c.UpdateListWithBody(ctx, projectID, listID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateListResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) UpdateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, body UpdateListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateListResponse, error) { + rsp, err := c.UpdateList(ctx, projectID, listID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateListResponse(rsp) } -// ParseImportListUsersResponse parses an HTTP response from a ImportListUsersWithResponse call -func ParseImportListUsersResponse(rsp *http.Response) (*ImportListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DuplicateListWithResponse request returning *DuplicateListResponse +func (c *ClientWithResponses) DuplicateListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DuplicateListResponse, error) { + rsp, err := c.DuplicateList(ctx, projectID, listID, reqEditors...) if err != nil { return nil, err } + return ParseDuplicateListResponse(rsp) +} - response := &ImportListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// RecountListWithResponse request returning *RecountListResponse +func (c *ClientWithResponses) RecountListWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RecountListResponse, error) { + rsp, err := c.RecountList(ctx, projectID, listID, reqEditors...) + if err != nil { + return nil, err } + return ParseRecountListResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetListUsersWithResponse request returning *GetListUsersResponse +func (c *ClientWithResponses) GetListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *GetListUsersParams, reqEditors ...RequestEditorFn) (*GetListUsersResponse, error) { + rsp, err := c.GetListUsers(ctx, projectID, listID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetListUsersResponse(rsp) } -// ParseListLocalesResponse parses an HTTP response from a ListLocalesWithResponse call -func ParseListLocalesResponse(rsp *http.Response) (*ListLocalesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// PreviewListUsersWithResponse request returning *PreviewListUsersResponse +func (c *ClientWithResponses) PreviewListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, params *PreviewListUsersParams, reqEditors ...RequestEditorFn) (*PreviewListUsersResponse, error) { + rsp, err := c.PreviewListUsers(ctx, projectID, listID, params, reqEditors...) if err != nil { return nil, err } + return ParsePreviewListUsersResponse(rsp) +} - response := &ListLocalesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ImportListUsersWithBodyWithResponse request with arbitrary body returning *ImportListUsersResponse +func (c *ClientWithResponses) ImportListUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, listID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportListUsersResponse, error) { + rsp, err := c.ImportListUsersWithBody(ctx, projectID, listID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseImportListUsersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Limit Maximum number of items returned - Limit int `json:"limit"` - - // Offset Number of items skipped - Offset int `json:"offset"` - Results []Locale `json:"results"` - - // Total Total number of items matching the filters - Total int `json:"total"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListLocalesWithResponse request returning *ListLocalesResponse +func (c *ClientWithResponses) ListLocalesWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListLocalesParams, reqEditors ...RequestEditorFn) (*ListLocalesResponse, error) { + rsp, err := c.ListLocales(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListLocalesResponse(rsp) } -// ParseCreateLocaleResponse parses an HTTP response from a CreateLocaleWithResponse call -func ParseCreateLocaleResponse(rsp *http.Response) (*CreateLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateLocaleWithBodyWithResponse request with arbitrary body returning *CreateLocaleResponse +func (c *ClientWithResponses) CreateLocaleWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { + rsp, err := c.CreateLocaleWithBody(ctx, projectID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateLocaleResponse(rsp) +} - response := &CreateLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateLocaleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLocaleResponse, error) { + rsp, err := c.CreateLocale(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateLocaleResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Locale - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteLocaleWithResponse request returning *DeleteLocaleResponse +func (c *ClientWithResponses) DeleteLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLocaleResponse, error) { + rsp, err := c.DeleteLocale(ctx, projectID, localeID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteLocaleResponse(rsp) } -// ParseDeleteLocaleResponse parses an HTTP response from a DeleteLocaleWithResponse call -func ParseDeleteLocaleResponse(rsp *http.Response) (*DeleteLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetLocaleWithResponse request returning *GetLocaleResponse +func (c *ClientWithResponses) GetLocaleWithResponse(ctx context.Context, projectID openapi_types.UUID, localeID string, reqEditors ...RequestEditorFn) (*GetLocaleResponse, error) { + rsp, err := c.GetLocale(ctx, projectID, localeID, reqEditors...) if err != nil { return nil, err } + return ParseGetLocaleResponse(rsp) +} - response := &DeleteLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListProvidersWithResponse request returning *ListProvidersResponse +func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) { + rsp, err := c.ListProviders(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListProvidersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListAllProvidersWithResponse request returning *ListAllProvidersResponse +func (c *ClientWithResponses) ListAllProvidersWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error) { + rsp, err := c.ListAllProviders(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } + return ParseListAllProvidersResponse(rsp) +} - return response, nil +// ListProviderMetaWithResponse request returning *ListProviderMetaResponse +func (c *ClientWithResponses) ListProviderMetaWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListProviderMetaResponse, error) { + rsp, err := c.ListProviderMeta(ctx, projectID, reqEditors...) + if err != nil { + return nil, err + } + return ParseListProviderMetaResponse(rsp) } -// ParseGetLocaleResponse parses an HTTP response from a GetLocaleWithResponse call -func ParseGetLocaleResponse(rsp *http.Response) (*GetLocaleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateProviderWithBodyWithResponse request with arbitrary body returning *CreateProviderResponse +func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { + rsp, err := c.CreateProviderWithBody(ctx, projectID, group, pType, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateProviderResponse(rsp) +} - response := &GetLocaleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error) { + rsp, err := c.CreateProvider(ctx, projectID, group, pType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateProviderResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Locale - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetProviderWithResponse request returning *GetProviderResponse +func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) { + rsp, err := c.GetProvider(ctx, projectID, group, pType, providerID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetProviderResponse(rsp) } -// ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call -func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateProviderWithBodyWithResponse request with arbitrary body returning *UpdateProviderResponse +func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { + rsp, err := c.UpdateProviderWithBody(ctx, projectID, group, pType, providerID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateProviderResponse(rsp) +} - response := &ListProvidersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error) { + rsp, err := c.UpdateProvider(ctx, projectID, group, pType, providerID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateProviderResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProviderListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteProviderWithResponse request returning *DeleteProviderResponse +func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, projectID openapi_types.UUID, providerID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error) { + rsp, err := c.DeleteProvider(ctx, projectID, providerID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteProviderResponse(rsp) } -// ParseListAllProvidersResponse parses an HTTP response from a ListAllProvidersWithResponse call -func ParseListAllProvidersResponse(rsp *http.Response) (*ListAllProvidersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListOrganizationEventSchemasWithResponse request returning *ListOrganizationEventSchemasResponse +func (c *ClientWithResponses) ListOrganizationEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationEventSchemasResponse, error) { + rsp, err := c.ListOrganizationEventSchemas(ctx, projectID, reqEditors...) if err != nil { return nil, err } + return ParseListOrganizationEventSchemasResponse(rsp) +} - response := &ListAllProvidersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListOrganizationsWithResponse request returning *ListOrganizationsResponse +func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error) { + rsp, err := c.ListOrganizations(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListOrganizationsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// UpsertOrganizationWithBodyWithResponse request with arbitrary body returning *UpsertOrganizationResponse +func (c *ClientWithResponses) UpsertOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) { + rsp, err := c.UpsertOrganizationWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpsertOrganizationResponse(rsp) } -// ParseListProviderMetaResponse parses an HTTP response from a ListProviderMetaWithResponse call -func ParseListProviderMetaResponse(rsp *http.Response) (*ListProviderMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpsertOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, body UpsertOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertOrganizationResponse, error) { + rsp, err := c.UpsertOrganization(ctx, projectID, body, reqEditors...) if err != nil { return nil, err } + return ParseUpsertOrganizationResponse(rsp) +} - response := &ListProviderMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListOrganizationSchemasWithResponse request returning *ListOrganizationSchemasResponse +func (c *ClientWithResponses) ListOrganizationSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationSchemasResponse, error) { + rsp, err := c.ListOrganizationSchemas(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } + return ParseListOrganizationSchemasResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ProviderMeta - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListOrganizationMemberSchemasWithResponse request returning *ListOrganizationMemberSchemasResponse +func (c *ClientWithResponses) ListOrganizationMemberSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrganizationMemberSchemasResponse, error) { + rsp, err := c.ListOrganizationMemberSchemas(ctx, projectID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListOrganizationMemberSchemasResponse(rsp) } -// ParseCreateProviderResponse parses an HTTP response from a CreateProviderWithResponse call -func ParseCreateProviderResponse(rsp *http.Response) (*CreateProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse +func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) { + rsp, err := c.DeleteOrganization(ctx, projectID, organizationID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteOrganizationResponse(rsp) +} - response := &CreateProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetOrganizationWithResponse request returning *GetOrganizationResponse +func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) { + rsp, err := c.GetOrganization(ctx, projectID, organizationID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetOrganizationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse +func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganizationWithBody(ctx, projectID, organizationID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateOrganizationResponse(rsp) } -// ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call -func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganization(ctx, projectID, organizationID, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateOrganizationResponse(rsp) +} - response := &GetProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetOrganizationEventsWithResponse request returning *GetOrganizationEventsResponse +func (c *ClientWithResponses) GetOrganizationEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *GetOrganizationEventsParams, reqEditors ...RequestEditorFn) (*GetOrganizationEventsResponse, error) { + rsp, err := c.GetOrganizationEvents(ctx, projectID, organizationID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetOrganizationEventsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ListOrganizationMembersWithResponse request returning *ListOrganizationMembersResponse +func (c *ClientWithResponses) ListOrganizationMembersWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error) { + rsp, err := c.ListOrganizationMembers(ctx, projectID, organizationID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListOrganizationMembersResponse(rsp) } -// ParseUpdateProviderResponse parses an HTTP response from a UpdateProviderWithResponse call -func ParseUpdateProviderResponse(rsp *http.Response) (*UpdateProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AddOrganizationMemberWithBodyWithResponse request with arbitrary body returning *AddOrganizationMemberResponse +func (c *ClientWithResponses) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) { + rsp, err := c.AddOrganizationMemberWithBody(ctx, projectID, organizationID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseAddOrganizationMemberResponse(rsp) +} - response := &UpdateProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) AddOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error) { + rsp, err := c.AddOrganizationMember(ctx, projectID, organizationID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseAddOrganizationMemberResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Provider - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// RemoveOrganizationMemberWithResponse request returning *RemoveOrganizationMemberResponse +func (c *ClientWithResponses) RemoveOrganizationMemberWithResponse(ctx context.Context, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveOrganizationMemberResponse, error) { + rsp, err := c.RemoveOrganizationMember(ctx, projectID, organizationID, userID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseRemoveOrganizationMemberResponse(rsp) } -// ParseDeleteProviderResponse parses an HTTP response from a DeleteProviderWithResponse call -func ParseDeleteProviderResponse(rsp *http.Response) (*DeleteProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListUserEventSchemasWithResponse request returning *ListUserEventSchemasResponse +func (c *ClientWithResponses) ListUserEventSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserEventSchemasResponse, error) { + rsp, err := c.ListUserEventSchemas(ctx, projectID, reqEditors...) if err != nil { return nil, err } + return ParseListUserEventSchemasResponse(rsp) +} - response := &DeleteProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListUsersWithResponse request returning *ListUsersResponse +func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) { + rsp, err := c.ListUsers(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListUsersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// IdentifyUserWithBodyWithResponse request with arbitrary body returning *IdentifyUserResponse +func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { + rsp, err := c.IdentifyUserWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseIdentifyUserResponse(rsp) } -// ParseListSubscriptionsResponse parses an HTTP response from a ListSubscriptionsWithResponse call -func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, projectID openapi_types.UUID, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error) { + rsp, err := c.IdentifyUser(ctx, projectID, body, reqEditors...) if err != nil { return nil, err } + return ParseIdentifyUserResponse(rsp) +} - response := &ListSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SubscriptionListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// ImportUsersWithBodyWithResponse request with arbitrary body returning *ImportUsersResponse +func (c *ClientWithResponses) ImportUsersWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportUsersResponse, error) { + rsp, err := c.ImportUsersWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseImportUsersResponse(rsp) } -// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call -func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListUserSchemasWithResponse request returning *ListUserSchemasResponse +func (c *ClientWithResponses) ListUserSchemasWithResponse(ctx context.Context, projectID openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserSchemasResponse, error) { + rsp, err := c.ListUserSchemas(ctx, projectID, reqEditors...) if err != nil { return nil, err } - - response := &CreateSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil + return ParseListUserSchemasResponse(rsp) } -// ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call -func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteUserWithResponse request returning *DeleteUserResponse +func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUser(ctx, projectID, userID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteUserResponse(rsp) +} - response := &GetSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, projectID, userID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetUserResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse +func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUserWithBody(ctx, projectID, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateUserResponse(rsp) } -// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call -func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUser(ctx, projectID, userID, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateUserResponse(rsp) +} - response := &UpdateSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetUserDevicesWithResponse request returning *GetUserDevicesResponse +func (c *ClientWithResponses) GetUserDevicesWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserDevicesResponse, error) { + rsp, err := c.GetUserDevices(ctx, projectID, userID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetUserDevicesResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Subscription - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// DeleteUserDeviceWithResponse request returning *DeleteUserDeviceResponse +func (c *ClientWithResponses) DeleteUserDeviceWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserDeviceResponse, error) { + rsp, err := c.DeleteUserDevice(ctx, projectID, userID, deviceID, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteUserDeviceResponse(rsp) } -// ParseListTagsResponse parses an HTTP response from a ListTagsWithResponse call -func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetUserEventsWithResponse request returning *GetUserEventsResponse +func (c *ClientWithResponses) GetUserEventsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserEventsParams, reqEditors ...RequestEditorFn) (*GetUserEventsResponse, error) { + rsp, err := c.GetUserEvents(ctx, projectID, userID, params, reqEditors...) if err != nil { return nil, err } + return ParseGetUserEventsResponse(rsp) +} - response := &ListTagsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetUserJourneysWithResponse request returning *GetUserJourneysResponse +func (c *ClientWithResponses) GetUserJourneysWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserJourneysParams, reqEditors ...RequestEditorFn) (*GetUserJourneysResponse, error) { + rsp, err := c.GetUserJourneys(ctx, projectID, userID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetUserJourneysResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TagListResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +// GetUserOrganizationsWithResponse request returning *GetUserOrganizationsResponse +func (c *ClientWithResponses) GetUserOrganizationsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserOrganizationsParams, reqEditors ...RequestEditorFn) (*GetUserOrganizationsResponse, error) { + rsp, err := c.GetUserOrganizations(ctx, projectID, userID, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetUserOrganizationsResponse(rsp) } -// ParseCreateTagResponse parses an HTTP response from a CreateTagWithResponse call -func ParseCreateTagResponse(rsp *http.Response) (*CreateTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetUserSubscriptionsWithResponse request returning *GetUserSubscriptionsResponse +func (c *ClientWithResponses) GetUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, params *GetUserSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetUserSubscriptionsResponse, error) { + rsp, err := c.GetUserSubscriptions(ctx, projectID, userID, params, reqEditors...) if err != nil { return nil, err } + return ParseGetUserSubscriptionsResponse(rsp) +} - response := &CreateTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateUserSubscriptionsWithBodyWithResponse request with arbitrary body returning *UpdateUserSubscriptionsResponse +func (c *ClientWithResponses) UpdateUserSubscriptionsWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { + rsp, err := c.UpdateUserSubscriptionsWithBody(ctx, projectID, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateUserSubscriptionsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Tag - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) UpdateUserSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, userID openapi_types.UUID, body UpdateUserSubscriptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSubscriptionsResponse, error) { + rsp, err := c.UpdateUserSubscriptions(ctx, projectID, userID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateUserSubscriptionsResponse(rsp) } -// ParseDeleteTagResponse parses an HTTP response from a DeleteTagWithResponse call -func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListSubscriptionsWithResponse request returning *ListSubscriptionsResponse +func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResponse, error) { + rsp, err := c.ListSubscriptions(ctx, projectID, params, reqEditors...) if err != nil { return nil, err } + return ParseListSubscriptionsResponse(rsp) +} - response := &DeleteTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse +func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscriptionWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateSubscriptionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - +func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscription(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateSubscriptionResponse(rsp) } -// ParseGetTagResponse parses an HTTP response from a GetTagWithResponse call -func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetSubscriptionWithResponse request returning *GetSubscriptionResponse +func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) { + rsp, err := c.GetSubscription(ctx, projectID, subscriptionID, reqEditors...) if err != nil { return nil, err } + return ParseGetSubscriptionResponse(rsp) +} - response := &GetTagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse +func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscriptionWithBody(ctx, projectID, subscriptionID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSubscriptionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Tag - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, projectID openapi_types.UUID, subscriptionID openapi_types.UUID, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscription(ctx, projectID, subscriptionID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSubscriptionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest +// ListTagsWithResponse request returning *ListTagsResponse +func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, projectID openapi_types.UUID, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error) { + rsp, err := c.ListTags(ctx, projectID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListTagsResponse(rsp) +} +// CreateTagWithBodyWithResponse request with arbitrary body returning *CreateTagResponse +func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { + rsp, err := c.CreateTagWithBody(ctx, projectID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateTagResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error) { + rsp, err := c.CreateTag(ctx, projectID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTagResponse(rsp) } -// ParseUpdateTagResponse parses an HTTP response from a UpdateTagWithResponse call -func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error) { +// DeleteTagWithResponse request returning *DeleteTagResponse +func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error) { + rsp, err := c.DeleteTag(ctx, projectID, tagID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteTagResponse(rsp) +} + +// GetTagWithResponse request returning *GetTagResponse +func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTagResponse, error) { + rsp, err := c.GetTag(ctx, projectID, tagID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagResponse(rsp) +} + +// UpdateTagWithBodyWithResponse request with arbitrary body returning *UpdateTagResponse +func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { + rsp, err := c.UpdateTagWithBody(ctx, projectID, tagID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTagResponse(rsp) +} + +func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, projectID openapi_types.UUID, tagID openapi_types.UUID, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error) { + rsp, err := c.UpdateTag(ctx, projectID, tagID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTagResponse(rsp) +} + +// ListAdminsWithResponse request returning *ListAdminsResponse +func (c *ClientWithResponses) ListAdminsWithResponse(ctx context.Context, params *ListAdminsParams, reqEditors ...RequestEditorFn) (*ListAdminsResponse, error) { + rsp, err := c.ListAdmins(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAdminsResponse(rsp) +} + +// CreateAdminWithBodyWithResponse request with arbitrary body returning *CreateAdminResponse +func (c *ClientWithResponses) CreateAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { + rsp, err := c.CreateAdminWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAdminResponse(rsp) +} + +func (c *ClientWithResponses) CreateAdminWithResponse(ctx context.Context, body CreateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdminResponse, error) { + rsp, err := c.CreateAdmin(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAdminResponse(rsp) +} + +// DeleteAdminWithResponse request returning *DeleteAdminResponse +func (c *ClientWithResponses) DeleteAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminResponse, error) { + rsp, err := c.DeleteAdmin(ctx, adminID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAdminResponse(rsp) +} + +// GetAdminWithResponse request returning *GetAdminResponse +func (c *ClientWithResponses) GetAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminResponse, error) { + rsp, err := c.GetAdmin(ctx, adminID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAdminResponse(rsp) +} + +// UpdateAdminWithBodyWithResponse request with arbitrary body returning *UpdateAdminResponse +func (c *ClientWithResponses) UpdateAdminWithBodyWithResponse(ctx context.Context, adminID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { + rsp, err := c.UpdateAdminWithBody(ctx, adminID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAdminResponse(rsp) +} + +func (c *ClientWithResponses) UpdateAdminWithResponse(ctx context.Context, adminID openapi_types.UUID, body UpdateAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminResponse, error) { + rsp, err := c.UpdateAdmin(ctx, adminID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAdminResponse(rsp) +} + +// WhoamiWithResponse request returning *WhoamiResponse +func (c *ClientWithResponses) WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error) { + rsp, err := c.Whoami(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseWhoamiResponse(rsp) +} + +// AuthCallbackWithBodyWithResponse request with arbitrary body returning *AuthCallbackResponse +func (c *ClientWithResponses) AuthCallbackWithBodyWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { + rsp, err := c.AuthCallbackWithBody(ctx, driver, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthCallbackResponse(rsp) +} + +func (c *ClientWithResponses) AuthCallbackWithResponse(ctx context.Context, driver AuthCallbackParamsDriver, body AuthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCallbackResponse, error) { + rsp, err := c.AuthCallback(ctx, driver, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthCallbackResponse(rsp) +} + +// GetAuthMethodsWithResponse request returning *GetAuthMethodsResponse +func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthMethodsResponse, error) { + rsp, err := c.GetAuthMethods(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAuthMethodsResponse(rsp) +} + +// AuthWebhookWithResponse request returning *AuthWebhookResponse +func (c *ClientWithResponses) AuthWebhookWithResponse(ctx context.Context, driver AuthWebhookParamsDriver, reqEditors ...RequestEditorFn) (*AuthWebhookResponse, error) { + rsp, err := c.AuthWebhook(ctx, driver, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthWebhookResponse(rsp) +} + +// ParseGetProfileResponse parses an HTTP response from a GetProfileWithResponse call +func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTagResponse{ + response := &GetProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Tag + var dest Admin if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15232,22 +16012,22 @@ func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error) { return response, nil } -// ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call -func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { +// ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call +func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListUsersResponse{ + response := &ListProjectsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserList + var dest ProjectList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15265,26 +16045,26 @@ func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { return response, nil } -// ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call -func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error) { +// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call +func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &IdentifyUserResponse{ + response := &CreateProjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15298,15 +16078,15 @@ func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error return response, nil } -// ParseImportUsersResponse parses an HTTP response from a ImportUsersWithResponse call -func ParseImportUsersResponse(rsp *http.Response) (*ImportUsersResponse, error) { +// ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call +func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ImportUsersResponse{ + response := &DeleteProjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -15324,24 +16104,22 @@ func ParseImportUsersResponse(rsp *http.Response) (*ImportUsersResponse, error) return response, nil } -// ParseListUserSchemasResponse parses an HTTP response from a ListUserSchemasWithResponse call -func ParseListUserSchemasResponse(rsp *http.Response) (*ListUserSchemasResponse, error) { +// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call +func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListUserSchemasResponse{ + response := &GetProjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Results []SchemaPath `json:"results"` - } + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15359,20 +16137,27 @@ func ParseListUserSchemasResponse(rsp *http.Response) (*ListUserSchemasResponse, return response, nil } -// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call -func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { +// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call +func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteUserResponse{ + response := &UpdateProjectResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Project + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15385,22 +16170,22 @@ func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { return response, nil } -// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call -func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { +// ParseListActionsResponse parses an HTTP response from a ListActionsWithResponse call +func ParseListActionsResponse(rsp *http.Response) (*ListActionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserResponse{ + response := &ListActionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User + var dest ActionListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15418,26 +16203,26 @@ func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { return response, nil } -// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call -func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { +// ParseCreateActionResponse parses an HTTP response from a CreateActionWithResponse call +func ParseCreateActionResponse(rsp *http.Response) (*CreateActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateUserResponse{ + response := &CreateActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Action if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error @@ -15451,22 +16236,22 @@ func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { return response, nil } -// ParseGetUserEventsResponse parses an HTTP response from a GetUserEventsWithResponse call -func ParseGetUserEventsResponse(rsp *http.Response) (*GetUserEventsResponse, error) { +// ParseListActionMetaResponse parses an HTTP response from a ListActionMetaWithResponse call +func ParseListActionMetaResponse(rsp *http.Response) (*ListActionMetaResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserEventsResponse{ + response := &ListActionMetaResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserEventList + var dest []ActionMeta if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15484,22 +16269,48 @@ func ParseGetUserEventsResponse(rsp *http.Response) (*GetUserEventsResponse, err return response, nil } -// ParseGetUserJourneysResponse parses an HTTP response from a GetUserJourneysWithResponse call -func ParseGetUserJourneysResponse(rsp *http.Response) (*GetUserJourneysResponse, error) { +// ParseGetActionPreviewResponse parses an HTTP response from a GetActionPreviewWithResponse call +func ParseGetActionPreviewResponse(rsp *http.Response) (*GetActionPreviewResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserJourneysResponse{ + response := &GetActionPreviewResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseTestActionResponse parses an HTTP response from a TestActionWithResponse call +func ParseTestActionResponse(rsp *http.Response) (*TestActionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TestActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserJourneyList + var dest TestActionResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15517,22 +16328,48 @@ func ParseGetUserJourneysResponse(rsp *http.Response) (*GetUserJourneysResponse, return response, nil } -// ParseGetUserSubscriptionsResponse parses an HTTP response from a GetUserSubscriptionsWithResponse call -func ParseGetUserSubscriptionsResponse(rsp *http.Response) (*GetUserSubscriptionsResponse, error) { +// ParseDeleteActionResponse parses an HTTP response from a DeleteActionWithResponse call +func ParseDeleteActionResponse(rsp *http.Response) (*DeleteActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserSubscriptionsResponse{ + response := &DeleteActionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetActionResponse parses an HTTP response from a GetActionWithResponse call +func ParseGetActionResponse(rsp *http.Response) (*GetActionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserSubscriptionList + var dest Action if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15550,22 +16387,22 @@ func ParseGetUserSubscriptionsResponse(rsp *http.Response) (*GetUserSubscription return response, nil } -// ParseUpdateUserSubscriptionsResponse parses an HTTP response from a UpdateUserSubscriptionsWithResponse call -func ParseUpdateUserSubscriptionsResponse(rsp *http.Response) (*UpdateUserSubscriptionsResponse, error) { +// ParseUpdateActionResponse parses an HTTP response from a UpdateActionWithResponse call +func ParseUpdateActionResponse(rsp *http.Response) (*UpdateActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateUserSubscriptionsResponse{ + response := &UpdateActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User + var dest Action if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15583,20 +16420,27 @@ func ParseUpdateUserSubscriptionsResponse(rsp *http.Response) (*UpdateUserSubscr return response, nil } -// ParseAuthCallbackResponse parses an HTTP response from a AuthCallbackWithResponse call -func ParseAuthCallbackResponse(rsp *http.Response) (*AuthCallbackResponse, error) { +// ParseListActionSchemasResponse parses an HTTP response from a ListActionSchemasWithResponse call +func ParseListActionSchemasResponse(rsp *http.Response) (*ListActionSchemasResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthCallbackResponse{ + response := &ListActionSchemasResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ActionSchemaListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15609,22 +16453,22 @@ func ParseAuthCallbackResponse(rsp *http.Response) (*AuthCallbackResponse, error return response, nil } -// ParseGetAuthMethodsResponse parses an HTTP response from a GetAuthMethodsWithResponse call -func ParseGetAuthMethodsResponse(rsp *http.Response) (*GetAuthMethodsResponse, error) { +// ParseTestActionFunctionResponse parses an HTTP response from a TestActionFunctionWithResponse call +func ParseTestActionFunctionResponse(rsp *http.Response) (*TestActionFunctionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthMethodsResponse{ + response := &TestActionFunctionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []string + var dest TestActionFunctionResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15642,20 +16486,27 @@ func ParseGetAuthMethodsResponse(rsp *http.Response) (*GetAuthMethodsResponse, e return response, nil } -// ParseAuthWebhookResponse parses an HTTP response from a AuthWebhookWithResponse call -func ParseAuthWebhookResponse(rsp *http.Response) (*AuthWebhookResponse, error) { +// ParseListProjectAdminsResponse parses an HTTP response from a ListProjectAdminsWithResponse call +func ParseListProjectAdminsResponse(rsp *http.Response) (*ListProjectAdminsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthWebhookResponse{ + response := &ListProjectAdminsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdminList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15668,195 +16519,3685 @@ func ParseAuthWebhookResponse(rsp *http.Response) (*AuthWebhookResponse, error) return response, nil } -// ServerInterface represents all server handlers. -type ServerInterface interface { - // Delete organization - // (DELETE /api/admin/organizations) - DeleteOrganization(w http.ResponseWriter, r *http.Request) - // Get current organization - // (GET /api/admin/organizations) - GetOrganization(w http.ResponseWriter, r *http.Request) - // Update organization - // (PATCH /api/admin/organizations) - UpdateOrganization(w http.ResponseWriter, r *http.Request) - // List organization admins - // (GET /api/admin/organizations/admins) - ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) - // Create or update admin - // (POST /api/admin/organizations/admins) - CreateAdmin(w http.ResponseWriter, r *http.Request) - // Delete admin - // (DELETE /api/admin/organizations/admins/{adminID}) - DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Get admin by ID - // (GET /api/admin/organizations/admins/{adminID}) - GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Update admin - // (PATCH /api/admin/organizations/admins/{adminID}) - UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) - // Get organization integrations - // (GET /api/admin/organizations/integrations) - GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) - // Get current admin - // (GET /api/admin/organizations/whoami) - Whoami(w http.ResponseWriter, r *http.Request) - // Get current admin profile - // (GET /api/admin/profile) - GetProfile(w http.ResponseWriter, r *http.Request) - // List projects - // (GET /api/admin/projects) - ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) - // Create project - // (POST /api/admin/projects) - CreateProject(w http.ResponseWriter, r *http.Request) - // Get project by ID - // (GET /api/admin/projects/{projectID}) - GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Update project - // (PATCH /api/admin/projects/{projectID}) - UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List project admins - // (GET /api/admin/projects/{projectID}/admins) - ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) - // Remove admin from project - // (DELETE /api/admin/projects/{projectID}/admins/{adminID}) - DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // Get project admin - // (GET /api/admin/projects/{projectID}/admins/{adminID}) - GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // Update project admin role - // (PATCH /api/admin/projects/{projectID}/admins/{adminID}) - UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) - // List campaigns - // (GET /api/admin/projects/{projectID}/campaigns) - ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) - // Create campaign - // (POST /api/admin/projects/{projectID}/campaigns) - CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete campaign - // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) - DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Get campaign by ID - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) - GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Update campaign - // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) - UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Duplicate campaign - // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) - DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Create template - // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) - CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) - // Delete template - // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Get template by ID - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Update template - // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) - UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) - // Get campaign users - // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) - GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) - // List documents - // (GET /api/admin/projects/{projectID}/documents) - ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) - // Upload documents - // (POST /api/admin/projects/{projectID}/documents) - UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete document - // (DELETE /api/admin/projects/{projectID}/documents/{documentID}) - DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // Retrieve a document - // (GET /api/admin/projects/{projectID}/documents/{documentID}) - GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // Get document metadata - // (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) - GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) - // List events with schemas - // (GET /api/admin/projects/{projectID}/events/schema) - ListEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // List journeys - // (GET /api/admin/projects/{projectID}/journeys) - ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) - // Create journey - // (POST /api/admin/projects/{projectID}/journeys) - CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete journey - // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) - DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Get journey by ID - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}) - GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Update journey - // (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) - UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Duplicate journey - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) - DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // List journey entrances - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) - ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) - // Publish journey - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) - PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Get journey steps - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) - GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // Set journey steps - // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) - SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // List users in journey step - // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) - ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) - // Remove user from journey step - // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) - RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) - // Skip delay for user - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) - SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) - // Trigger user into journey entrance - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) - TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) - // Remove user from journey - // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) - RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) - // Create journey version - // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) - VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) - // List API keys - // (GET /api/admin/projects/{projectID}/keys) - ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) - // Create API key - // (POST /api/admin/projects/{projectID}/keys) - CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete API key - // (DELETE /api/admin/projects/{projectID}/keys/{keyID}) - DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // Get API key by ID - // (GET /api/admin/projects/{projectID}/keys/{keyID}) - GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // Update API key - // (PATCH /api/admin/projects/{projectID}/keys/{keyID}) - UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) - // List lists - // (GET /api/admin/projects/{projectID}/lists) - ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) - // Create list - // (POST /api/admin/projects/{projectID}/lists) - CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete list - // (DELETE /api/admin/projects/{projectID}/lists/{listID}) - DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Get list by ID - // (GET /api/admin/projects/{projectID}/lists/{listID}) - GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Update list - // (PATCH /api/admin/projects/{projectID}/lists/{listID}) - UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) - // Duplicate list +// ParseDeleteProjectAdminResponse parses an HTTP response from a DeleteProjectAdminWithResponse call +func ParseDeleteProjectAdminResponse(rsp *http.Response) (*DeleteProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetProjectAdminResponse parses an HTTP response from a GetProjectAdminWithResponse call +func ParseGetProjectAdminResponse(rsp *http.Response) (*GetProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdmin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateProjectAdminResponse parses an HTTP response from a UpdateProjectAdminWithResponse call +func ParseUpdateProjectAdminResponse(rsp *http.Response) (*UpdateProjectAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateProjectAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectAdmin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListCampaignsResponse parses an HTTP response from a ListCampaignsWithResponse call +func ParseListCampaignsResponse(rsp *http.Response) (*ListCampaignsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListCampaignsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CampaignListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateCampaignResponse parses an HTTP response from a CreateCampaignWithResponse call +func ParseCreateCampaignResponse(rsp *http.Response) (*CreateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteCampaignResponse parses an HTTP response from a DeleteCampaignWithResponse call +func ParseDeleteCampaignResponse(rsp *http.Response) (*DeleteCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetCampaignResponse parses an HTTP response from a GetCampaignWithResponse call +func ParseGetCampaignResponse(rsp *http.Response) (*GetCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data Campaign `json:"data"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateCampaignResponse parses an HTTP response from a UpdateCampaignWithResponse call +func ParseUpdateCampaignResponse(rsp *http.Response) (*UpdateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDuplicateCampaignResponse parses an HTTP response from a DuplicateCampaignWithResponse call +func ParseDuplicateCampaignResponse(rsp *http.Response) (*DuplicateCampaignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DuplicateCampaignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Campaign + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateTemplateResponse parses an HTTP response from a CreateTemplateWithResponse call +func ParseCreateTemplateResponse(rsp *http.Response) (*CreateTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Template + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteTemplateResponse parses an HTTP response from a DeleteTemplateWithResponse call +func ParseDeleteTemplateResponse(rsp *http.Response) (*DeleteTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call +func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data Template `json:"data"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateTemplateResponse parses an HTTP response from a UpdateTemplateWithResponse call +func ParseUpdateTemplateResponse(rsp *http.Response) (*UpdateTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Template + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetCampaignUsersResponse parses an HTTP response from a GetCampaignUsersWithResponse call +func ParseGetCampaignUsersResponse(rsp *http.Response) (*GetCampaignUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCampaignUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Data []CampaignUser `json:"data"` + Limit int `json:"limit"` + Offset int `json:"offset"` + Total int `json:"total"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListDocumentsResponse parses an HTTP response from a ListDocumentsWithResponse call +func ParseListDocumentsResponse(rsp *http.Response) (*ListDocumentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListDocumentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DocumentListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUploadDocumentsResponse parses an HTTP response from a UploadDocumentsWithResponse call +func ParseUploadDocumentsResponse(rsp *http.Response) (*UploadDocumentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UploadDocumentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest struct { + // Documents UUIDs of the uploaded documents + Documents []openapi_types.UUID `json:"documents"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteDocumentResponse parses an HTTP response from a DeleteDocumentWithResponse call +func ParseDeleteDocumentResponse(rsp *http.Response) (*DeleteDocumentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteDocumentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetDocumentResponse parses an HTTP response from a GetDocumentWithResponse call +func ParseGetDocumentResponse(rsp *http.Response) (*GetDocumentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDocumentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetDocumentMetadataResponse parses an HTTP response from a GetDocumentMetadataWithResponse call +func ParseGetDocumentMetadataResponse(rsp *http.Response) (*GetDocumentMetadataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDocumentMetadataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Document + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListJourneysResponse parses an HTTP response from a ListJourneysWithResponse call +func ParseListJourneysResponse(rsp *http.Response) (*ListJourneysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListJourneysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateJourneyResponse parses an HTTP response from a CreateJourneyWithResponse call +func ParseCreateJourneyResponse(rsp *http.Response) (*CreateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteJourneyResponse parses an HTTP response from a DeleteJourneyWithResponse call +func ParseDeleteJourneyResponse(rsp *http.Response) (*DeleteJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetJourneyResponse parses an HTTP response from a GetJourneyWithResponse call +func ParseGetJourneyResponse(rsp *http.Response) (*GetJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateJourneyResponse parses an HTTP response from a UpdateJourneyWithResponse call +func ParseUpdateJourneyResponse(rsp *http.Response) (*UpdateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDuplicateJourneyResponse parses an HTTP response from a DuplicateJourneyWithResponse call +func ParseDuplicateJourneyResponse(rsp *http.Response) (*DuplicateJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DuplicateJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListJourneyEntrancesResponse parses an HTTP response from a ListJourneyEntrancesWithResponse call +func ParseListJourneyEntrancesResponse(rsp *http.Response) (*ListJourneyEntrancesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListJourneyEntrancesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyUserEntranceListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParsePublishJourneyResponse parses an HTTP response from a PublishJourneyWithResponse call +func ParsePublishJourneyResponse(rsp *http.Response) (*PublishJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PublishJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetJourneyStepsResponse parses an HTTP response from a GetJourneyStepsWithResponse call +func ParseGetJourneyStepsResponse(rsp *http.Response) (*GetJourneyStepsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetJourneyStepsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyStepMap + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseSetJourneyStepsResponse parses an HTTP response from a SetJourneyStepsWithResponse call +func ParseSetJourneyStepsResponse(rsp *http.Response) (*SetJourneyStepsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetJourneyStepsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyStepMap + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListJourneyStepUsersResponse parses an HTTP response from a ListJourneyStepUsersWithResponse call +func ParseListJourneyStepUsersResponse(rsp *http.Response) (*ListJourneyStepUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListJourneyStepUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest JourneyUserStepListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseRemoveUserFromJourneyStepResponse parses an HTTP response from a RemoveUserFromJourneyStepWithResponse call +func ParseRemoveUserFromJourneyStepResponse(rsp *http.Response) (*RemoveUserFromJourneyStepResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUserFromJourneyStepResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseSkipJourneyStepDelayResponse parses an HTTP response from a SkipJourneyStepDelayWithResponse call +func ParseSkipJourneyStepDelayResponse(rsp *http.Response) (*SkipJourneyStepDelayResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SkipJourneyStepDelayResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseTriggerUserToJourneyStepResponse parses an HTTP response from a TriggerUserToJourneyStepWithResponse call +func ParseTriggerUserToJourneyStepResponse(rsp *http.Response) (*TriggerUserToJourneyStepResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TriggerUserToJourneyStepResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest JourneyUserStep + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseRemoveUserFromJourneyResponse parses an HTTP response from a RemoveUserFromJourneyWithResponse call +func ParseRemoveUserFromJourneyResponse(rsp *http.Response) (*RemoveUserFromJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUserFromJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseStreamUserJourneyStepsResponse parses an HTTP response from a StreamUserJourneyStepsWithResponse call +func ParseStreamUserJourneyStepsResponse(rsp *http.Response) (*StreamUserJourneyStepsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &StreamUserJourneyStepsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseTriggerUserResponse parses an HTTP response from a TriggerUserWithResponse call +func ParseTriggerUserResponse(rsp *http.Response) (*TriggerUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TriggerUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseAdvanceUserStepResponse parses an HTTP response from a AdvanceUserStepWithResponse call +func ParseAdvanceUserStepResponse(rsp *http.Response) (*AdvanceUserStepResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AdvanceUserStepResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserJourneyStateResponse parses an HTTP response from a GetUserJourneyStateWithResponse call +func ParseGetUserJourneyStateResponse(rsp *http.Response) (*GetUserJourneyStateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserJourneyStateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + ExternalStepId *string `json:"external_step_id,omitempty"` + IsCompleted *bool `json:"is_completed,omitempty"` + StepType *string `json:"step_type,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseVersionJourneyResponse parses an HTTP response from a VersionJourneyWithResponse call +func ParseVersionJourneyResponse(rsp *http.Response) (*VersionJourneyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &VersionJourneyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Journey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call +func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListApiKeysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApiKeyListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call +func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateApiKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApiKey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call +func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteApiKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call +func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApiKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApiKey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call +func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateApiKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApiKey + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListListsResponse parses an HTTP response from a ListListsWithResponse call +func ParseListListsResponse(rsp *http.Response) (*ListListsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListListsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateListResponse parses an HTTP response from a CreateListWithResponse call +func ParseCreateListResponse(rsp *http.Response) (*CreateListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteListResponse parses an HTTP response from a DeleteListWithResponse call +func ParseDeleteListResponse(rsp *http.Response) (*DeleteListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetListResponse parses an HTTP response from a GetListWithResponse call +func ParseGetListResponse(rsp *http.Response) (*GetListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateListResponse parses an HTTP response from a UpdateListWithResponse call +func ParseUpdateListResponse(rsp *http.Response) (*UpdateListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDuplicateListResponse parses an HTTP response from a DuplicateListWithResponse call +func ParseDuplicateListResponse(rsp *http.Response) (*DuplicateListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DuplicateListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseRecountListResponse parses an HTTP response from a RecountListWithResponse call +func ParseRecountListResponse(rsp *http.Response) (*RecountListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RecountListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest List + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetListUsersResponse parses an HTTP response from a GetListUsersWithResponse call +func ParseGetListUsersResponse(rsp *http.Response) (*GetListUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetListUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParsePreviewListUsersResponse parses an HTTP response from a PreviewListUsersWithResponse call +func ParsePreviewListUsersResponse(rsp *http.Response) (*PreviewListUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PreviewListUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseImportListUsersResponse parses an HTTP response from a ImportListUsersWithResponse call +func ParseImportListUsersResponse(rsp *http.Response) (*ImportListUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ImportListUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListLocalesResponse parses an HTTP response from a ListLocalesWithResponse call +func ParseListLocalesResponse(rsp *http.Response) (*ListLocalesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListLocalesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Limit Maximum number of items returned + Limit int `json:"limit"` + + // Offset Number of items skipped + Offset int `json:"offset"` + Results []Locale `json:"results"` + + // Total Total number of items matching the filters + Total int `json:"total"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateLocaleResponse parses an HTTP response from a CreateLocaleWithResponse call +func ParseCreateLocaleResponse(rsp *http.Response) (*CreateLocaleResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateLocaleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Locale + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteLocaleResponse parses an HTTP response from a DeleteLocaleWithResponse call +func ParseDeleteLocaleResponse(rsp *http.Response) (*DeleteLocaleResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteLocaleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetLocaleResponse parses an HTTP response from a GetLocaleWithResponse call +func ParseGetLocaleResponse(rsp *http.Response) (*GetLocaleResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLocaleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Locale + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call +func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListProvidersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProviderListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListAllProvidersResponse parses an HTTP response from a ListAllProvidersWithResponse call +func ParseListAllProvidersResponse(rsp *http.Response) (*ListAllProvidersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListAllProvidersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Provider + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListProviderMetaResponse parses an HTTP response from a ListProviderMetaWithResponse call +func ParseListProviderMetaResponse(rsp *http.Response) (*ListProviderMetaResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListProviderMetaResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProviderMeta + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateProviderResponse parses an HTTP response from a CreateProviderWithResponse call +func ParseCreateProviderResponse(rsp *http.Response) (*CreateProviderResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateProviderResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Provider + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call +func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProviderResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Provider + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateProviderResponse parses an HTTP response from a UpdateProviderWithResponse call +func ParseUpdateProviderResponse(rsp *http.Response) (*UpdateProviderResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateProviderResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Provider + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteProviderResponse parses an HTTP response from a DeleteProviderWithResponse call +func ParseDeleteProviderResponse(rsp *http.Response) (*DeleteProviderResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteProviderResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListOrganizationEventSchemasResponse parses an HTTP response from a ListOrganizationEventSchemasWithResponse call +func ParseListOrganizationEventSchemasResponse(rsp *http.Response) (*ListOrganizationEventSchemasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOrganizationEventSchemasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EventListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call +func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOrganizationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpsertOrganizationResponse parses an HTTP response from a UpsertOrganizationWithResponse call +func ParseUpsertOrganizationResponse(rsp *http.Response) (*UpsertOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpsertOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListOrganizationSchemasResponse parses an HTTP response from a ListOrganizationSchemasWithResponse call +func ParseListOrganizationSchemasResponse(rsp *http.Response) (*ListOrganizationSchemasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOrganizationSchemasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Results []SchemaPath `json:"results"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListOrganizationMemberSchemasResponse parses an HTTP response from a ListOrganizationMemberSchemasWithResponse call +func ParseListOrganizationMemberSchemasResponse(rsp *http.Response) (*ListOrganizationMemberSchemasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOrganizationMemberSchemasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Results []SchemaPath `json:"results"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call +func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call +func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call +func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Organization + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetOrganizationEventsResponse parses an HTTP response from a GetOrganizationEventsWithResponse call +func ParseGetOrganizationEventsResponse(rsp *http.Response) (*GetOrganizationEventsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationEventsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationEventList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListOrganizationMembersResponse parses an HTTP response from a ListOrganizationMembersWithResponse call +func ParseListOrganizationMembersResponse(rsp *http.Response) (*ListOrganizationMembersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOrganizationMembersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationMemberList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseAddOrganizationMemberResponse parses an HTTP response from a AddOrganizationMemberWithResponse call +func ParseAddOrganizationMemberResponse(rsp *http.Response) (*AddOrganizationMemberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddOrganizationMemberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseRemoveOrganizationMemberResponse parses an HTTP response from a RemoveOrganizationMemberWithResponse call +func ParseRemoveOrganizationMemberResponse(rsp *http.Response) (*RemoveOrganizationMemberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveOrganizationMemberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListUserEventSchemasResponse parses an HTTP response from a ListUserEventSchemasWithResponse call +func ParseListUserEventSchemasResponse(rsp *http.Response) (*ListUserEventSchemasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListUserEventSchemasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EventListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call +func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call +func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &IdentifyUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseImportUsersResponse parses an HTTP response from a ImportUsersWithResponse call +func ParseImportUsersResponse(rsp *http.Response) (*ImportUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ImportUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListUserSchemasResponse parses an HTTP response from a ListUserSchemasWithResponse call +func ParseListUserSchemasResponse(rsp *http.Response) (*ListUserSchemasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListUserSchemasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Results []SchemaPath `json:"results"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call +func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call +func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call +func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserDevicesResponse parses an HTTP response from a GetUserDevicesWithResponse call +func ParseGetUserDevicesResponse(rsp *http.Response) (*GetUserDevicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserDevicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDeviceList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteUserDeviceResponse parses an HTTP response from a DeleteUserDeviceWithResponse call +func ParseDeleteUserDeviceResponse(rsp *http.Response) (*DeleteUserDeviceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserDeviceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserEventsResponse parses an HTTP response from a GetUserEventsWithResponse call +func ParseGetUserEventsResponse(rsp *http.Response) (*GetUserEventsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserEventsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserEventList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserJourneysResponse parses an HTTP response from a GetUserJourneysWithResponse call +func ParseGetUserJourneysResponse(rsp *http.Response) (*GetUserJourneysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserJourneysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserJourneyList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserOrganizationsResponse parses an HTTP response from a GetUserOrganizationsWithResponse call +func ParseGetUserOrganizationsResponse(rsp *http.Response) (*GetUserOrganizationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserOrganizationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Limit int `json:"limit"` + Offset int `json:"offset"` + Results []Organization `json:"results"` + Total int `json:"total"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetUserSubscriptionsResponse parses an HTTP response from a GetUserSubscriptionsWithResponse call +func ParseGetUserSubscriptionsResponse(rsp *http.Response) (*GetUserSubscriptionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserSubscriptionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserSubscriptionList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateUserSubscriptionsResponse parses an HTTP response from a UpdateUserSubscriptionsWithResponse call +func ParseUpdateUserSubscriptionsResponse(rsp *http.Response) (*UpdateUserSubscriptionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateUserSubscriptionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListSubscriptionsResponse parses an HTTP response from a ListSubscriptionsWithResponse call +func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListSubscriptionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SubscriptionListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call +func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Subscription + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call +func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Subscription + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call +func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Subscription + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListTagsResponse parses an HTTP response from a ListTagsWithResponse call +func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListTagsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TagListResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateTagResponse parses an HTTP response from a CreateTagWithResponse call +func ParseCreateTagResponse(rsp *http.Response) (*CreateTagResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateTagResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Tag + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteTagResponse parses an HTTP response from a DeleteTagWithResponse call +func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteTagResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetTagResponse parses an HTTP response from a GetTagWithResponse call +func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTagResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Tag + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateTagResponse parses an HTTP response from a UpdateTagWithResponse call +func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTagResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Tag + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseListAdminsResponse parses an HTTP response from a ListAdminsWithResponse call +func ParseListAdminsResponse(rsp *http.Response) (*ListAdminsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListAdminsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AdminList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseCreateAdminResponse parses an HTTP response from a CreateAdminWithResponse call +func ParseCreateAdminResponse(rsp *http.Response) (*CreateAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseDeleteAdminResponse parses an HTTP response from a DeleteAdminWithResponse call +func ParseDeleteAdminResponse(rsp *http.Response) (*DeleteAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetAdminResponse parses an HTTP response from a GetAdminWithResponse call +func ParseGetAdminResponse(rsp *http.Response) (*GetAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseUpdateAdminResponse parses an HTTP response from a UpdateAdminWithResponse call +func ParseUpdateAdminResponse(rsp *http.Response) (*UpdateAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseWhoamiResponse parses an HTTP response from a WhoamiWithResponse call +func ParseWhoamiResponse(rsp *http.Response) (*WhoamiResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WhoamiResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Admin + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseAuthCallbackResponse parses an HTTP response from a AuthCallbackWithResponse call +func ParseAuthCallbackResponse(rsp *http.Response) (*AuthCallbackResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AuthCallbackResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseGetAuthMethodsResponse parses an HTTP response from a GetAuthMethodsWithResponse call +func ParseGetAuthMethodsResponse(rsp *http.Response) (*GetAuthMethodsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAuthMethodsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ParseAuthWebhookResponse parses an HTTP response from a AuthWebhookWithResponse call +func ParseAuthWebhookResponse(rsp *http.Response) (*AuthWebhookResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AuthWebhookResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + + } + + return response, nil +} + +// ServerInterface represents all server handlers. +type ServerInterface interface { + // Get current admin profile + // (GET /api/admin/profile) + GetProfile(w http.ResponseWriter, r *http.Request) + // List projects + // (GET /api/admin/projects) + ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) + // Create project + // (POST /api/admin/projects) + CreateProject(w http.ResponseWriter, r *http.Request) + // Delete project + // (DELETE /api/admin/projects/{projectID}) + DeleteProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Get project by ID + // (GET /api/admin/projects/{projectID}) + GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Update project + // (PATCH /api/admin/projects/{projectID}) + UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List actions + // (GET /api/admin/projects/{projectID}/actions) + ListActions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListActionsParams) + // Create action + // (POST /api/admin/projects/{projectID}/actions) + CreateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List available action modules + // (GET /api/admin/projects/{projectID}/actions/meta) + ListActionMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Get action module preview + // (GET /api/admin/projects/{projectID}/actions/meta/{actionType}/preview) + GetActionPreview(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionType string) + // Test an action configuration + // (POST /api/admin/projects/{projectID}/actions/test) + TestAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete action + // (DELETE /api/admin/projects/{projectID}/actions/{actionID}) + DeleteAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) + // Get action by ID + // (GET /api/admin/projects/{projectID}/actions/{actionID}) + GetAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) + // Update action + // (PATCH /api/admin/projects/{projectID}/actions/{actionID}) + UpdateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) + // List action function schemas + // (GET /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema) + ListActionSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) + // Test action function execution + // (POST /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test) + TestActionFunction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) + // List project admins + // (GET /api/admin/projects/{projectID}/admins) + ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) + // Remove admin from project + // (DELETE /api/admin/projects/{projectID}/admins/{adminID}) + DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // Get project admin + // (GET /api/admin/projects/{projectID}/admins/{adminID}) + GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // Update project admin role + // (PATCH /api/admin/projects/{projectID}/admins/{adminID}) + UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) + // List campaigns + // (GET /api/admin/projects/{projectID}/campaigns) + ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) + // Create campaign + // (POST /api/admin/projects/{projectID}/campaigns) + CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete campaign + // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) + DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Get campaign by ID + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) + GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Update campaign + // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) + UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Duplicate campaign + // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) + DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Create template + // (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) + CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) + // Delete template + // (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Get template by ID + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Update template + // (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) + UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) + // Get campaign users + // (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) + GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) + // List documents + // (GET /api/admin/projects/{projectID}/documents) + ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) + // Upload documents + // (POST /api/admin/projects/{projectID}/documents) + UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete document + // (DELETE /api/admin/projects/{projectID}/documents/{documentID}) + DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // Retrieve a document + // (GET /api/admin/projects/{projectID}/documents/{documentID}) + GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // Get document metadata + // (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) + GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) + // List journeys + // (GET /api/admin/projects/{projectID}/journeys) + ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) + // Create journey + // (POST /api/admin/projects/{projectID}/journeys) + CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params CreateJourneyParams) + // Delete journey + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) + DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Get journey by ID + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}) + GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Update journey + // (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) + UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Duplicate journey + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) + DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List journey entrances + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) + ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) + // Publish journey + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) + PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Get journey steps + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) + GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // Set journey steps + // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) + SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List users in journey step + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) + ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) + // Remove user from journey step + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) + RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Skip delay for user + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) + SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Trigger user into journey entrance + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) + TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) + // Remove user from journey + // (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) + RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Stream user journey steps + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) + StreamUserJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Trigger a user into a journey + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) + TriggerUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Advance user step + // (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) + AdvanceUserStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Get user journey state + // (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state) + GetUserJourneyState(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) + // Create journey version + // (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) + VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) + // List API keys + // (GET /api/admin/projects/{projectID}/keys) + ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) + // Create API key + // (POST /api/admin/projects/{projectID}/keys) + CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete API key + // (DELETE /api/admin/projects/{projectID}/keys/{keyID}) + DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // Get API key by ID + // (GET /api/admin/projects/{projectID}/keys/{keyID}) + GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // Update API key + // (PATCH /api/admin/projects/{projectID}/keys/{keyID}) + UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) + // List lists + // (GET /api/admin/projects/{projectID}/lists) + ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) + // Create list + // (POST /api/admin/projects/{projectID}/lists) + CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete list + // (DELETE /api/admin/projects/{projectID}/lists/{listID}) + DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Get list by ID + // (GET /api/admin/projects/{projectID}/lists/{listID}) + GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Update list + // (PATCH /api/admin/projects/{projectID}/lists/{listID}) + UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) + // Duplicate list // (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) // Recount list users @@ -15865,8 +20206,11 @@ type ServerInterface interface { // Get list users // (GET /api/admin/projects/{projectID}/lists/{listID}/users) GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) + // Preview list users + // (GET /api/admin/projects/{projectID}/lists/{listID}/users/preview) + PreviewListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params PreviewListUsersParams) // Import list users - // (POST /api/admin/projects/{projectID}/lists/{listID}/users) + // (POST /api/admin/projects/{projectID}/lists/{listID}/users/preview) ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) // List locales // (GET /api/admin/projects/{projectID}/locales) @@ -15901,66 +20245,132 @@ type ServerInterface interface { // Delete provider // (DELETE /api/admin/projects/{projectID}/providers/{providerID}) DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) - // List subscriptions - // (GET /api/admin/projects/{projectID}/subscriptions) - ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) - // Create subscription type - // (POST /api/admin/projects/{projectID}/subscriptions) - CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Get subscription by ID - // (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) - GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) - // Update subscription type - // (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) - UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) - // List tags - // (GET /api/admin/projects/{projectID}/tags) - ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) - // Create tag - // (POST /api/admin/projects/{projectID}/tags) - CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) - // Delete tag - // (DELETE /api/admin/projects/{projectID}/tags/{tagID}) - DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) - // Get tag by ID - // (GET /api/admin/projects/{projectID}/tags/{tagID}) - GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) - // Update tag - // (PATCH /api/admin/projects/{projectID}/tags/{tagID}) - UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // List organization event schemas + // (GET /api/admin/projects/{projectID}/subjects/organization/events/schema) + ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List subject organizations + // (GET /api/admin/projects/{projectID}/subjects/organizations) + ListOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListOrganizationsParams) + // Create or update subject organization + // (POST /api/admin/projects/{projectID}/subjects/organizations) + UpsertOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List organization schemas + // (GET /api/admin/projects/{projectID}/subjects/organizations/schema) + ListOrganizationSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // List organization user schemas + // (GET /api/admin/projects/{projectID}/subjects/organizations/users/schema) + ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete subject organization + // (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) + DeleteOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) + // Get subject organization by ID + // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) + GetOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) + // Update subject organization + // (PATCH /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) + UpdateOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) + // Get organization events + // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events) + GetOrganizationEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params GetOrganizationEventsParams) + // List organization users + // (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) + ListOrganizationMembers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params ListOrganizationMembersParams) + // Add user to organization + // (POST /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) + AddOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) + // Remove user from organization + // (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}) + RemoveOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) + // List user event schemas + // (GET /api/admin/projects/{projectID}/subjects/user/events/schema) + ListUserEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) // List users - // (GET /api/admin/projects/{projectID}/users) + // (GET /api/admin/projects/{projectID}/subjects/users) ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) // Identify user - // (POST /api/admin/projects/{projectID}/users) + // (POST /api/admin/projects/{projectID}/subjects/users) IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) // Bulk import users - // (POST /api/admin/projects/{projectID}/users/import) + // (POST /api/admin/projects/{projectID}/subjects/users/import) ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) // List user schemas - // (GET /api/admin/projects/{projectID}/users/schema) + // (GET /api/admin/projects/{projectID}/subjects/users/schema) ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) // Delete user - // (DELETE /api/admin/projects/{projectID}/users/{userID}) + // (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}) DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) // Get user by ID - // (GET /api/admin/projects/{projectID}/users/{userID}) + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}) GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) // Update user - // (PATCH /api/admin/projects/{projectID}/users/{userID}) + // (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}) UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Get user devices + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/devices) + GetUserDevices(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // Delete user device + // (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}) + DeleteUserDevice(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) // Get user events - // (GET /api/admin/projects/{projectID}/users/{userID}/events) + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/events) GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) // Get user journeys - // (GET /api/admin/projects/{projectID}/users/{userID}/journeys) + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/journeys) GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) + // Get user organizations + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations) + GetUserOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserOrganizationsParams) // Get user subscriptions - // (GET /api/admin/projects/{projectID}/users/{userID}/subscriptions) + // (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) // Update user subscriptions - // (PATCH /api/admin/projects/{projectID}/users/{userID}/subscriptions) + // (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) + // List subscriptions + // (GET /api/admin/projects/{projectID}/subscriptions) + ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) + // Create subscription type + // (POST /api/admin/projects/{projectID}/subscriptions) + CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Get subscription by ID + // (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) + GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) + // Update subscription type + // (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) + UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) + // List tags + // (GET /api/admin/projects/{projectID}/tags) + ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) + // Create tag + // (POST /api/admin/projects/{projectID}/tags) + CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) + // Delete tag + // (DELETE /api/admin/projects/{projectID}/tags/{tagID}) + DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // Get tag by ID + // (GET /api/admin/projects/{projectID}/tags/{tagID}) + GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // Update tag + // (PATCH /api/admin/projects/{projectID}/tags/{tagID}) + UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) + // List organization admins + // (GET /api/admin/tenant/admins) + ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) + // Create or update admin + // (POST /api/admin/tenant/admins) + CreateAdmin(w http.ResponseWriter, r *http.Request) + // Delete admin + // (DELETE /api/admin/tenant/admins/{adminID}) + DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Get admin by ID + // (GET /api/admin/tenant/admins/{adminID}) + GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Update admin + // (PATCH /api/admin/tenant/admins/{adminID}) + UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) + // Get current admin + // (GET /api/admin/tenant/whoami) + Whoami(w http.ResponseWriter, r *http.Request) // Complete authentication // (POST /api/auth/login/{driver}/callback) AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) @@ -15972,621 +20382,1919 @@ type ServerInterface interface { AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) } -// Unimplemented server implementation that returns http.StatusNotImplemented for each endpoint. +// Unimplemented server implementation that returns http.StatusNotImplemented for each endpoint. + +type Unimplemented struct{} + +// Get current admin profile +// (GET /api/admin/profile) +func (_ Unimplemented) GetProfile(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List projects +// (GET /api/admin/projects) +func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create project +// (POST /api/admin/projects) +func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete project +// (DELETE /api/admin/projects/{projectID}) +func (_ Unimplemented) DeleteProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get project by ID +// (GET /api/admin/projects/{projectID}) +func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update project +// (PATCH /api/admin/projects/{projectID}) +func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List actions +// (GET /api/admin/projects/{projectID}/actions) +func (_ Unimplemented) ListActions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListActionsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create action +// (POST /api/admin/projects/{projectID}/actions) +func (_ Unimplemented) CreateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List available action modules +// (GET /api/admin/projects/{projectID}/actions/meta) +func (_ Unimplemented) ListActionMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get action module preview +// (GET /api/admin/projects/{projectID}/actions/meta/{actionType}/preview) +func (_ Unimplemented) GetActionPreview(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionType string) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Test an action configuration +// (POST /api/admin/projects/{projectID}/actions/test) +func (_ Unimplemented) TestAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete action +// (DELETE /api/admin/projects/{projectID}/actions/{actionID}) +func (_ Unimplemented) DeleteAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get action by ID +// (GET /api/admin/projects/{projectID}/actions/{actionID}) +func (_ Unimplemented) GetAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update action +// (PATCH /api/admin/projects/{projectID}/actions/{actionID}) +func (_ Unimplemented) UpdateAction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List action function schemas +// (GET /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema) +func (_ Unimplemented) ListActionSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Test action function execution +// (POST /api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test) +func (_ Unimplemented) TestActionFunction(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, actionID openapi_types.UUID, functionID string) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List project admins +// (GET /api/admin/projects/{projectID}/admins) +func (_ Unimplemented) ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Remove admin from project +// (DELETE /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get project admin +// (GET /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update project admin role +// (PATCH /api/admin/projects/{projectID}/admins/{adminID}) +func (_ Unimplemented) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List campaigns +// (GET /api/admin/projects/{projectID}/campaigns) +func (_ Unimplemented) ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create campaign +// (POST /api/admin/projects/{projectID}/campaigns) +func (_ Unimplemented) CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete campaign +// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get campaign by ID +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update campaign +// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) +func (_ Unimplemented) UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Duplicate campaign +// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) +func (_ Unimplemented) DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create template +// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) +func (_ Unimplemented) CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete template +// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get template by ID +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update template +// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) +func (_ Unimplemented) UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get campaign users +// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) +func (_ Unimplemented) GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List documents +// (GET /api/admin/projects/{projectID}/documents) +func (_ Unimplemented) ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Upload documents +// (POST /api/admin/projects/{projectID}/documents) +func (_ Unimplemented) UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete document +// (DELETE /api/admin/projects/{projectID}/documents/{documentID}) +func (_ Unimplemented) DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Retrieve a document +// (GET /api/admin/projects/{projectID}/documents/{documentID}) +func (_ Unimplemented) GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get document metadata +// (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) +func (_ Unimplemented) GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List journeys +// (GET /api/admin/projects/{projectID}/journeys) +func (_ Unimplemented) ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create journey +// (POST /api/admin/projects/{projectID}/journeys) +func (_ Unimplemented) CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params CreateJourneyParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete journey +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get journey by ID +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update journey +// (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) +func (_ Unimplemented) UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Duplicate journey +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) +func (_ Unimplemented) DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List journey entrances +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) +func (_ Unimplemented) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Publish journey +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) +func (_ Unimplemented) PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get journey steps +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) +func (_ Unimplemented) GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Set journey steps +// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) +func (_ Unimplemented) SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List users in journey step +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) +func (_ Unimplemented) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Remove user from journey step +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) +func (_ Unimplemented) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Skip delay for user +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) +func (_ Unimplemented) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Trigger user into journey entrance +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) +func (_ Unimplemented) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Remove user from journey +// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) +func (_ Unimplemented) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Stream user journey steps +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) +func (_ Unimplemented) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Trigger a user into a journey +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) +func (_ Unimplemented) TriggerUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Advance user step +// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) +func (_ Unimplemented) AdvanceUserStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user journey state +// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state) +func (_ Unimplemented) GetUserJourneyState(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create journey version +// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) +func (_ Unimplemented) VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List API keys +// (GET /api/admin/projects/{projectID}/keys) +func (_ Unimplemented) ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create API key +// (POST /api/admin/projects/{projectID}/keys) +func (_ Unimplemented) CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete API key +// (DELETE /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get API key by ID +// (GET /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update API key +// (PATCH /api/admin/projects/{projectID}/keys/{keyID}) +func (_ Unimplemented) UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List lists +// (GET /api/admin/projects/{projectID}/lists) +func (_ Unimplemented) ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create list +// (POST /api/admin/projects/{projectID}/lists) +func (_ Unimplemented) CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete list +// (DELETE /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get list by ID +// (GET /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update list +// (PATCH /api/admin/projects/{projectID}/lists/{listID}) +func (_ Unimplemented) UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Duplicate list +// (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) +func (_ Unimplemented) DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Recount list users +// (POST /api/admin/projects/{projectID}/lists/{listID}/recount) +func (_ Unimplemented) RecountList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get list users +// (GET /api/admin/projects/{projectID}/lists/{listID}/users) +func (_ Unimplemented) GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Preview list users +// (GET /api/admin/projects/{projectID}/lists/{listID}/users/preview) +func (_ Unimplemented) PreviewListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params PreviewListUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Import list users +// (POST /api/admin/projects/{projectID}/lists/{listID}/users/preview) +func (_ Unimplemented) ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List locales +// (GET /api/admin/projects/{projectID}/locales) +func (_ Unimplemented) ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create locale +// (POST /api/admin/projects/{projectID}/locales) +func (_ Unimplemented) CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete locale +// (DELETE /api/admin/projects/{projectID}/locales/{localeID}) +func (_ Unimplemented) DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get locale by ID +// (GET /api/admin/projects/{projectID}/locales/{localeID}) +func (_ Unimplemented) GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List providers +// (GET /api/admin/projects/{projectID}/providers) +func (_ Unimplemented) ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List all providers +// (GET /api/admin/projects/{projectID}/providers/all) +func (_ Unimplemented) ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List available provider modules +// (GET /api/admin/projects/{projectID}/providers/meta) +func (_ Unimplemented) ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create provider +// (POST /api/admin/projects/{projectID}/providers/{group}/{type}) +func (_ Unimplemented) CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get provider by ID +// (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) +func (_ Unimplemented) GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update provider +// (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) +func (_ Unimplemented) UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete provider +// (DELETE /api/admin/projects/{projectID}/providers/{providerID}) +func (_ Unimplemented) DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List organization event schemas +// (GET /api/admin/projects/{projectID}/subjects/organization/events/schema) +func (_ Unimplemented) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List subject organizations +// (GET /api/admin/projects/{projectID}/subjects/organizations) +func (_ Unimplemented) ListOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListOrganizationsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create or update subject organization +// (POST /api/admin/projects/{projectID}/subjects/organizations) +func (_ Unimplemented) UpsertOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List organization schemas +// (GET /api/admin/projects/{projectID}/subjects/organizations/schema) +func (_ Unimplemented) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List organization user schemas +// (GET /api/admin/projects/{projectID}/subjects/organizations/users/schema) +func (_ Unimplemented) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete subject organization +// (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) +func (_ Unimplemented) DeleteOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get subject organization by ID +// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) +func (_ Unimplemented) GetOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update subject organization +// (PATCH /api/admin/projects/{projectID}/subjects/organizations/{organizationID}) +func (_ Unimplemented) UpdateOrganization(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get organization events +// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events) +func (_ Unimplemented) GetOrganizationEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params GetOrganizationEventsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List organization users +// (GET /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) +func (_ Unimplemented) ListOrganizationMembers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, params ListOrganizationMembersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Add user to organization +// (POST /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users) +func (_ Unimplemented) AddOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Remove user from organization +// (DELETE /api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}) +func (_ Unimplemented) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, organizationID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List user event schemas +// (GET /api/admin/projects/{projectID}/subjects/user/events/schema) +func (_ Unimplemented) ListUserEventSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List users +// (GET /api/admin/projects/{projectID}/subjects/users) +func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Identify user +// (POST /api/admin/projects/{projectID}/subjects/users) +func (_ Unimplemented) IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Bulk import users +// (POST /api/admin/projects/{projectID}/subjects/users/import) +func (_ Unimplemented) ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List user schemas +// (GET /api/admin/projects/{projectID}/subjects/users/schema) +func (_ Unimplemented) ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete user +// (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}) +func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user by ID +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}) +func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update user +// (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}) +func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user devices +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/devices) +func (_ Unimplemented) GetUserDevices(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete user device +// (DELETE /api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}) +func (_ Unimplemented) DeleteUserDevice(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, deviceID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user events +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/events) +func (_ Unimplemented) GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user journeys +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/journeys) +func (_ Unimplemented) GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user organizations +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations) +func (_ Unimplemented) GetUserOrganizations(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserOrganizationsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get user subscriptions +// (GET /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) +func (_ Unimplemented) GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update user subscriptions +// (PATCH /api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions) +func (_ Unimplemented) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List subscriptions +// (GET /api/admin/projects/{projectID}/subscriptions) +func (_ Unimplemented) ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create subscription type +// (POST /api/admin/projects/{projectID}/subscriptions) +func (_ Unimplemented) CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get subscription by ID +// (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) +func (_ Unimplemented) GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update subscription type +// (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) +func (_ Unimplemented) UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List tags +// (GET /api/admin/projects/{projectID}/tags) +func (_ Unimplemented) ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create tag +// (POST /api/admin/projects/{projectID}/tags) +func (_ Unimplemented) CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete tag +// (DELETE /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get tag by ID +// (GET /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update tag +// (PATCH /api/admin/projects/{projectID}/tags/{tagID}) +func (_ Unimplemented) UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// List organization admins +// (GET /api/admin/tenant/admins) +func (_ Unimplemented) ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create or update admin +// (POST /api/admin/tenant/admins) +func (_ Unimplemented) CreateAdmin(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Delete admin +// (DELETE /api/admin/tenant/admins/{adminID}) +func (_ Unimplemented) DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get admin by ID +// (GET /api/admin/tenant/admins/{adminID}) +func (_ Unimplemented) GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Update admin +// (PATCH /api/admin/tenant/admins/{adminID}) +func (_ Unimplemented) UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get current admin +// (GET /api/admin/tenant/whoami) +func (_ Unimplemented) Whoami(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Complete authentication +// (POST /api/auth/login/{driver}/callback) +func (_ Unimplemented) AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get available auth methods +// (GET /api/auth/methods) +func (_ Unimplemented) GetAuthMethods(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Auth provider webhook +// (POST /api/auth/{driver}/webhook) +func (_ Unimplemented) AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) { + w.WriteHeader(http.StatusNotImplemented) +} + +// ServerInterfaceWrapper converts contexts to parameters. +type ServerInterfaceWrapper struct { + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) +} + +type MiddlewareFunc func(http.Handler) http.Handler + +// GetProfile operation middleware +func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Request) { + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetProfile(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListProjects operation middleware +func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { + + var err error + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListProjectsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListProjects(w, r, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateProject operation middleware +func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request) { + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateProject(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// DeleteProject operation middleware +func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteProject(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// GetProject operation middleware +func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetProject(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// UpdateProject operation middleware +func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateProject(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListActions operation middleware +func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListActionsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListActions(w, r, projectID, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// CreateAction operation middleware +func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateAction(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListActionMeta operation middleware +func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListActionMeta(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// GetActionPreview operation middleware +func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionType" ------------- + var actionType string + + err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionType", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetActionPreview(w, r, projectID, actionType) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// TestAction operation middleware +func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.TestAction(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// DeleteAction operation middleware +func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionID" ------------- + var actionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteAction(w, r, projectID, actionID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// GetAction operation middleware +func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionID" ------------- + var actionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetAction(w, r, projectID, actionID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// UpdateAction operation middleware +func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionID" ------------- + var actionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateAction(w, r, projectID, actionID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListActionSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionID" ------------- + var actionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) + return + } + + // ------------- Path parameter "functionID" ------------- + var functionID string + + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListActionSchemas(w, r, projectID, actionID, functionID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// TestActionFunction operation middleware +func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "actionID" ------------- + var actionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) + return + } + + // ------------- Path parameter "functionID" ------------- + var functionID string + + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.TestActionFunction(w, r, projectID, actionID, functionID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListProjectAdmins operation middleware +func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListProjectAdminsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListProjectAdmins(w, r, projectID, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// DeleteProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -type Unimplemented struct{} + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID -// Delete organization -// (DELETE /api/admin/organizations) -func (_ Unimplemented) DeleteOrganization(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + return + } -// Get current organization -// (GET /api/admin/organizations) -func (_ Unimplemented) GetOrganization(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Update organization -// (PATCH /api/admin/organizations) -func (_ Unimplemented) UpdateOrganization(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// List organization admins -// (GET /api/admin/organizations/admins) -func (_ Unimplemented) ListAdmins(w http.ResponseWriter, r *http.Request, params ListAdminsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Create or update admin -// (POST /api/admin/organizations/admins) -func (_ Unimplemented) CreateAdmin(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteProjectAdmin(w, r, projectID, adminID) + })) -// Delete admin -// (DELETE /api/admin/organizations/admins/{adminID}) -func (_ Unimplemented) DeleteAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Get admin by ID -// (GET /api/admin/organizations/admins/{adminID}) -func (_ Unimplemented) GetAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Update admin -// (PATCH /api/admin/organizations/admins/{adminID}) -func (_ Unimplemented) UpdateAdmin(w http.ResponseWriter, r *http.Request, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// GetProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { -// Get organization integrations -// (GET /api/admin/organizations/integrations) -func (_ Unimplemented) GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Get current admin -// (GET /api/admin/organizations/whoami) -func (_ Unimplemented) Whoami(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Get current admin profile -// (GET /api/admin/profile) -func (_ Unimplemented) GetProfile(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// List projects -// (GET /api/admin/projects) -func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request, params ListProjectsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID -// Create project -// (POST /api/admin/projects) -func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + return + } -// Get project by ID -// (GET /api/admin/projects/{projectID}) -func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Update project -// (PATCH /api/admin/projects/{projectID}) -func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// List project admins -// (GET /api/admin/projects/{projectID}/admins) -func (_ Unimplemented) ListProjectAdmins(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProjectAdminsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Remove admin from project -// (DELETE /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetProjectAdmin(w, r, projectID, adminID) + })) -// Get project admin -// (GET /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) GetProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Update project admin role -// (PATCH /api/admin/projects/{projectID}/admins/{adminID}) -func (_ Unimplemented) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, adminID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// List campaigns -// (GET /api/admin/projects/{projectID}/campaigns) -func (_ Unimplemented) ListCampaigns(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListCampaignsParams) { - w.WriteHeader(http.StatusNotImplemented) -} +// UpdateProjectAdmin operation middleware +func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { -// Create campaign -// (POST /api/admin/projects/{projectID}/campaigns) -func (_ Unimplemented) CreateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateProjectAdmin(w, r, projectID, adminID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) } -// Delete campaign -// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) DeleteCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) +// ListCampaigns operation middleware +func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListCampaignsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListCampaigns(w, r, projectID, params) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) } -// Get campaign by ID -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) GetCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// CreateCampaign operation middleware +func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateCampaign(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Update campaign -// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}) -func (_ Unimplemented) UpdateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Duplicate campaign -// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/duplicate) -func (_ Unimplemented) DuplicateCampaign(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// DeleteCampaign operation middleware +func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { -// Create template -// (POST /api/admin/projects/{projectID}/campaigns/{campaignID}/templates) -func (_ Unimplemented) CreateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Delete template -// (DELETE /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) DeleteTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Get template by ID -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) GetTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// Update template -// (PATCH /api/admin/projects/{projectID}/campaigns/{campaignID}/templates/{templateID}) -func (_ Unimplemented) UpdateTemplate(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, templateID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Get campaign users -// (GET /api/admin/projects/{projectID}/campaigns/{campaignID}/users) -func (_ Unimplemented) GetCampaignUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, campaignID openapi_types.UUID, params GetCampaignUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// List documents -// (GET /api/admin/projects/{projectID}/documents) -func (_ Unimplemented) ListDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListDocumentsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Upload documents -// (POST /api/admin/projects/{projectID}/documents) -func (_ Unimplemented) UploadDocuments(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Delete document -// (DELETE /api/admin/projects/{projectID}/documents/{documentID}) -func (_ Unimplemented) DeleteDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Retrieve a document -// (GET /api/admin/projects/{projectID}/documents/{documentID}) -func (_ Unimplemented) GetDocument(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteCampaign(w, r, projectID, campaignID) + })) -// Get document metadata -// (GET /api/admin/projects/{projectID}/documents/{documentID}/metadata) -func (_ Unimplemented) GetDocumentMetadata(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, documentID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// List events with schemas -// (GET /api/admin/projects/{projectID}/events/schema) -func (_ Unimplemented) ListEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// List journeys -// (GET /api/admin/projects/{projectID}/journeys) -func (_ Unimplemented) ListJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListJourneysParams) { - w.WriteHeader(http.StatusNotImplemented) -} +// GetCampaign operation middleware +func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { -// Create journey -// (POST /api/admin/projects/{projectID}/journeys) -func (_ Unimplemented) CreateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Delete journey -// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) DeleteJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Get journey by ID -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) GetJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// Update journey -// (PATCH /api/admin/projects/{projectID}/journeys/{journeyID}) -func (_ Unimplemented) UpdateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Duplicate journey -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/duplicate) -func (_ Unimplemented) DuplicateJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// List journey entrances -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/entrances) -func (_ Unimplemented) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, params ListJourneyEntrancesParams) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Publish journey -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/publish) -func (_ Unimplemented) PublishJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Get journey steps -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps) -func (_ Unimplemented) GetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Set journey steps -// (PUT /api/admin/projects/{projectID}/journeys/{journeyID}/steps) -func (_ Unimplemented) SetJourneySteps(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.GetCampaign(w, r, projectID, campaignID) + })) -// List users in journey step -// (GET /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users) -func (_ Unimplemented) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, params ListJourneyStepUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Remove user from journey step -// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}) -func (_ Unimplemented) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Skip delay for user -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/skip) -func (_ Unimplemented) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// UpdateCampaign operation middleware +func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { -// Trigger user into journey entrance -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/steps/{stepID}/users/{userID}/trigger) -func (_ Unimplemented) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, stepID string, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Remove user from journey -// (DELETE /api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}) -func (_ Unimplemented) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Create journey version -// (POST /api/admin/projects/{projectID}/journeys/{journeyID}/version) -func (_ Unimplemented) VersionJourney(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, journeyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// List API keys -// (GET /api/admin/projects/{projectID}/keys) -func (_ Unimplemented) ListApiKeys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListApiKeysParams) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Create API key -// (POST /api/admin/projects/{projectID}/keys) -func (_ Unimplemented) CreateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// Delete API key -// (DELETE /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) DeleteApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Get API key by ID -// (GET /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) GetApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Update API key -// (PATCH /api/admin/projects/{projectID}/keys/{keyID}) -func (_ Unimplemented) UpdateApiKey(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, keyID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// List lists -// (GET /api/admin/projects/{projectID}/lists) -func (_ Unimplemented) ListLists(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListListsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateCampaign(w, r, projectID, campaignID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Create list -// (POST /api/admin/projects/{projectID}/lists) -func (_ Unimplemented) CreateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Delete list -// (DELETE /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) DeleteList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// DuplicateCampaign operation middleware +func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { -// Get list by ID -// (GET /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) GetList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Update list -// (PATCH /api/admin/projects/{projectID}/lists/{listID}) -func (_ Unimplemented) UpdateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Duplicate list -// (POST /api/admin/projects/{projectID}/lists/{listID}/duplicate) -func (_ Unimplemented) DuplicateList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// Recount list users -// (POST /api/admin/projects/{projectID}/lists/{listID}/recount) -func (_ Unimplemented) RecountList(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Get list users -// (GET /api/admin/projects/{projectID}/lists/{listID}/users) -func (_ Unimplemented) GetListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID, params GetListUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// Import list users -// (POST /api/admin/projects/{projectID}/lists/{listID}/users) -func (_ Unimplemented) ImportListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, listID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// List locales -// (GET /api/admin/projects/{projectID}/locales) -func (_ Unimplemented) ListLocales(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListLocalesParams) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Create locale -// (POST /api/admin/projects/{projectID}/locales) -func (_ Unimplemented) CreateLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Delete locale -// (DELETE /api/admin/projects/{projectID}/locales/{localeID}) -func (_ Unimplemented) DeleteLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DuplicateCampaign(w, r, projectID, campaignID) + })) -// Get locale by ID -// (GET /api/admin/projects/{projectID}/locales/{localeID}) -func (_ Unimplemented) GetLocale(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, localeID string) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// List providers -// (GET /api/admin/projects/{projectID}/providers) -func (_ Unimplemented) ListProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListProvidersParams) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// List all providers -// (GET /api/admin/projects/{projectID}/providers/all) -func (_ Unimplemented) ListAllProviders(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// CreateTemplate operation middleware +func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { -// List available provider modules -// (GET /api/admin/projects/{projectID}/providers/meta) -func (_ Unimplemented) ListProviderMeta(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Create provider -// (POST /api/admin/projects/{projectID}/providers/{group}/{type}) -func (_ Unimplemented) CreateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Get provider by ID -// (GET /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) -func (_ Unimplemented) GetProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// Update provider -// (PATCH /api/admin/projects/{projectID}/providers/{group}/{type}/{providerID}) -func (_ Unimplemented) UpdateProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, group string, pType string, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Delete provider -// (DELETE /api/admin/projects/{projectID}/providers/{providerID}) -func (_ Unimplemented) DeleteProvider(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, providerID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// List subscriptions -// (GET /api/admin/projects/{projectID}/subscriptions) -func (_ Unimplemented) ListSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListSubscriptionsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Create subscription type -// (POST /api/admin/projects/{projectID}/subscriptions) -func (_ Unimplemented) CreateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Get subscription by ID -// (GET /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) -func (_ Unimplemented) GetSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) -// Update subscription type -// (PATCH /api/admin/projects/{projectID}/subscriptions/{subscriptionID}) -func (_ Unimplemented) UpdateSubscription(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, subscriptionID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateTemplate(w, r, projectID, campaignID) + })) -// List tags -// (GET /api/admin/projects/{projectID}/tags) -func (_ Unimplemented) ListTags(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListTagsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Create tag -// (POST /api/admin/projects/{projectID}/tags) -func (_ Unimplemented) CreateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Delete tag -// (DELETE /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) DeleteTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// DeleteTemplate operation middleware +func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { -// Get tag by ID -// (GET /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) GetTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Update tag -// (PATCH /api/admin/projects/{projectID}/tags/{tagID}) -func (_ Unimplemented) UpdateTag(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, tagID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// List users -// (GET /api/admin/projects/{projectID}/users) -func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, params ListUsersParams) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// Identify user -// (POST /api/admin/projects/{projectID}/users) -func (_ Unimplemented) IdentifyUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -// Bulk import users -// (POST /api/admin/projects/{projectID}/users/import) -func (_ Unimplemented) ImportUsers(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// List user schemas -// (GET /api/admin/projects/{projectID}/users/schema) -func (_ Unimplemented) ListUserSchemas(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID -// Delete user -// (DELETE /api/admin/projects/{projectID}/users/{userID}) -func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + return + } -// Get user by ID -// (GET /api/admin/projects/{projectID}/users/{userID}) -func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx := r.Context() -// Update user -// (PATCH /api/admin/projects/{projectID}/users/{userID}) -func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) -// Get user events -// (GET /api/admin/projects/{projectID}/users/{userID}/events) -func (_ Unimplemented) GetUserEvents(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserEventsParams) { - w.WriteHeader(http.StatusNotImplemented) -} + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteTemplate(w, r, projectID, campaignID, templateID) + })) -// Get user journeys -// (GET /api/admin/projects/{projectID}/users/{userID}/journeys) -func (_ Unimplemented) GetUserJourneys(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserJourneysParams) { - w.WriteHeader(http.StatusNotImplemented) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// Get user subscriptions -// (GET /api/admin/projects/{projectID}/users/{userID}/subscriptions) -func (_ Unimplemented) GetUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID, params GetUserSubscriptionsParams) { - w.WriteHeader(http.StatusNotImplemented) + handler.ServeHTTP(w, r) } -// Update user subscriptions -// (PATCH /api/admin/projects/{projectID}/users/{userID}/subscriptions) -func (_ Unimplemented) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request, projectID openapi_types.UUID, userID openapi_types.UUID) { - w.WriteHeader(http.StatusNotImplemented) -} +// GetTemplate operation middleware +func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { -// Complete authentication -// (POST /api/auth/login/{driver}/callback) -func (_ Unimplemented) AuthCallback(w http.ResponseWriter, r *http.Request, driver AuthCallbackParamsDriver) { - w.WriteHeader(http.StatusNotImplemented) -} + var err error -// Get available auth methods -// (GET /api/auth/methods) -func (_ Unimplemented) GetAuthMethods(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID -// Auth provider webhook -// (POST /api/auth/{driver}/webhook) -func (_ Unimplemented) AuthWebhook(w http.ResponseWriter, r *http.Request, driver AuthWebhookParamsDriver) { - w.WriteHeader(http.StatusNotImplemented) -} + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } -// ServerInterfaceWrapper converts contexts to parameters. -type ServerInterfaceWrapper struct { - Handler ServerInterface - HandlerMiddlewares []MiddlewareFunc - ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) -} + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID -type MiddlewareFunc func(http.Handler) http.Handler + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } -// DeleteOrganization operation middleware -func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + return + } ctx := r.Context() @@ -16595,7 +22303,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteOrganization(w, r) + siw.Handler.GetTemplate(w, r, projectID, campaignID, templateID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16605,8 +22313,37 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetOrganization operation middleware -func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { +// UpdateTemplate operation middleware +func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } + + // ------------- Path parameter "templateID" ------------- + var templateID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + return + } ctx := r.Context() @@ -16615,7 +22352,7 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetOrganization(w, r) + siw.Handler.UpdateTemplate(w, r, projectID, campaignID, templateID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16625,8 +22362,28 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// UpdateOrganization operation middleware -func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { +// GetCampaignUsers operation middleware +func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "campaignID" ------------- + var campaignID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + return + } ctx := r.Context() @@ -16634,8 +22391,27 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params GetCampaignUsersParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateOrganization(w, r) + siw.Handler.GetCampaignUsers(w, r, projectID, campaignID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16645,11 +22421,20 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// ListAdmins operation middleware -func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { +// ListDocuments operation middleware +func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { var err error + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -16657,7 +22442,7 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListAdminsParams + var params ListDocumentsParams // ------------- Optional query parameter "limit" ------------- @@ -16675,16 +22460,39 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req return } - // ------------- Optional query parameter "search" ------------- + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListDocuments(w, r, projectID, params) + })) - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// UploadDocuments operation middleware +func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListAdmins(w, r, params) + siw.Handler.UploadDocuments(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16694,8 +22502,28 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// CreateAdmin operation middleware -func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Request) { +// DeleteDocument operation middleware +func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) + return + } ctx := r.Context() @@ -16704,7 +22532,7 @@ func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateAdmin(w, r) + siw.Handler.DeleteDocument(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16714,17 +22542,26 @@ func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// DeleteAdmin operation middleware -func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { +// GetDocument operation middleware +func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return } @@ -16735,7 +22572,7 @@ func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteAdmin(w, r, adminID) + siw.Handler.GetDocument(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16745,17 +22582,26 @@ func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// GetAdmin operation middleware -func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { +// GetDocumentMetadata operation middleware +func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "documentID" ------------- + var documentID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return } @@ -16766,7 +22612,7 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetAdmin(w, r, adminID) + siw.Handler.GetDocumentMetadata(w, r, projectID, documentID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16776,17 +22622,17 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque handler.ServeHTTP(w, r) } -// UpdateAdmin operation middleware -func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { +// ListJourneys operation middleware +func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } @@ -16796,28 +22642,35 @@ func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateAdmin(w, r, adminID) - })) + // Parameter object where we will unmarshal all parameters from the context + var params ListJourneysParams - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } + // ------------- Optional query parameter "limit" ------------- - handler.ServeHTTP(w, r) -} + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } -// GetOrganizationIntegrations operation middleware -func (siw *ServerInterfaceWrapper) GetOrganizationIntegrations(w http.ResponseWriter, r *http.Request) { + // ------------- Optional query parameter "offset" ------------- - ctx := r.Context() + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + // ------------- Optional query parameter "search" ------------- - r = r.WithContext(ctx) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetOrganizationIntegrations(w, r) + siw.Handler.ListJourneys(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16827,37 +22680,39 @@ func (siw *ServerInterfaceWrapper) GetOrganizationIntegrations(w http.ResponseWr handler.ServeHTTP(w, r) } -// Whoami operation middleware -func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request) { - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) +// CreateJourney operation middleware +func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { - r = r.WithContext(ctx) + var err error - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.Whoami(w, r) - })) + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return } - handler.ServeHTTP(w, r) -} - -// GetProfile operation middleware -func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params CreateJourneyParams + + // ------------- Optional query parameter "publish" ------------- + + err = runtime.BindQueryParameter("form", true, false, "publish", r.URL.Query(), ¶ms.Publish) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProfile(w, r) + siw.Handler.CreateJourney(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16867,46 +22722,37 @@ func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// ListProjects operation middleware -func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { +// DeleteJourney operation middleware +func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { var err error - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListProjectsParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } - // ------------- Optional query parameter "search" ------------- + ctx := r.Context() - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProjects(w, r, params) + siw.Handler.DeleteJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16916,8 +22762,28 @@ func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// CreateProject operation middleware -func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request) { +// GetJourney operation middleware +func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } ctx := r.Context() @@ -16926,7 +22792,7 @@ func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateProject(w, r) + siw.Handler.GetJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16936,8 +22802,8 @@ func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetProject operation middleware -func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { +// UpdateJourney operation middleware +func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -16950,6 +22816,15 @@ func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Req return } + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -16957,7 +22832,7 @@ func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProject(w, r, projectID) + siw.Handler.UpdateJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16967,8 +22842,8 @@ func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// UpdateProject operation middleware -func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { +// DuplicateJourney operation middleware +func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -16981,6 +22856,15 @@ func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http. return } + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -16988,7 +22872,7 @@ func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProject(w, r, projectID) + siw.Handler.DuplicateJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -16998,8 +22882,8 @@ func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// ListProjectAdmins operation middleware -func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { +// ListJourneyEntrances operation middleware +func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r *http.Request) { var err error @@ -17012,6 +22896,15 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h return } + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -17019,7 +22912,7 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListProjectAdminsParams + var params ListJourneyEntrancesParams // ------------- Optional query parameter "limit" ------------- @@ -17046,7 +22939,7 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProjectAdmins(w, r, projectID, params) + siw.Handler.ListJourneyEntrances(w, r, projectID, journeyID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17056,8 +22949,8 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// DeleteProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { +// PublishJourney operation middleware +func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -17070,12 +22963,12 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * return } - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -17086,7 +22979,7 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteProjectAdmin(w, r, projectID, adminID) + siw.Handler.PublishJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17096,8 +22989,8 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { +// GetJourneySteps operation middleware +func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error @@ -17110,12 +23003,12 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -17126,7 +23019,7 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProjectAdmin(w, r, projectID, adminID) + siw.Handler.GetJourneySteps(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17136,8 +23029,8 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// UpdateProjectAdmin operation middleware -func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { +// SetJourneySteps operation middleware +func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error @@ -17150,12 +23043,12 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * return } - // ------------- Path parameter "adminID" ------------- - var adminID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } @@ -17166,7 +23059,7 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProjectAdmin(w, r, projectID, adminID) + siw.Handler.SetJourneySteps(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17176,17 +23069,35 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// ListCampaigns operation middleware -func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { +// ListJourneyStepUsers operation middleware +func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + return + } + + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - var err error + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "stepID" ------------- + var stepID string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) return } @@ -17197,7 +23108,7 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListCampaignsParams + var params ListJourneyStepUsersParams // ------------- Optional query parameter "limit" ------------- @@ -17216,7 +23127,7 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListCampaigns(w, r, projectID, params) + siw.Handler.ListJourneyStepUsers(w, r, projectID, journeyID, stepID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17226,8 +23137,8 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// CreateCampaign operation middleware -func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { +// RemoveUserFromJourneyStep operation middleware +func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request) { var err error @@ -17240,43 +23151,30 @@ func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateCampaign(w, r, projectID) - })) + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return } - handler.ServeHTTP(w, r) -} - -// DeleteCampaign operation middleware -func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "stepID" ------------- + var stepID string - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17287,7 +23185,7 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteCampaign(w, r, projectID, campaignID) + siw.Handler.RemoveUserFromJourneyStep(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17297,8 +23195,8 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetCampaign operation middleware -func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { +// SkipJourneyStepDelay operation middleware +func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request) { var err error @@ -17311,12 +23209,30 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "stepID" ------------- + var stepID string + + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17327,7 +23243,7 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetCampaign(w, r, projectID, campaignID) + siw.Handler.SkipJourneyStepDelay(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17337,8 +23253,8 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// UpdateCampaign operation middleware -func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { +// TriggerUserToJourneyStep operation middleware +func (siw *ServerInterfaceWrapper) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request) { var err error @@ -17351,12 +23267,30 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "stepID" ------------- + var stepID string + + err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17367,7 +23301,7 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateCampaign(w, r, projectID, campaignID) + siw.Handler.TriggerUserToJourneyStep(w, r, projectID, journeyID, stepID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17377,8 +23311,8 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DuplicateCampaign operation middleware -func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { +// RemoveUserFromJourney operation middleware +func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request) { var err error @@ -17391,12 +23325,21 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17407,7 +23350,7 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateCampaign(w, r, projectID, campaignID) + siw.Handler.RemoveUserFromJourney(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17417,8 +23360,8 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// CreateTemplate operation middleware -func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { +// StreamUserJourneySteps operation middleware +func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request) { var err error @@ -17431,12 +23374,21 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17447,7 +23399,7 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateTemplate(w, r, projectID, campaignID) + siw.Handler.StreamUserJourneySteps(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17457,8 +23409,8 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DeleteTemplate operation middleware -func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { +// TriggerUser operation middleware +func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Request) { var err error @@ -17471,21 +23423,21 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17496,7 +23448,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.TriggerUser(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17506,8 +23458,8 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetTemplate operation middleware -func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { +// AdvanceUserStep operation middleware +func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *http.Request) { var err error @@ -17520,21 +23472,21 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17545,7 +23497,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.AdvanceUserStep(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17555,8 +23507,8 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// UpdateTemplate operation middleware -func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { +// GetUserJourneyState operation middleware +func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r *http.Request) { var err error @@ -17569,21 +23521,21 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http return } - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } - // ------------- Path parameter "templateID" ------------- - var templateID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -17594,7 +23546,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateTemplate(w, r, projectID, campaignID, templateID) + siw.Handler.GetUserJourneyState(w, r, projectID, journeyID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17604,56 +23556,37 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetCampaignUsers operation middleware -func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "campaignID" ------------- - var campaignID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) +// VersionJourney operation middleware +func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { - // Parameter object where we will unmarshal all parameters from the context - var params GetCampaignUsersParams + var err error - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + // ------------- Path parameter "journeyID" ------------- + var journeyID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetCampaignUsers(w, r, projectID, campaignID, params) + siw.Handler.VersionJourney(w, r, projectID, journeyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17663,8 +23596,8 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ListDocuments operation middleware -func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { +// ListApiKeys operation middleware +func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Request) { var err error @@ -17684,7 +23617,7 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListDocumentsParams + var params ListApiKeysParams // ------------- Optional query parameter "limit" ------------- @@ -17703,7 +23636,7 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListDocuments(w, r, projectID, params) + siw.Handler.ListApiKeys(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17713,8 +23646,8 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// UploadDocuments operation middleware -func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { +// CreateApiKey operation middleware +func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -17734,7 +23667,7 @@ func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UploadDocuments(w, r, projectID) + siw.Handler.CreateApiKey(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17744,8 +23677,8 @@ func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// DeleteDocument operation middleware -func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { +// DeleteApiKey operation middleware +func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -17758,12 +23691,12 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http return } - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) return } @@ -17774,7 +23707,7 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteDocument(w, r, projectID, documentID) + siw.Handler.DeleteApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17784,8 +23717,8 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetDocument operation middleware -func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { +// GetApiKey operation middleware +func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -17798,12 +23731,12 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) return } @@ -17814,7 +23747,7 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetDocument(w, r, projectID, documentID) + siw.Handler.GetApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17824,8 +23757,8 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// GetDocumentMetadata operation middleware -func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { +// UpdateApiKey operation middleware +func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.Request) { var err error @@ -17838,12 +23771,12 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r return } - // ------------- Path parameter "documentID" ------------- - var documentID openapi_types.UUID + // ------------- Path parameter "keyID" ------------- + var keyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) return } @@ -17854,7 +23787,7 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetDocumentMetadata(w, r, projectID, documentID) + siw.Handler.UpdateApiKey(w, r, projectID, keyID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17864,8 +23797,8 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// ListEvents operation middleware -func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Request) { +// ListLists operation middleware +func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { var err error @@ -17884,8 +23817,35 @@ func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params ListListsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListEvents(w, r, projectID) + siw.Handler.ListLists(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17895,8 +23855,8 @@ func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// ListJourneys operation middleware -func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { +// CreateList operation middleware +func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { var err error @@ -17915,27 +23875,8 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params ListJourneysParams - - // ------------- Optional query parameter "limit" ------------- - - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return - } - - // ------------- Optional query parameter "offset" ------------- - - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListJourneys(w, r, projectID, params) + siw.Handler.CreateList(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17945,8 +23886,8 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// CreateJourney operation middleware -func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { +// DeleteList operation middleware +func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { var err error @@ -17959,6 +23900,15 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. return } + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -17966,7 +23916,7 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateJourney(w, r, projectID) + siw.Handler.DeleteList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -17976,8 +23926,8 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// DeleteJourney operation middleware -func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { +// GetList operation middleware +func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { var err error @@ -17990,12 +23940,12 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18006,7 +23956,7 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteJourney(w, r, projectID, journeyID) + siw.Handler.GetList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18016,8 +23966,8 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetJourney operation middleware -func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { +// UpdateList operation middleware +func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { var err error @@ -18030,12 +23980,12 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18046,7 +23996,7 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetJourney(w, r, projectID, journeyID) + siw.Handler.UpdateList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18056,8 +24006,8 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// UpdateJourney operation middleware -func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { +// DuplicateList operation middleware +func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { var err error @@ -18070,12 +24020,12 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18086,7 +24036,7 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateJourney(w, r, projectID, journeyID) + siw.Handler.DuplicateList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18096,8 +24046,8 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// DuplicateJourney operation middleware -func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { +// RecountList operation middleware +func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Request) { var err error @@ -18110,12 +24060,12 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18126,7 +24076,7 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateJourney(w, r, projectID, journeyID) + siw.Handler.RecountList(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18136,8 +24086,8 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ListJourneyEntrances operation middleware -func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r *http.Request) { +// GetListUsers operation middleware +func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -18150,12 +24100,12 @@ func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18166,7 +24116,7 @@ func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListJourneyEntrancesParams + var params GetListUsersParams // ------------- Optional query parameter "limit" ------------- @@ -18180,60 +24130,20 @@ func (siw *ServerInterfaceWrapper) ListJourneyEntrances(w http.ResponseWriter, r err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } - - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListJourneyEntrances(w, r, projectID, journeyID, params) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// PublishJourney operation middleware -func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Optional query parameter "search" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PublishJourney(w, r, projectID, journeyID) + siw.Handler.GetListUsers(w, r, projectID, listID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18243,8 +24153,8 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetJourneySteps operation middleware -func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { +// PreviewListUsers operation middleware +func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -18257,12 +24167,12 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18272,8 +24182,19 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params PreviewListUsersParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetJourneySteps(w, r, projectID, journeyID) + siw.Handler.PreviewListUsers(w, r, projectID, listID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18283,8 +24204,8 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// SetJourneySteps operation middleware -func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { +// ImportListUsers operation middleware +func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -18297,12 +24218,12 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + // ------------- Path parameter "listID" ------------- + var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return } @@ -18313,7 +24234,7 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.SetJourneySteps(w, r, projectID, journeyID) + siw.Handler.ImportListUsers(w, r, projectID, listID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18323,8 +24244,8 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// ListJourneyStepUsers operation middleware -func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request) { +// ListLocales operation middleware +func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { var err error @@ -18337,24 +24258,6 @@ func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return - } - - // ------------- Path parameter "stepID" ------------- - var stepID string - - err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18362,7 +24265,7 @@ func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListJourneyStepUsersParams + var params ListLocalesParams // ------------- Optional query parameter "limit" ------------- @@ -18381,7 +24284,7 @@ func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListJourneyStepUsers(w, r, projectID, journeyID, stepID, params) + siw.Handler.ListLocales(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18391,8 +24294,8 @@ func (siw *ServerInterfaceWrapper) ListJourneyStepUsers(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// RemoveUserFromJourneyStep operation middleware -func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request) { +// CreateLocale operation middleware +func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { var err error @@ -18405,30 +24308,43 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWrit return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateLocale(w, r, projectID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - // ------------- Path parameter "stepID" ------------- - var stepID string + handler.ServeHTTP(w, r) +} - err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) +// DeleteLocale operation middleware +func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "localeID" ------------- + var localeID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return } @@ -18439,7 +24355,7 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWrit r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.RemoveUserFromJourneyStep(w, r, projectID, journeyID, stepID, userID) + siw.Handler.DeleteLocale(w, r, projectID, localeID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18449,8 +24365,8 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourneyStep(w http.ResponseWrit handler.ServeHTTP(w, r) } -// SkipJourneyStepDelay operation middleware -func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request) { +// GetLocale operation middleware +func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { var err error @@ -18463,30 +24379,12 @@ func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return - } - - // ------------- Path parameter "stepID" ------------- - var stepID string - - err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) - return - } - - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "localeID" ------------- + var localeID string - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return } @@ -18497,7 +24395,7 @@ func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.SkipJourneyStepDelay(w, r, projectID, journeyID, stepID, userID) + siw.Handler.GetLocale(w, r, projectID, localeID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18507,8 +24405,8 @@ func (siw *ServerInterfaceWrapper) SkipJourneyStepDelay(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// TriggerUserToJourneyStep operation middleware -func (siw *ServerInterfaceWrapper) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request) { +// ListProviders operation middleware +func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { var err error @@ -18521,41 +24419,33 @@ func (siw *ServerInterfaceWrapper) TriggerUserToJourneyStep(w http.ResponseWrite return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return - } + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - // ------------- Path parameter "stepID" ------------- - var stepID string + r = r.WithContext(ctx) - err = runtime.BindStyledParameterWithOptions("simple", "stepID", chi.URLParam(r, "stepID"), &stepID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + // Parameter object where we will unmarshal all parameters from the context + var params ListProvidersParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "stepID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Optional query parameter "offset" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.TriggerUserToJourneyStep(w, r, projectID, journeyID, stepID, userID) + siw.Handler.ListProviders(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18565,8 +24455,8 @@ func (siw *ServerInterfaceWrapper) TriggerUserToJourneyStep(w http.ResponseWrite handler.ServeHTTP(w, r) } -// RemoveUserFromJourney operation middleware -func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request) { +// ListAllProviders operation middleware +func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *http.Request) { var err error @@ -18579,24 +24469,6 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return - } - - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18604,7 +24476,7 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.RemoveUserFromJourney(w, r, projectID, journeyID, userID) + siw.Handler.ListAllProviders(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18614,8 +24486,8 @@ func (siw *ServerInterfaceWrapper) RemoveUserFromJourney(w http.ResponseWriter, handler.ServeHTTP(w, r) } -// VersionJourney operation middleware -func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { +// ListProviderMeta operation middleware +func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { var err error @@ -18628,15 +24500,6 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http return } - // ------------- Path parameter "journeyID" ------------- - var journeyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18644,7 +24507,7 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.VersionJourney(w, r, projectID, journeyID) + siw.Handler.ListProviderMeta(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18654,8 +24517,8 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// ListApiKeys operation middleware -func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Request) { +// CreateProvider operation middleware +func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -18668,33 +24531,32 @@ func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Re return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListApiKeysParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "group" ------------- + var group string - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + // ------------- Path parameter "type" ------------- + var pType string - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListApiKeys(w, r, projectID, params) + siw.Handler.CreateProvider(w, r, projectID, group, pType) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18704,8 +24566,8 @@ func (siw *ServerInterfaceWrapper) ListApiKeys(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// CreateApiKey operation middleware -func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.Request) { +// GetProvider operation middleware +func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -18718,6 +24580,33 @@ func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.R return } + // ------------- Path parameter "group" ------------- + var group string + + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) + return + } + + // ------------- Path parameter "type" ------------- + var pType string + + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) + return + } + + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18725,7 +24614,7 @@ func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateApiKey(w, r, projectID) + siw.Handler.GetProvider(w, r, projectID, group, pType, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18735,8 +24624,8 @@ func (siw *ServerInterfaceWrapper) CreateApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// DeleteApiKey operation middleware -func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.Request) { +// UpdateProvider operation middleware +func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -18749,12 +24638,30 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID + // ------------- Path parameter "group" ------------- + var group string - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) + return + } + + // ------------- Path parameter "type" ------------- + var pType string + + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) + return + } + + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return } @@ -18765,7 +24672,7 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteApiKey(w, r, projectID, keyID) + siw.Handler.UpdateProvider(w, r, projectID, group, pType, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18775,8 +24682,8 @@ func (siw *ServerInterfaceWrapper) DeleteApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// GetApiKey operation middleware -func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Request) { +// DeleteProvider operation middleware +func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { var err error @@ -18789,12 +24696,12 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID + // ------------- Path parameter "providerID" ------------- + var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return } @@ -18805,7 +24712,7 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetApiKey(w, r, projectID, keyID) + siw.Handler.DeleteProvider(w, r, projectID, providerID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18815,8 +24722,8 @@ func (siw *ServerInterfaceWrapper) GetApiKey(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// UpdateApiKey operation middleware -func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.Request) { +// ListOrganizationEventSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request) { var err error @@ -18829,15 +24736,6 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "keyID" ------------- - var keyID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "keyID", chi.URLParam(r, "keyID"), &keyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "keyID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18845,7 +24743,7 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateApiKey(w, r, projectID, keyID) + siw.Handler.ListOrganizationEventSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18855,8 +24753,8 @@ func (siw *ServerInterfaceWrapper) UpdateApiKey(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// ListLists operation middleware -func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { +// ListOrganizations operation middleware +func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *http.Request) { var err error @@ -18876,7 +24774,7 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListListsParams + var params ListOrganizationsParams // ------------- Optional query parameter "limit" ------------- @@ -18894,8 +24792,16 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ return } + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListLists(w, r, projectID, params) + siw.Handler.ListOrganizations(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18905,8 +24811,8 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// CreateList operation middleware -func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { +// UpsertOrganization operation middleware +func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r *http.Request) { var err error @@ -18926,7 +24832,7 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateList(w, r, projectID) + siw.Handler.UpsertOrganization(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18936,8 +24842,8 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// DeleteList operation middleware -func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { +// ListOrganizationSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request) { var err error @@ -18950,15 +24856,6 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -18966,7 +24863,7 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteList(w, r, projectID, listID) + siw.Handler.ListOrganizationSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -18976,8 +24873,8 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetList operation middleware -func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { +// ListOrganizationMemberSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request) { var err error @@ -18990,15 +24887,6 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -19006,7 +24894,7 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetList(w, r, projectID, listID) + siw.Handler.ListOrganizationMemberSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19016,8 +24904,8 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques handler.ServeHTTP(w, r) } -// UpdateList operation middleware -func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { +// DeleteOrganization operation middleware +func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { var err error @@ -19030,12 +24918,12 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return } @@ -19046,7 +24934,7 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateList(w, r, projectID, listID) + siw.Handler.DeleteOrganization(w, r, projectID, organizationID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19056,8 +24944,8 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// DuplicateList operation middleware -func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { +// GetOrganization operation middleware +func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { var err error @@ -19070,12 +24958,12 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return } @@ -19086,7 +24974,7 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DuplicateList(w, r, projectID, listID) + siw.Handler.GetOrganization(w, r, projectID, organizationID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19096,8 +24984,8 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// RecountList operation middleware -func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Request) { +// UpdateOrganization operation middleware +func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { var err error @@ -19110,12 +24998,12 @@ func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return } @@ -19126,7 +25014,7 @@ func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.RecountList(w, r, projectID, listID) + siw.Handler.UpdateOrganization(w, r, projectID, organizationID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19136,8 +25024,8 @@ func (siw *ServerInterfaceWrapper) RecountList(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// GetListUsers operation middleware -func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { +// GetOrganizationEvents operation middleware +func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, r *http.Request) { var err error @@ -19150,12 +25038,12 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return } @@ -19166,7 +25054,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params GetListUsersParams + var params GetOrganizationEventsParams // ------------- Optional query parameter "limit" ------------- @@ -19185,7 +25073,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetListUsers(w, r, projectID, listID, params) + siw.Handler.GetOrganizationEvents(w, r, projectID, organizationID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19195,8 +25083,8 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// ImportListUsers operation middleware -func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { +// ListOrganizationMembers operation middleware +func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter, r *http.Request) { var err error @@ -19209,43 +25097,12 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "listID" ------------- - var listID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ImportListUsers(w, r, projectID, listID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// ListLocales operation middleware -func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { - - var err error + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return } @@ -19256,7 +25113,7 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListLocalesParams + var params ListOrganizationMembersParams // ------------- Optional query parameter "limit" ------------- @@ -19275,7 +25132,7 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListLocales(w, r, projectID, params) + siw.Handler.ListOrganizationMembers(w, r, projectID, organizationID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19285,8 +25142,8 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// CreateLocale operation middleware -func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { +// AddOrganizationMember operation middleware +func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error @@ -19299,6 +25156,15 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R return } + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -19306,7 +25172,7 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateLocale(w, r, projectID) + siw.Handler.AddOrganizationMember(w, r, projectID, organizationID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19316,8 +25182,8 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// DeleteLocale operation middleware -func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { +// RemoveOrganizationMember operation middleware +func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error @@ -19330,12 +25196,21 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R return } - // ------------- Path parameter "localeID" ------------- - var localeID openapi_types.UUID + // ------------- Path parameter "organizationID" ------------- + var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) + return + } + + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19346,7 +25221,7 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteLocale(w, r, projectID, localeID) + siw.Handler.RemoveOrganizationMember(w, r, projectID, organizationID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19356,26 +25231,17 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// GetLocale operation middleware -func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { +// ListUserEventSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - // ------------- Path parameter "localeID" ------------- - var localeID string + // ------------- Path parameter "projectID" ------------- + var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return } @@ -19386,7 +25252,7 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetLocale(w, r, projectID, localeID) + siw.Handler.ListUserEventSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19396,8 +25262,8 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// ListProviders operation middleware -func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { +// ListUsers operation middleware +func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -19417,7 +25283,7 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListProvidersParams + var params ListUsersParams // ------------- Optional query parameter "limit" ------------- @@ -19435,8 +25301,16 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. return } + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProviders(w, r, projectID, params) + siw.Handler.ListUsers(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19446,8 +25320,8 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// ListAllProviders operation middleware -func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *http.Request) { +// IdentifyUser operation middleware +func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { var err error @@ -19467,7 +25341,7 @@ func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListAllProviders(w, r, projectID) + siw.Handler.IdentifyUser(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19477,8 +25351,8 @@ func (siw *ServerInterfaceWrapper) ListAllProviders(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// ListProviderMeta operation middleware -func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { +// ImportUsers operation middleware +func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { var err error @@ -19498,7 +25372,7 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListProviderMeta(w, r, projectID) + siw.Handler.ImportUsers(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19508,8 +25382,8 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r) } -// CreateProvider operation middleware -func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { +// ListUserSchemas operation middleware +func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { var err error @@ -19522,24 +25396,6 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "group" ------------- - var group string - - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) - return - } - - // ------------- Path parameter "type" ------------- - var pType string - - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -19547,7 +25403,7 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateProvider(w, r, projectID, group, pType) + siw.Handler.ListUserSchemas(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19557,8 +25413,8 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// GetProvider operation middleware -func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { +// DeleteUser operation middleware +func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { var err error @@ -19571,30 +25427,12 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re return } - // ------------- Path parameter "group" ------------- - var group string - - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) - return - } - - // ------------- Path parameter "type" ------------- - var pType string - - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) - return - } - - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19605,7 +25443,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetProvider(w, r, projectID, group, pType, providerID) + siw.Handler.DeleteUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19615,8 +25453,8 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// UpdateProvider operation middleware -func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { +// GetUser operation middleware +func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { var err error @@ -19629,30 +25467,12 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "group" ------------- - var group string - - err = runtime.BindStyledParameterWithOptions("simple", "group", chi.URLParam(r, "group"), &group, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "group", Err: err}) - return - } - - // ------------- Path parameter "type" ------------- - var pType string - - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) - return - } - - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19663,7 +25483,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateProvider(w, r, projectID, group, pType, providerID) + siw.Handler.GetUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19673,8 +25493,8 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// DeleteProvider operation middleware -func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { +// UpdateUser operation middleware +func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { var err error @@ -19687,12 +25507,12 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http return } - // ------------- Path parameter "providerID" ------------- - var providerID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19703,7 +25523,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteProvider(w, r, projectID, providerID) + siw.Handler.UpdateUser(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19713,8 +25533,8 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http handler.ServeHTTP(w, r) } -// ListSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { +// GetUserDevices operation middleware +func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http.Request) { var err error @@ -19727,33 +25547,23 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params ListSubscriptionsParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + ctx := r.Context() - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListSubscriptions(w, r, projectID, params) + siw.Handler.GetUserDevices(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19763,8 +25573,8 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h handler.ServeHTTP(w, r) } -// CreateSubscription operation middleware -func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { +// DeleteUserDevice operation middleware +func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *http.Request) { var err error @@ -19777,6 +25587,24 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * return } + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return + } + + // ------------- Path parameter "deviceID" ------------- + var deviceID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "deviceID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -19784,7 +25612,7 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateSubscription(w, r, projectID) + siw.Handler.DeleteUserDevice(w, r, projectID, userID, deviceID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19794,8 +25622,8 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// GetSubscription operation middleware -func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { +// GetUserEvents operation middleware +func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { var err error @@ -19808,12 +25636,12 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "subscriptionID" ------------- - var subscriptionID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19823,8 +25651,35 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params GetUserEventsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetSubscription(w, r, projectID, subscriptionID) + siw.Handler.GetUserEvents(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19834,8 +25689,8 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// UpdateSubscription operation middleware -func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { +// GetUserJourneys operation middleware +func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { var err error @@ -19848,12 +25703,12 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * return } - // ------------- Path parameter "subscriptionID" ------------- - var subscriptionID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19863,8 +25718,27 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context + var params GetUserJourneysParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + // ------------- Optional query parameter "offset" ------------- + + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateSubscription(w, r, projectID, subscriptionID) + siw.Handler.GetUserJourneys(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19874,8 +25748,8 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * handler.ServeHTTP(w, r) } -// ListTags operation middleware -func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { +// GetUserOrganizations operation middleware +func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r *http.Request) { var err error @@ -19888,6 +25762,15 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque return } + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -19895,7 +25778,7 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListTagsParams + var params GetUserOrganizationsParams // ------------- Optional query parameter "limit" ------------- @@ -19922,38 +25805,7 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListTags(w, r, projectID, params) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// CreateTag operation middleware -func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { - - var err error - - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.CreateTag(w, r, projectID) + siw.Handler.GetUserOrganizations(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -19963,8 +25815,8 @@ func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// DeleteTag operation middleware -func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { +// GetUserSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error @@ -19977,12 +25829,12 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -19992,48 +25844,27 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteTag(w, r, projectID, tagID) - })) - - for _, middleware := range siw.HandlerMiddlewares { - handler = middleware(handler) - } - - handler.ServeHTTP(w, r) -} - -// GetTag operation middleware -func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { - - var err error + // Parameter object where we will unmarshal all parameters from the context + var params GetUserSubscriptionsParams - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Optional query parameter "limit" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Optional query parameter "offset" ------------- - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetTag(w, r, projectID, tagID) + siw.Handler.GetUserSubscriptions(w, r, projectID, userID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20043,8 +25874,8 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request handler.ServeHTTP(w, r) } -// UpdateTag operation middleware -func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { +// UpdateUserSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error @@ -20057,12 +25888,12 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ return } - // ------------- Path parameter "tagID" ------------- - var tagID openapi_types.UUID + // ------------- Path parameter "userID" ------------- + var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return } @@ -20073,7 +25904,7 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateTag(w, r, projectID, tagID) + siw.Handler.UpdateUserSubscriptions(w, r, projectID, userID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20083,8 +25914,8 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// ListUsers operation middleware -func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { +// ListSubscriptions operation middleware +func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { var err error @@ -20104,7 +25935,7 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ r = r.WithContext(ctx) // Parameter object where we will unmarshal all parameters from the context - var params ListUsersParams + var params ListSubscriptionsParams // ------------- Optional query parameter "limit" ------------- @@ -20122,16 +25953,8 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ return } - // ------------- Optional query parameter "search" ------------- - - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - return - } - handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListUsers(w, r, projectID, params) + siw.Handler.ListSubscriptions(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20141,8 +25964,8 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ handler.ServeHTTP(w, r) } -// IdentifyUser operation middleware -func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { +// CreateSubscription operation middleware +func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { var err error @@ -20162,7 +25985,7 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.IdentifyUser(w, r, projectID) + siw.Handler.CreateSubscription(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20172,8 +25995,8 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R handler.ServeHTTP(w, r) } -// ImportUsers operation middleware -func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { +// GetSubscription operation middleware +func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { var err error @@ -20186,6 +26009,15 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re return } + // ------------- Path parameter "subscriptionID" ------------- + var subscriptionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -20193,7 +26025,7 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ImportUsers(w, r, projectID) + siw.Handler.GetSubscription(w, r, projectID, subscriptionID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20203,8 +26035,8 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re handler.ServeHTTP(w, r) } -// ListUserSchemas operation middleware -func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { +// UpdateSubscription operation middleware +func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { var err error @@ -20217,6 +26049,15 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt return } + // ------------- Path parameter "subscriptionID" ------------- + var subscriptionID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) + return + } + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -20224,7 +26065,7 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.ListUserSchemas(w, r, projectID) + siw.Handler.UpdateSubscription(w, r, projectID, subscriptionID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20234,8 +26075,8 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// DeleteUser operation middleware -func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { +// ListTags operation middleware +func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { var err error @@ -20248,23 +26089,41 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + // Parameter object where we will unmarshal all parameters from the context + var params ListTagsParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } - ctx := r.Context() + // ------------- Optional query parameter "offset" ------------- - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + return + } - r = r.WithContext(ctx) + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.DeleteUser(w, r, projectID, userID) + siw.Handler.ListTags(w, r, projectID, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20274,8 +26133,8 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetUser operation middleware -func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { +// CreateTag operation middleware +func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { var err error @@ -20288,15 +26147,6 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -20304,7 +26154,7 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUser(w, r, projectID, userID) + siw.Handler.CreateTag(w, r, projectID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20314,8 +26164,8 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques handler.ServeHTTP(w, r) } -// UpdateUser operation middleware -func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { +// DeleteTag operation middleware +func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { var err error @@ -20328,12 +26178,12 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return } @@ -20344,7 +26194,7 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateUser(w, r, projectID, userID) + siw.Handler.DeleteTag(w, r, projectID, tagID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20354,8 +26204,8 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req handler.ServeHTTP(w, r) } -// GetUserEvents operation middleware -func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { +// GetTag operation middleware +func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { var err error @@ -20368,42 +26218,23 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID - - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return - } - - ctx := r.Context() - - ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - - r = r.WithContext(ctx) - - // Parameter object where we will unmarshal all parameters from the context - var params GetUserEventsParams - - // ------------- Optional query parameter "limit" ------------- + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return } - // ------------- Optional query parameter "offset" ------------- + ctx := r.Context() - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - return - } + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserEvents(w, r, projectID, userID, params) + siw.Handler.GetTag(w, r, projectID, tagID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20413,8 +26244,8 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. handler.ServeHTTP(w, r) } -// GetUserJourneys operation middleware -func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { +// UpdateTag operation middleware +func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { var err error @@ -20427,12 +26258,12 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + // ------------- Path parameter "tagID" ------------- + var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return } @@ -20442,8 +26273,30 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateTag(w, r, projectID, tagID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r) +} + +// ListAdmins operation middleware +func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { + + var err error + + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + // Parameter object where we will unmarshal all parameters from the context - var params GetUserJourneysParams + var params ListAdminsParams // ------------- Optional query parameter "limit" ------------- @@ -20461,8 +26314,16 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt return } + // ------------- Optional query parameter "search" ------------- + + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + return + } + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserJourneys(w, r, projectID, userID, params) + siw.Handler.ListAdmins(w, r, params) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20472,26 +26333,37 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt handler.ServeHTTP(w, r) } -// GetUserSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { +// CreateAdmin operation middleware +func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Request) { - var err error + ctx := r.Context() - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) - return + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.CreateAdmin(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + handler.ServeHTTP(w, r) +} - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) +// DeleteAdmin operation middleware +func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } @@ -20501,27 +26373,39 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r r = r.WithContext(ctx) - // Parameter object where we will unmarshal all parameters from the context - var params GetUserSubscriptionsParams - - // ------------- Optional query parameter "limit" ------------- + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.DeleteAdmin(w, r, adminID) + })) - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - return + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - // ------------- Optional query parameter "offset" ------------- + handler.ServeHTTP(w, r) +} - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) +// GetAdmin operation middleware +func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { + + var err error + + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID + + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } + ctx := r.Context() + + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.GetUserSubscriptions(w, r, projectID, userID, params) + siw.Handler.GetAdmin(w, r, adminID) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20531,29 +26415,40 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r handler.ServeHTTP(w, r) } -// UpdateUserSubscriptions operation middleware -func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { +// UpdateAdmin operation middleware +func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { var err error - // ------------- Path parameter "projectID" ------------- - var projectID openapi_types.UUID + // ------------- Path parameter "adminID" ------------- + var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return } - // ------------- Path parameter "userID" ------------- - var userID openapi_types.UUID + ctx := r.Context() - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) - if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) - return + ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) + + r = r.WithContext(ctx) + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.UpdateAdmin(w, r, adminID) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } + handler.ServeHTTP(w, r) +} + +// Whoami operation middleware +func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() ctx = context.WithValue(ctx, HttpBearerAuthScopes, []string{}) @@ -20561,7 +26456,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter r = r.WithContext(ctx) handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.UpdateUserSubscriptions(w, r, projectID, userID) + siw.Handler.Whoami(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -20749,49 +26644,52 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl } r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/organizations", wrapper.DeleteOrganization) + r.Get(options.BaseURL+"/api/admin/profile", wrapper.GetProfile) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/organizations", wrapper.GetOrganization) + r.Get(options.BaseURL+"/api/admin/projects", wrapper.ListProjects) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/organizations", wrapper.UpdateOrganization) + r.Post(options.BaseURL+"/api/admin/projects", wrapper.CreateProject) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/organizations/admins", wrapper.ListAdmins) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.DeleteProject) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/organizations/admins", wrapper.CreateAdmin) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.GetProject) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.DeleteAdmin) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.UpdateProject) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.GetAdmin) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions", wrapper.ListActions) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/organizations/admins/{adminID}", wrapper.UpdateAdmin) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions", wrapper.CreateAction) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/organizations/integrations", wrapper.GetOrganizationIntegrations) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/meta", wrapper.ListActionMeta) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/organizations/whoami", wrapper.Whoami) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/meta/{actionType}/preview", wrapper.GetActionPreview) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/profile", wrapper.GetProfile) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions/test", wrapper.TestAction) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects", wrapper.ListProjects) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.DeleteAction) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects", wrapper.CreateProject) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.GetAction) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.GetProject) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}", wrapper.UpdateAction) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}", wrapper.UpdateProject) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/schema", wrapper.ListActionSchemas) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/actions/{actionID}/functions/{functionID}/test", wrapper.TestActionFunction) }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/admins", wrapper.ListProjectAdmins) @@ -20853,9 +26751,6 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/documents/{documentID}/metadata", wrapper.GetDocumentMetadata) }) - r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/events/schema", wrapper.ListEvents) - }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys", wrapper.ListJourneys) }) @@ -20901,6 +26796,18 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Group(func(r chi.Router) { r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.RemoveUserFromJourney) }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.StreamUserJourneySteps) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.TriggerUser) + }) + r.Group(func(r chi.Router) { + r.Put(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}", wrapper.AdvanceUserStep) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/users/{userID}/state", wrapper.GetUserJourneyState) + }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/admin/projects/{projectID}/journeys/{journeyID}/version", wrapper.VersionJourney) }) @@ -20944,7 +26851,10 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Get(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users", wrapper.GetListUsers) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users", wrapper.ImportListUsers) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users/preview", wrapper.PreviewListUsers) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/lists/{listID}/users/preview", wrapper.ImportListUsers) }) r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/admin/projects/{projectID}/locales", wrapper.ListLocales) @@ -20980,64 +26890,130 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/providers/{providerID}", wrapper.DeleteProvider) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.ListSubscriptions) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organization/events/schema", wrapper.ListOrganizationEventSchemas) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.CreateSubscription) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations", wrapper.ListOrganizations) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.GetSubscription) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations", wrapper.UpsertOrganization) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.UpdateSubscription) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/schema", wrapper.ListOrganizationSchemas) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.ListTags) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/users/schema", wrapper.ListOrganizationMemberSchemas) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.CreateTag) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.DeleteOrganization) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.DeleteTag) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.GetOrganization) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.GetTag) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}", wrapper.UpdateOrganization) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.UpdateTag) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/events", wrapper.GetOrganizationEvents) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users", wrapper.ListOrganizationMembers) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users", wrapper.AddOrganizationMember) + }) + r.Group(func(r chi.Router) { + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/organizations/{organizationID}/users/{userID}", wrapper.RemoveOrganizationMember) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/user/events/schema", wrapper.ListUserEventSchemas) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users", wrapper.ListUsers) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users", wrapper.IdentifyUser) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/import", wrapper.ImportUsers) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/schema", wrapper.ListUserSchemas) + }) + r.Group(func(r chi.Router) { + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.DeleteUser) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.GetUser) + }) + r.Group(func(r chi.Router) { + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}", wrapper.UpdateUser) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/devices", wrapper.GetUserDevices) + }) + r.Group(func(r chi.Router) { + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/devices/{deviceID}", wrapper.DeleteUserDevice) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/events", wrapper.GetUserEvents) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/journeys", wrapper.GetUserJourneys) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subject-organizations", wrapper.GetUserOrganizations) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions", wrapper.GetUserSubscriptions) + }) + r.Group(func(r chi.Router) { + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subjects/users/{userID}/subscriptions", wrapper.UpdateUserSubscriptions) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.ListSubscriptions) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions", wrapper.CreateSubscription) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.GetSubscription) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users", wrapper.ListUsers) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/subscriptions/{subscriptionID}", wrapper.UpdateSubscription) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.ListTags) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/users", wrapper.IdentifyUser) + r.Post(options.BaseURL+"/api/admin/projects/{projectID}/tags", wrapper.CreateTag) }) r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/api/admin/projects/{projectID}/users/import", wrapper.ImportUsers) + r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.DeleteTag) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/schema", wrapper.ListUserSchemas) + r.Get(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.GetTag) }) r.Group(func(r chi.Router) { - r.Delete(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.DeleteUser) + r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/tags/{tagID}", wrapper.UpdateTag) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.GetUser) + r.Get(options.BaseURL+"/api/admin/tenant/admins", wrapper.ListAdmins) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}", wrapper.UpdateUser) + r.Post(options.BaseURL+"/api/admin/tenant/admins", wrapper.CreateAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/events", wrapper.GetUserEvents) + r.Delete(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.DeleteAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/journeys", wrapper.GetUserJourneys) + r.Get(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.GetAdmin) }) r.Group(func(r chi.Router) { - r.Get(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/subscriptions", wrapper.GetUserSubscriptions) + r.Patch(options.BaseURL+"/api/admin/tenant/admins/{adminID}", wrapper.UpdateAdmin) }) r.Group(func(r chi.Router) { - r.Patch(options.BaseURL+"/api/admin/projects/{projectID}/users/{userID}/subscriptions", wrapper.UpdateUserSubscriptions) + r.Get(options.BaseURL+"/api/admin/tenant/whoami", wrapper.Whoami) }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/auth/login/{driver}/callback", wrapper.AuthCallback) diff --git a/internal/wasm/test/provider.wasm b/internal/wasm/test/provider.wasm index a21bbcfacc7aa72f5665754bef0775e784f2b3e7..044752ffeeea3e3c3ec7127a68bcfa65ace249b8 100644 GIT binary patch delta 85340 zcmce<2YggT*D#)$ySqttQ#Pbmc9Q^s5Fqpp7e%B=l_pXI1Op;Xu}}pSkP^7SfFgpT zB18mHf(lA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q74QXpE z?+pAX?TH@^WP^Oae`sws(bt2hLcLP6^cOXQiE1-2RJlT(_T#3E4V2c?FcQy&07#?jM~Y6M1DLd)U@6_0l- zFq$xF{M1n+M#|GShDz6>&gerInLjO((O{OLjM8mLsj&(3WVOMei)qWyIF-|n%I7^Q zYYz!kO*)8j>Wl_(=}~zL$|{t4Om`X$z;Y;~_fTi`kWlrcPRJ8*S|gqCnEY}`D6ji= z^Ijp!L--Ny?M4~(`I$-2BPHOt*ls%ESAZYoCmNL(*2{X*?T{o}4dx+#JelR06kkG+ERZO%|mskIeg{>mr;HsAeyvf!32erHI4blQ7RnZ< z@qBra9FJ#S84Iepd~8^#A}_?_V7Un`iRO4*^oaa&Sg1k*aTLXdV~`VzL+Npt@D72# zDDEb!4#$fl@OW8v86K)6#^@LC93IN!_o?Egs3B(I@#G@;)^PMb56`<7$uIF7T((I5 zF+5aZ5V4%cFv`j5iv}4%WCM#aa4J=pXLA9i*-ntpOeot(`ls}=E6({h6s-GDc zVA?yeP~Lec+4IDhEnR;N}`ouBiYd2Q1@&a-isjWi?Pk^ChtP z3gUwRs1D{}n7%%RomT`ne9V19-{nWlf1C9nbAXv~{qzedz)ajSm60JGCSLP*Wrd7rlm*f}3m*$mc=B3P Date: Mon, 9 Mar 2026 16:32:41 +0100 Subject: [PATCH 10/10] fix: include missing endpoints --- .../controllers/v1/management/journeys.go | 24 +++++++++++++++++++ .../http/controllers/v1/management/lists.go | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/internal/http/controllers/v1/management/journeys.go b/internal/http/controllers/v1/management/journeys.go index 2ae6b4f98..41dfb23f9 100644 --- a/internal/http/controllers/v1/management/journeys.go +++ b/internal/http/controllers/v1/management/journeys.go @@ -991,3 +991,27 @@ func journeyEntranceEventDependencies(steps oapi.JourneyStepMap) (map[string]str return events, nil } + +func (srv *JourneysController) ListJourneyEntrances(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, params oapi.ListJourneyEntrancesParams) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} + +func (srv *JourneysController) RemoveUserFromJourney(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, userID uuid.UUID) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} + +func (srv *JourneysController) RemoveUserFromJourneyStep(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, stepID string, userID uuid.UUID) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} + +func (srv *JourneysController) ListJourneyStepUsers(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, stepID string, params oapi.ListJourneyStepUsersParams) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} + +func (srv *JourneysController) SkipJourneyStepDelay(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, stepID string, userID uuid.UUID) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} + +func (srv *JourneysController) TriggerUserToJourneyStep(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, journeyID uuid.UUID, stepID string, userID uuid.UUID) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +} diff --git a/internal/http/controllers/v1/management/lists.go b/internal/http/controllers/v1/management/lists.go index c80ca6806..ee364f73f 100644 --- a/internal/http/controllers/v1/management/lists.go +++ b/internal/http/controllers/v1/management/lists.go @@ -698,3 +698,7 @@ func (srv *ListsController) PreviewListUsers(w http.ResponseWriter, r *http.Requ Results: users.OAPI(), }) } + +func (srv *ListsController) RecountList(w http.ResponseWriter, r *http.Request, projectID uuid.UUID, listID uuid.UUID) { + oapi.WriteProblem(w, problem.ErrUnimplemented()) +}