1407 lines
54 KiB
TypeScript
1407 lines
54 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `PluginCapabilityUse` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model PluginCapabilityUse
|
|
*
|
|
*/
|
|
export type PluginCapabilityUseModel = runtime.Types.Result.DefaultSelection<Prisma.$PluginCapabilityUsePayload>
|
|
|
|
export type AggregatePluginCapabilityUse = {
|
|
_count: PluginCapabilityUseCountAggregateOutputType | null
|
|
_avg: PluginCapabilityUseAvgAggregateOutputType | null
|
|
_sum: PluginCapabilityUseSumAggregateOutputType | null
|
|
_min: PluginCapabilityUseMinAggregateOutputType | null
|
|
_max: PluginCapabilityUseMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PluginCapabilityUseAvgAggregateOutputType = {
|
|
durationMs: number | null
|
|
}
|
|
|
|
export type PluginCapabilityUseSumAggregateOutputType = {
|
|
durationMs: number | null
|
|
}
|
|
|
|
export type PluginCapabilityUseMinAggregateOutputType = {
|
|
id: string | null
|
|
pluginInvocationId: string | null
|
|
tenantId: string | null
|
|
pluginId: string | null
|
|
capability: string | null
|
|
payloadHash: string | null
|
|
outcome: string | null
|
|
errorCode: string | null
|
|
durationMs: number | null
|
|
timestamp: Date | null
|
|
prevHash: string | null
|
|
rowHash: string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseMaxAggregateOutputType = {
|
|
id: string | null
|
|
pluginInvocationId: string | null
|
|
tenantId: string | null
|
|
pluginId: string | null
|
|
capability: string | null
|
|
payloadHash: string | null
|
|
outcome: string | null
|
|
errorCode: string | null
|
|
durationMs: number | null
|
|
timestamp: Date | null
|
|
prevHash: string | null
|
|
rowHash: string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseCountAggregateOutputType = {
|
|
id: number
|
|
pluginInvocationId: number
|
|
tenantId: number
|
|
pluginId: number
|
|
capability: number
|
|
payloadHash: number
|
|
outcome: number
|
|
errorCode: number
|
|
durationMs: number
|
|
timestamp: number
|
|
prevHash: number
|
|
rowHash: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PluginCapabilityUseAvgAggregateInputType = {
|
|
durationMs?: true
|
|
}
|
|
|
|
export type PluginCapabilityUseSumAggregateInputType = {
|
|
durationMs?: true
|
|
}
|
|
|
|
export type PluginCapabilityUseMinAggregateInputType = {
|
|
id?: true
|
|
pluginInvocationId?: true
|
|
tenantId?: true
|
|
pluginId?: true
|
|
capability?: true
|
|
payloadHash?: true
|
|
outcome?: true
|
|
errorCode?: true
|
|
durationMs?: true
|
|
timestamp?: true
|
|
prevHash?: true
|
|
rowHash?: true
|
|
}
|
|
|
|
export type PluginCapabilityUseMaxAggregateInputType = {
|
|
id?: true
|
|
pluginInvocationId?: true
|
|
tenantId?: true
|
|
pluginId?: true
|
|
capability?: true
|
|
payloadHash?: true
|
|
outcome?: true
|
|
errorCode?: true
|
|
durationMs?: true
|
|
timestamp?: true
|
|
prevHash?: true
|
|
rowHash?: true
|
|
}
|
|
|
|
export type PluginCapabilityUseCountAggregateInputType = {
|
|
id?: true
|
|
pluginInvocationId?: true
|
|
tenantId?: true
|
|
pluginId?: true
|
|
capability?: true
|
|
payloadHash?: true
|
|
outcome?: true
|
|
errorCode?: true
|
|
durationMs?: true
|
|
timestamp?: true
|
|
prevHash?: true
|
|
rowHash?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PluginCapabilityUseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PluginCapabilityUse to aggregate.
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PluginCapabilityUses to fetch.
|
|
*/
|
|
orderBy?: Prisma.PluginCapabilityUseOrderByWithRelationInput | Prisma.PluginCapabilityUseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PluginCapabilityUses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PluginCapabilityUses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned PluginCapabilityUses
|
|
**/
|
|
_count?: true | PluginCapabilityUseCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PluginCapabilityUseAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PluginCapabilityUseSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PluginCapabilityUseMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PluginCapabilityUseMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPluginCapabilityUseAggregateType<T extends PluginCapabilityUseAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePluginCapabilityUse]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePluginCapabilityUse[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePluginCapabilityUse[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PluginCapabilityUseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
orderBy?: Prisma.PluginCapabilityUseOrderByWithAggregationInput | Prisma.PluginCapabilityUseOrderByWithAggregationInput[]
|
|
by: Prisma.PluginCapabilityUseScalarFieldEnum[] | Prisma.PluginCapabilityUseScalarFieldEnum
|
|
having?: Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PluginCapabilityUseCountAggregateInputType | true
|
|
_avg?: PluginCapabilityUseAvgAggregateInputType
|
|
_sum?: PluginCapabilityUseSumAggregateInputType
|
|
_min?: PluginCapabilityUseMinAggregateInputType
|
|
_max?: PluginCapabilityUseMaxAggregateInputType
|
|
}
|
|
|
|
export type PluginCapabilityUseGroupByOutputType = {
|
|
id: string
|
|
pluginInvocationId: string
|
|
tenantId: string
|
|
pluginId: string
|
|
capability: string
|
|
payloadHash: string | null
|
|
outcome: string
|
|
errorCode: string | null
|
|
durationMs: number | null
|
|
timestamp: Date
|
|
prevHash: string | null
|
|
rowHash: string | null
|
|
_count: PluginCapabilityUseCountAggregateOutputType | null
|
|
_avg: PluginCapabilityUseAvgAggregateOutputType | null
|
|
_sum: PluginCapabilityUseSumAggregateOutputType | null
|
|
_min: PluginCapabilityUseMinAggregateOutputType | null
|
|
_max: PluginCapabilityUseMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetPluginCapabilityUseGroupByPayload<T extends PluginCapabilityUseGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PluginCapabilityUseGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PluginCapabilityUseGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PluginCapabilityUseGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PluginCapabilityUseGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type PluginCapabilityUseWhereInput = {
|
|
AND?: Prisma.PluginCapabilityUseWhereInput | Prisma.PluginCapabilityUseWhereInput[]
|
|
OR?: Prisma.PluginCapabilityUseWhereInput[]
|
|
NOT?: Prisma.PluginCapabilityUseWhereInput | Prisma.PluginCapabilityUseWhereInput[]
|
|
id?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
pluginInvocationId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
tenantId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
pluginId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
capability?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
payloadHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
outcome?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
errorCode?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
durationMs?: Prisma.IntNullableFilter<"PluginCapabilityUse"> | number | null
|
|
timestamp?: Prisma.DateTimeFilter<"PluginCapabilityUse"> | Date | string
|
|
prevHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
rowHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
pluginInvocationId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
pluginId?: Prisma.SortOrder
|
|
capability?: Prisma.SortOrder
|
|
payloadHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
outcome?: Prisma.SortOrder
|
|
errorCode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
durationMs?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
timestamp?: Prisma.SortOrder
|
|
prevHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rowHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type PluginCapabilityUseWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.PluginCapabilityUseWhereInput | Prisma.PluginCapabilityUseWhereInput[]
|
|
OR?: Prisma.PluginCapabilityUseWhereInput[]
|
|
NOT?: Prisma.PluginCapabilityUseWhereInput | Prisma.PluginCapabilityUseWhereInput[]
|
|
pluginInvocationId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
tenantId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
pluginId?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
capability?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
payloadHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
outcome?: Prisma.StringFilter<"PluginCapabilityUse"> | string
|
|
errorCode?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
durationMs?: Prisma.IntNullableFilter<"PluginCapabilityUse"> | number | null
|
|
timestamp?: Prisma.DateTimeFilter<"PluginCapabilityUse"> | Date | string
|
|
prevHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
rowHash?: Prisma.StringNullableFilter<"PluginCapabilityUse"> | string | null
|
|
}, "id">
|
|
|
|
export type PluginCapabilityUseOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
pluginInvocationId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
pluginId?: Prisma.SortOrder
|
|
capability?: Prisma.SortOrder
|
|
payloadHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
outcome?: Prisma.SortOrder
|
|
errorCode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
durationMs?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
timestamp?: Prisma.SortOrder
|
|
prevHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rowHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.PluginCapabilityUseCountOrderByAggregateInput
|
|
_avg?: Prisma.PluginCapabilityUseAvgOrderByAggregateInput
|
|
_max?: Prisma.PluginCapabilityUseMaxOrderByAggregateInput
|
|
_min?: Prisma.PluginCapabilityUseMinOrderByAggregateInput
|
|
_sum?: Prisma.PluginCapabilityUseSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PluginCapabilityUseScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput | Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput | Prisma.PluginCapabilityUseScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
pluginInvocationId?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
pluginId?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
capability?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
payloadHash?: Prisma.StringNullableWithAggregatesFilter<"PluginCapabilityUse"> | string | null
|
|
outcome?: Prisma.StringWithAggregatesFilter<"PluginCapabilityUse"> | string
|
|
errorCode?: Prisma.StringNullableWithAggregatesFilter<"PluginCapabilityUse"> | string | null
|
|
durationMs?: Prisma.IntNullableWithAggregatesFilter<"PluginCapabilityUse"> | number | null
|
|
timestamp?: Prisma.DateTimeWithAggregatesFilter<"PluginCapabilityUse"> | Date | string
|
|
prevHash?: Prisma.StringNullableWithAggregatesFilter<"PluginCapabilityUse"> | string | null
|
|
rowHash?: Prisma.StringNullableWithAggregatesFilter<"PluginCapabilityUse"> | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseCreateInput = {
|
|
id?: string
|
|
pluginInvocationId: string
|
|
tenantId: string
|
|
pluginId: string
|
|
capability: string
|
|
payloadHash?: string | null
|
|
outcome: string
|
|
errorCode?: string | null
|
|
durationMs?: number | null
|
|
timestamp?: Date | string
|
|
prevHash?: string | null
|
|
rowHash?: string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseUncheckedCreateInput = {
|
|
id?: string
|
|
pluginInvocationId: string
|
|
tenantId: string
|
|
pluginId: string
|
|
capability: string
|
|
payloadHash?: string | null
|
|
outcome: string
|
|
errorCode?: string | null
|
|
durationMs?: number | null
|
|
timestamp?: Date | string
|
|
prevHash?: string | null
|
|
rowHash?: string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginInvocationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
capability?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payloadHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
outcome?: Prisma.StringFieldUpdateOperationsInput | string
|
|
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
prevHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rowHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginInvocationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
capability?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payloadHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
outcome?: Prisma.StringFieldUpdateOperationsInput | string
|
|
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
prevHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rowHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseCreateManyInput = {
|
|
id?: string
|
|
pluginInvocationId: string
|
|
tenantId: string
|
|
pluginId: string
|
|
capability: string
|
|
payloadHash?: string | null
|
|
outcome: string
|
|
errorCode?: string | null
|
|
durationMs?: number | null
|
|
timestamp?: Date | string
|
|
prevHash?: string | null
|
|
rowHash?: string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginInvocationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
capability?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payloadHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
outcome?: Prisma.StringFieldUpdateOperationsInput | string
|
|
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
prevHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rowHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginInvocationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
pluginId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
capability?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payloadHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
outcome?: Prisma.StringFieldUpdateOperationsInput | string
|
|
errorCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
prevHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rowHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type PluginCapabilityUseCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
pluginInvocationId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
pluginId?: Prisma.SortOrder
|
|
capability?: Prisma.SortOrder
|
|
payloadHash?: Prisma.SortOrder
|
|
outcome?: Prisma.SortOrder
|
|
errorCode?: Prisma.SortOrder
|
|
durationMs?: Prisma.SortOrder
|
|
timestamp?: Prisma.SortOrder
|
|
prevHash?: Prisma.SortOrder
|
|
rowHash?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PluginCapabilityUseAvgOrderByAggregateInput = {
|
|
durationMs?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PluginCapabilityUseMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
pluginInvocationId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
pluginId?: Prisma.SortOrder
|
|
capability?: Prisma.SortOrder
|
|
payloadHash?: Prisma.SortOrder
|
|
outcome?: Prisma.SortOrder
|
|
errorCode?: Prisma.SortOrder
|
|
durationMs?: Prisma.SortOrder
|
|
timestamp?: Prisma.SortOrder
|
|
prevHash?: Prisma.SortOrder
|
|
rowHash?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PluginCapabilityUseMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
pluginInvocationId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
pluginId?: Prisma.SortOrder
|
|
capability?: Prisma.SortOrder
|
|
payloadHash?: Prisma.SortOrder
|
|
outcome?: Prisma.SortOrder
|
|
errorCode?: Prisma.SortOrder
|
|
durationMs?: Prisma.SortOrder
|
|
timestamp?: Prisma.SortOrder
|
|
prevHash?: Prisma.SortOrder
|
|
rowHash?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PluginCapabilityUseSumOrderByAggregateInput = {
|
|
durationMs?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type PluginCapabilityUseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
pluginInvocationId?: boolean
|
|
tenantId?: boolean
|
|
pluginId?: boolean
|
|
capability?: boolean
|
|
payloadHash?: boolean
|
|
outcome?: boolean
|
|
errorCode?: boolean
|
|
durationMs?: boolean
|
|
timestamp?: boolean
|
|
prevHash?: boolean
|
|
rowHash?: boolean
|
|
}, ExtArgs["result"]["pluginCapabilityUse"]>
|
|
|
|
export type PluginCapabilityUseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
pluginInvocationId?: boolean
|
|
tenantId?: boolean
|
|
pluginId?: boolean
|
|
capability?: boolean
|
|
payloadHash?: boolean
|
|
outcome?: boolean
|
|
errorCode?: boolean
|
|
durationMs?: boolean
|
|
timestamp?: boolean
|
|
prevHash?: boolean
|
|
rowHash?: boolean
|
|
}, ExtArgs["result"]["pluginCapabilityUse"]>
|
|
|
|
export type PluginCapabilityUseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
pluginInvocationId?: boolean
|
|
tenantId?: boolean
|
|
pluginId?: boolean
|
|
capability?: boolean
|
|
payloadHash?: boolean
|
|
outcome?: boolean
|
|
errorCode?: boolean
|
|
durationMs?: boolean
|
|
timestamp?: boolean
|
|
prevHash?: boolean
|
|
rowHash?: boolean
|
|
}, ExtArgs["result"]["pluginCapabilityUse"]>
|
|
|
|
export type PluginCapabilityUseSelectScalar = {
|
|
id?: boolean
|
|
pluginInvocationId?: boolean
|
|
tenantId?: boolean
|
|
pluginId?: boolean
|
|
capability?: boolean
|
|
payloadHash?: boolean
|
|
outcome?: boolean
|
|
errorCode?: boolean
|
|
durationMs?: boolean
|
|
timestamp?: boolean
|
|
prevHash?: boolean
|
|
rowHash?: boolean
|
|
}
|
|
|
|
export type PluginCapabilityUseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "pluginInvocationId" | "tenantId" | "pluginId" | "capability" | "payloadHash" | "outcome" | "errorCode" | "durationMs" | "timestamp" | "prevHash" | "rowHash", ExtArgs["result"]["pluginCapabilityUse"]>
|
|
|
|
export type $PluginCapabilityUsePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "PluginCapabilityUse"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
/**
|
|
* PluginInvocation row id. No FK yet; rows are correlated by value so
|
|
* existing capability-use batches remain migration-safe.
|
|
*/
|
|
pluginInvocationId: string
|
|
tenantId: string
|
|
pluginId: string
|
|
capability: string
|
|
/**
|
|
* SHA-256 of the host-fn arg-shape (URL+method for http.outbound,
|
|
* key for storage.*, etc.) — lets forensics cross-check without
|
|
* retaining tenant payload bodies.
|
|
*/
|
|
payloadHash: string | null
|
|
outcome: string
|
|
errorCode: string | null
|
|
durationMs: number | null
|
|
timestamp: Date
|
|
/**
|
|
* F-003 — per-tenant hash chain. `prevHash` is the `rowHash` of the
|
|
* preceding row in this tenant's chain (or NULL for the genesis
|
|
* row). `rowHash` is SHA-256(prevHash || canonical(row)). A verifier
|
|
* can walk the chain and detect tampering: any modified or deleted
|
|
* row breaks the chain at that point. Nullable for back-compat with
|
|
* pre-F-003 rows; new inserts always populate both fields.
|
|
*/
|
|
prevHash: string | null
|
|
rowHash: string | null
|
|
}, ExtArgs["result"]["pluginCapabilityUse"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type PluginCapabilityUseGetPayload<S extends boolean | null | undefined | PluginCapabilityUseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload, S>
|
|
|
|
export type PluginCapabilityUseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PluginCapabilityUseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PluginCapabilityUseCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PluginCapabilityUseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PluginCapabilityUse'], meta: { name: 'PluginCapabilityUse' } }
|
|
/**
|
|
* Find zero or one PluginCapabilityUse that matches the filter.
|
|
* @param {PluginCapabilityUseFindUniqueArgs} args - Arguments to find a PluginCapabilityUse
|
|
* @example
|
|
* // Get one PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PluginCapabilityUseFindUniqueArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one PluginCapabilityUse that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PluginCapabilityUseFindUniqueOrThrowArgs} args - Arguments to find a PluginCapabilityUse
|
|
* @example
|
|
* // Get one PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PluginCapabilityUseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PluginCapabilityUse that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseFindFirstArgs} args - Arguments to find a PluginCapabilityUse
|
|
* @example
|
|
* // Get one PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PluginCapabilityUseFindFirstArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseFindFirstArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PluginCapabilityUse that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseFindFirstOrThrowArgs} args - Arguments to find a PluginCapabilityUse
|
|
* @example
|
|
* // Get one PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PluginCapabilityUseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more PluginCapabilityUses that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all PluginCapabilityUses
|
|
* const pluginCapabilityUses = await prisma.pluginCapabilityUse.findMany()
|
|
*
|
|
* // Get first 10 PluginCapabilityUses
|
|
* const pluginCapabilityUses = await prisma.pluginCapabilityUse.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const pluginCapabilityUseWithIdOnly = await prisma.pluginCapabilityUse.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PluginCapabilityUseFindManyArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a PluginCapabilityUse.
|
|
* @param {PluginCapabilityUseCreateArgs} args - Arguments to create a PluginCapabilityUse.
|
|
* @example
|
|
* // Create one PluginCapabilityUse
|
|
* const PluginCapabilityUse = await prisma.pluginCapabilityUse.create({
|
|
* data: {
|
|
* // ... data to create a PluginCapabilityUse
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PluginCapabilityUseCreateArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseCreateArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many PluginCapabilityUses.
|
|
* @param {PluginCapabilityUseCreateManyArgs} args - Arguments to create many PluginCapabilityUses.
|
|
* @example
|
|
* // Create many PluginCapabilityUses
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PluginCapabilityUseCreateManyArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many PluginCapabilityUses and returns the data saved in the database.
|
|
* @param {PluginCapabilityUseCreateManyAndReturnArgs} args - Arguments to create many PluginCapabilityUses.
|
|
* @example
|
|
* // Create many PluginCapabilityUses
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many PluginCapabilityUses and only return the `id`
|
|
* const pluginCapabilityUseWithIdOnly = await prisma.pluginCapabilityUse.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends PluginCapabilityUseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a PluginCapabilityUse.
|
|
* @param {PluginCapabilityUseDeleteArgs} args - Arguments to delete one PluginCapabilityUse.
|
|
* @example
|
|
* // Delete one PluginCapabilityUse
|
|
* const PluginCapabilityUse = await prisma.pluginCapabilityUse.delete({
|
|
* where: {
|
|
* // ... filter to delete one PluginCapabilityUse
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PluginCapabilityUseDeleteArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseDeleteArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one PluginCapabilityUse.
|
|
* @param {PluginCapabilityUseUpdateArgs} args - Arguments to update one PluginCapabilityUse.
|
|
* @example
|
|
* // Update one PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PluginCapabilityUseUpdateArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseUpdateArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more PluginCapabilityUses.
|
|
* @param {PluginCapabilityUseDeleteManyArgs} args - Arguments to filter PluginCapabilityUses to delete.
|
|
* @example
|
|
* // Delete a few PluginCapabilityUses
|
|
* const { count } = await prisma.pluginCapabilityUse.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PluginCapabilityUseDeleteManyArgs>(args?: Prisma.SelectSubset<T, PluginCapabilityUseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PluginCapabilityUses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many PluginCapabilityUses
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PluginCapabilityUseUpdateManyArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PluginCapabilityUses and returns the data updated in the database.
|
|
* @param {PluginCapabilityUseUpdateManyAndReturnArgs} args - Arguments to update many PluginCapabilityUses.
|
|
* @example
|
|
* // Update many PluginCapabilityUses
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more PluginCapabilityUses and only return the `id`
|
|
* const pluginCapabilityUseWithIdOnly = await prisma.pluginCapabilityUse.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends PluginCapabilityUseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one PluginCapabilityUse.
|
|
* @param {PluginCapabilityUseUpsertArgs} args - Arguments to update or create a PluginCapabilityUse.
|
|
* @example
|
|
* // Update or create a PluginCapabilityUse
|
|
* const pluginCapabilityUse = await prisma.pluginCapabilityUse.upsert({
|
|
* create: {
|
|
* // ... data to create a PluginCapabilityUse
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the PluginCapabilityUse we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PluginCapabilityUseUpsertArgs>(args: Prisma.SelectSubset<T, PluginCapabilityUseUpsertArgs<ExtArgs>>): Prisma.Prisma__PluginCapabilityUseClient<runtime.Types.Result.GetResult<Prisma.$PluginCapabilityUsePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of PluginCapabilityUses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseCountArgs} args - Arguments to filter PluginCapabilityUses to count.
|
|
* @example
|
|
* // Count the number of PluginCapabilityUses
|
|
* const count = await prisma.pluginCapabilityUse.count({
|
|
* where: {
|
|
* // ... the filter for the PluginCapabilityUses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PluginCapabilityUseCountArgs>(
|
|
args?: Prisma.Subset<T, PluginCapabilityUseCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PluginCapabilityUseCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a PluginCapabilityUse.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends PluginCapabilityUseAggregateArgs>(args: Prisma.Subset<T, PluginCapabilityUseAggregateArgs>): Prisma.PrismaPromise<GetPluginCapabilityUseAggregateType<T>>
|
|
|
|
/**
|
|
* Group by PluginCapabilityUse.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PluginCapabilityUseGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends PluginCapabilityUseGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PluginCapabilityUseGroupByArgs['orderBy'] }
|
|
: { orderBy?: PluginCapabilityUseGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, PluginCapabilityUseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPluginCapabilityUseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the PluginCapabilityUse model
|
|
*/
|
|
readonly fields: PluginCapabilityUseFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for PluginCapabilityUse.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__PluginCapabilityUseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the PluginCapabilityUse model
|
|
*/
|
|
export interface PluginCapabilityUseFieldRefs {
|
|
readonly id: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly pluginInvocationId: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly pluginId: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly capability: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly payloadHash: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly outcome: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly errorCode: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly durationMs: Prisma.FieldRef<"PluginCapabilityUse", 'Int'>
|
|
readonly timestamp: Prisma.FieldRef<"PluginCapabilityUse", 'DateTime'>
|
|
readonly prevHash: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
readonly rowHash: Prisma.FieldRef<"PluginCapabilityUse", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PluginCapabilityUse findUnique
|
|
*/
|
|
export type PluginCapabilityUseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PluginCapabilityUse to fetch.
|
|
*/
|
|
where: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse findUniqueOrThrow
|
|
*/
|
|
export type PluginCapabilityUseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PluginCapabilityUse to fetch.
|
|
*/
|
|
where: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse findFirst
|
|
*/
|
|
export type PluginCapabilityUseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PluginCapabilityUse to fetch.
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PluginCapabilityUses to fetch.
|
|
*/
|
|
orderBy?: Prisma.PluginCapabilityUseOrderByWithRelationInput | Prisma.PluginCapabilityUseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PluginCapabilityUses.
|
|
*/
|
|
cursor?: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PluginCapabilityUses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PluginCapabilityUses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PluginCapabilityUses.
|
|
*/
|
|
distinct?: Prisma.PluginCapabilityUseScalarFieldEnum | Prisma.PluginCapabilityUseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse findFirstOrThrow
|
|
*/
|
|
export type PluginCapabilityUseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PluginCapabilityUse to fetch.
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PluginCapabilityUses to fetch.
|
|
*/
|
|
orderBy?: Prisma.PluginCapabilityUseOrderByWithRelationInput | Prisma.PluginCapabilityUseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PluginCapabilityUses.
|
|
*/
|
|
cursor?: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PluginCapabilityUses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PluginCapabilityUses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PluginCapabilityUses.
|
|
*/
|
|
distinct?: Prisma.PluginCapabilityUseScalarFieldEnum | Prisma.PluginCapabilityUseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse findMany
|
|
*/
|
|
export type PluginCapabilityUseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PluginCapabilityUses to fetch.
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PluginCapabilityUses to fetch.
|
|
*/
|
|
orderBy?: Prisma.PluginCapabilityUseOrderByWithRelationInput | Prisma.PluginCapabilityUseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing PluginCapabilityUses.
|
|
*/
|
|
cursor?: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PluginCapabilityUses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` PluginCapabilityUses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PluginCapabilityUses.
|
|
*/
|
|
distinct?: Prisma.PluginCapabilityUseScalarFieldEnum | Prisma.PluginCapabilityUseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse create
|
|
*/
|
|
export type PluginCapabilityUseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PluginCapabilityUse.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PluginCapabilityUseCreateInput, Prisma.PluginCapabilityUseUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse createMany
|
|
*/
|
|
export type PluginCapabilityUseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PluginCapabilityUses.
|
|
*/
|
|
data: Prisma.PluginCapabilityUseCreateManyInput | Prisma.PluginCapabilityUseCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse createManyAndReturn
|
|
*/
|
|
export type PluginCapabilityUseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PluginCapabilityUses.
|
|
*/
|
|
data: Prisma.PluginCapabilityUseCreateManyInput | Prisma.PluginCapabilityUseCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse update
|
|
*/
|
|
export type PluginCapabilityUseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PluginCapabilityUse.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PluginCapabilityUseUpdateInput, Prisma.PluginCapabilityUseUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PluginCapabilityUse to update.
|
|
*/
|
|
where: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse updateMany
|
|
*/
|
|
export type PluginCapabilityUseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PluginCapabilityUses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PluginCapabilityUseUpdateManyMutationInput, Prisma.PluginCapabilityUseUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PluginCapabilityUses to update
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* Limit how many PluginCapabilityUses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse updateManyAndReturn
|
|
*/
|
|
export type PluginCapabilityUseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update PluginCapabilityUses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PluginCapabilityUseUpdateManyMutationInput, Prisma.PluginCapabilityUseUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PluginCapabilityUses to update
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* Limit how many PluginCapabilityUses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse upsert
|
|
*/
|
|
export type PluginCapabilityUseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the PluginCapabilityUse to update in case it exists.
|
|
*/
|
|
where: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
/**
|
|
* In case the PluginCapabilityUse found by the `where` argument doesn't exist, create a new PluginCapabilityUse with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.PluginCapabilityUseCreateInput, Prisma.PluginCapabilityUseUncheckedCreateInput>
|
|
/**
|
|
* In case the PluginCapabilityUse was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PluginCapabilityUseUpdateInput, Prisma.PluginCapabilityUseUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse delete
|
|
*/
|
|
export type PluginCapabilityUseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which PluginCapabilityUse to delete.
|
|
*/
|
|
where: Prisma.PluginCapabilityUseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse deleteMany
|
|
*/
|
|
export type PluginCapabilityUseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PluginCapabilityUses to delete
|
|
*/
|
|
where?: Prisma.PluginCapabilityUseWhereInput
|
|
/**
|
|
* Limit how many PluginCapabilityUses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PluginCapabilityUse without action
|
|
*/
|
|
export type PluginCapabilityUseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PluginCapabilityUse
|
|
*/
|
|
select?: Prisma.PluginCapabilityUseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PluginCapabilityUse
|
|
*/
|
|
omit?: Prisma.PluginCapabilityUseOmit<ExtArgs> | null
|
|
}
|