ebf47c6013
track file sizes for all documents in system * feature complete needs dev testing
2640 lines
110 KiB
Go
2640 lines
110 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 QueryType.
|
|
const (
|
|
CONTEXTFULL QueryType = "CONTEXT_FULL"
|
|
JSONEXTRACTOR QueryType = "JSON_EXTRACTOR"
|
|
)
|
|
|
|
// 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.
|
|
type Collector struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion Version `json:"active_version"`
|
|
|
|
// ClientId The client external id
|
|
ClientId ClientID `json:"client_id"`
|
|
|
|
// Fields The fields in the collector.
|
|
Fields CollectorFields `json:"fields"`
|
|
|
|
// LatestVersion The desired version.
|
|
LatestVersion Version `json:"latest_version"`
|
|
|
|
// MinimumCleanerVersion The desired code version.
|
|
MinimumCleanerVersion CodeVersion `json:"minimum_cleaner_version"`
|
|
|
|
// MinimumTextVersion The desired code version.
|
|
MinimumTextVersion CodeVersion `json:"minimum_text_version"`
|
|
}
|
|
|
|
// CollectorField The field properties for the collector.
|
|
type CollectorField struct {
|
|
// Name The output field name.
|
|
Name CollectorFieldName `json:"name"`
|
|
|
|
// QueryId The query id.
|
|
QueryId QueryID `json:"query_id"`
|
|
}
|
|
|
|
// CollectorFieldName The output field name.
|
|
type CollectorFieldName = string
|
|
|
|
// CollectorFields The fields in the collector.
|
|
type CollectorFields = []CollectorField
|
|
|
|
// CollectorSet Payload for updating a Collector.
|
|
type CollectorSet struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion *Version `json:"active_version,omitempty"`
|
|
|
|
// Fields The fields in the collector.
|
|
Fields *CollectorFields `json:"fields,omitempty"`
|
|
|
|
// MinimumCleanerVersion The desired code version.
|
|
MinimumCleanerVersion *CodeVersion `json:"minimum_cleaner_version,omitempty"`
|
|
|
|
// MinimumTextVersion The desired code version.
|
|
MinimumTextVersion *CodeVersion `json:"minimum_text_version,omitempty"`
|
|
}
|
|
|
|
// 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"`
|
|
|
|
// Fields The fields and the value for the document
|
|
Fields map[string]interface{} `json:"fields"`
|
|
|
|
// 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 {
|
|
// Message Message describing the cause.
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// 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
|
|
|
|
// ListQueries A set of queries.
|
|
type ListQueries struct {
|
|
// Queries List of queries.
|
|
Queries []Query `json:"queries"`
|
|
}
|
|
|
|
// Query A logic unit of execution.
|
|
type Query struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion Version `json:"active_version"`
|
|
|
|
// Config Configuration for the query.
|
|
Config *QueryConfig `json:"config,omitempty"`
|
|
|
|
// Id The query id.
|
|
Id QueryID `json:"id"`
|
|
|
|
// LatestVersion The desired version.
|
|
LatestVersion Version `json:"latest_version"`
|
|
|
|
// RequiredQueries List of required query IDs.
|
|
RequiredQueries *RequiredQueryIDs `json:"required_queries,omitempty"`
|
|
|
|
// Type Specifies the type of the query.
|
|
Type QueryType `json:"type"`
|
|
}
|
|
|
|
// QueryConfig Configuration for the query.
|
|
type QueryConfig = string
|
|
|
|
// QueryCreate The parameters required to create a query.
|
|
type QueryCreate struct {
|
|
// Config Configuration for the query.
|
|
Config *QueryConfig `json:"config,omitempty"`
|
|
|
|
// RequiredQueries List of required query IDs.
|
|
RequiredQueries *RequiredQueryIDs `json:"required_queries,omitempty"`
|
|
|
|
// Type Specifies the type of the query.
|
|
Type QueryType `json:"type"`
|
|
}
|
|
|
|
// QueryID The query id.
|
|
type QueryID = openapi_types.UUID
|
|
|
|
// QueryTestRequest The properties for a query test request.
|
|
type QueryTestRequest struct {
|
|
// DocumentId The document id.
|
|
DocumentId DocumentID `json:"document_id"`
|
|
|
|
// QueryVersion The desired version.
|
|
QueryVersion Version `json:"query_version"`
|
|
}
|
|
|
|
// QueryTestResponse The response from a query test.
|
|
type QueryTestResponse struct {
|
|
// Value Result of the query test.
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
// QueryType Specifies the type of the query.
|
|
type QueryType string
|
|
|
|
// QueryUpdate The properties that may be updated for a query.
|
|
type QueryUpdate struct {
|
|
// ActiveVersion The desired version.
|
|
ActiveVersion *Version `json:"active_version,omitempty"`
|
|
|
|
// Config Configuration for the query.
|
|
Config *QueryConfig `json:"config,omitempty"`
|
|
|
|
// RequiredQueries List of required query IDs.
|
|
RequiredQueries *RequiredQueryIDs `json:"required_queries,omitempty"`
|
|
}
|
|
|
|
// RequiredQueryIDs List of required query IDs.
|
|
type RequiredQueryIDs = []QueryID
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|
|
|
|
// 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
|
|
|
|
// CreateQueryJSONRequestBody defines body for CreateQuery for application/json ContentType.
|
|
type CreateQueryJSONRequestBody = QueryCreate
|
|
|
|
// UpdateQueryJSONRequestBody defines body for UpdateQuery for application/json ContentType.
|
|
type UpdateQueryJSONRequestBody = QueryUpdate
|
|
|
|
// TestQueryJSONRequestBody defines body for TestQuery for application/json ContentType.
|
|
type TestQueryJSONRequestBody = QueryTestRequest
|
|
|
|
// ServerInterface represents all server handlers.
|
|
type ServerInterface interface {
|
|
// 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
|
|
// 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
|
|
// Cancel a batch upload
|
|
// (DELETE /client/{id}/document/batch/{batch_id})
|
|
CancelDocumentBatch(ctx echo.Context, id ClientID, batchId BatchID) 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
|
|
// 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
|
|
// 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
|
|
// 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
|
|
// List queries
|
|
// (GET /query)
|
|
ListQueries(ctx echo.Context) error
|
|
// Create a new query
|
|
// (POST /query)
|
|
CreateQuery(ctx echo.Context) error
|
|
// Get a query by ID
|
|
// (GET /query/{id})
|
|
GetQuery(ctx echo.Context, id QueryID) error
|
|
// Update a query
|
|
// (PATCH /query/{id})
|
|
UpdateQuery(ctx echo.Context, id QueryID) error
|
|
// Test a query
|
|
// (POST /query/{id}/test)
|
|
TestQuery(ctx echo.Context, id QueryID) error
|
|
}
|
|
|
|
// ServerInterfaceWrapper converts echo contexts to parameters.
|
|
type ServerInterfaceWrapper struct {
|
|
Handler ServerInterface
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// CancelDocumentBatch converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CancelDocumentBatch(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.CancelDocumentBatch(ctx, id, batchId)
|
|
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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// ListQueries converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) ListQueries(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.ListQueries(ctx)
|
|
return err
|
|
}
|
|
|
|
// CreateQuery converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) CreateQuery(ctx echo.Context) error {
|
|
var err error
|
|
|
|
ctx.Set(JwtAuthScopes, []string{})
|
|
|
|
// Invoke the callback with all the unmarshaled arguments
|
|
err = w.Handler.CreateQuery(ctx)
|
|
return err
|
|
}
|
|
|
|
// GetQuery converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) GetQuery(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id QueryID
|
|
|
|
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.GetQuery(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// UpdateQuery converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) UpdateQuery(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id QueryID
|
|
|
|
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.UpdateQuery(ctx, id)
|
|
return err
|
|
}
|
|
|
|
// TestQuery converts echo context to params.
|
|
func (w *ServerInterfaceWrapper) TestQuery(ctx echo.Context) error {
|
|
var err error
|
|
// ------------- Path parameter "id" -------------
|
|
var id QueryID
|
|
|
|
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.TestQuery(ctx, id)
|
|
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/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.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.DELETE(baseURL+"/client/:id/document/batch/:batch_id", wrapper.CancelDocumentBatch)
|
|
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.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+"/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.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)
|
|
router.GET(baseURL+"/query", wrapper.ListQueries)
|
|
router.POST(baseURL+"/query", wrapper.CreateQuery)
|
|
router.GET(baseURL+"/query/:id", wrapper.GetQuery)
|
|
router.PATCH(baseURL+"/query/:id", wrapper.UpdateQuery)
|
|
router.POST(baseURL+"/query/:id/test", wrapper.TestQuery)
|
|
|
|
}
|
|
|
|
// Base64 encoded, gzipped, json marshaled Swagger object
|
|
var swaggerSpec = []string{
|
|
|
|
"H4sIAAAAAAAC/+y9C3Mbt7Iw+FdQ3LsVOeFDoiQ/tHVrr6JHorO2pSPJm3tP5KsCZ0AS8RBgAIxk2uX/",
|
|
"/hUawAxmBjMcyqTs5OjUqYrFwaPR6Bcaje7PnYjP5pwRpmTn4HNnSnBMBPzzEivyms6o0n/EREaCzhXl",
|
|
"rHMAn1CivyHKxlzMsP6AKEPmD3TTga//zz1lMb//T0VnpGf+fdPpdDvkI57NE9I56Oxsb7tGO9udbkdG",
|
|
"UzLDesZgm+e6zQx/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adtRTKYVb5RiipW2w3iBLIUd8p0tbccCT+EMMzwB0WtSO8Qz",
|
|
"yqhUojy+/j2b4P2X/xMAAP//akDiTcVdAQA=",
|
|
}
|
|
|
|
// 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
|
|
}
|