-
- Overview
-
- Overview
- collection
- collection/client
- collection/schemas
- manifest/context
- manifest/parse
- manifest/types
- remote
- remote/collection\_wire\_schemas
- remote/sveltekit-guard.server
- runtime/binding
- scope/types
- seed/authoring
- seed/execute
- seed/manifest
- seed/plan
- storage/minio
- system/collections
- system/column\_names
- system/types
- system/workspace-schema
- tenant\_db/bootstrap
- tenant\_db/neon-branch-utils
- tenant\_db/neon-provider
- tenant\_db/provider
- tenant\_db/schema
- tenant\_workspace
- tenant\_workspace/build-output
- tenant\_workspace/migrations/apply
- tenant\_workspace/migrations/errors
- tenant\_workspace/migrations/generate
- tenant\_workspace/migrations/read
- tenant\_workspace/source
system/types
system/types
Type Aliases
TApprovalConfig
type TApprovalConfig = z.infer<typeof ApprovalConfigSchema>;Defined in: platform-utils/src/system/types.ts:99
TApprovalConfigStepNode
type TApprovalConfigStepNode = z.infer<typeof ApprovalConfigStepNodeSchema>;Defined in: platform-utils/src/system/types.ts:90
TApprovalLockedRecordLockType
type TApprovalLockedRecordLockType = z.infer<typeof ApprovalLockedRecordLockTypeSchema>;Defined in: platform-utils/src/system/types.ts:37
TApprovalRequest
type TApprovalRequest = z.infer<typeof ApprovalRequestSchema>;Defined in: platform-utils/src/system/types.ts:174
TApprovalRequestLockedRecordRef
type TApprovalRequestLockedRecordRef = z.infer<typeof ApprovalRequestLockedRecordRefSchema>;Defined in: platform-utils/src/system/types.ts:162
TApprovalRequestStatus
type TApprovalRequestStatus = z.infer<typeof ApprovalRequestStatusSchema>;Defined in: platform-utils/src/system/types.ts:19
TApprovalRequestStepAction
type TApprovalRequestStepAction = z.infer<typeof ApprovalRequestStepActionSchema>;Defined in: platform-utils/src/system/types.ts:34
TApprovalRequestStepActionHistory
type TApprovalRequestStepActionHistory = z.infer<typeof ApprovalRequestStepActionHistorySchema>;Defined in: platform-utils/src/system/types.ts:143
TApprovalRequestStepNode
type TApprovalRequestStepNode = z.infer<typeof ApprovalRequestStepNodeSchema>;Defined in: platform-utils/src/system/types.ts:155
TApprovalRequestStepStatus
type TApprovalRequestStepStatus = z.infer<typeof ApprovalRequestStepStatusSchema>;Defined in: platform-utils/src/system/types.ts:27
TAutomationRun
type TAutomationRun = z.infer<typeof AutomationRunSchema>;Defined in: platform-utils/src/system/types.ts:191
TAutomationRunStatus
type TAutomationRunStatus = z.infer<typeof AutomationRunStatusSchema>;Defined in: platform-utils/src/system/types.ts:177
TAutomationRunTrigger
type TAutomationRunTrigger = z.infer<typeof AutomationRunTriggerSchema>;Defined in: platform-utils/src/system/types.ts:180
TChatMessage
type TChatMessage = z.infer<typeof ChatMessageSchema>;Defined in: platform-utils/src/system/types.ts:299
TChatMessageDataPart
type TChatMessageDataPart = z.infer<typeof ChatMessageDataPartSchema>;Defined in: platform-utils/src/system/types.ts:253
TChatMessageFilePart
type TChatMessageFilePart = z.infer<typeof ChatMessageFilePartSchema>;Defined in: platform-utils/src/system/types.ts:241
TChatMessagePart
type TChatMessagePart = z.infer<typeof ChatMessagePartSchema>;Defined in: platform-utils/src/system/types.ts:291
TChatMessagePartState
type TChatMessagePartState = z.infer<typeof ChatMessagePartStateSchema>;Defined in: platform-utils/src/system/types.ts:53
TChatMessageReasoningPart
type TChatMessageReasoningPart = z.infer<typeof ChatMessageReasoningPartSchema>;Defined in: platform-utils/src/system/types.ts:213
TChatMessageRole
type TChatMessageRole = z.infer<typeof ChatMessageRoleSchema>;Defined in: platform-utils/src/system/types.ts:40
TChatMessageSourceDocumentPart
type TChatMessageSourceDocumentPart = z.infer<typeof ChatMessageSourceDocumentPartSchema>;Defined in: platform-utils/src/system/types.ts:232
TChatMessageSourceUrlPart
type TChatMessageSourceUrlPart = z.infer<typeof ChatMessageSourceUrlPartSchema>;Defined in: platform-utils/src/system/types.ts:222
TChatMessageStepStartPart
type TChatMessageStepStartPart = z.infer<typeof ChatMessageStepStartPartSchema>;Defined in: platform-utils/src/system/types.ts:246
TChatMessageTextPart
type TChatMessageTextPart = z.infer<typeof ChatMessageTextPartSchema>;Defined in: platform-utils/src/system/types.ts:205
TChatMessageToolApproval
type TChatMessageToolApproval = z.infer<typeof ChatMessageToolApprovalSchema>;Defined in: platform-utils/src/system/types.ts:260
TChatMessageToolCallPart
type TChatMessageToolCallPart = z.infer<typeof ChatMessageToolCallPartSchema>;Defined in: platform-utils/src/system/types.ts:279
TChatSession
type TChatSession = z.infer<typeof ChatSessionSchema>;Defined in: platform-utils/src/system/types.ts:308
TDateRange
type TDateRange = z.infer<typeof DateRangeSchema>;Defined in: platform-utils/src/system/types.ts:197
TGeolocation
type TGeolocation = z.infer<typeof GeolocationSchema>;Defined in: platform-utils/src/system/types.ts:316
TMoney
type TMoney = z.infer<typeof MoneySchema>;Defined in: platform-utils/src/system/types.ts:322
TMutationActionKey
type TMutationActionKey = z.infer<typeof MutationActionKeySchema>;Defined in: platform-utils/src/system/types.ts:56
TPolicy
type TPolicy = z.infer<typeof PolicySchema>;Defined in: platform-utils/src/system/types.ts:135
TPolicyGrant
type TPolicyGrant = z.infer<typeof PolicyGrantSchema>;Defined in: platform-utils/src/system/types.ts:125
TPolicyMutationGrant
type TPolicyMutationGrant = z.infer<typeof PolicyMutationGrantSchema>;Defined in: platform-utils/src/system/types.ts:119
TPolicyReadGrant
type TPolicyReadGrant = z.infer<typeof PolicyReadGrantSchema>;Defined in: platform-utils/src/system/types.ts:107
TTeam
type TTeam = z.infer<typeof TeamSchema>;Defined in: platform-utils/src/system/types.ts:78
TUser
type TUser = z.infer<typeof UserSchema>;Defined in: platform-utils/src/system/types.ts:68
TUserRole
type TUserRole = z.infer<typeof UserRoleSchema>;Defined in: platform-utils/src/system/types.ts:8
TUserStatus
type TUserStatus = z.infer<typeof UserStatusSchema>;Defined in: platform-utils/src/system/types.ts:11
Variables
ApprovalConfigSchema
const ApprovalConfigSchema: ZodObject<{
approval_name: ZodString;
approval_step_nodes: ZodArray<ZodObject<{
conditions: ZodRecord<ZodString, ZodUnknown>;
description: ZodNullable<ZodString>;
id: ZodString;
name: ZodString;
nextSteps: ZodArray<ZodObject<{ id: ZodString; name: ZodString; teams_that_can_approve: ZodArray<ZodString>; description: ZodNullable<ZodString>; conditions: ZodRecord<...>; nextSteps: ZodArray<...>; }, $strip>>;
teams_that_can_approve: ZodArray<ZodString>;
}, $strip>>;
conditions: ZodRecord<ZodString, ZodUnknown>;
norbital_id: ZodString;
supercede_teams: ZodArray<ZodString>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:92
ApprovalConfigStepNodeSchema
const ApprovalConfigStepNodeSchema: ZodObject<{
conditions: ZodRecord<ZodString, ZodUnknown>;
description: ZodNullable<ZodString>;
id: ZodString;
name: ZodString;
nextSteps: ZodArray<ZodObject<{ id: ZodString; name: ZodString; teams_that_can_approve: ZodArray<ZodString>; description: ZodNullable<ZodString>; conditions: ZodRecord<...>; nextSteps: ZodArray<...>; }, $strip>>;
teams_that_can_approve: ZodArray<ZodString>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:80
ApprovalLockedRecordLockTypeSchema
const ApprovalLockedRecordLockTypeSchema: ZodEnum<{
record_delete: "record_delete";
record_mutation: "record_mutation";
}>;Defined in: platform-utils/src/system/types.ts:36
ApprovalRequestLockedRecordRefSchema
const ApprovalRequestLockedRecordRefSchema: ZodObject<{
collection_name: ZodString;
lock_type: ZodEnum<{
record_delete: "record_delete";
record_mutation: "record_mutation";
}>;
record_id: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:157
ApprovalRequestSchema
const ApprovalRequestSchema: ZodObject<{
approval_config_id: ZodString;
approval_step_nodes: ZodArray<ZodArray<ZodObject<{
description: ZodNullable<ZodString>;
history: ZodArray<ZodObject<{
action: ZodEnum<{
APPROVED: ...;
REJECTED: ...;
REQUEST_FOR_CHANGE: ...;
}>;
actionBy: ZodString;
actionOn: ZodString;
comments: ZodNullable<ZodString>;
}, $strip>>;
id: ZodString;
name: ZodString;
status: ZodEnum<{
APPROVED: "APPROVED";
PENDING: "PENDING";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;
teams_that_can_approve: ZodArray<ZodString>;
}, $strip>>>;
closed_at: ZodNullable<ZodString>;
collection_name: ZodString;
label: ZodString;
locked_record_refs: ZodArray<ZodObject<{
collection_name: ZodString;
lock_type: ZodEnum<{
record_delete: "record_delete";
record_mutation: "record_mutation";
}>;
record_id: ZodString;
}, $strip>>;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
organization_id: ZodString;
status: ZodEnum<{
APPROVED: "APPROVED";
ONGOING: "ONGOING";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;
}, $catchall<ZodUnknown>>;Defined in: platform-utils/src/system/types.ts:164
ApprovalRequestStatusSchema
const ApprovalRequestStatusSchema: ZodEnum<{
APPROVED: "APPROVED";
ONGOING: "ONGOING";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;Defined in: platform-utils/src/system/types.ts:13
ApprovalRequestStepActionHistorySchema
const ApprovalRequestStepActionHistorySchema: ZodObject<{
action: ZodEnum<{
APPROVED: "APPROVED";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;
actionBy: ZodString;
actionOn: ZodString;
comments: ZodNullable<ZodString>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:137
ApprovalRequestStepActionSchema
const ApprovalRequestStepActionSchema: ZodEnum<{
APPROVED: "APPROVED";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;Defined in: platform-utils/src/system/types.ts:29
ApprovalRequestStepNodeSchema
const ApprovalRequestStepNodeSchema: ZodObject<{
description: ZodNullable<ZodString>;
history: ZodArray<ZodObject<{
action: ZodEnum<{
APPROVED: "APPROVED";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;
actionBy: ZodString;
actionOn: ZodString;
comments: ZodNullable<ZodString>;
}, $strip>>;
id: ZodString;
name: ZodString;
status: ZodEnum<{
APPROVED: "APPROVED";
PENDING: "PENDING";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;
teams_that_can_approve: ZodArray<ZodString>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:147
ApprovalRequestStepStatusSchema
const ApprovalRequestStepStatusSchema: ZodEnum<{
APPROVED: "APPROVED";
PENDING: "PENDING";
REJECTED: "REJECTED";
REQUEST_FOR_CHANGE: "REQUEST_FOR_CHANGE";
}>;Defined in: platform-utils/src/system/types.ts:21
AutomationRunSchema
const AutomationRunSchema: ZodObject<{
automation_name: ZodString;
completed_at: ZodNullable<ZodString>;
error: ZodNullable<ZodString>;
input: ZodNullable<ZodRecord<ZodString, ZodUnknown>>;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
output: ZodNullable<ZodRecord<ZodString, ZodUnknown>>;
started_at: ZodNullable<ZodString>;
status: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:182
AutomationRunStatusSchema
const AutomationRunStatusSchema: ZodEnum<{
failed: "failed";
running: "running";
success: "success";
}>;Defined in: platform-utils/src/system/types.ts:176
AutomationRunTriggerSchema
const AutomationRunTriggerSchema: ZodEnum<{
AGENT: "AGENT";
CRON: "CRON";
MANUAL: "MANUAL";
}>;Defined in: platform-utils/src/system/types.ts:179
ChatMessageDataPartSchema
const ChatMessageDataPartSchema: ZodObject<{
data: ZodOptional<ZodUnknown>;
id: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:248
ChatMessageFilePartSchema
const ChatMessageFilePartSchema: ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
type: ZodLiteral<"file">;
url: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:234
ChatMessagePartSchema
const ChatMessagePartSchema: ZodUnion<readonly [ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>>>;
text: ZodString;
type: ZodLiteral<"text">;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>>>;
text: ZodString;
type: ZodLiteral<"reasoning">;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodOptional<ZodNullable<ZodString>>;
type: ZodLiteral<"source-url">;
url: ZodString;
}, $strip>, ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodString;
type: ZodLiteral<"source-document">;
}, $strip>, ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
type: ZodLiteral<"file">;
url: ZodString;
}, $strip>, ZodObject<{
type: ZodLiteral<"step-start">;
}, $strip>, ZodObject<{
data: ZodOptional<ZodUnknown>;
id: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>, ZodObject<{
approval: ZodOptional<ZodNullable<ZodObject<{
approved: ZodOptional<ZodNullable<ZodBoolean>>;
id: ZodString;
reason: ZodOptional<ZodNullable<ZodString>>;
}, $strip>>>;
callProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
errorText: ZodOptional<ZodNullable<ZodString>>;
input: ZodOptional<ZodUnknown>;
output: ZodOptional<ZodUnknown>;
preliminary: ZodOptional<ZodNullable<ZodBoolean>>;
providerExecuted: ZodOptional<ZodNullable<ZodBoolean>>;
rawInput: ZodOptional<ZodUnknown>;
resultProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>;
title: ZodOptional<ZodNullable<ZodString>>;
toolCallId: ZodString;
toolMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
toolName: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>]>;Defined in: platform-utils/src/system/types.ts:281
ChatMessagePartStateSchema
const ChatMessagePartStateSchema: ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>;Defined in: platform-utils/src/system/types.ts:42
ChatMessageReasoningPartSchema
const ChatMessageReasoningPartSchema: ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>>>;
text: ZodString;
type: ZodLiteral<"reasoning">;
}, $strip>;Defined in: platform-utils/src/system/types.ts:207
ChatMessageRoleSchema
const ChatMessageRoleSchema: ZodEnum<{
assistant: "assistant";
system: "system";
user: "user";
}>;Defined in: platform-utils/src/system/types.ts:39
ChatMessageSchema
const ChatMessageSchema: ZodObject<{
id: ZodString;
metadata: ZodOptional<ZodUnknown>;
parts: ZodArray<ZodUnion<readonly [ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: ...;
approval-responded: ...;
done: ...;
input-available: ...;
input-streaming: ...;
output-available: ...;
output-denied: ...;
output-error: ...;
streaming: ...;
}>>>;
text: ZodString;
type: ZodLiteral<"text">;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: ...;
approval-responded: ...;
done: ...;
input-available: ...;
input-streaming: ...;
output-available: ...;
output-denied: ...;
output-error: ...;
streaming: ...;
}>>>;
text: ZodString;
type: ZodLiteral<"reasoning">;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodOptional<ZodNullable<ZodString>>;
type: ZodLiteral<"source-url">;
url: ZodString;
}, $strip>, ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodString;
type: ZodLiteral<"source-document">;
}, $strip>, ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
type: ZodLiteral<"file">;
url: ZodString;
}, $strip>, ZodObject<{
type: ZodLiteral<"step-start">;
}, $strip>, ZodObject<{
data: ZodOptional<ZodUnknown>;
id: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>, ZodObject<{
approval: ZodOptional<ZodNullable<ZodObject<{
approved: ...;
id: ...;
reason: ...;
}, $strip>>>;
callProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
errorText: ZodOptional<ZodNullable<ZodString>>;
input: ZodOptional<ZodUnknown>;
output: ZodOptional<ZodUnknown>;
preliminary: ZodOptional<ZodNullable<ZodBoolean>>;
providerExecuted: ZodOptional<ZodNullable<ZodBoolean>>;
rawInput: ZodOptional<ZodUnknown>;
resultProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>;
title: ZodOptional<ZodNullable<ZodString>>;
toolCallId: ZodString;
toolMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
toolName: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>]>>;
role: ZodEnum<{
assistant: "assistant";
system: "system";
user: "user";
}>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:293
ChatMessageSourceDocumentPartSchema
const ChatMessageSourceDocumentPartSchema: ZodObject<{
filename: ZodOptional<ZodNullable<ZodString>>;
mediaType: ZodString;
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodString;
type: ZodLiteral<"source-document">;
}, $strip>;Defined in: platform-utils/src/system/types.ts:224
ChatMessageSourceUrlPartSchema
const ChatMessageSourceUrlPartSchema: ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
sourceId: ZodString;
title: ZodOptional<ZodNullable<ZodString>>;
type: ZodLiteral<"source-url">;
url: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:215
ChatMessageStepStartPartSchema
const ChatMessageStepStartPartSchema: ZodObject<{
type: ZodLiteral<"step-start">;
}, $strip>;Defined in: platform-utils/src/system/types.ts:243
ChatMessageTextPartSchema
const ChatMessageTextPartSchema: ZodObject<{
providerMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodOptional<ZodNullable<ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>>>;
text: ZodString;
type: ZodLiteral<"text">;
}, $strip>;Defined in: platform-utils/src/system/types.ts:199
ChatMessageToolApprovalSchema
const ChatMessageToolApprovalSchema: ZodObject<{
approved: ZodOptional<ZodNullable<ZodBoolean>>;
id: ZodString;
reason: ZodOptional<ZodNullable<ZodString>>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:255
ChatMessageToolCallPartSchema
const ChatMessageToolCallPartSchema: ZodObject<{
approval: ZodOptional<ZodNullable<ZodObject<{
approved: ZodOptional<ZodNullable<ZodBoolean>>;
id: ZodString;
reason: ZodOptional<ZodNullable<ZodString>>;
}, $strip>>>;
callProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
errorText: ZodOptional<ZodNullable<ZodString>>;
input: ZodOptional<ZodUnknown>;
output: ZodOptional<ZodUnknown>;
preliminary: ZodOptional<ZodNullable<ZodBoolean>>;
providerExecuted: ZodOptional<ZodNullable<ZodBoolean>>;
rawInput: ZodOptional<ZodUnknown>;
resultProviderMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
state: ZodEnum<{
approval-requested: "approval-requested";
approval-responded: "approval-responded";
done: "done";
input-available: "input-available";
input-streaming: "input-streaming";
output-available: "output-available";
output-denied: "output-denied";
output-error: "output-error";
streaming: "streaming";
}>;
title: ZodOptional<ZodNullable<ZodString>>;
toolCallId: ZodString;
toolMetadata: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
toolName: ZodOptional<ZodNullable<ZodString>>;
type: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:262
ChatSessionSchema
const ChatSessionSchema: ZodObject<{
external_thread_id: ZodNullable<ZodString>;
messages: ZodArray<ZodObject<{
id: ZodString;
metadata: ZodOptional<ZodUnknown>;
parts: ZodArray<ZodUnion<readonly [ZodObject<{
providerMetadata: ZodOptional<...>;
state: ZodOptional<...>;
text: ZodString;
type: ZodLiteral<...>;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<...>;
state: ZodOptional<...>;
text: ZodString;
type: ZodLiteral<...>;
}, $strip>, ZodObject<{
providerMetadata: ZodOptional<...>;
sourceId: ZodString;
title: ZodOptional<...>;
type: ZodLiteral<...>;
url: ZodString;
}, $strip>, ZodObject<{
filename: ZodOptional<...>;
mediaType: ZodString;
providerMetadata: ZodOptional<...>;
sourceId: ZodString;
title: ZodString;
type: ZodLiteral<...>;
}, $strip>, ZodObject<{
filename: ZodOptional<...>;
mediaType: ZodString;
providerMetadata: ZodOptional<...>;
type: ZodLiteral<...>;
url: ZodString;
}, $strip>, ZodObject<{
type: ZodLiteral<...>;
}, $strip>, ZodObject<{
data: ZodOptional<...>;
id: ZodOptional<...>;
type: ZodString;
}, $strip>, ZodObject<{
approval: ZodOptional<...>;
callProviderMetadata: ZodOptional<...>;
errorText: ZodOptional<...>;
input: ZodOptional<...>;
output: ZodOptional<...>;
preliminary: ZodOptional<...>;
providerExecuted: ZodOptional<...>;
rawInput: ZodOptional<...>;
resultProviderMetadata: ZodOptional<...>;
state: ZodEnum<...>;
title: ZodOptional<...>;
toolCallId: ZodString;
toolMetadata: ZodOptional<...>;
toolName: ZodOptional<...>;
type: ZodString;
}, $strip>]>>;
role: ZodEnum<{
assistant: "assistant";
system: "system";
user: "user";
}>;
}, $strip>>;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
platform: ZodNullable<ZodString>;
title: ZodString;
user_id: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:301
DateRangeSchema
const DateRangeSchema: ZodObject<{
end: ZodString;
start: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:193
GeolocationSchema
const GeolocationSchema: ZodObject<{
formatted_address: ZodString;
geometry: ZodNullable<ZodObject<{
lat: ZodNumber;
lon: ZodNumber;
}, $strip>>;
srid: ZodNumber;
type: ZodLiteral<"Point">;
}, $strip>;Defined in: platform-utils/src/system/types.ts:310
MoneySchema
const MoneySchema: ZodObject<{
currency: ZodString;
value: ZodNumber;
}, $strip>;Defined in: platform-utils/src/system/types.ts:318
MutationActionKeySchema
const MutationActionKeySchema: ZodEnum<{
create: "create";
delete: "delete";
read: "read";
update: "update";
}>;Defined in: platform-utils/src/system/types.ts:55
PolicyGrantSchema
const PolicyGrantSchema: ZodDiscriminatedUnion<[ZodObject<{
action: ZodLiteral<"read">;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>, ZodObject<{
action: ZodEnum<{
create: "create";
delete: "delete";
update: "update";
}>;
approval_config: ZodDefault<ZodNullable<ZodObject<{
approval_name: ZodString;
approval_step_nodes: ZodArray<ZodObject<{
conditions: ...;
description: ...;
id: ...;
name: ...;
nextSteps: ...;
teams_that_can_approve: ...;
}, $strip>>;
conditions: ZodRecord<ZodString, ZodUnknown>;
norbital_id: ZodString;
supercede_teams: ZodArray<ZodString>;
}, $strip>>>;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>], "action">;Defined in: platform-utils/src/system/types.ts:121
PolicyMutationGrantSchema
const PolicyMutationGrantSchema: ZodObject<{
action: ZodEnum<{
create: "create";
delete: "delete";
update: "update";
}>;
approval_config: ZodDefault<ZodNullable<ZodObject<{
approval_name: ZodString;
approval_step_nodes: ZodArray<ZodObject<{
conditions: ZodRecord<ZodString, ZodUnknown>;
description: ZodNullable<ZodString>;
id: ZodString;
name: ZodString;
nextSteps: ZodArray<ZodObject<{ id: ZodString; name: ZodString; teams_that_can_approve: ZodArray<ZodString>; description: ZodNullable<ZodString>; conditions: ZodRecord<...>; nextSteps: ZodArray<...>; }, $strip>>;
teams_that_can_approve: ZodArray<ZodString>;
}, $strip>>;
conditions: ZodRecord<ZodString, ZodUnknown>;
norbital_id: ZodString;
supercede_teams: ZodArray<ZodString>;
}, $strip>>>;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:109
PolicyReadGrantSchema
const PolicyReadGrantSchema: ZodObject<{
action: ZodLiteral<"read">;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:101
PolicySchema
const PolicySchema: ZodObject<{
accessible_applications: ZodNullable<ZodArray<ZodString>>;
description: ZodNullable<ZodString>;
grants: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
action: ZodLiteral<"read">;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>, ZodObject<{
action: ZodEnum<{
create: "create";
delete: "delete";
update: "update";
}>;
approval_config: ZodDefault<ZodNullable<ZodObject<{
approval_name: ...;
approval_step_nodes: ...;
conditions: ...;
norbital_id: ...;
supercede_teams: ...;
}, $strip>>>;
collection_name: ZodString;
conditions: ZodRecord<ZodString, ZodUnknown>;
id: ZodString;
}, $strip>], "action">>;
is_active: ZodBoolean;
key: ZodString;
name: ZodString;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:127
TeamSchema
const TeamSchema: ZodObject<{
description: ZodNullable<ZodString>;
is_active: ZodBoolean;
kind: ZodNullable<ZodString>;
name: ZodString;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
parent_id: ZodNullable<ZodString>;
policy_id: ZodString;
}, $strip>;Defined in: platform-utils/src/system/types.ts:70
UserRoleSchema
const UserRoleSchema: ZodEnum<{
admin: "admin";
member: "member";
}>;Defined in: platform-utils/src/system/types.ts:7
UserSchema
const UserSchema: ZodObject<{
avatar_url: ZodNullable<ZodString>;
email: ZodString;
kind: ZodNullable<ZodString>;
metadata: ZodNullable<ZodRecord<ZodString, ZodUnknown>>;
name: ZodNullable<ZodString>;
norbital_approval_id: ZodNullable<ZodString>;
norbital_created_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
norbital_id: ZodString;
norbital_row_version: ZodCoercedNumber<unknown>;
norbital_sys_period: ZodString;
norbital_updated_at: ZodPipe<ZodUnion<readonly [ZodString, ZodDate]>, ZodTransform<string, string | Date>>;
phone: ZodNullable<ZodString>;
role: ZodNullable<ZodEnum<{
admin: "admin";
member: "member";
}>>;
status: ZodNullable<ZodEnum<{
active: "active";
inactive: "inactive";
pending_invitation: "pending_invitation";
}>>;
}, $strip>;Defined in: platform-utils/src/system/types.ts:58
UserStatusSchema
const UserStatusSchema: ZodEnum<{
active: "active";
inactive: "inactive";
pending_invitation: "pending_invitation";
}>;Defined in: platform-utils/src/system/types.ts:10