09c61ea9b4
support delete for client, document and folder * support delete for client, document and folder * remove batch cancel conflict not used Approved-by: Jacob Mathison
3142 lines
132 KiB
Go
3142 lines
132 KiB
Go
// Package queryapi provides primitives to interact with the openapi HTTP API.
|
|
//
|
|
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version 2.4.1 DO NOT EDIT.
|
|
package queryapi
|
|
|
|
import (
|
|
"bytes"
|
|
"compress/gzip"
|
|
"encoding/base64"
|
|
"fmt"
|
|
"net/http"
|
|
"net/url"
|
|
"path"
|
|
"strings"
|
|
"time"
|
|
|
|
"github.com/getkin/kin-openapi/openapi3"
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/oapi-codegen/nullable"
|
|
"github.com/oapi-codegen/runtime"
|
|
openapi_types "github.com/oapi-codegen/runtime/types"
|
|
)
|
|
|
|
const (
|
|
CognitoAuthScopes = "cognitoAuth.Scopes"
|
|
JwtAuthScopes = "jwtAuth.Scopes"
|
|
)
|
|
|
|
// Defines values for AdminUserActionResponseAction.
|
|
const (
|
|
Disable AdminUserActionResponseAction = "disable"
|
|
Enable AdminUserActionResponseAction = "enable"
|
|
)
|
|
|
|
// Defines values for BatchStatus.
|
|
const (
|
|
BatchStatusCancelled BatchStatus = "cancelled"
|
|
BatchStatusCompleted BatchStatus = "completed"
|
|
BatchStatusFailed BatchStatus = "failed"
|
|
BatchStatusProcessing BatchStatus = "processing"
|
|
)
|
|
|
|
// Defines values for ClientStatus.
|
|
const (
|
|
INSYNC ClientStatus = "IN_SYNC"
|
|
NOTSYNCED ClientStatus = "NOT_SYNCED"
|
|
NOTSYNCING ClientStatus = "NOT_SYNCING"
|
|
)
|
|
|
|
// Defines values for ExportStatus.
|
|
const (
|
|
ExportStatusCompleted ExportStatus = "completed"
|
|
ExportStatusFailed ExportStatus = "failed"
|
|
ExportStatusInProgress ExportStatus = "in_progress"
|
|
)
|
|
|
|
// Defines values for FieldFilterCondition.
|
|
const (
|
|
ClosedInterval FieldFilterCondition = "closed_interval"
|
|
Exclude FieldFilterCondition = "exclude"
|
|
GreaterThan FieldFilterCondition = "greater_than"
|
|
Include FieldFilterCondition = "include"
|
|
LeftClosedInterval FieldFilterCondition = "left_closed_interval"
|
|
LessThan FieldFilterCondition = "less_than"
|
|
OpenInterval FieldFilterCondition = "open_interval"
|
|
RightClosedInterval FieldFilterCondition = "right_closed_interval"
|
|
)
|
|
|
|
// Defines values for ListAdminUsersParamsStatus.
|
|
const (
|
|
All ListAdminUsersParamsStatus = "all"
|
|
Disabled ListAdminUsersParamsStatus = "disabled"
|
|
Enabled ListAdminUsersParamsStatus = "enabled"
|
|
)
|
|
|
|
// Defines values for ListAdminUsersParamsSortBy.
|
|
const (
|
|
CreatedAt ListAdminUsersParamsSortBy = "created_at"
|
|
Email ListAdminUsersParamsSortBy = "email"
|
|
LastName ListAdminUsersParamsSortBy = "last_name"
|
|
)
|
|
|
|
// Defines values for ListAdminUsersParamsSortOrder.
|
|
const (
|
|
Asc ListAdminUsersParamsSortOrder = "asc"
|
|
Desc ListAdminUsersParamsSortOrder = "desc"
|
|
)
|
|
|
|
// AdminUserActionResponse Response for user enable/disable actions with success status and timestamp
|
|
type AdminUserActionResponse struct {
|
|
// Action Action performed
|
|
Action AdminUserActionResponseAction `json:"action"`
|
|
|
|
// CognitoSubjectId Cognito subject identifier for the action response
|
|
CognitoSubjectId *string `json:"cognito_subject_id,omitempty"`
|
|
|
|
// Email Email of the user acted upon
|
|
Email openapi_types.Email `json:"email"`
|
|
|
|
// Success Whether the action succeeded
|
|
Success bool `json:"success"`
|
|
|
|
// Timestamp Timestamp of the action
|
|
Timestamp *time.Time `json:"timestamp,omitempty"`
|
|
}
|
|
|
|
// AdminUserActionResponseAction Action performed
|
|
type AdminUserActionResponseAction string
|
|
|
|
// AdminUserCreate Request body for creating a new user with email, name, and role assignments
|
|
type AdminUserCreate struct {
|
|
// Email User email address (used as Cognito username)
|
|
Email openapi_types.Email `json:"email"`
|
|
|
|
// FirstName User's given name for account creation
|
|
FirstName string `json:"first_name"`
|
|
|
|
// LastName User's family name for account creation
|
|
LastName string `json:"last_name"`
|
|
|
|
// Roles List of role keys to assign in Permit.io (e.g., super_admin, user_admin, auditor, client_user). Roles must exist in your Permit.io environment. Invalid roles fail silently - check roles_assigned in response.
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
// AdminUserCreateResponse Response after creating a user, including Cognito subject ID and sync status
|
|
type AdminUserCreateResponse struct {
|
|
// CognitoSubjectId Created user's Cognito unique subject identifier
|
|
CognitoSubjectId string `json:"cognito_subject_id"`
|
|
|
|
// CreatedAt Timestamp when the user was created in the system
|
|
CreatedAt *time.Time `json:"created_at,omitempty"`
|
|
|
|
// Email User email address
|
|
Email openapi_types.Email `json:"email"`
|
|
|
|
// Enabled Whether the created user is enabled in Cognito
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
|
|
// FirstName Created user's given name
|
|
FirstName *string `json:"first_name,omitempty"`
|
|
|
|
// LastName Created user's family name
|
|
LastName *string `json:"last_name,omitempty"`
|
|
|
|
// PermitSynced Whether user was successfully created in Permit.io authorization system. If false, user exists in Cognito (can authenticate) but not in Permit.io (has no authorization/permissions). Manual sync or retry may be required.
|
|
PermitSynced bool `json:"permit_synced"`
|
|
|
|
// RolesAssigned Roles that were successfully assigned in Permit.io. May be a subset of requested roles if some failed. Compare with requested roles array to detect assignment failures. If null or empty, no roles were assigned (user has no permissions). Only present if permit_synced is true.
|
|
RolesAssigned *[]string `json:"roles_assigned,omitempty"`
|
|
|
|
// Status Cognito user status
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// AdminUserDeleteResponse Response for user deletion with status from each system (Cognito and Permit.io)
|
|
type AdminUserDeleteResponse struct {
|
|
// CognitoSubjectId Cognito subject identifier of the deleted user
|
|
CognitoSubjectId *string `json:"cognito_subject_id,omitempty"`
|
|
|
|
// DeletedFrom Deletion status from each system
|
|
DeletedFrom struct {
|
|
// Cognito Whether user was deleted from Cognito
|
|
Cognito bool `json:"cognito"`
|
|
|
|
// Permit Whether user was deleted from Permit.io
|
|
Permit bool `json:"permit"`
|
|
} `json:"deleted_from"`
|
|
|
|
// Email Email of the deleted user
|
|
Email openapi_types.Email `json:"email"`
|
|
|
|
// Success Whether the deletion succeeded
|
|
Success bool `json:"success"`
|
|
|
|
// Timestamp Timestamp of the deletion
|
|
Timestamp *time.Time `json:"timestamp,omitempty"`
|
|
}
|
|
|
|
// AdminUserDetails Complete user information from Cognito and Permit.io including roles and timestamps
|
|
type AdminUserDetails struct {
|
|
// CognitoSubjectId User's Cognito unique subject identifier from authentication system
|
|
CognitoSubjectId string `json:"cognito_subject_id"`
|
|
|
|
// CreatedAt Timestamp when the user account was created
|
|
CreatedAt *time.Time `json:"created_at,omitempty"`
|
|
|
|
// Email Email address of the user account
|
|
Email openapi_types.Email `json:"email"`
|
|
|
|
// Enabled Current enabled status of the user in Cognito
|
|
Enabled bool `json:"enabled"`
|
|
|
|
// FirstName User's given name retrieved from Cognito
|
|
FirstName *string `json:"first_name,omitempty"`
|
|
|
|
// LastName User's family name retrieved from Cognito
|
|
LastName *string `json:"last_name,omitempty"`
|
|
|
|
// Roles Roles assigned in Permit.io
|
|
Roles *[]string `json:"roles,omitempty"`
|
|
|
|
// Status Current Cognito user account status
|
|
Status string `json:"status"`
|
|
|
|
// UpdatedAt Timestamp of last update
|
|
UpdatedAt *time.Time `json:"updated_at,omitempty"`
|
|
}
|
|
|
|
// AdminUserList Paginated list of users with total count and pagination metadata
|
|
type AdminUserList struct {
|
|
// HasMore Whether more pages are available
|
|
HasMore *bool `json:"has_more,omitempty"`
|
|
|
|
// Page Current page number
|
|
Page int32 `json:"page"`
|
|
|
|
// PageSize Number of users per page
|
|
PageSize int32 `json:"page_size"`
|
|
|
|
// Total Total number of users matching filter
|
|
Total int32 `json:"total"`
|
|
|
|
// Users List of users for current page
|
|
Users []AdminUserDetails `json:"users"`
|
|
}
|
|
|
|
// AdminUserUpdate Request body for updating user attributes (first name, last name, and roles)
|
|
type AdminUserUpdate struct {
|
|
// FirstName Updated given name for the user
|
|
FirstName *string `json:"first_name,omitempty"`
|
|
|
|
// LastName Updated family name for the user
|
|
LastName *string `json:"last_name,omitempty"`
|
|
|
|
// Roles Complete list of role keys to assign in Permit.io - REPLACES all existing roles (not additive). To add a role, include all current roles plus the new one. To remove a role, omit it from the array. Roles must exist in Permit.io environment. Invalid roles fail silently - check response.roles for final state. Omit this field entirely to leave roles unchanged.
|
|
Roles *[]string `json:"roles,omitempty"`
|
|
}
|
|
|
|
// ArrayFieldItem Single row of array field data (112 fields forming one row)
|
|
type ArrayFieldItem struct {
|
|
AareteDerivedAdditionRateChangeTimeline *string `json:"aareteDerivedAdditionRateChangeTimeline,omitempty"`
|
|
AareteDerivedClaimTypeCd *string `json:"aareteDerivedClaimTypeCd,omitempty"`
|
|
AareteDerivedFeeSchedule *string `json:"aareteDerivedFeeSchedule,omitempty"`
|
|
AareteDerivedFeeScheduleVersion *string `json:"aareteDerivedFeeScheduleVersion,omitempty"`
|
|
AareteDerivedGrouperVersion *string `json:"aareteDerivedGrouperVersion,omitempty"`
|
|
AareteDerivedLob *string `json:"aareteDerivedLob,omitempty"`
|
|
AareteDerivedNetwork *string `json:"aareteDerivedNetwork,omitempty"`
|
|
AareteDerivedProduct *string `json:"aareteDerivedProduct,omitempty"`
|
|
AareteDerivedProgram *string `json:"aareteDerivedProgram,omitempty"`
|
|
AareteDerivedProvType *string `json:"aareteDerivedProvType,omitempty"`
|
|
AareteDerivedReimbMethod *string `json:"aareteDerivedReimbMethod,omitempty"`
|
|
AdditionDesc *string `json:"additionDesc,omitempty"`
|
|
AdditionMaxFeeRateInc *float64 `json:"additionMaxFeeRateInc,omitempty"`
|
|
AdditionMaxPctRateInc *float64 `json:"additionMaxPctRateInc,omitempty"`
|
|
AuthAdmitTypeDesc *string `json:"authAdmitTypeDesc,omitempty"`
|
|
BillTypeCd *string `json:"billTypeCd,omitempty"`
|
|
BillTypeCdDesc *string `json:"billTypeCdDesc,omitempty"`
|
|
CarveoutCd *string `json:"carveoutCd,omitempty"`
|
|
CarveoutInd *bool `json:"carveoutInd,omitempty"`
|
|
ClaimAdmitTypeCd *string `json:"claimAdmitTypeCd,omitempty"`
|
|
ClaimStatusCd *string `json:"claimStatusCd,omitempty"`
|
|
ClaimStatusCdDesc *string `json:"claimStatusCdDesc,omitempty"`
|
|
Cpt4ProcCd *string `json:"cpt4ProcCd,omitempty"`
|
|
Cpt4ProcCdDesc *string `json:"cpt4ProcCdDesc,omitempty"`
|
|
Cpt4ProcMod *string `json:"cpt4ProcMod,omitempty"`
|
|
Cpt4ProcModDesc *string `json:"cpt4ProcModDesc,omitempty"`
|
|
DefaultInd *bool `json:"defaultInd,omitempty"`
|
|
DiagCd *string `json:"diagCd,omitempty"`
|
|
DiagCdDesc *string `json:"diagCdDesc,omitempty"`
|
|
DshFeeRate *float64 `json:"dshFeeRate,omitempty"`
|
|
DshInd *bool `json:"dshInd,omitempty"`
|
|
DshPctRate *float64 `json:"dshPctRate,omitempty"`
|
|
ExhibitPage *string `json:"exhibitPage,omitempty"`
|
|
ExhibitTitle *string `json:"exhibitTitle,omitempty"`
|
|
FacilityAdjustmentTerm *string `json:"facilityAdjustmentTerm,omitempty"`
|
|
GmeFeeRate *float64 `json:"gmeFeeRate,omitempty"`
|
|
GmeInd *bool `json:"gmeInd,omitempty"`
|
|
GmePctRate *float64 `json:"gmePctRate,omitempty"`
|
|
GreaterOfInd *bool `json:"greaterOfInd,omitempty"`
|
|
GrouperAlternativeLevelOfCare *string `json:"grouperAlternativeLevelOfCare,omitempty"`
|
|
GrouperBaseRate *float64 `json:"grouperBaseRate,omitempty"`
|
|
GrouperCd *string `json:"grouperCd,omitempty"`
|
|
GrouperCdDesc *string `json:"grouperCdDesc,omitempty"`
|
|
GrouperHacInd *bool `json:"grouperHacInd,omitempty"`
|
|
GrouperPctRate *float64 `json:"grouperPctRate,omitempty"`
|
|
GrouperReadmissionsInd *bool `json:"grouperReadmissionsInd,omitempty"`
|
|
GrouperRiskOfMortalitySubclass *string `json:"grouperRiskOfMortalitySubclass,omitempty"`
|
|
GrouperSeverity *string `json:"grouperSeverity,omitempty"`
|
|
GrouperSeverityInd *bool `json:"grouperSeverityInd,omitempty"`
|
|
GrouperTransferInd *bool `json:"grouperTransferInd,omitempty"`
|
|
GrouperType *string `json:"grouperType,omitempty"`
|
|
ImeFeeRate *float64 `json:"imeFeeRate,omitempty"`
|
|
ImeInd *bool `json:"imeInd,omitempty"`
|
|
ImePctRate *float64 `json:"imePctRate,omitempty"`
|
|
LesserOfInd *bool `json:"lesserOfInd,omitempty"`
|
|
LobProductRelationship *string `json:"lobProductRelationship,omitempty"`
|
|
LobProgramRelationship *string `json:"lobProgramRelationship,omitempty"`
|
|
NdcCd *string `json:"ndcCd,omitempty"`
|
|
NdcCdDesc *string `json:"ndcCdDesc,omitempty"`
|
|
NtapFeeRate *float64 `json:"ntapFeeRate,omitempty"`
|
|
NtapInd *bool `json:"ntapInd,omitempty"`
|
|
NtapPctRate *float64 `json:"ntapPctRate,omitempty"`
|
|
OutlierExclusionCd *string `json:"outlierExclusionCd,omitempty"`
|
|
OutlierExclusionCdDesc *string `json:"outlierExclusionCdDesc,omitempty"`
|
|
OutlierFirstDollarInd *bool `json:"outlierFirstDollarInd,omitempty"`
|
|
OutlierFixedLossNbrDaysThreshold *float64 `json:"outlierFixedLossNbrDaysThreshold,omitempty"`
|
|
OutlierFixedLossThreshold *float64 `json:"outlierFixedLossThreshold,omitempty"`
|
|
OutlierMaximum *float64 `json:"outlierMaximum,omitempty"`
|
|
OutlierMaximumFrequency *float64 `json:"outlierMaximumFrequency,omitempty"`
|
|
OutlierPctRate *float64 `json:"outlierPctRate,omitempty"`
|
|
OutlierTerm *string `json:"outlierTerm,omitempty"`
|
|
PatientAgeMax *string `json:"patientAgeMax,omitempty"`
|
|
PatientAgeMin *string `json:"patientAgeMin,omitempty"`
|
|
PlaceOfServiceCd *string `json:"placeOfServiceCd,omitempty"`
|
|
PlaceOfServiceCdDesc *string `json:"placeOfServiceCdDesc,omitempty"`
|
|
ProvSpecialtyCd *string `json:"provSpecialtyCd,omitempty"`
|
|
ProvSpecialtyCdDesc *string `json:"provSpecialtyCdDesc,omitempty"`
|
|
ProvTaxonomyCd *string `json:"provTaxonomyCd,omitempty"`
|
|
ProvTaxonomyCdDesc *string `json:"provTaxonomyCdDesc,omitempty"`
|
|
RangeNbrDays *string `json:"rangeNbrDays,omitempty"`
|
|
RateEscalatorDesc *string `json:"rateEscalatorDesc,omitempty"`
|
|
RateEscalatorInd *bool `json:"rateEscalatorInd,omitempty"`
|
|
RateEscalatorMaxRateIncPct *float64 `json:"rateEscalatorMaxRateIncPct,omitempty"`
|
|
RateEscalatorRateChangeTimeline *float64 `json:"rateEscalatorRateChangeTimeline,omitempty"`
|
|
ReimbConversionFactor *float64 `json:"reimbConversionFactor,omitempty"`
|
|
ReimbEffectiveDt *openapi_types.Date `json:"reimbEffectiveDt,omitempty"`
|
|
ReimbFeeRate *float64 `json:"reimbFeeRate,omitempty"`
|
|
ReimbPctRate *float64 `json:"reimbPctRate,omitempty"`
|
|
ReimbProvName *string `json:"reimbProvName,omitempty"`
|
|
ReimbProvNpi *string `json:"reimbProvNpi,omitempty"`
|
|
ReimbProvTin *string `json:"reimbProvTin,omitempty"`
|
|
ReimbTerm *string `json:"reimbTerm,omitempty"`
|
|
ReimbTerminationDt *openapi_types.Date `json:"reimbTerminationDt,omitempty"`
|
|
RevenueCd *string `json:"revenueCd,omitempty"`
|
|
RevenueCdDesc *string `json:"revenueCdDesc,omitempty"`
|
|
ServiceTerm *string `json:"serviceTerm,omitempty"`
|
|
StopLossDailyMaxRate *float64 `json:"stopLossDailyMaxRate,omitempty"`
|
|
StopLossExclusionCd *string `json:"stopLossExclusionCd,omitempty"`
|
|
StopLossExclusionDesc *string `json:"stopLossExclusionDesc,omitempty"`
|
|
StopLossFirstDollarInd *bool `json:"stopLossFirstDollarInd,omitempty"`
|
|
StopLossFixedLossThreshold *float64 `json:"stopLossFixedLossThreshold,omitempty"`
|
|
StopLossMaximum *float64 `json:"stopLossMaximum,omitempty"`
|
|
StopLossMaximumFrequency *float64 `json:"stopLossMaximumFrequency,omitempty"`
|
|
StopLossPctRateOnExcessCharges *float64 `json:"stopLossPctRateOnExcessCharges,omitempty"`
|
|
StopLossRangeNbrDays *float64 `json:"stopLossRangeNbrDays,omitempty"`
|
|
StopLossTerm *string `json:"stopLossTerm,omitempty"`
|
|
TriggerBaseThreshold *float64 `json:"triggerBaseThreshold,omitempty"`
|
|
TriggerCapThresholdAmt *float64 `json:"triggerCapThresholdAmt,omitempty"`
|
|
UcFeeRate *float64 `json:"ucFeeRate,omitempty"`
|
|
UcInd *bool `json:"ucInd,omitempty"`
|
|
UcPctRate *float64 `json:"ucPctRate,omitempty"`
|
|
UnitOfMeasure *string `json:"unitOfMeasure,omitempty"`
|
|
}
|
|
|
|
// BatchID The batch upload id.
|
|
type BatchID = openapi_types.UUID
|
|
|
|
// BatchStatus The status of a batch upload
|
|
type BatchStatus string
|
|
|
|
// BatchUploadDetails defines model for BatchUploadDetails.
|
|
type BatchUploadDetails struct {
|
|
// BatchId The batch upload id.
|
|
BatchId BatchID `json:"batch_id"`
|
|
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// CompletedAt When the batch upload completed processing
|
|
CompletedAt nullable.Nullable[time.Time] `json:"completed_at,omitempty"`
|
|
|
|
// CreatedAt When the batch upload was created
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
// FailedDocuments Number of documents that failed processing
|
|
FailedDocuments int32 `json:"failed_documents"`
|
|
|
|
// FailedFilenames List of filenames that failed processing
|
|
FailedFilenames *[]string `json:"failed_filenames,omitempty"`
|
|
|
|
// InvalidTypeDocuments Number of non-PDF files found in archive
|
|
InvalidTypeDocuments int32 `json:"invalid_type_documents"`
|
|
|
|
// OriginalFilename Original filename of the uploaded ZIP archive
|
|
OriginalFilename string `json:"original_filename"`
|
|
|
|
// ProcessedDocuments Number of documents processed so far
|
|
ProcessedDocuments int32 `json:"processed_documents"`
|
|
|
|
// ProgressPercent Processing progress percentage
|
|
ProgressPercent int32 `json:"progress_percent"`
|
|
|
|
// Status The status of a batch upload
|
|
Status BatchStatus `json:"status"`
|
|
|
|
// TotalDocuments Total number of documents in the batch
|
|
TotalDocuments int32 `json:"total_documents"`
|
|
}
|
|
|
|
// BatchUploadList List of batch uploads for a client
|
|
type BatchUploadList struct {
|
|
Batches []BatchUploadSummary `json:"batches"`
|
|
|
|
// TotalCount Total number of batches for this client
|
|
TotalCount int32 `json:"total_count"`
|
|
}
|
|
|
|
// BatchUploadResponse Response returned when a batch upload is accepted for processing
|
|
type BatchUploadResponse struct {
|
|
// BatchId The batch upload id.
|
|
BatchId BatchID `json:"batch_id"`
|
|
|
|
// Status The status of a batch upload
|
|
Status BatchStatus `json:"status"`
|
|
|
|
// StatusUrl URL to check batch status
|
|
StatusUrl string `json:"status_url"`
|
|
}
|
|
|
|
// BatchUploadSummary Summary information about a batch upload
|
|
type BatchUploadSummary struct {
|
|
// BatchId The batch upload id.
|
|
BatchId BatchID `json:"batch_id"`
|
|
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// CompletedAt When the batch upload completed processing
|
|
CompletedAt nullable.Nullable[time.Time] `json:"completed_at,omitempty"`
|
|
|
|
// CreatedAt When the batch upload was created
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
// FailedDocuments Number of documents that failed processing
|
|
FailedDocuments int32 `json:"failed_documents"`
|
|
|
|
// InvalidTypeDocuments Number of non-PDF files found in archive
|
|
InvalidTypeDocuments int32 `json:"invalid_type_documents"`
|
|
|
|
// OriginalFilename Original filename of the uploaded ZIP archive
|
|
OriginalFilename string `json:"original_filename"`
|
|
|
|
// ProcessedDocuments Number of documents processed so far
|
|
ProcessedDocuments int32 `json:"processed_documents"`
|
|
|
|
// ProgressPercent Processing progress percentage
|
|
ProgressPercent int32 `json:"progress_percent"`
|
|
|
|
// Status The status of a batch upload
|
|
Status BatchStatus `json:"status"`
|
|
|
|
// TotalDocuments Total number of documents in the batch
|
|
TotalDocuments int32 `json:"total_documents"`
|
|
}
|
|
|
|
// ClientCanSync If the client is allowing active syncs
|
|
type ClientCanSync = bool
|
|
|
|
// ClientCreate The properties for creation.
|
|
type ClientCreate struct {
|
|
// Id The client external id
|
|
Id ClientID `json:"id"`
|
|
|
|
// Name The client name
|
|
Name ClientName `json:"name"`
|
|
}
|
|
|
|
// ClientID The client external id
|
|
type ClientID = string
|
|
|
|
// ClientIDBody The client id.
|
|
type ClientIDBody struct {
|
|
// Id The client external id
|
|
Id ClientID `json:"id"`
|
|
}
|
|
|
|
// ClientListResponse Response containing a list of all clients.
|
|
type ClientListResponse struct {
|
|
// Clients List of clients in the system.
|
|
Clients []DocClient `json:"clients"`
|
|
|
|
// TotalCount Total number of clients.
|
|
TotalCount int32 `json:"totalCount"`
|
|
}
|
|
|
|
// ClientName The client name
|
|
type ClientName = string
|
|
|
|
// ClientStatus Specifies the status of a client.
|
|
type ClientStatus string
|
|
|
|
// ClientStatusBody A client status information object.
|
|
type ClientStatusBody struct {
|
|
// Status Specifies the status of a client.
|
|
Status ClientStatus `json:"status"`
|
|
}
|
|
|
|
// ClientUpdate The properties that may be updated.
|
|
type ClientUpdate struct {
|
|
// CanSync If the client is allowing active syncs
|
|
CanSync *ClientCanSync `json:"can_sync,omitempty"`
|
|
|
|
// Name The client name
|
|
Name *ClientName `json:"name,omitempty"`
|
|
}
|
|
|
|
// CodeVersion The desired code version.
|
|
type CodeVersion = int64
|
|
|
|
// Collector Collector model. Note - minimum_text_version has been removed since text extraction is deprecated.
|
|
type Collector struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion Version `json:"active_version"`
|
|
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// LatestVersion The desired version.
|
|
LatestVersion Version `json:"latest_version"`
|
|
|
|
// MinimumCleanerVersion The desired code version.
|
|
MinimumCleanerVersion CodeVersion `json:"minimum_cleaner_version"`
|
|
}
|
|
|
|
// CollectorFieldName The output field name.
|
|
type CollectorFieldName = string
|
|
|
|
// CollectorSet Payload for updating a Collector. Note - minimum_text_version has been removed.
|
|
type CollectorSet struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion *Version `json:"active_version,omitempty"`
|
|
|
|
// MinimumCleanerVersion The desired code version.
|
|
MinimumCleanerVersion *CodeVersion `json:"minimum_cleaner_version,omitempty"`
|
|
}
|
|
|
|
// DeleteResponse Response for hard-delete operations when verbose=true
|
|
type DeleteResponse struct {
|
|
// DeletedDocuments S3 paths of orphaned source documents (only populated when verbose=true)
|
|
DeletedDocuments []struct {
|
|
// DocumentId ID of the deleted document
|
|
DocumentId openapi_types.UUID `json:"documentId"`
|
|
|
|
// S3Path Full S3 path (s3://bucket/key) of the orphaned source file
|
|
S3Path string `json:"s3Path"`
|
|
} `json:"deletedDocuments"`
|
|
}
|
|
|
|
// DocClient The properties of a client.
|
|
type DocClient struct {
|
|
// CanSync If the client is allowing active syncs
|
|
CanSync ClientCanSync `json:"can_sync"`
|
|
|
|
// Id The client external id
|
|
Id ClientID `json:"id"`
|
|
|
|
// Name The client name
|
|
Name ClientName `json:"name"`
|
|
}
|
|
|
|
// DocumentEnriched Enriched document details with additional metadata
|
|
type DocumentEnriched struct {
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// FileSizeBytes File size in bytes (null for legacy documents)
|
|
FileSizeBytes *int64 `json:"fileSizeBytes,omitempty"`
|
|
|
|
// Filename Original filename of the document
|
|
Filename *string `json:"filename,omitempty"`
|
|
|
|
// FolderId Parent folder ID, null if document is not in a folder
|
|
FolderId *openapi_types.UUID `json:"folderId,omitempty"`
|
|
|
|
// HasTextRecord Whether a text extraction (field extraction) record exists for this document
|
|
HasTextRecord bool `json:"hasTextRecord"`
|
|
|
|
// Hash The document hash
|
|
Hash Hash `json:"hash"`
|
|
|
|
// Id The document id.
|
|
Id DocumentID `json:"id"`
|
|
|
|
// Labels All labels applied to this document
|
|
Labels []LabelRecord `json:"labels"`
|
|
|
|
// OriginalPath Original path provided during upload (immutable)
|
|
OriginalPath *string `json:"originalPath,omitempty"`
|
|
|
|
// TextRecord Field extraction with version information
|
|
TextRecord *FieldExtractionResponse `json:"textRecord,omitempty"`
|
|
}
|
|
|
|
// DocumentID The document id.
|
|
type DocumentID = openapi_types.UUID
|
|
|
|
// DocumentInFolder Document within a folder with enriched metadata (lighter format, excludes client_id and fields)
|
|
type DocumentInFolder struct {
|
|
// FileSizeBytes File size in bytes (null for legacy documents)
|
|
FileSizeBytes *int64 `json:"fileSizeBytes,omitempty"`
|
|
|
|
// Filename Original filename of the document
|
|
Filename *string `json:"filename,omitempty"`
|
|
|
|
// FolderId Parent folder ID
|
|
FolderId *openapi_types.UUID `json:"folderId,omitempty"`
|
|
|
|
// HasTextRecord Whether a text extraction record exists for this document
|
|
HasTextRecord bool `json:"hasTextRecord"`
|
|
|
|
// Hash The document hash
|
|
Hash Hash `json:"hash"`
|
|
|
|
// Id The document id.
|
|
Id DocumentID `json:"id"`
|
|
|
|
// Labels All labels applied to this document
|
|
Labels []LabelRecord `json:"labels"`
|
|
|
|
// OriginalPath Original path provided during upload (immutable)
|
|
OriginalPath *string `json:"originalPath,omitempty"`
|
|
|
|
// TextRecord Field extraction with version information
|
|
TextRecord *FieldExtractionResponse `json:"textRecord,omitempty"`
|
|
}
|
|
|
|
// DocumentSummary The document summary properties.
|
|
type DocumentSummary struct {
|
|
// Hash The document hash
|
|
Hash Hash `json:"hash"`
|
|
|
|
// Id The document id.
|
|
Id DocumentID `json:"id"`
|
|
}
|
|
|
|
// ErrorMessage Description of error
|
|
type ErrorMessage struct {
|
|
// Details Additional error details for debugging (sanitized).
|
|
Details *string `json:"details,omitempty"`
|
|
|
|
// ErrorType Machine-readable error classification for programmatic handling.
|
|
ErrorType *string `json:"error_type,omitempty"`
|
|
|
|
// Message Message describing the cause.
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// EulaAgreement EULA agreement record
|
|
type EulaAgreement struct {
|
|
// AgreedAt When the agreement was recorded
|
|
AgreedAt time.Time `json:"agreedAt"`
|
|
|
|
// AgreedFromIp IP address from which the user agreed
|
|
AgreedFromIp string `json:"agreedFromIp"`
|
|
|
|
// CognitoSubjectId User's Cognito subject ID
|
|
CognitoSubjectId string `json:"cognitoSubjectId"`
|
|
|
|
// EulaVersion EULA version string
|
|
EulaVersion string `json:"eulaVersion"`
|
|
|
|
// EulaVersionId EULA version ID
|
|
EulaVersionId openapi_types.UUID `json:"eulaVersionId"`
|
|
|
|
// EulaVersionTitle EULA version title (for user history view)
|
|
EulaVersionTitle *string `json:"eulaVersionTitle,omitempty"`
|
|
|
|
// Id Agreement record ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// UserEmail User identifier at time of agreement (email, username, or subject ID)
|
|
UserEmail string `json:"userEmail"`
|
|
}
|
|
|
|
// EulaAgreementList Paginated list of EULA agreements
|
|
type EulaAgreementList struct {
|
|
// Agreements List of EULA agreements
|
|
Agreements []EulaAgreement `json:"agreements"`
|
|
|
|
// HasMore Whether more pages are available
|
|
HasMore *bool `json:"has_more,omitempty"`
|
|
|
|
// Page Current page number
|
|
Page int32 `json:"page"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize int32 `json:"page_size"`
|
|
|
|
// Total Total number of agreements matching filter
|
|
Total int32 `json:"total"`
|
|
}
|
|
|
|
// EulaAgreementResponse Response after recording an agreement
|
|
type EulaAgreementResponse struct {
|
|
// AgreedAt When the agreement was recorded
|
|
AgreedAt time.Time `json:"agreedAt"`
|
|
|
|
// EulaVersion EULA version string
|
|
EulaVersion string `json:"eulaVersion"`
|
|
|
|
// EulaVersionId EULA version ID
|
|
EulaVersionId openapi_types.UUID `json:"eulaVersionId"`
|
|
|
|
// Id Agreement record ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
}
|
|
|
|
// EulaCompliancePagination Pagination information for compliance report
|
|
type EulaCompliancePagination struct {
|
|
// Page Current page number
|
|
Page int32 `json:"page"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize int32 `json:"pageSize"`
|
|
|
|
// TotalItems Total number of items
|
|
TotalItems int32 `json:"totalItems"`
|
|
|
|
// TotalPages Total number of pages
|
|
TotalPages int32 `json:"totalPages"`
|
|
}
|
|
|
|
// EulaComplianceReport EULA compliance report with user agreement status
|
|
type EulaComplianceReport struct {
|
|
// EulaVersion Abbreviated EULA version for lists
|
|
EulaVersion EulaVersionSummary `json:"eulaVersion"`
|
|
|
|
// Pagination Pagination information for compliance report
|
|
Pagination EulaCompliancePagination `json:"pagination"`
|
|
|
|
// Summary Summary statistics for compliance report
|
|
Summary EulaComplianceSummary `json:"summary"`
|
|
|
|
// Users Unified list of users with agreement status
|
|
Users []EulaComplianceUser `json:"users"`
|
|
}
|
|
|
|
// EulaComplianceSummary Summary statistics for compliance report
|
|
type EulaComplianceSummary struct {
|
|
// AgreedCount Number of users who have agreed
|
|
AgreedCount int32 `json:"agreedCount"`
|
|
|
|
// CompliancePercentage Percentage of users who have agreed
|
|
CompliancePercentage float32 `json:"compliancePercentage"`
|
|
|
|
// NotAgreedCount Number of users who have not agreed
|
|
NotAgreedCount int32 `json:"notAgreedCount"`
|
|
|
|
// TotalUsers Total number of users in the system
|
|
TotalUsers int32 `json:"totalUsers"`
|
|
}
|
|
|
|
// EulaComplianceUser User record in compliance report
|
|
type EulaComplianceUser struct {
|
|
// Agreed Whether the user has agreed to this EULA version
|
|
Agreed bool `json:"agreed"`
|
|
|
|
// AgreedAt When the user agreed (null if not agreed)
|
|
AgreedAt nullable.Nullable[time.Time] `json:"agreedAt,omitempty"`
|
|
|
|
// AgreedFromIp IP address from which the user agreed (null if not agreed)
|
|
AgreedFromIp nullable.Nullable[string] `json:"agreedFromIp,omitempty"`
|
|
|
|
// CognitoSubjectId User's Cognito subject ID
|
|
CognitoSubjectId string `json:"cognitoSubjectId"`
|
|
|
|
// CurrentEmail User's current email from Cognito (may be empty or a non-email identifier)
|
|
CurrentEmail string `json:"currentEmail"`
|
|
|
|
// Email User identifier at time of agreement (email, username, or subject ID; null if not agreed)
|
|
Email nullable.Nullable[string] `json:"email,omitempty"`
|
|
}
|
|
|
|
// EulaPublicResponse Public response for current EULA version
|
|
type EulaPublicResponse struct {
|
|
// Content Full EULA text in Markdown format
|
|
Content string `json:"content"`
|
|
|
|
// EffectiveDate When this version became effective (optional)
|
|
EffectiveDate nullable.Nullable[time.Time] `json:"effectiveDate,omitempty"`
|
|
|
|
// Id EULA version ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// Title Human-readable title
|
|
Title string `json:"title"`
|
|
|
|
// Version Version string
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
// EulaStatusResponse User's EULA agreement status
|
|
type EulaStatusResponse struct {
|
|
// AgreedAt When the user agreed (null if not agreed)
|
|
AgreedAt nullable.Nullable[time.Time] `json:"agreedAt,omitempty"`
|
|
|
|
// AgreedVersion Version the user agreed to (null if not agreed)
|
|
AgreedVersion nullable.Nullable[string] `json:"agreedVersion,omitempty"`
|
|
|
|
// CurrentVersion Current EULA version string
|
|
CurrentVersion string `json:"currentVersion"`
|
|
|
|
// CurrentVersionId EULA version ID
|
|
CurrentVersionId openapi_types.UUID `json:"currentVersionId"`
|
|
|
|
// HasAgreed Whether the user has agreed to the current EULA
|
|
HasAgreed bool `json:"hasAgreed"`
|
|
}
|
|
|
|
// EulaVersion Full EULA version details
|
|
type EulaVersion struct {
|
|
// ActivatedAt When this version was activated
|
|
ActivatedAt nullable.Nullable[time.Time] `json:"activatedAt,omitempty"`
|
|
|
|
// ActivatedBy Identifier of admin who activated this version (email, username, or subject ID)
|
|
ActivatedBy nullable.Nullable[string] `json:"activatedBy,omitempty"`
|
|
|
|
// Content Full EULA text in Markdown format
|
|
Content string `json:"content"`
|
|
|
|
// CreatedAt Creation timestamp
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
// CreatedBy Identifier of admin who created this version (email, username, or subject ID)
|
|
CreatedBy string `json:"createdBy"`
|
|
|
|
// EffectiveDate When this version becomes effective (optional)
|
|
EffectiveDate nullable.Nullable[time.Time] `json:"effectiveDate,omitempty"`
|
|
|
|
// Id EULA version ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// IsCurrent Whether this is the current active version
|
|
IsCurrent bool `json:"isCurrent"`
|
|
|
|
// Title Human-readable title
|
|
Title string `json:"title"`
|
|
|
|
// Version Version string (e.g., "1.0", "2024-01")
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
// EulaVersionCreate Request body for creating a new EULA version
|
|
type EulaVersionCreate struct {
|
|
// Content Full EULA text in Markdown format
|
|
Content string `json:"content"`
|
|
|
|
// EffectiveDate When this version becomes effective (optional)
|
|
EffectiveDate nullable.Nullable[time.Time] `json:"effectiveDate,omitempty"`
|
|
|
|
// Title Human-readable title
|
|
Title string `json:"title"`
|
|
|
|
// Version Version string (must be unique)
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
// EulaVersionList Paginated list of EULA versions
|
|
type EulaVersionList struct {
|
|
// HasMore Whether more pages are available
|
|
HasMore *bool `json:"has_more,omitempty"`
|
|
|
|
// Page Current page number
|
|
Page int32 `json:"page"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize int32 `json:"page_size"`
|
|
|
|
// Total Total number of EULA versions
|
|
Total int32 `json:"total"`
|
|
|
|
// Versions List of EULA versions
|
|
Versions []EulaVersion `json:"versions"`
|
|
}
|
|
|
|
// EulaVersionSummary Abbreviated EULA version for lists
|
|
type EulaVersionSummary struct {
|
|
// EffectiveDate When this version becomes effective (optional)
|
|
EffectiveDate nullable.Nullable[time.Time] `json:"effectiveDate,omitempty"`
|
|
|
|
// Id EULA version ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// IsCurrent Whether this is the current active version
|
|
IsCurrent bool `json:"isCurrent"`
|
|
|
|
// Title Human-readable title
|
|
Title string `json:"title"`
|
|
|
|
// Version Version string
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
// EulaVersionUpdate Request body for updating EULA version metadata
|
|
type EulaVersionUpdate struct {
|
|
// EffectiveDate When this version becomes effective
|
|
EffectiveDate *time.Time `json:"effectiveDate,omitempty"`
|
|
|
|
// Title Human-readable title
|
|
Title *string `json:"title,omitempty"`
|
|
}
|
|
|
|
// ExportDetails Payload for export trigger response.
|
|
type ExportDetails struct {
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// OutputLocation The location in which the export zip file will be found.
|
|
OutputLocation *string `json:"output_location,omitempty"`
|
|
|
|
// Status The possible export states.
|
|
Status ExportStatus `json:"status"`
|
|
}
|
|
|
|
// ExportID The export id.
|
|
type ExportID = openapi_types.UUID
|
|
|
|
// ExportStatus The possible export states.
|
|
type ExportStatus string
|
|
|
|
// ExportTrigger Payload for triggering an export.
|
|
type ExportTrigger struct {
|
|
// FieldFilters Filter the scope based on field output values.
|
|
FieldFilters *[]FieldFilter `json:"field_filters,omitempty"`
|
|
|
|
// IngestionFilters Filter the scope based on ingestion parameters.
|
|
IngestionFilters *struct {
|
|
// EndDate The last date of ingestion.
|
|
EndDate *time.Time `json:"end_date,omitempty"`
|
|
|
|
// StartDate This first date of ingestion.
|
|
StartDate *time.Time `json:"start_date,omitempty"`
|
|
} `json:"ingestion_filters,omitempty"`
|
|
}
|
|
|
|
// FieldExtractionRequest Request to create a new field extraction with single and array fields
|
|
type FieldExtractionRequest struct {
|
|
// ArrayFields Array of field extraction items (all must have consistent structure)
|
|
ArrayFields []ArrayFieldItem `json:"arrayFields"`
|
|
|
|
// CreatedBy Email of user creating the extraction
|
|
CreatedBy openapi_types.Email `json:"createdBy"`
|
|
|
|
// DocumentId The document id.
|
|
DocumentId DocumentID `json:"documentId"`
|
|
|
|
// SingleFields Single-value fields for a document extraction (1:1 relationship)
|
|
SingleFields SingleFields `json:"singleFields"`
|
|
}
|
|
|
|
// FieldExtractionResponse Field extraction with version information
|
|
type FieldExtractionResponse struct {
|
|
// ArrayFields Array of field extraction items
|
|
ArrayFields []ArrayFieldItem `json:"arrayFields"`
|
|
|
|
// CreatedAt Creation timestamp
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
// CreatedBy Email of user who created this extraction
|
|
CreatedBy openapi_types.Email `json:"createdBy"`
|
|
|
|
// DocumentId The document id.
|
|
DocumentId DocumentID `json:"documentId"`
|
|
|
|
// Id Field extraction ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// SingleFields Single-value fields for a document extraction (1:1 relationship)
|
|
SingleFields SingleFields `json:"singleFields"`
|
|
|
|
// Version Version number (1-based)
|
|
Version int32 `json:"version"`
|
|
}
|
|
|
|
// FieldExtractionVersion Field extraction version summary for history
|
|
type FieldExtractionVersion struct {
|
|
// CreatedAt Creation timestamp
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
// CreatedBy Email of user who created this version
|
|
CreatedBy openapi_types.Email `json:"createdBy"`
|
|
|
|
// DocumentId The document id.
|
|
DocumentId DocumentID `json:"documentId"`
|
|
|
|
// Id Field extraction ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// Version Version number (1-based)
|
|
Version int32 `json:"version"`
|
|
}
|
|
|
|
// FieldFilter Filtering a column
|
|
type FieldFilter struct {
|
|
// Condition The possible field filtering conditions.
|
|
Condition FieldFilterCondition `json:"condition"`
|
|
|
|
// FieldName The output field name.
|
|
FieldName CollectorFieldName `json:"field_name"`
|
|
|
|
// Values The values useful to the filter.
|
|
Values []string `json:"values"`
|
|
}
|
|
|
|
// FieldFilterCondition The possible field filtering conditions.
|
|
type FieldFilterCondition string
|
|
|
|
// Folder Folder information for organizing documents
|
|
type Folder struct {
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"clientId"`
|
|
|
|
// CreatedAt Creation timestamp
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
// CreatedBy Email of the user who created this folder
|
|
CreatedBy openapi_types.Email `json:"createdBy"`
|
|
|
|
// Id Folder ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// Metrics Processing metrics for this folder. Only populated when metrics=true
|
|
// is specified in the request. Null otherwise.
|
|
Metrics nullable.Nullable[FolderMetricsInline] `json:"metrics,omitempty"`
|
|
|
|
// ParentId Parent folder ID
|
|
ParentId nullable.Nullable[openapi_types.UUID] `json:"parentId,omitempty"`
|
|
|
|
// Path Folder path (must start with /). Root folder has path "/".
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
// FolderCreate Request to create a new folder for organizing documents
|
|
type FolderCreate struct {
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"clientId"`
|
|
|
|
// CreatedBy Email of user who created the folder
|
|
CreatedBy openapi_types.Email `json:"createdBy"`
|
|
|
|
// ParentId Optional parent folder ID
|
|
ParentId *openapi_types.UUID `json:"parentId,omitempty"`
|
|
|
|
// Path Folder path (must start with /). Use "/" for root folder.
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
// FolderList List of folders for a client
|
|
type FolderList struct {
|
|
// Folders List of folders. Each folder includes its ID, path, and parentId.
|
|
// Root-level folders have parentId set to null. Clients can use
|
|
// parentId to reconstruct the folder hierarchy/tree structure.
|
|
Folders []Folder `json:"folders"`
|
|
}
|
|
|
|
// FolderMetrics Processing metrics for a folder including document counts
|
|
type FolderMetrics struct {
|
|
// ByLabel Document counts by label
|
|
ByLabel map[string]int32 `json:"byLabel"`
|
|
|
|
// FolderId Unique identifier for the folder
|
|
FolderId openapi_types.UUID `json:"folderId"`
|
|
|
|
// TotalDocuments Total number of documents in folder
|
|
TotalDocuments int32 `json:"totalDocuments"`
|
|
}
|
|
|
|
// FolderMetricsInline Inline processing metrics for a folder (excludes folderId since it's on parent)
|
|
type FolderMetricsInline struct {
|
|
// ByLabel Document counts by label
|
|
ByLabel map[string]int32 `json:"byLabel"`
|
|
|
|
// TotalDocuments Total number of documents in folder
|
|
TotalDocuments int32 `json:"totalDocuments"`
|
|
}
|
|
|
|
// FolderRename Request to rename an existing folder
|
|
type FolderRename struct {
|
|
// Path New folder path (must start with /). Use "/" for root folder.
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
// Hash The document hash
|
|
type Hash = string
|
|
|
|
// IdMessage A single uuid.
|
|
type IdMessage struct {
|
|
// Id Unique identifier for entity.
|
|
Id openapi_types.UUID `json:"id"`
|
|
}
|
|
|
|
// IdentityResponse Response containing the user's roles and their permissions
|
|
type IdentityResponse struct {
|
|
// Roles List of roles assigned to the user with their permissions
|
|
Roles []IdentityRole `json:"roles"`
|
|
}
|
|
|
|
// IdentityRole A role assigned to the user with its permissions
|
|
type IdentityRole struct {
|
|
// Description Optional description of the role
|
|
Description *string `json:"description,omitempty"`
|
|
|
|
// Key The role key/identifier
|
|
Key string `json:"key"`
|
|
|
|
// Name Human-readable role name
|
|
Name string `json:"name"`
|
|
|
|
// Permissions List of permissions granted by this role
|
|
Permissions []string `json:"permissions"`
|
|
}
|
|
|
|
// LabelApplication Request to apply a workflow label to a document
|
|
type LabelApplication struct {
|
|
// AppliedBy Email of user applying the label
|
|
AppliedBy openapi_types.Email `json:"appliedBy"`
|
|
|
|
// Label Label name (alphanumeric and underscore only)
|
|
Label string `json:"label"`
|
|
}
|
|
|
|
// LabelRecord Record of a label applied to a document
|
|
type LabelRecord struct {
|
|
// AppliedAt Timestamp when label was applied
|
|
AppliedAt time.Time `json:"appliedAt"`
|
|
|
|
// AppliedBy Email of the user who applied this label
|
|
AppliedBy openapi_types.Email `json:"appliedBy"`
|
|
|
|
// DocumentId The document id.
|
|
DocumentId DocumentID `json:"documentId"`
|
|
|
|
// Id Label record ID
|
|
Id openapi_types.UUID `json:"id"`
|
|
|
|
// Label Workflow label name (alphanumeric and underscore only)
|
|
Label string `json:"label"`
|
|
}
|
|
|
|
// ListDocuments The documents in the client.
|
|
type ListDocuments = []DocumentSummary
|
|
|
|
// SingleFields Single-value fields for a document extraction (1:1 relationship)
|
|
type SingleFields struct {
|
|
// AareteDerivedAmendmentNum Amendment number derived by Aarete
|
|
AareteDerivedAmendmentNum *int32 `json:"aareteDerivedAmendmentNum,omitempty"`
|
|
|
|
// AareteDerivedEffectiveDt Contract effective date
|
|
AareteDerivedEffectiveDt *openapi_types.Date `json:"aareteDerivedEffectiveDt,omitempty"`
|
|
|
|
// AareteDerivedTerminationDt Contract termination date
|
|
AareteDerivedTerminationDt *openapi_types.Date `json:"aareteDerivedTerminationDt,omitempty"`
|
|
|
|
// AutoRenewalInd Auto-renewal indicator
|
|
AutoRenewalInd *bool `json:"autoRenewalInd,omitempty"`
|
|
|
|
// AutoRenewalTerm Auto-renewal terms
|
|
AutoRenewalTerm *string `json:"autoRenewalTerm,omitempty"`
|
|
|
|
// ClientName Name of the client
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
|
|
// ContractTitle Title of the contract
|
|
ContractTitle *string `json:"contractTitle,omitempty"`
|
|
|
|
// FileName Original file name
|
|
FileName *string `json:"fileName,omitempty"`
|
|
|
|
// FilenameTin Tax Identification Number from filename
|
|
FilenameTin *string `json:"filenameTin,omitempty"`
|
|
|
|
// PayerName Name of the payer
|
|
PayerName *string `json:"payerName,omitempty"`
|
|
|
|
// PayerState Two-letter state code for payer
|
|
PayerState *string `json:"payerState,omitempty"`
|
|
|
|
// ProvGroupNameFull Full name of provider group
|
|
ProvGroupNameFull *string `json:"provGroupNameFull,omitempty"`
|
|
|
|
// ProvGroupNpi Provider group NPI
|
|
ProvGroupNpi *string `json:"provGroupNpi,omitempty"`
|
|
|
|
// ProvGroupTin Provider group TIN
|
|
ProvGroupTin *string `json:"provGroupTin,omitempty"`
|
|
|
|
// ProvOtherNameFull Full name of other provider
|
|
ProvOtherNameFull *string `json:"provOtherNameFull,omitempty"`
|
|
|
|
// ProvOtherNpi Other provider NPI
|
|
ProvOtherNpi *string `json:"provOtherNpi,omitempty"`
|
|
|
|
// ProvOtherTin Other provider TIN
|
|
ProvOtherTin *string `json:"provOtherTin,omitempty"`
|
|
|
|
// ProviderState Two-letter state code for provider
|
|
ProviderState *string `json:"providerState,omitempty"`
|
|
}
|
|
|
|
// Version The desired version.
|
|
type Version = int32
|
|
|
|
// EulaVersionID defines model for EulaVersionID.
|
|
type EulaVersionID = openapi_types.UUID
|
|
|
|
// UserEmail defines model for UserEmail.
|
|
type UserEmail = openapi_types.Email
|
|
|
|
// BadGateway Description of error
|
|
type BadGateway = ErrorMessage
|
|
|
|
// Conflict Description of error
|
|
type Conflict = ErrorMessage
|
|
|
|
// Forbidden Description of error
|
|
type Forbidden = ErrorMessage
|
|
|
|
// InternalError Description of error
|
|
type InternalError = ErrorMessage
|
|
|
|
// InvalidRequest Description of error
|
|
type InvalidRequest = ErrorMessage
|
|
|
|
// NotFound Description of error
|
|
type NotFound = ErrorMessage
|
|
|
|
// TooManyRequests Description of error
|
|
type TooManyRequests = ErrorMessage
|
|
|
|
// Unauthorized Description of error
|
|
type Unauthorized = ErrorMessage
|
|
|
|
// ListEulaVersionsParams defines parameters for ListEulaVersions.
|
|
type ListEulaVersionsParams struct {
|
|
// Page Page number for pagination
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize *int32 `form:"page_size,omitempty" json:"page_size,omitempty"`
|
|
}
|
|
|
|
// ListEulaAgreementsParams defines parameters for ListEulaAgreements.
|
|
type ListEulaAgreementsParams struct {
|
|
// Page Page number for pagination
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize *int32 `form:"page_size,omitempty" json:"page_size,omitempty"`
|
|
|
|
// VersionId Filter by specific EULA version ID
|
|
VersionId *openapi_types.UUID `form:"version_id,omitempty" json:"version_id,omitempty"`
|
|
|
|
// UserId Filter by Cognito subject ID to see all EULAs a specific user agreed to
|
|
UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"`
|
|
}
|
|
|
|
// GetEulaComplianceParams defines parameters for GetEulaCompliance.
|
|
type GetEulaComplianceParams struct {
|
|
// Page Page number for pagination
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
|
|
// PageSize Number of items per page
|
|
PageSize *int32 `form:"page_size,omitempty" json:"page_size,omitempty"`
|
|
|
|
// VersionId Specific EULA version to report on. If omitted, uses current active version.
|
|
VersionId *openapi_types.UUID `form:"version_id,omitempty" json:"version_id,omitempty"`
|
|
|
|
// Agreed Filter by agreement status. True for agreed only, false for not-agreed only.
|
|
Agreed *bool `form:"agreed,omitempty" json:"agreed,omitempty"`
|
|
}
|
|
|
|
// ListAdminUsersParams defines parameters for ListAdminUsers.
|
|
type ListAdminUsersParams struct {
|
|
// Page Page number for pagination
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
|
|
// PageSize Number of results per page
|
|
PageSize *int32 `form:"page_size,omitempty" json:"page_size,omitempty"`
|
|
|
|
// Search Search term for email/name filtering
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
|
|
// Status Filter by user status
|
|
Status *ListAdminUsersParamsStatus `form:"status,omitempty" json:"status,omitempty"`
|
|
|
|
// SortBy Field to sort by
|
|
SortBy *ListAdminUsersParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
|
|
|
|
// SortOrder Sort direction
|
|
SortOrder *ListAdminUsersParamsSortOrder `form:"sort_order,omitempty" json:"sort_order,omitempty"`
|
|
}
|
|
|
|
// ListAdminUsersParamsStatus defines parameters for ListAdminUsers.
|
|
type ListAdminUsersParamsStatus string
|
|
|
|
// ListAdminUsersParamsSortBy defines parameters for ListAdminUsers.
|
|
type ListAdminUsersParamsSortBy string
|
|
|
|
// ListAdminUsersParamsSortOrder defines parameters for ListAdminUsers.
|
|
type ListAdminUsersParamsSortOrder string
|
|
|
|
// DeleteAdminUserParams defines parameters for DeleteAdminUser.
|
|
type DeleteAdminUserParams struct {
|
|
// Confirm Must be set to true to confirm deletion
|
|
Confirm bool `form:"confirm" json:"confirm"`
|
|
}
|
|
|
|
// DeleteClientParams defines parameters for DeleteClient.
|
|
type DeleteClientParams struct {
|
|
// Confirm Must be set to true to confirm deletion
|
|
Confirm bool `form:"confirm" json:"confirm"`
|
|
|
|
// Verbose When true, returns S3 paths of orphaned source documents in the response body
|
|
Verbose *bool `form:"verbose,omitempty" json:"verbose,omitempty"`
|
|
}
|
|
|
|
// UploadDocumentMultipartBody defines parameters for UploadDocument.
|
|
type UploadDocumentMultipartBody struct {
|
|
// File The file to upload
|
|
File openapi_types.File `json:"file"`
|
|
|
|
// Filename Optional custom filename
|
|
Filename *string `json:"filename,omitempty"`
|
|
}
|
|
|
|
// ListDocumentBatchesParams defines parameters for ListDocumentBatches.
|
|
type ListDocumentBatchesParams struct {
|
|
// Limit Maximum number of items to return
|
|
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
|
|
|
|
// Offset Number of items to skip
|
|
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
|
|
}
|
|
|
|
// UploadDocumentBatchMultipartBody defines parameters for UploadDocumentBatch.
|
|
type UploadDocumentBatchMultipartBody struct {
|
|
// Archive The file to be uploaded as a ZIP archive
|
|
Archive openapi_types.File `json:"archive"`
|
|
}
|
|
|
|
// ListClientFoldersParams defines parameters for ListClientFolders.
|
|
type ListClientFoldersParams struct {
|
|
// Metrics When true, include processing metrics for each folder (document counts by label).
|
|
// Defaults to false for performance reasons.
|
|
Metrics *bool `form:"metrics,omitempty" json:"metrics,omitempty"`
|
|
}
|
|
|
|
// DeleteDocumentParams defines parameters for DeleteDocument.
|
|
type DeleteDocumentParams struct {
|
|
// Verbose When true, returns S3 paths of orphaned source documents in the response body
|
|
Verbose *bool `form:"verbose,omitempty" json:"verbose,omitempty"`
|
|
}
|
|
|
|
// GetDocumentParams defines parameters for GetDocument.
|
|
type GetDocumentParams struct {
|
|
// TextRecord When true, includes the full text extraction record in the response
|
|
TextRecord *bool `form:"textRecord,omitempty" json:"textRecord,omitempty"`
|
|
}
|
|
|
|
// GetCurrentFieldExtractionParams defines parameters for GetCurrentFieldExtraction.
|
|
type GetCurrentFieldExtractionParams struct {
|
|
// DocumentId The document ID
|
|
DocumentId openapi_types.UUID `form:"documentId" json:"documentId"`
|
|
}
|
|
|
|
// GetFieldExtractionHistoryParams defines parameters for GetFieldExtractionHistory.
|
|
type GetFieldExtractionHistoryParams struct {
|
|
// DocumentId The document ID
|
|
DocumentId openapi_types.UUID `form:"documentId" json:"documentId"`
|
|
}
|
|
|
|
// GetFieldExtractionByVersionParams defines parameters for GetFieldExtractionByVersion.
|
|
type GetFieldExtractionByVersionParams struct {
|
|
// DocumentId The document ID
|
|
DocumentId openapi_types.UUID `form:"documentId" json:"documentId"`
|
|
|
|
// Version The version number to retrieve
|
|
Version int64 `form:"version" json:"version"`
|
|
}
|
|
|
|
// DeleteFolderParams defines parameters for DeleteFolder.
|
|
type DeleteFolderParams struct {
|
|
// IncludeDocuments When true, also deletes all documents in the folder tree
|
|
IncludeDocuments *bool `form:"include_documents,omitempty" json:"include_documents,omitempty"`
|
|
|
|
// Verbose When true, returns S3 paths of orphaned source documents in the response body
|
|
Verbose *bool `form:"verbose,omitempty" json:"verbose,omitempty"`
|
|
}
|
|
|
|
// GetFolderDocumentsParams defines parameters for GetFolderDocuments.
|
|
type GetFolderDocumentsParams struct {
|
|
// TextRecord When true, includes the full text extraction record for each document
|
|
TextRecord *bool `form:"textRecord,omitempty" json:"textRecord,omitempty"`
|
|
}
|
|
|
|
// GetDocumentsByLabelParams defines parameters for GetDocumentsByLabel.
|
|
type GetDocumentsByLabelParams struct {
|
|
// ClientId The client ID to filter documents
|
|
ClientId ClientID `form:"clientId" json:"clientId"`
|
|
}
|
|
|
|
// LoginCallbackParams defines parameters for LoginCallback.
|
|
type LoginCallbackParams struct {
|
|
// Code Authorization code from Cognito
|
|
Code string `form:"code" json:"code"`
|
|
|
|
// State State parameter for CSRF protection
|
|
State string `form:"state" json:"state"`
|
|
}
|
|
|
|
// CreateEulaVersionJSONRequestBody defines body for CreateEulaVersion for application/json ContentType.
|
|
type CreateEulaVersionJSONRequestBody = EulaVersionCreate
|
|
|
|
// UpdateEulaVersionJSONRequestBody defines body for UpdateEulaVersion for application/json ContentType.
|
|
type UpdateEulaVersionJSONRequestBody = EulaVersionUpdate
|
|
|
|
// CreateAdminUserJSONRequestBody defines body for CreateAdminUser for application/json ContentType.
|
|
type CreateAdminUserJSONRequestBody = AdminUserCreate
|
|
|
|
// UpdateAdminUserJSONRequestBody defines body for UpdateAdminUser for application/json ContentType.
|
|
type UpdateAdminUserJSONRequestBody = AdminUserUpdate
|
|
|
|
// CreateClientJSONRequestBody defines body for CreateClient for application/json ContentType.
|
|
type CreateClientJSONRequestBody = ClientCreate
|
|
|
|
// UpdateClientJSONRequestBody defines body for UpdateClient for application/json ContentType.
|
|
type UpdateClientJSONRequestBody = ClientUpdate
|
|
|
|
// SetCollectorByClientIdJSONRequestBody defines body for SetCollectorByClientId for application/json ContentType.
|
|
type SetCollectorByClientIdJSONRequestBody = CollectorSet
|
|
|
|
// UploadDocumentMultipartRequestBody defines body for UploadDocument for multipart/form-data ContentType.
|
|
type UploadDocumentMultipartRequestBody UploadDocumentMultipartBody
|
|
|
|
// UploadDocumentBatchMultipartRequestBody defines body for UploadDocumentBatch for multipart/form-data ContentType.
|
|
type UploadDocumentBatchMultipartRequestBody UploadDocumentBatchMultipartBody
|
|
|
|
// TriggerExportJSONRequestBody defines body for TriggerExport for application/json ContentType.
|
|
type TriggerExportJSONRequestBody = ExportTrigger
|
|
|
|
// ApplyLabelJSONRequestBody defines body for ApplyLabel for application/json ContentType.
|
|
type ApplyLabelJSONRequestBody = LabelApplication
|
|
|
|
// CreateFieldExtractionJSONRequestBody defines body for CreateFieldExtraction for application/json ContentType.
|
|
type CreateFieldExtractionJSONRequestBody = FieldExtractionRequest
|
|
|
|
// CreateFolderJSONRequestBody defines body for CreateFolder for application/json ContentType.
|
|
type CreateFolderJSONRequestBody = FolderCreate
|
|
|
|
// RenameFolderJSONRequestBody defines body for RenameFolder for application/json ContentType.
|
|
type RenameFolderJSONRequestBody = FolderRename
|
|
|
|
// ServerInterface represents all server handlers.
|
|
type ServerInterface interface {
|
|
// List all EULA versions
|
|
// (GET /admin/eula)
|
|
ListEulaVersions(ctx echo.Context, params ListEulaVersionsParams) error
|
|
// Create a new EULA version
|
|
// (POST /admin/eula)
|
|
CreateEulaVersion(ctx echo.Context) error
|
|
// List EULA agreements
|
|
// (GET /admin/eula/agreements)
|
|
ListEulaAgreements(ctx echo.Context, params ListEulaAgreementsParams) error
|
|
// Get EULA compliance report
|
|
// (GET /admin/eula/compliance)
|
|
GetEulaCompliance(ctx echo.Context, params GetEulaComplianceParams) error
|
|
// Get a specific EULA version
|
|
// (GET /admin/eula/{version_id})
|
|
GetEulaVersion(ctx echo.Context, versionId EulaVersionID) error
|
|
// Update EULA version metadata
|
|
// (PATCH /admin/eula/{version_id})
|
|
UpdateEulaVersion(ctx echo.Context, versionId EulaVersionID) error
|
|
// Activate an EULA version
|
|
// (POST /admin/eula/{version_id}/activate)
|
|
ActivateEulaVersion(ctx echo.Context, versionId EulaVersionID) error
|
|
// List users
|
|
// (GET /admin/users)
|
|
ListAdminUsers(ctx echo.Context, params ListAdminUsersParams) error
|
|
// Create a new user
|
|
// (POST /admin/users)
|
|
CreateAdminUser(ctx echo.Context) error
|
|
// Delete user permanently
|
|
// (DELETE /admin/users/{email})
|
|
DeleteAdminUser(ctx echo.Context, email UserEmail, params DeleteAdminUserParams) error
|
|
// Get user by email
|
|
// (GET /admin/users/{email})
|
|
GetAdminUser(ctx echo.Context, email UserEmail) error
|
|
// Check if user exists
|
|
// (HEAD /admin/users/{email})
|
|
CheckAdminUserExists(ctx echo.Context, email UserEmail) error
|
|
// Update user attributes and roles
|
|
// (PATCH /admin/users/{email})
|
|
UpdateAdminUser(ctx echo.Context, email UserEmail) error
|
|
// Disable user
|
|
// (POST /admin/users/{email}/disable)
|
|
DisableAdminUser(ctx echo.Context, email UserEmail) error
|
|
// Enable user
|
|
// (POST /admin/users/{email}/enable)
|
|
EnableAdminUser(ctx echo.Context, email UserEmail) error
|
|
// Create a new client
|
|
// (POST /client)
|
|
CreateClient(ctx echo.Context) error
|
|
// Hard-delete a client and all its data
|
|
// (DELETE /client/{id})
|
|
DeleteClient(ctx echo.Context, id ClientID, params DeleteClientParams) error
|
|
// Get a client by ID
|
|
// (GET /client/{id})
|
|
GetClient(ctx echo.Context, id ClientID) error
|
|
// Update a client
|
|
// (PATCH /client/{id})
|
|
UpdateClient(ctx echo.Context, id ClientID) error
|
|
// Get a collector by client ID
|
|
// (GET /client/{id}/collector)
|
|
GetCollectorByClientId(ctx echo.Context, id ClientID) error
|
|
// Set a collector
|
|
// (PATCH /client/{id}/collector)
|
|
SetCollectorByClientId(ctx echo.Context, id ClientID) error
|
|
// List the documents for a client
|
|
// (GET /client/{id}/document)
|
|
ListDocumentsByClientId(ctx echo.Context, id ClientID) error
|
|
// Upload a file
|
|
// (POST /client/{id}/document)
|
|
UploadDocument(ctx echo.Context, id ClientID) error
|
|
// List batch uploads for a client
|
|
// (GET /client/{id}/document/batch)
|
|
ListDocumentBatches(ctx echo.Context, id ClientID, params ListDocumentBatchesParams) error
|
|
// Upload multiple PDF documents as ZIP archive
|
|
// (POST /client/{id}/document/batch)
|
|
UploadDocumentBatch(ctx echo.Context, id ClientID) error
|
|
// Get batch upload status
|
|
// (GET /client/{id}/document/batch/{batch_id})
|
|
GetDocumentBatch(ctx echo.Context, id ClientID, batchId BatchID) error
|
|
// Trigger an export
|
|
// (POST /client/{id}/export)
|
|
TriggerExport(ctx echo.Context, id ClientID) error
|
|
// List folders for a client
|
|
// (GET /client/{id}/folders)
|
|
ListClientFolders(ctx echo.Context, id ClientID, params ListClientFoldersParams) error
|
|
// Get client sync status
|
|
// (GET /client/{id}/status)
|
|
GetStatusByClientId(ctx echo.Context, id ClientID) error
|
|
// List all clients
|
|
// (GET /clients)
|
|
ListClients(ctx echo.Context) error
|
|
// Hard-delete a document
|
|
// (DELETE /document/{id})
|
|
DeleteDocument(ctx echo.Context, id DocumentID, params DeleteDocumentParams) error
|
|
// Get document details by its id
|
|
// (GET /document/{id})
|
|
GetDocument(ctx echo.Context, id DocumentID, params GetDocumentParams) error
|
|
// Get all labels for a document
|
|
// (GET /documents/{documentId}/labels)
|
|
GetDocumentLabels(ctx echo.Context, documentId openapi_types.UUID) error
|
|
// Apply a label to a document
|
|
// (POST /documents/{documentId}/labels)
|
|
ApplyLabel(ctx echo.Context, documentId openapi_types.UUID) error
|
|
// Get current EULA version
|
|
// (GET /eula)
|
|
GetCurrentEula(ctx echo.Context) error
|
|
// Record user agreement to current EULA
|
|
// (POST /eula/agree)
|
|
AgreeToEula(ctx echo.Context) error
|
|
// Check user's EULA agreement status
|
|
// (GET /eula/status)
|
|
GetEulaStatus(ctx echo.Context) error
|
|
// Check export state.
|
|
// (GET /export/{id})
|
|
ExportState(ctx echo.Context, id ExportID) error
|
|
// Get current field extraction
|
|
// (GET /field-extractions)
|
|
GetCurrentFieldExtraction(ctx echo.Context, params GetCurrentFieldExtractionParams) error
|
|
// Create a new field extraction
|
|
// (POST /field-extractions)
|
|
CreateFieldExtraction(ctx echo.Context) error
|
|
// Get field extraction version history
|
|
// (GET /field-extractions/history)
|
|
GetFieldExtractionHistory(ctx echo.Context, params GetFieldExtractionHistoryParams) error
|
|
// Get field extraction by version
|
|
// (GET /field-extractions/version)
|
|
GetFieldExtractionByVersion(ctx echo.Context, params GetFieldExtractionByVersionParams) error
|
|
// Create a new folder
|
|
// (POST /folders)
|
|
CreateFolder(ctx echo.Context) error
|
|
// Hard-delete a folder tree
|
|
// (DELETE /folders/{folderId})
|
|
DeleteFolder(ctx echo.Context, folderId openapi_types.UUID, params DeleteFolderParams) error
|
|
// Rename a folder
|
|
// (PATCH /folders/{folderId})
|
|
RenameFolder(ctx echo.Context, folderId openapi_types.UUID) error
|
|
// Get documents in a folder
|
|
// (GET /folders/{folderId}/documents)
|
|
GetFolderDocuments(ctx echo.Context, folderId openapi_types.UUID, params GetFolderDocumentsParams) error
|
|
// Get folder processing metrics
|
|
// (GET /folders/{folderId}/metrics)
|
|
GetFolderMetrics(ctx echo.Context, folderId openapi_types.UUID) error
|
|
// Get the home page menu
|
|
// (GET /home)
|
|
GetHomePage(ctx echo.Context) error
|
|
// Get current user identity and roles
|
|
// (GET /identity)
|
|
GetIdentity(ctx echo.Context) error
|
|
// Get all documents with a specific label
|
|
// (GET /labels/{labelName}/documents)
|
|
GetDocumentsByLabel(ctx echo.Context, labelName string, params GetDocumentsByLabelParams) error
|
|
// Login to the application
|
|
// (GET /login)
|
|
Login(ctx echo.Context) error
|
|
// OAuth2 callback endpoint
|
|
// (GET /login-callback)
|
|
LoginCallback(ctx echo.Context, params LoginCallbackParams) error
|
|
// Logout from the application
|
|
// (GET /logout)
|
|
Logout(ctx echo.Context) error
|
|
}
|
|
|
|
// ServerInterfaceWrapper converts echo contexts to parameters.
|
|
type ServerInterfaceWrapper struct {
|
|
Handler ServerInterface
|
|
}
|
|
|
|
// ListEulaVersions converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListEulaVersions(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListEulaVersionsParams
|
|
// ------------- Optional query parameter "page" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page", ctx.QueryParams(), ¶ms.Page)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "page_size" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page_size", ctx.QueryParams(), ¶ms.PageSize)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page_size: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListEulaVersions(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// CreateEulaVersion converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateEulaVersion(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateEulaVersion(ctx)
|
|
return err
|
|
}
|
|
|
|
// ListEulaAgreements converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListEulaAgreements(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListEulaAgreementsParams
|
|
// ------------- Optional query parameter "page" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page", ctx.QueryParams(), ¶ms.Page)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "page_size" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page_size", ctx.QueryParams(), ¶ms.PageSize)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page_size: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "version_id" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "version_id", ctx.QueryParams(), ¶ms.VersionId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version_id: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "user_id" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "user_id", ctx.QueryParams(), ¶ms.UserId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter user_id: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListEulaAgreements(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// GetEulaCompliance converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetEulaCompliance(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetEulaComplianceParams
|
|
// ------------- Optional query parameter "page" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page", ctx.QueryParams(), ¶ms.Page)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "page_size" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page_size", ctx.QueryParams(), ¶ms.PageSize)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page_size: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "version_id" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "version_id", ctx.QueryParams(), ¶ms.VersionId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version_id: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "agreed" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "agreed", ctx.QueryParams(), ¶ms.Agreed)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter agreed: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetEulaCompliance(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// GetEulaVersion converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetEulaVersion(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "version_id" -------------
|
|
var versionId EulaVersionID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "version_id", ctx.Param("version_id"), &versionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version_id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetEulaVersion(ctx, versionId)
|
|
return err
|
|
}
|
|
|
|
// UpdateEulaVersion converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UpdateEulaVersion(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "version_id" -------------
|
|
var versionId EulaVersionID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "version_id", ctx.Param("version_id"), &versionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version_id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.UpdateEulaVersion(ctx, versionId)
|
|
return err
|
|
}
|
|
|
|
// ActivateEulaVersion converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ActivateEulaVersion(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "version_id" -------------
|
|
var versionId EulaVersionID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "version_id", ctx.Param("version_id"), &versionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version_id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ActivateEulaVersion(ctx, versionId)
|
|
return err
|
|
}
|
|
|
|
// ListAdminUsers converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListAdminUsers(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListAdminUsersParams
|
|
// ------------- Optional query parameter "page" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page", ctx.QueryParams(), ¶ms.Page)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "page_size" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "page_size", ctx.QueryParams(), ¶ms.PageSize)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter page_size: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "search" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "search", ctx.QueryParams(), ¶ms.Search)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter search: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "status" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "status", ctx.QueryParams(), ¶ms.Status)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter status: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "sort_by" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "sort_by", ctx.QueryParams(), ¶ms.SortBy)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sort_by: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "sort_order" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "sort_order", ctx.QueryParams(), ¶ms.SortOrder)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter sort_order: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListAdminUsers(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// CreateAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateAdminUser(ctx)
|
|
return err
|
|
}
|
|
|
|
// DeleteAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) DeleteAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params DeleteAdminUserParams
|
|
// ------------- Required query parameter "confirm" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "confirm", ctx.QueryParams(), ¶ms.Confirm)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter confirm: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.DeleteAdminUser(ctx, email, params)
|
|
return err
|
|
}
|
|
|
|
// GetAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetAdminUser(ctx, email)
|
|
return err
|
|
}
|
|
|
|
// CheckAdminUserExists converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CheckAdminUserExists(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CheckAdminUserExists(ctx, email)
|
|
return err
|
|
}
|
|
|
|
// UpdateAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UpdateAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.UpdateAdminUser(ctx, email)
|
|
return err
|
|
}
|
|
|
|
// DisableAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) DisableAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.DisableAdminUser(ctx, email)
|
|
return err
|
|
}
|
|
|
|
// EnableAdminUser converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) EnableAdminUser(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "email" -------------
|
|
var email UserEmail
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "email", ctx.Param("email"), &email, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter email: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.EnableAdminUser(ctx, email)
|
|
return err
|
|
}
|
|
|
|
// CreateClient converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateClient(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateClient(ctx)
|
|
return err
|
|
}
|
|
|
|
// DeleteClient converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) DeleteClient(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params DeleteClientParams
|
|
// ------------- Required query parameter "confirm" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "confirm", ctx.QueryParams(), ¶ms.Confirm)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter confirm: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "verbose" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "verbose", ctx.QueryParams(), ¶ms.Verbose)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter verbose: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.DeleteClient(ctx, id, params)
|
|
return err
|
|
}
|
|
|
|
// GetClient converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetClient(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetClient(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// UpdateClient converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UpdateClient(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.UpdateClient(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// GetCollectorByClientId converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetCollectorByClientId(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetCollectorByClientId(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// SetCollectorByClientId converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) SetCollectorByClientId(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.SetCollectorByClientId(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// ListDocumentsByClientId converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListDocumentsByClientId(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListDocumentsByClientId(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// UploadDocument converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UploadDocument(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.UploadDocument(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// ListDocumentBatches converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListDocumentBatches(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListDocumentBatchesParams
|
|
// ------------- Optional query parameter "limit" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "limit", ctx.QueryParams(), ¶ms.Limit)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter limit: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "offset" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "offset", ctx.QueryParams(), ¶ms.Offset)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter offset: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListDocumentBatches(ctx, id, params)
|
|
return err
|
|
}
|
|
|
|
// UploadDocumentBatch converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UploadDocumentBatch(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.UploadDocumentBatch(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// GetDocumentBatch converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetDocumentBatch(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
// ------------- Path parameter "batch_id" -------------
|
|
var batchId BatchID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "batch_id", ctx.Param("batch_id"), &batchId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter batch_id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetDocumentBatch(ctx, id, batchId)
|
|
return err
|
|
}
|
|
|
|
// TriggerExport converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) TriggerExport(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.TriggerExport(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// ListClientFolders converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListClientFolders(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListClientFoldersParams
|
|
// ------------- Optional query parameter "metrics" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "metrics", ctx.QueryParams(), ¶ms.Metrics)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter metrics: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListClientFolders(ctx, id, params)
|
|
return err
|
|
}
|
|
|
|
// GetStatusByClientId converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetStatusByClientId(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ClientID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetStatusByClientId(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// ListClients converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListClients(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListClients(ctx)
|
|
return err
|
|
}
|
|
|
|
// DeleteDocument converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) DeleteDocument(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id DocumentID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params DeleteDocumentParams
|
|
// ------------- Optional query parameter "verbose" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "verbose", ctx.QueryParams(), ¶ms.Verbose)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter verbose: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.DeleteDocument(ctx, id, params)
|
|
return err
|
|
}
|
|
|
|
// GetDocument converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetDocument(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id DocumentID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetDocumentParams
|
|
// ------------- Optional query parameter "textRecord" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "textRecord", ctx.QueryParams(), ¶ms.TextRecord)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter textRecord: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetDocument(ctx, id, params)
|
|
return err
|
|
}
|
|
|
|
// GetDocumentLabels converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetDocumentLabels(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "documentId" -------------
|
|
var documentId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "documentId", ctx.Param("documentId"), &documentId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter documentId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetDocumentLabels(ctx, documentId)
|
|
return err
|
|
}
|
|
|
|
// ApplyLabel converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ApplyLabel(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "documentId" -------------
|
|
var documentId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "documentId", ctx.Param("documentId"), &documentId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter documentId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ApplyLabel(ctx, documentId)
|
|
return err
|
|
}
|
|
|
|
// GetCurrentEula converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetCurrentEula(ctx echo.Context) error {
|
|
var err error
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetCurrentEula(ctx)
|
|
return err
|
|
}
|
|
|
|
// AgreeToEula converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) AgreeToEula(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.AgreeToEula(ctx)
|
|
return err
|
|
}
|
|
|
|
// GetEulaStatus converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetEulaStatus(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetEulaStatus(ctx)
|
|
return err
|
|
}
|
|
|
|
// ExportState converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ExportState(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id ExportID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "id", ctx.Param("id"), &id, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter id: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ExportState(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// GetCurrentFieldExtraction converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetCurrentFieldExtraction(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetCurrentFieldExtractionParams
|
|
// ------------- Required query parameter "documentId" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "documentId", ctx.QueryParams(), ¶ms.DocumentId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter documentId: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetCurrentFieldExtraction(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// CreateFieldExtraction converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateFieldExtraction(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateFieldExtraction(ctx)
|
|
return err
|
|
}
|
|
|
|
// GetFieldExtractionHistory converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetFieldExtractionHistory(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetFieldExtractionHistoryParams
|
|
// ------------- Required query parameter "documentId" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "documentId", ctx.QueryParams(), ¶ms.DocumentId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter documentId: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetFieldExtractionHistory(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// GetFieldExtractionByVersion converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetFieldExtractionByVersion(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetFieldExtractionByVersionParams
|
|
// ------------- Required query parameter "documentId" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "documentId", ctx.QueryParams(), ¶ms.DocumentId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter documentId: %s", err))
|
|
}
|
|
|
|
// ------------- Required query parameter "version" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "version", ctx.QueryParams(), ¶ms.Version)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter version: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetFieldExtractionByVersion(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// CreateFolder converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateFolder(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateFolder(ctx)
|
|
return err
|
|
}
|
|
|
|
// DeleteFolder converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) DeleteFolder(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "folderId" -------------
|
|
var folderId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "folderId", ctx.Param("folderId"), &folderId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter folderId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params DeleteFolderParams
|
|
// ------------- Optional query parameter "include_documents" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "include_documents", ctx.QueryParams(), ¶ms.IncludeDocuments)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter include_documents: %s", err))
|
|
}
|
|
|
|
// ------------- Optional query parameter "verbose" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "verbose", ctx.QueryParams(), ¶ms.Verbose)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter verbose: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.DeleteFolder(ctx, folderId, params)
|
|
return err
|
|
}
|
|
|
|
// RenameFolder converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) RenameFolder(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "folderId" -------------
|
|
var folderId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "folderId", ctx.Param("folderId"), &folderId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter folderId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.RenameFolder(ctx, folderId)
|
|
return err
|
|
}
|
|
|
|
// GetFolderDocuments converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetFolderDocuments(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "folderId" -------------
|
|
var folderId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "folderId", ctx.Param("folderId"), &folderId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter folderId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetFolderDocumentsParams
|
|
// ------------- Optional query parameter "textRecord" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "textRecord", ctx.QueryParams(), ¶ms.TextRecord)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter textRecord: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetFolderDocuments(ctx, folderId, params)
|
|
return err
|
|
}
|
|
|
|
// GetFolderMetrics converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetFolderMetrics(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "folderId" -------------
|
|
var folderId openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "folderId", ctx.Param("folderId"), &folderId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter folderId: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetFolderMetrics(ctx, folderId)
|
|
return err
|
|
}
|
|
|
|
// GetHomePage converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetHomePage(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetHomePage(ctx)
|
|
return err
|
|
}
|
|
|
|
// GetIdentity converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetIdentity(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetIdentity(ctx)
|
|
return err
|
|
}
|
|
|
|
// GetDocumentsByLabel converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetDocumentsByLabel(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "labelName" -------------
|
|
var labelName string
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "labelName", ctx.Param("labelName"), &labelName, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter labelName: %s", err))
|
|
}
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params GetDocumentsByLabelParams
|
|
// ------------- Required query parameter "clientId" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "clientId", ctx.QueryParams(), ¶ms.ClientId)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter clientId: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.GetDocumentsByLabel(ctx, labelName, params)
|
|
return err
|
|
}
|
|
|
|
// Login converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) Login(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(CognitoAuthScopes, []string{"openid", "email", "profile"})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.Login(ctx)
|
|
return err
|
|
}
|
|
|
|
// LoginCallback converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) LoginCallback(ctx echo.Context) error {
|
|
var err error
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params LoginCallbackParams
|
|
// ------------- Required query parameter "code" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "code", ctx.QueryParams(), ¶ms.Code)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter code: %s", err))
|
|
}
|
|
|
|
// ------------- Required query parameter "state" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, true, "state", ctx.QueryParams(), ¶ms.State)
|
|
if err != nil {
|
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter state: %s", err))
|
|
}
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.LoginCallback(ctx, params)
|
|
return err
|
|
}
|
|
|
|
// Logout converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) Logout(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.Logout(ctx)
|
|
return err
|
|
}
|
|
|
|
// This is a simple interface which specifies echo.Route addition functions which
|
|
// are present on both echo.Echo and echo.Group, since we want to allow using
|
|
// either of them for path registration
|
|
type EchoRouter interface {
|
|
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
|
|
}
|
|
|
|
// RegisterHandlers adds each server route to the EchoRouter.
|
|
func RegisterHandlers(router EchoRouter, si ServerInterface) {
|
|
RegisterHandlersWithBaseURL(router, si, "")
|
|
}
|
|
|
|
// Registers handlers, and prepends BaseURL to the paths, so that the paths
|
|
// can be served under a prefix.
|
|
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) {
|
|
|
|
wrapper := ServerInterfaceWrapper{
|
|
Handler: si,
|
|
}
|
|
|
|
router.GET(baseURL+"/admin/eula", wrapper.ListEulaVersions)
|
|
router.POST(baseURL+"/admin/eula", wrapper.CreateEulaVersion)
|
|
router.GET(baseURL+"/admin/eula/agreements", wrapper.ListEulaAgreements)
|
|
router.GET(baseURL+"/admin/eula/compliance", wrapper.GetEulaCompliance)
|
|
router.GET(baseURL+"/admin/eula/:version_id", wrapper.GetEulaVersion)
|
|
router.PATCH(baseURL+"/admin/eula/:version_id", wrapper.UpdateEulaVersion)
|
|
router.POST(baseURL+"/admin/eula/:version_id/activate", wrapper.ActivateEulaVersion)
|
|
router.GET(baseURL+"/admin/users", wrapper.ListAdminUsers)
|
|
router.POST(baseURL+"/admin/users", wrapper.CreateAdminUser)
|
|
router.DELETE(baseURL+"/admin/users/:email", wrapper.DeleteAdminUser)
|
|
router.GET(baseURL+"/admin/users/:email", wrapper.GetAdminUser)
|
|
router.HEAD(baseURL+"/admin/users/:email", wrapper.CheckAdminUserExists)
|
|
router.PATCH(baseURL+"/admin/users/:email", wrapper.UpdateAdminUser)
|
|
router.POST(baseURL+"/admin/users/:email/disable", wrapper.DisableAdminUser)
|
|
router.POST(baseURL+"/admin/users/:email/enable", wrapper.EnableAdminUser)
|
|
router.POST(baseURL+"/client", wrapper.CreateClient)
|
|
router.DELETE(baseURL+"/client/:id", wrapper.DeleteClient)
|
|
router.GET(baseURL+"/client/:id", wrapper.GetClient)
|
|
router.PATCH(baseURL+"/client/:id", wrapper.UpdateClient)
|
|
router.GET(baseURL+"/client/:id/collector", wrapper.GetCollectorByClientId)
|
|
router.PATCH(baseURL+"/client/:id/collector", wrapper.SetCollectorByClientId)
|
|
router.GET(baseURL+"/client/:id/document", wrapper.ListDocumentsByClientId)
|
|
router.POST(baseURL+"/client/:id/document", wrapper.UploadDocument)
|
|
router.GET(baseURL+"/client/:id/document/batch", wrapper.ListDocumentBatches)
|
|
router.POST(baseURL+"/client/:id/document/batch", wrapper.UploadDocumentBatch)
|
|
router.GET(baseURL+"/client/:id/document/batch/:batch_id", wrapper.GetDocumentBatch)
|
|
router.POST(baseURL+"/client/:id/export", wrapper.TriggerExport)
|
|
router.GET(baseURL+"/client/:id/folders", wrapper.ListClientFolders)
|
|
router.GET(baseURL+"/client/:id/status", wrapper.GetStatusByClientId)
|
|
router.GET(baseURL+"/clients", wrapper.ListClients)
|
|
router.DELETE(baseURL+"/document/:id", wrapper.DeleteDocument)
|
|
router.GET(baseURL+"/document/:id", wrapper.GetDocument)
|
|
router.GET(baseURL+"/documents/:documentId/labels", wrapper.GetDocumentLabels)
|
|
router.POST(baseURL+"/documents/:documentId/labels", wrapper.ApplyLabel)
|
|
router.GET(baseURL+"/eula", wrapper.GetCurrentEula)
|
|
router.POST(baseURL+"/eula/agree", wrapper.AgreeToEula)
|
|
router.GET(baseURL+"/eula/status", wrapper.GetEulaStatus)
|
|
router.GET(baseURL+"/export/:id", wrapper.ExportState)
|
|
router.GET(baseURL+"/field-extractions", wrapper.GetCurrentFieldExtraction)
|
|
router.POST(baseURL+"/field-extractions", wrapper.CreateFieldExtraction)
|
|
router.GET(baseURL+"/field-extractions/history", wrapper.GetFieldExtractionHistory)
|
|
router.GET(baseURL+"/field-extractions/version", wrapper.GetFieldExtractionByVersion)
|
|
router.POST(baseURL+"/folders", wrapper.CreateFolder)
|
|
router.DELETE(baseURL+"/folders/:folderId", wrapper.DeleteFolder)
|
|
router.PATCH(baseURL+"/folders/:folderId", wrapper.RenameFolder)
|
|
router.GET(baseURL+"/folders/:folderId/documents", wrapper.GetFolderDocuments)
|
|
router.GET(baseURL+"/folders/:folderId/metrics", wrapper.GetFolderMetrics)
|
|
router.GET(baseURL+"/home", wrapper.GetHomePage)
|
|
router.GET(baseURL+"/identity", wrapper.GetIdentity)
|
|
router.GET(baseURL+"/labels/:labelName/documents", wrapper.GetDocumentsByLabel)
|
|
router.GET(baseURL+"/login", wrapper.Login)
|
|
router.GET(baseURL+"/login-callback", wrapper.LoginCallback)
|
|
router.GET(baseURL+"/logout", wrapper.Logout)
|
|
|
|
}
|
|
|
|
// Base64 encoded, gzipped, json marshaled Swagger object
|
|
var swaggerSpec = []string{
|
|
|
|
"H4sIAAAAAAAC/+y9C3MbOZIw+FcQ3L1oaYakSEryQ19s3KoluVt7fugkeea+aflTgFUgiXGxwAFQkukO",
|
|
"//cLJIAqVBXqQYqUZY92J6ItFh6JRGYikcjHn52AzRcsJrEUnaM/OzOCQ8Lhn5dYkrd0TqX6IyQi4HQh",
|
|
"KYs7R/AJReobovGE8TlWHxCNkf4D3XTg6/+6p3HI7v9L0jnp6X/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nAaarGB2MC4zlSTq0MD6PeyAL4TLNbSnyttzDN",
|
|
"DtPqTITR+Z3/FLngLEz0E6Bu1Ol2Eh6BjVBrPSELvi77AZvv3Q2h1JGZplyZ19CqQJxE2KRTyDJ0G6Ge",
|
|
"T9BdPi4qhrF1x92RirXI2w7mqt1mrFJez1XHSt0LIaWu9tm1+2LmyFvAV57AZEZU46eJA22CwGyS3H1p",
|
|
"9UUUg5gc6P3uzW2n0HHPznj5gOe2w+TTrWWjuSTfdiyQ13Mc4ynJ0ruHcxpTIXlxfPX7qhPUJJsrTFve",
|
|
"RzcHwbdP3/7/AAAA///pcQ5AzMEBAA==",
|
|
}
|
|
|
|
// GetSwagger returns the content of the embedded swagger specification file
|
|
// or error if failed to decode
|
|
func decodeSpec() ([]byte, error) {
|
|
zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, ""))
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error base64 decoding spec: %w", err)
|
|
}
|
|
zr, err := gzip.NewReader(bytes.NewReader(zipped))
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error decompressing spec: %w", err)
|
|
}
|
|
var buf bytes.Buffer
|
|
_, err = buf.ReadFrom(zr)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error decompressing spec: %w", err)
|
|
}
|
|
|
|
return buf.Bytes(), nil
|
|
}
|
|
|
|
var rawSpec = decodeSpecCached()
|
|
|
|
// a naive cached of a decoded swagger spec
|
|
func decodeSpecCached() func() ([]byte, error) {
|
|
data, err := decodeSpec()
|
|
return func() ([]byte, error) {
|
|
return data, err
|
|
}
|
|
}
|
|
|
|
// Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
|
|
func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) {
|
|
res := make(map[string]func() ([]byte, error))
|
|
if len(pathToFile) > 0 {
|
|
res[pathToFile] = rawSpec
|
|
}
|
|
|
|
return res
|
|
}
|
|
|
|
// GetSwagger returns the Swagger specification corresponding to the generated code
|
|
// in this file. The external references of Swagger specification are resolved.
|
|
// The logic of resolving external references is tightly connected to "import-mapping" feature.
|
|
// Externally referenced files must be embedded in the corresponding golang packages.
|
|
// Urls can be supported but this task was out of the scope.
|
|
func GetSwagger() (swagger *openapi3.T, err error) {
|
|
resolvePath := PathToRawSpec("")
|
|
|
|
loader := openapi3.NewLoader()
|
|
loader.IsExternalRefsAllowed = true
|
|
loader.ReadFromURIFunc = func(loader *openapi3.Loader, url *url.URL) ([]byte, error) {
|
|
pathToFile := url.String()
|
|
pathToFile = path.Clean(pathToFile)
|
|
getSpec, ok := resolvePath[pathToFile]
|
|
if !ok {
|
|
err1 := fmt.Errorf("path not found: %s", pathToFile)
|
|
return nil, err1
|
|
}
|
|
return getSpec()
|
|
}
|
|
var specData []byte
|
|
specData, err = rawSpec()
|
|
if err != nil {
|
|
return
|
|
}
|
|
swagger, err = loader.LoadFromData(specData)
|
|
if err != nil {
|
|
return
|
|
}
|
|
return
|
|
}
|