@gravity-rail/sdk 0.7.2 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../src/workspace-builder/resource.ts","../src/workspace-builder/automation.ts","../src/workspace-builder/forms.ts","../src/workspace-builder/journeys.ts","../src/workspace-builder/role-update.ts","../src/workspace-builder/workflows.ts","../src/workspace-builder/orchestrator.ts"],"sourcesContent":["import type { GravityRailWorkspaceClient } from '../client/workspace-client';\n\nexport type AnyRecord = Record<string, any>;\nexport type ResourceSummary = Record<string, Array<number | undefined>>;\n\nexport function isRecord(value: unknown): value is AnyRecord {\n return !!value && typeof value === 'object' && !Array.isArray(value);\n}\n\nfunction isPlainRecord(value: unknown): value is AnyRecord {\n if (!isRecord(value)) return false;\n const prototype = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n}\n\nexport function slugify(name: string): string {\n return name.toLowerCase().replaceAll(' ', '_').replaceAll('-', '_');\n}\n\nexport abstract class WorkspaceBuilderResource {\n _id?: number;\n _uuid?: string;\n _created = false;\n _existed = false;\n\n abstract planLine(): string;\n abstract apply(client: GravityRailWorkspaceClient): Promise<void>;\n\n matchKey(): string | undefined {\n return undefined;\n }\n\n adopt(existing: AnyRecord): void {\n this._id = existing.id;\n this._uuid = existing.uuid;\n this._existed = true;\n }\n}\n\nexport function resolveRefs(params: AnyRecord): AnyRecord {\n return resolveRefValue(params) as AnyRecord;\n}\n\nfunction resolveRefValue(value: unknown): unknown {\n if (value instanceof WorkspaceBuilderResource) return value._uuid;\n if (Array.isArray(value)) return value.map(resolveRefValue);\n if (!isPlainRecord(value)) return value;\n\n const out: AnyRecord = {};\n for (const [key, nestedValue] of Object.entries(value)) {\n out[key] = resolveRefValue(nestedValue);\n }\n return out;\n}\n","import {\n EventRuleEventType,\n EventRuleObjectType,\n type CreateRoutineRequest,\n type EventRuleActionType,\n type MemberFilterFilterType,\n type MemberFilterFormData,\n type MemberFilterObjectType,\n type MemberFilterRuleFormData,\n type NotificationRuleCreate,\n} from '../types';\nimport type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport type { AnyRecord } from './resource';\nimport { WorkspaceBuilderResource } from './resource';\nimport type { WorkflowBuilder } from './workflows';\n\nexport class MemberFilterBuilder extends WorkspaceBuilderResource {\n readonly description: string;\n readonly rules: MemberFilterRuleFormData[] = [];\n\n constructor(\n readonly name: string,\n options: AnyRecord = {}\n ) {\n super();\n this.description = options.description ?? '';\n }\n\n addRule(\n objectType: MemberFilterObjectType,\n filterType: MemberFilterFilterType,\n options: { objectIds?: number[]; query?: string } = {}\n ): MemberFilterBuilder {\n this.rules.push({\n objectType,\n filterType,\n ...(options.objectIds ? { objectIds: options.objectIds } : {}),\n ...(options.query ? { query: options.query } : {}),\n });\n return this;\n }\n\n planLine(): string {\n return `MemberFilter: ${this.name}${this.rules.length ? ` (${this.rules.length} rules)` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n const payload: MemberFilterFormData = {\n name: this.name,\n description: this.description,\n rules: this.rules,\n };\n const result = await client.createMemberFilter(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\ninterface RoutineRuleDraft {\n actionType: EventRuleActionType | string;\n workflow?: WorkflowBuilder;\n memberFilter?: MemberFilterBuilder;\n actionParams: AnyRecord;\n}\n\nexport class RoutineBuilder extends WorkspaceBuilderResource {\n readonly active: boolean;\n readonly description: string;\n readonly rules: RoutineRuleDraft[] = [];\n\n constructor(\n readonly name: string,\n readonly cronSchedule = '',\n options: AnyRecord = {}\n ) {\n super();\n this.active = options.active ?? false;\n this.description = options.description ?? '';\n }\n\n addRule(\n actionType: string,\n options: {\n workflow?: WorkflowBuilder;\n memberFilter?: MemberFilterBuilder;\n actionParams?: AnyRecord;\n } = {}\n ): RoutineBuilder {\n this.rules.push({\n actionType,\n workflow: options.workflow,\n memberFilter: options.memberFilter,\n actionParams: options.actionParams ?? {},\n });\n return this;\n }\n\n planLine(): string {\n const parts = [\n ...(this.cronSchedule ? [`cron=${this.cronSchedule}`] : []),\n ...(this.rules.length ? [`${this.rules.length} rules`] : []),\n this.active ? 'active' : 'inactive',\n ];\n return `Routine: ${this.name} (${parts.join(', ')})`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n const eventRules = this.rules.map((rule) => {\n const actionParams = { ...rule.actionParams };\n if (rule.workflow?._id !== undefined) actionParams.workflowId = rule.workflow._id;\n if (rule.memberFilter?._id !== undefined)\n actionParams.memberFilterId = rule.memberFilter._id;\n return {\n uuid: crypto.randomUUID(),\n objectType: EventRuleObjectType.ROUTINE,\n eventType: EventRuleEventType.ROUTINE_TRIGGERED,\n actionType: rule.actionType as EventRuleActionType,\n actionParams,\n active: true,\n };\n });\n const payload: CreateRoutineRequest = {\n name: this.name,\n cronString: this.cronSchedule,\n scheduleMode: this.cronSchedule ? 'CRON' : undefined,\n scheduleEnabled: this.active,\n ...(this.description ? { description: this.description } : {}),\n ...(eventRules.length ? { eventRules } : {}),\n };\n const result = await client.createRoutine(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport class NotificationRuleBuilder extends WorkspaceBuilderResource {\n readonly noticeType: string;\n readonly memberId: number;\n readonly workflow?: WorkflowBuilder;\n readonly prompt?: string;\n readonly notifySms: boolean;\n readonly notifyEmail: boolean;\n readonly notifyVoice: boolean;\n\n constructor(\n readonly name: string,\n options: AnyRecord = {}\n ) {\n super();\n this.noticeType = options.noticeType ?? options.notice_type ?? name;\n this.memberId = options.memberId ?? options.member_id;\n this.workflow = options.workflow;\n this.prompt = options.prompt ?? options.message;\n this.notifySms = Boolean(options.notifySms ?? options.notify_sms);\n this.notifyEmail = Boolean(options.notifyEmail ?? options.notify_email);\n this.notifyVoice = Boolean(options.notifyVoice ?? options.notify_voice);\n }\n\n planLine(): string {\n const parts: string[] = [];\n if (this.memberId !== undefined) parts.push(`memberId=${this.memberId}`);\n if (this.workflow) parts.push(`workflow='${this.workflow.name}'`);\n return `NotificationRule: ${this.name}${parts.length ? ` (${parts.join(', ')})` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this.memberId === undefined) {\n throw new Error(`Notification rule '${this.name}' requires memberId`);\n }\n const payload: NotificationRuleCreate = {\n noticeType: this.noticeType,\n memberId: this.memberId,\n workflowId: this.workflow?._id,\n prompt: this.prompt ?? null,\n notifySms: this.notifySms,\n notifyEmail: this.notifyEmail,\n notifyVoice: this.notifyVoice,\n };\n const result = await client.createNotificationRule(payload);\n this._id = result.id;\n this._created = true;\n }\n}\n","import {\n DataFieldType,\n EventRuleEventType,\n type DataFieldFormData,\n type DataTypeFormData,\n type EnumOption,\n type EventRuleActionType,\n type MemberLabelFormData,\n} from '../types';\nimport type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport type { WorkspaceBuilderEventRule } from './event-rules';\nimport { type AnyRecord, isRecord, slugify, WorkspaceBuilderResource } from './resource';\n\ntype WorkspaceFieldDraft = Omit<DataFieldFormData, 'fieldType'> & {\n fieldType: DataFieldType;\n celFunction?: string;\n};\n\nfunction normalizeOptions(options: any[]): EnumOption[] {\n if (options.length === 0) return [];\n const first = options[0];\n if (isRecord(first)) return options as EnumOption[];\n if (Array.isArray(first)) {\n return options.map((entry) => ({ label: String(entry[0]), value: entry[1] }));\n }\n return options.map((option) => ({ label: String(option), value: String(option) }));\n}\n\nfunction createFieldDraft(\n fieldType: DataFieldType,\n name: string,\n slug: string,\n options: {\n required?: boolean;\n order?: number;\n description?: string;\n choices?: EnumOption[];\n cel?: string;\n } = {}\n): WorkspaceFieldDraft {\n return {\n name,\n slug,\n fieldType,\n required: Boolean(options.required),\n order: options.order ?? 0,\n ...(options.description ? { description: options.description } : {}),\n ...(options.choices ? { options: options.choices } : {}),\n ...(options.cel ? { celFunction: options.cel } : {}),\n };\n}\n\nexport class FormBuilder extends WorkspaceBuilderResource {\n readonly name: string;\n readonly slug: string;\n readonly description: string;\n readonly prompt: string;\n readonly collection: boolean;\n readonly fields: WorkspaceFieldDraft[] = [];\n readonly eventRules: WorkspaceBuilderEventRule[] = [];\n\n constructor(name: string, slug?: string, options: AnyRecord = {}) {\n super();\n this.name = name;\n this.slug = slug ?? slugify(name);\n this.description = options.description ?? '';\n this.prompt = options.prompt ?? '';\n this.collection = options.collection ?? false;\n\n for (const field of options.fields ?? []) {\n if (!isRecord(field) || !field.name) continue;\n const choices = field.options ? normalizeOptions(field.options) : undefined;\n this.fields.push(\n createFieldDraft(\n (field.fieldType ?? field.field_type ?? DataFieldType.TEXT) as DataFieldType,\n field.name,\n field.slug ?? slugify(field.name),\n {\n required: Boolean(field.required ?? field.isRequired),\n order: field.order ?? 0,\n description: field.description,\n choices,\n }\n )\n );\n }\n }\n\n field(\n fieldType: DataFieldType,\n name: string,\n slug: string,\n options: {\n required?: boolean;\n order?: number;\n description?: string;\n choices?: any[];\n cel?: string;\n } = {}\n ): FormBuilder {\n this.fields.push(createFieldDraft(fieldType, name, slug, options));\n return this;\n }\n\n enumField(name: string, slug: string, options: any[], settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.ENUM, name, slug, {\n ...settings,\n choices: normalizeOptions(options),\n });\n }\n\n textField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.TEXT, name, slug, settings);\n }\n\n numberField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.NUMBER, name, slug, settings);\n }\n\n dateField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.DATE, name, slug, settings);\n }\n\n booleanField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.BOOLEAN, name, slug, settings);\n }\n\n functionField(name: string, slug: string, cel: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.FUNCTION, name, slug, { ...settings, cel });\n }\n\n emailField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.EMAIL, name, slug, settings);\n }\n\n phoneField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.PHONE, name, slug, settings);\n }\n\n longtextField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.LONGTEXT, name, slug, settings);\n }\n\n integerField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.INTEGER, name, slug, settings);\n }\n\n datetimeField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.DATETIME, name, slug, settings);\n }\n\n timeOfDayField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.TIME_OF_DAY, name, slug, settings);\n }\n\n usZipCodeField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.US_ZIP_CODE, name, slug, settings);\n }\n\n arrayField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.ARRAY, name, slug, settings);\n }\n\n objectField(name: string, slug: string, settings: AnyRecord = {}): FormBuilder {\n return this.field(DataFieldType.OBJECT, name, slug, settings);\n }\n\n onRecordCreated(\n action: string,\n params: AnyRecord = {},\n condition?: string,\n name?: string\n ): FormBuilder {\n this.eventRules.push({\n eventType: EventRuleEventType.DATA_RECORD_CREATED,\n actionType: action as EventRuleActionType,\n actionParams: params,\n condition,\n name,\n });\n return this;\n }\n\n onRecordUpdated(\n action: string,\n params: AnyRecord = {},\n condition?: string,\n name?: string\n ): FormBuilder {\n this.eventRules.push({\n eventType: EventRuleEventType.DATA_RECORD_UPDATED,\n actionType: action as EventRuleActionType,\n actionParams: params,\n condition,\n name,\n });\n return this;\n }\n\n matchKey(): string {\n return this.slug;\n }\n\n planLine(): string {\n return `Form: ${this.name} (slug=${this.slug}, ${this.fields.length} fields)`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this._existed) return;\n const payload: DataTypeFormData = {\n name: this.name,\n slug: this.slug,\n description: this.description,\n prompt: this.prompt,\n isCollection: this.collection,\n fields: this.fields,\n };\n const result = await client.createDataType(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport class MemberLabelBuilder extends WorkspaceBuilderResource {\n readonly name: string;\n readonly slug: string;\n readonly color: string;\n readonly description: string;\n\n constructor(name: string, slug?: string, color = '8b5cf6', description = '') {\n super();\n this.name = name;\n this.slug = slug ?? slugify(name);\n this.color = color;\n this.description = description;\n }\n\n matchKey(): string {\n return this.slug;\n }\n\n planLine(): string {\n return `Label: ${this.name} (slug=${this.slug})`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this._existed) return;\n const payload: MemberLabelFormData = {\n name: this.name,\n slug: this.slug,\n color: this.color,\n description: this.description,\n };\n const result = await client.createMemberLabel(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n","import type {\n JourneyGoalFormData,\n JourneyStepConnectionFormData,\n JourneyStepFormData,\n} from '../types';\nimport type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport type { AnyRecord } from './resource';\nimport { WorkspaceBuilderResource } from './resource';\nimport type { WorkflowBuilder } from './workflows';\n\nexport interface StepConnectionDraft {\n parent: JourneyStepBuilder;\n child: JourneyStepBuilder;\n condition?: string;\n required: boolean;\n timeoutSeconds?: number;\n}\n\nexport interface JourneyGoalDraft {\n name: string;\n description: string;\n step?: JourneyStepBuilder;\n completionCel?: string;\n value?: number;\n order: number;\n}\n\nexport class JourneyStepBuilder extends WorkspaceBuilderResource {\n readonly connections: StepConnectionDraft[] = [];\n\n constructor(\n readonly name: string,\n readonly journey: JourneyBuilder,\n readonly order = 0,\n readonly workflow?: WorkflowBuilder,\n readonly description = ''\n ) {\n super();\n }\n\n connectsTo(\n child: JourneyStepBuilder,\n condition?: string,\n required = false,\n timeoutSeconds?: number\n ): JourneyStepBuilder {\n this.connections.push({ parent: this, child, condition, required, timeoutSeconds });\n return this;\n }\n\n planLine(): string {\n return `Step: ${this.name}${this.workflow ? ` -> workflow '${this.workflow.name}'` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this.journey._id === undefined) return;\n const payload: JourneyStepFormData = {\n name: this.name,\n description: this.description,\n order: this.order,\n ...(this.workflow?._id ? { workflowId: this.workflow._id } : {}),\n };\n const result = await client.createStep(this.journey._id, payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport class JourneyBuilder extends WorkspaceBuilderResource {\n readonly description: string;\n readonly steps: JourneyStepBuilder[] = [];\n readonly goals: JourneyGoalDraft[] = [];\n\n constructor(\n readonly name: string,\n options: AnyRecord = {}\n ) {\n super();\n this.description = options.description ?? '';\n }\n\n step(name: string, options: AnyRecord = {}): JourneyStepBuilder {\n const step = new JourneyStepBuilder(\n name,\n this,\n options.order ?? 0,\n options.workflow,\n options.description ?? ''\n );\n this.steps.push(step);\n return step;\n }\n\n goal(name: string, options: AnyRecord = {}): JourneyBuilder {\n this.goals.push({\n name,\n description: options.description ?? '',\n step: options.step,\n completionCel: options.completionCel ?? options.completion_cel,\n value: options.value,\n order: options.order ?? 0,\n });\n return this;\n }\n\n planLine(): string {\n const parts: string[] = [];\n if (this.steps.length) parts.push(`${this.steps.length} steps`);\n if (this.goals.length) parts.push(`${this.goals.length} goals`);\n return `Journey: ${this.name}${parts.length ? ` (${parts.join(', ')})` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n const result = await client.createJourney({\n name: this.name,\n description: this.description,\n });\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport function buildJourneyConnectionPayload(\n connection: StepConnectionDraft\n): JourneyStepConnectionFormData | undefined {\n if (!connection.parent._uuid || !connection.child._uuid) return undefined;\n return {\n parentStepUuid: connection.parent._uuid,\n childStepUuid: connection.child._uuid,\n ...(connection.condition ? { celCondition: connection.condition } : {}),\n ...(connection.required ? { required: true } : {}),\n ...(connection.timeoutSeconds ? { timeoutSeconds: connection.timeoutSeconds } : {}),\n };\n}\n\nexport function buildJourneyGoalPayload(goal: JourneyGoalDraft): JourneyGoalFormData {\n return {\n name: goal.name,\n description: goal.description,\n order: goal.order,\n ...(goal.step?._uuid ? { goalStepUuid: goal.step._uuid } : {}),\n ...(goal.completionCel ? { completionCel: goal.completionCel } : {}),\n ...(goal.value !== undefined ? { value: goal.value } : {}),\n };\n}\n","import type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport type { AnyRecord } from './resource';\nimport { WorkspaceBuilderResource } from './resource';\n\nexport class RoleUpdate extends WorkspaceBuilderResource {\n constructor(\n readonly roleId: number,\n readonly workflowIds?: number[],\n readonly dataTypeIds?: number[]\n ) {\n super();\n }\n\n planLine(): string {\n const parts: string[] = [];\n if (this.workflowIds) parts.push(`workflows=${JSON.stringify(this.workflowIds)}`);\n if (this.dataTypeIds) parts.push(`dataTypes=${JSON.stringify(this.dataTypeIds)}`);\n return `RoleUpdate: roleId=${this.roleId}${parts.length ? ` (${parts.join(', ')})` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n const payload: AnyRecord = {};\n if (this.workflowIds) payload.workflowIds = this.workflowIds;\n if (this.dataTypeIds) payload.dataTypeIds = this.dataTypeIds;\n if (Object.keys(payload).length) await client.updateMemberRole(this.roleId, payload);\n this._id = this.roleId;\n this._created = true;\n }\n}\n","import {\n EventRuleEventType,\n type CreateAgentRequest,\n type EventRuleActionType,\n type WorkflowFormData,\n} from '../types';\nimport { DEFAULT_CHAT_MODEL } from '../constants/models';\nimport type { Ability } from '../types/ability-types';\nimport type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport type { WorkspaceBuilderEventRule } from './event-rules';\nimport type { FormBuilder } from './forms';\nimport { type AnyRecord, WorkspaceBuilderResource } from './resource';\n\nconst PERM_KEYS: Record<string, string> = {\n canRead: 'canRead',\n canCreate: 'canCreate',\n canEdit: 'canEdit',\n can_read: 'canRead',\n can_create: 'canCreate',\n can_edit: 'canEdit',\n};\n\nconst ABILITY_TYPE_MAP: Record<string, string> = {\n data_access: 'integration:data_access',\n file_access: 'integration:file_access',\n escalation: 'oversight:escalation',\n};\n\nclass AbilityDef {\n readonly uuid = crypto.randomUUID();\n readonly config: AnyRecord;\n readonly enabled: boolean;\n readonly celCondition?: string;\n readonly form?: FormBuilder;\n readonly perms: AnyRecord = {};\n\n constructor(\n readonly abilityType: string,\n options: AnyRecord = {}\n ) {\n this.config = options.config ?? {};\n this.enabled = options.enabled ?? true;\n this.celCondition = options.celCondition ?? options.cel_condition;\n this.form = options.form;\n for (const [inputKey, outputKey] of Object.entries(PERM_KEYS)) {\n if (inputKey in options) this.perms[outputKey] = options[inputKey];\n }\n }\n\n toAbility(): Ability {\n const config = { ...this.config };\n if (this.form?._uuid) {\n config.dataTypeUuid = this.form._uuid;\n Object.assign(config, this.perms);\n }\n return {\n uuid: this.uuid,\n abilityType: ABILITY_TYPE_MAP[this.abilityType] ?? this.abilityType,\n config,\n enabled: this.enabled,\n ...(this.celCondition ? { celCondition: this.celCondition } : {}),\n };\n }\n}\n\nexport interface TaskTransition {\n parent: TaskBuilder;\n child: TaskBuilder;\n when: string;\n autoNext: boolean;\n required: boolean;\n}\n\nexport class TaskBuilder extends WorkspaceBuilderResource {\n readonly transitions: TaskTransition[] = [];\n readonly eventRules: WorkspaceBuilderEventRule[] = [];\n\n constructor(\n readonly name: string,\n readonly workflow: WorkflowBuilder,\n readonly prompt = '',\n readonly start = false,\n readonly description = ''\n ) {\n super();\n }\n\n transitionsTo(\n child: TaskBuilder,\n when: string,\n autoNext = false,\n required = false\n ): TaskBuilder {\n if (child === this) {\n throw new Error(`Task '${this.name}' cannot transition to itself`);\n }\n this.transitions.push({ parent: this, child, when, autoNext, required });\n return this;\n }\n\n onEnter(action: string, params: AnyRecord = {}, name?: string): TaskBuilder {\n this.eventRules.push({\n eventType: EventRuleEventType.TASK_EXECUTE,\n actionType: action as EventRuleActionType,\n actionParams: params,\n name,\n });\n return this;\n }\n\n initialMessage(message: string, suggestions?: string[]): TaskBuilder {\n return this.onEnter('assistant:message', {\n message,\n ...(suggestions ? { suggestions } : {}),\n });\n }\n\n planLine(): string {\n return `Task: ${this.name}${this.start ? ' [start]' : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this._existed || this.workflow._id === undefined) return;\n const result = await client.createTask({\n workflowId: this.workflow._id,\n name: this.name,\n prompt: this.prompt,\n description: this.description,\n });\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport class WorkflowBuilder extends WorkspaceBuilderResource {\n readonly description: string;\n readonly prompt?: string;\n private agentId?: number;\n readonly tasks: TaskBuilder[] = [];\n readonly abilities: AbilityDef[] = [];\n\n constructor(\n readonly name: string,\n options: AnyRecord = {}\n ) {\n super();\n this.description = options.description ?? '';\n this.prompt = options.prompt;\n this.agentId = options.agentId ?? options.agent_id;\n }\n\n task(name: string, options: AnyRecord = {}): TaskBuilder {\n const task = new TaskBuilder(\n name,\n this,\n options.prompt ?? '',\n options.start ?? false,\n options.description ?? ''\n );\n this.tasks.push(task);\n return task;\n }\n\n ability(abilityType: string, options: AnyRecord = {}): WorkflowBuilder {\n this.abilities.push(new AbilityDef(abilityType, options));\n return this;\n }\n\n get startTask(): TaskBuilder | undefined {\n return this.tasks.find((task) => task.start) ?? this.tasks[0];\n }\n\n matchKey(): string {\n return this.name;\n }\n\n adopt(existing: AnyRecord): void {\n super.adopt(existing);\n const start = this.startTask;\n if (start && existing.startTaskId) {\n start._id = existing.startTaskId;\n start._existed = true;\n }\n }\n\n planLine(): string {\n const details: string[] = [];\n if (this.tasks.length) details.push(`${this.tasks.length} tasks`);\n if (this.abilities.length) details.push(`${this.abilities.length} abilities`);\n return `Workflow: ${this.name}${details.length ? ` (${details.join(', ')})` : ''}`;\n }\n\n needsDefaultAgent(): boolean {\n return !this._existed && this.agentId === undefined;\n }\n\n setAgentId(agentId: number): void {\n this.agentId = agentId;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this._existed) return;\n const payload: WorkflowFormData = {\n name: this.name,\n description: this.description,\n createMode: 'taskless',\n ...(this.prompt ? { prompt: this.prompt } : {}),\n ...(this.agentId ? { agentId: this.agentId } : {}),\n ...(this.abilities.length\n ? { abilities: this.abilities.map((ability) => ability.toAbility()) }\n : {}),\n };\n const result = await client.createWorkflow(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n\nexport const WORKSPACE_BUILDER_DEFAULT_AGENT_NAME = 'Workspace Setup Agent';\n\nexport const WORKSPACE_BUILDER_DEFAULT_AGENT_PROMPT =\n 'You help workspace members complete the workflow you are assigned to. Follow the task prompts, collect requested information accurately, and escalate when the workflow asks you to.';\n\nexport async function getOrCreateDefaultWorkflowAgent(\n client: GravityRailWorkspaceClient\n): Promise<{ id: number; name: string; created: boolean }> {\n const existingAgents = recordsFromResponse(\n await client.getAgents({ pageSize: 100, includeArchived: false })\n );\n // Reuse any existing active agent intentionally. The builder only creates a\n // generic setup agent for empty workspaces.\n const existing = existingAgents.find((agent) => !agent.isArchived) ?? existingAgents[0];\n if (existing) {\n return {\n id: numberField(existing, 'id'),\n name: stringField(existing, 'name'),\n created: false,\n };\n }\n\n const roles = recordsFromResponse(await client.getMemberRoles());\n const role =\n roles.find((candidate) => stringField(candidate, 'name').toLowerCase() === 'agent') ??\n roles[0];\n if (!role) {\n throw new Error('Cannot create default workflow agent: workspace has no member roles');\n }\n\n const payload: CreateAgentRequest = {\n name: WORKSPACE_BUILDER_DEFAULT_AGENT_NAME,\n memberRoleId: numberField(role, 'id'),\n chatModelId: DEFAULT_CHAT_MODEL,\n systemPrompt: WORKSPACE_BUILDER_DEFAULT_AGENT_PROMPT,\n };\n const created = await client.createAgent(payload);\n return {\n id: created.id,\n name: created.name ?? WORKSPACE_BUILDER_DEFAULT_AGENT_NAME,\n created: true,\n };\n}\n\nfunction recordsFromResponse(value: unknown): AnyRecord[] {\n if (Array.isArray(value)) return value as AnyRecord[];\n if (value && typeof value === 'object' && Array.isArray((value as AnyRecord).items)) {\n return (value as AnyRecord).items as AnyRecord[];\n }\n return [];\n}\n\nfunction numberField(record: AnyRecord, key: string): number {\n const value = record[key];\n if (typeof value !== 'number') throw new Error(`Expected numeric ${key}`);\n return value;\n}\n\nfunction stringField(record: AnyRecord, key: string): string {\n const value = record[key];\n return typeof value === 'string' ? value : '';\n}\n\nexport class AgentBuilder extends WorkspaceBuilderResource {\n readonly chatModelId: string;\n readonly systemPrompt: string;\n readonly memberRoleId?: number;\n readonly tools: string[];\n readonly codeInterpreterEnabled: boolean;\n\n constructor(\n readonly name: string,\n options: AnyRecord = {}\n ) {\n super();\n this.chatModelId = options.chatModelId ?? options.chat_model_id ?? '';\n this.systemPrompt = options.systemPrompt ?? options.system_prompt ?? '';\n this.memberRoleId = options.roleId ?? options.role_id;\n this.tools = options.tools ?? [];\n this.codeInterpreterEnabled =\n options.codeInterpreterEnabled ?? options.code_interpreter_enabled ?? false;\n }\n\n planLine(): string {\n const parts: string[] = [];\n if (this.chatModelId) parts.push(`model=${this.chatModelId}`);\n if (this.tools.length) parts.push(`${this.tools.length} tools`);\n return `Agent: ${this.name}${parts.length ? ` (${parts.join(', ')})` : ''}`;\n }\n\n async apply(client: GravityRailWorkspaceClient): Promise<void> {\n if (this.memberRoleId === undefined) {\n throw new Error(`Agent '${this.name}' requires memberRoleId`);\n }\n if (!this.chatModelId) {\n throw new Error(`Agent '${this.name}' requires chatModelId`);\n }\n\n const payload: CreateAgentRequest = {\n name: this.name,\n memberRoleId: this.memberRoleId,\n chatModelId: this.chatModelId,\n systemPrompt: this.systemPrompt,\n ...(this.tools.length ? { tools: this.tools } : {}),\n ...(this.codeInterpreterEnabled ? { codeInterpreterEnabled: true } : {}),\n };\n const result = await client.createAgent(payload);\n this._id = result.id;\n this._uuid = result.uuid;\n this._created = true;\n }\n}\n","import {\n EventRuleObjectType,\n type EventRule,\n type EventRuleFormData,\n type UpdateEventRuleFormData,\n} from '../types';\nimport type { GravityRailWorkspaceClient } from '../client/workspace-client';\nimport { MemberFilterBuilder, NotificationRuleBuilder, RoutineBuilder } from './automation';\nimport { FormBuilder, MemberLabelBuilder } from './forms';\nimport {\n buildJourneyConnectionPayload,\n buildJourneyGoalPayload,\n JourneyBuilder,\n JourneyStepBuilder,\n} from './journeys';\nimport {\n type AnyRecord,\n type ResourceSummary,\n resolveRefs,\n WorkspaceBuilderResource,\n} from './resource';\nimport { RoleUpdate } from './role-update';\nimport {\n AgentBuilder,\n getOrCreateDefaultWorkflowAgent,\n TaskBuilder,\n type TaskTransition,\n WorkflowBuilder,\n} from './workflows';\n\nconst PHASES = new Map<Function, number>([\n [FormBuilder, 0],\n [MemberLabelBuilder, 0],\n [AgentBuilder, 1],\n [WorkflowBuilder, 2],\n [TaskBuilder, 3],\n [RoleUpdate, 4],\n [MemberFilterBuilder, 5],\n [RoutineBuilder, 6],\n [NotificationRuleBuilder, 6],\n [JourneyBuilder, 7],\n [JourneyStepBuilder, 8],\n]);\n\nexport class WorkspaceBuilder {\n readonly resources: WorkspaceBuilderResource[] = [];\n\n constructor(readonly client: GravityRailWorkspaceClient) {}\n\n form(name: string, options: AnyRecord & { slug?: string } = {}): FormBuilder {\n const form = new FormBuilder(name, options.slug, options);\n this.resources.push(form);\n return form;\n }\n\n workflow(name: string, options: AnyRecord = {}): WorkflowBuilder {\n const workflow = new WorkflowBuilder(name, options);\n this.resources.push(workflow);\n return workflow;\n }\n\n label(\n name: string,\n options: { slug?: string; color?: string; description?: string } = {}\n ): MemberLabelBuilder {\n const label = new MemberLabelBuilder(\n name,\n options.slug,\n options.color,\n options.description ?? ''\n );\n this.resources.push(label);\n return label;\n }\n\n journey(name: string, options: AnyRecord = {}): JourneyBuilder {\n const journey = new JourneyBuilder(name, options);\n this.resources.push(journey);\n return journey;\n }\n\n agent(name: string, options: AnyRecord = {}): AgentBuilder {\n const agent = new AgentBuilder(name, options);\n this.resources.push(agent);\n return agent;\n }\n\n routine(name: string, cronSchedule = '', options: AnyRecord = {}): RoutineBuilder {\n const routine = new RoutineBuilder(name, cronSchedule, options);\n this.resources.push(routine);\n return routine;\n }\n\n memberFilter(name: string, options: AnyRecord = {}): MemberFilterBuilder {\n const filter = new MemberFilterBuilder(name, options);\n this.resources.push(filter);\n return filter;\n }\n\n notificationRule(name: string, options: AnyRecord = {}): NotificationRuleBuilder {\n const rule = new NotificationRuleBuilder(name, options);\n this.resources.push(rule);\n return rule;\n }\n\n roleUpdate(roleId: number, workflowIds?: number[], dataTypeIds?: number[]): RoleUpdate {\n const update = new RoleUpdate(roleId, workflowIds, dataTypeIds);\n this.resources.push(update);\n return update;\n }\n\n plan(): void {\n const resources = this.sortedResources();\n writeLine(`\\n${'='.repeat(50)}`);\n writeLine('Plan');\n writeLine('='.repeat(50));\n for (const resource of resources) {\n writeLine(` + ${resource.planLine()}`);\n }\n const wiring = this.collectWiringSummary(resources);\n if (wiring.length) {\n writeLine('\\n Wiring:');\n for (const line of wiring) writeLine(` ${line}`);\n }\n writeLine(`\\n Total: ${resources.length} resources, ${wiring.length} connections`);\n writeLine(`${'='.repeat(50)}\\n`);\n }\n\n async preview(): Promise<void> {\n const resources = this.sortedResources();\n await this.resolveExisting(resources);\n\n writeLine(`\\n${'='.repeat(50)}`);\n writeLine('Preview');\n writeLine('='.repeat(50));\n for (const resource of resources) {\n if (resource._existed) {\n writeLine(` = ${resource.planLine()} (exists, id=${resource._id})`);\n } else {\n writeLine(` + ${resource.planLine()}`);\n }\n }\n const wiring = this.collectWiringSummary(resources);\n if (wiring.length) {\n writeLine('\\n Wiring:');\n for (const line of wiring) writeLine(` ${line}`);\n }\n const toCreate = resources.filter((resource) => !resource._existed);\n const existing = resources.filter((resource) => resource._existed);\n writeLine(\n `\\n Total: ${toCreate.length} to create, ${existing.length} existing, ${wiring.length} connections`\n );\n writeLine(`${'='.repeat(50)}\\n`);\n }\n\n async apply(): Promise<ResourceSummary> {\n const resources = this.sortedResources();\n await this.resolveExisting(resources);\n const summary: ResourceSummary = {};\n\n writeLine('Applying...');\n await this.ensureWorkflowAgents(resources, summary);\n for (const resource of resources) {\n try {\n if (resource._existed) {\n const key = resourceKey(resource);\n summary[key] ??= [];\n summary[key]!.push(resource._id);\n writeLine(` Exists ${resource.planLine()} -> id=${resource._id}`);\n continue;\n }\n\n await resource.apply(this.client);\n if (resource._created || resource._id !== undefined) {\n const key = resourceKey(resource);\n summary[key] ??= [];\n summary[key]!.push(resource._id);\n const startTag = resource instanceof TaskBuilder && resource.start ? ' [start]' : '';\n writeLine(` Created ${resource.planLine()}${startTag} -> id=${resource._id}`);\n } else {\n writeLine(` Skipped: ${resource.planLine()}`);\n }\n } catch (err) {\n writeLine(` FAILED: ${resource.planLine()}: ${summarizeError(err)}`);\n throw new ApplyError(resource, err, summary);\n }\n }\n\n await this.applyTransitions();\n await this.applyEventRules(resources);\n await this.applyJourneyConnections(resources);\n await this.applyJourneyGoals(resources);\n\n const count = Object.values(summary).reduce((total, ids) => total + ids.length, 0);\n writeLine(`\\nDone! Created ${count} resources.`);\n return summary;\n }\n\n private async resolveExisting(resources: WorkspaceBuilderResource[]): Promise<void> {\n const formSlugs = new Map(\n resources\n .filter((resource): resource is FormBuilder => resource instanceof FormBuilder)\n .map((resource) => [resource.slug, resource])\n );\n const labelSlugs = new Map(\n resources\n .filter(\n (resource): resource is MemberLabelBuilder => resource instanceof MemberLabelBuilder\n )\n .map((resource) => [resource.slug, resource])\n );\n const workflowNames = new Map(\n resources\n .filter((resource): resource is WorkflowBuilder => resource instanceof WorkflowBuilder)\n .map((resource) => [resource.name, resource])\n );\n\n if (formSlugs.size) {\n for (const existing of await this.client.getDataTypes()) {\n if (existing.slug && formSlugs.has(existing.slug)) {\n formSlugs.get(existing.slug)!.adopt(existing);\n }\n }\n }\n if (labelSlugs.size) {\n for (const existing of await this.client.getMemberLabels()) {\n if (existing.slug && labelSlugs.has(existing.slug)) {\n labelSlugs.get(existing.slug)!.adopt(existing);\n }\n }\n }\n if (!workflowNames.size) return;\n\n for (const existing of await this.client.getWorkflows()) {\n if (existing.name && workflowNames.has(existing.name)) {\n workflowNames.get(existing.name)!.adopt(existing);\n }\n }\n\n const adoptedWorkflows = resources.filter(\n (resource): resource is WorkflowBuilder =>\n resource instanceof WorkflowBuilder && resource._existed && resource._id !== undefined\n );\n if (!adoptedWorkflows.length) return;\n\n const existingTasks = await this.client.getTasks();\n for (const workflow of adoptedWorkflows) {\n const workflowTasks = existingTasks.filter((task) => task.workflowId === workflow._id);\n const taskByName = new Map(workflowTasks.map((task) => [task.name, task]));\n for (const taskBuilder of workflow.tasks) {\n const match = taskByName.get(taskBuilder.name);\n if (match) taskBuilder.adopt(match);\n }\n\n const ids = new Map<number, TaskBuilder[]>();\n for (const taskBuilder of workflow.tasks) {\n if (taskBuilder._id !== undefined) {\n ids.set(taskBuilder._id, [...(ids.get(taskBuilder._id) ?? []), taskBuilder]);\n }\n }\n for (const builders of ids.values()) {\n if (builders.length <= 1) continue;\n const nameAdopted = builders.filter((task) => taskByName.has(task.name));\n for (const task of builders.filter((builder) => !nameAdopted.includes(builder))) {\n task._id = undefined;\n task._existed = false;\n }\n }\n }\n }\n\n private async ensureWorkflowAgents(\n resources: WorkspaceBuilderResource[],\n summary: ResourceSummary\n ): Promise<void> {\n const workflows = resources.filter(\n (resource): resource is WorkflowBuilder =>\n resource instanceof WorkflowBuilder && resource.needsDefaultAgent()\n );\n if (!workflows.length) return;\n\n const agent = await getOrCreateDefaultWorkflowAgent(this.client);\n for (const workflow of workflows) workflow.setAgentId(agent.id);\n\n if (agent.created) {\n summary.agents ??= [];\n summary.agents.push(agent.id);\n writeLine(` Created Agent: ${agent.name} -> id=${agent.id}`);\n } else {\n writeLine(` Using Agent: ${agent.name || agent.id} -> id=${agent.id}`);\n }\n }\n\n private sortedResources(): WorkspaceBuilderResource[] {\n const all: WorkspaceBuilderResource[] = [];\n for (const resource of this.resources) {\n all.push(resource);\n if (resource instanceof WorkflowBuilder) {\n const start = resource.startTask;\n const tasks =\n start === undefined\n ? resource.tasks\n : [start, ...resource.tasks.filter((task) => task !== start)];\n all.push(...tasks);\n } else if (resource instanceof JourneyBuilder) {\n all.push(...resource.steps);\n }\n }\n return all.sort(\n (a, b) => (PHASES.get(a.constructor) ?? 99) - (PHASES.get(b.constructor) ?? 99)\n );\n }\n\n private collectWiringSummary(resources: WorkspaceBuilderResource[]): string[] {\n const lines: string[] = [];\n for (const resource of resources) {\n if (resource instanceof TaskBuilder) {\n for (const transition of resource.transitions) {\n lines.push(`${transition.parent.name} -> ${transition.child.name}`);\n }\n for (const rule of resource.eventRules) {\n lines.push(`${rule.actionType} on enter '${resource.name}'`);\n }\n } else if (resource instanceof FormBuilder) {\n for (const rule of resource.eventRules) {\n lines.push(`${rule.actionType} on ${rule.eventType} '${resource.name}'`);\n }\n } else if (resource instanceof RoutineBuilder) {\n for (const rule of resource.rules)\n lines.push(`${rule.actionType} rule on '${resource.name}'`);\n } else if (resource instanceof JourneyStepBuilder) {\n for (const connection of resource.connections) {\n lines.push(`${connection.parent.name} -> ${connection.child.name}`);\n }\n } else if (resource instanceof JourneyBuilder) {\n for (const goal of resource.goals) lines.push(`Goal: ${goal.name}`);\n }\n }\n return lines;\n }\n\n private async applyTransitions(): Promise<void> {\n const parentChildren = new Map<TaskBuilder, TaskTransition[]>();\n for (const resource of this.sortedResources()) {\n if (!(resource instanceof TaskBuilder)) continue;\n for (const transition of resource.transitions) {\n parentChildren.set(transition.parent, [\n ...(parentChildren.get(transition.parent) ?? []),\n transition,\n ]);\n }\n }\n\n for (const [parent, transitions] of parentChildren) {\n if (parent._id === undefined) continue;\n const childTasks = transitions.flatMap((transition) => {\n const taskId = transition.child._id;\n if (taskId === undefined || taskId === parent._id) return [];\n return [\n {\n taskId,\n choicePrompt: transition.when,\n celCondition: null,\n autoNext: transition.autoNext,\n required: transition.required,\n },\n ];\n });\n if (!childTasks.length) continue;\n await this.client.updateTask(parent._id, { childTasks });\n writeLine(\n ` Wired: ${parent.name} -> [${transitions.map((tr) => tr.child.name).join(', ')}]`\n );\n }\n }\n\n private async applyEventRules(resources: WorkspaceBuilderResource[]): Promise<void> {\n for (const resource of resources) {\n if (resource instanceof TaskBuilder) {\n for (const rule of resource.eventRules) {\n try {\n const payload: EventRuleFormData = {\n objectType: EventRuleObjectType.TASK,\n taskId: resource._id,\n eventType: rule.eventType,\n actionType: rule.actionType,\n actionParams: resolveRefs(rule.actionParams),\n ...(rule.name ? { name: rule.name } : {}),\n };\n await this.applyEventRule(\n payload,\n `${rule.actionType} on enter '${resource.name}'`\n );\n } catch (err) {\n handleEventRuleApplyFailure(resource.name, err);\n }\n }\n } else if (resource instanceof FormBuilder) {\n for (const rule of resource.eventRules) {\n try {\n const payload: EventRuleFormData = {\n objectType: EventRuleObjectType.DATA_RECORD,\n dataTypeId: resource._id,\n eventType: rule.eventType,\n actionType: rule.actionType,\n actionParams: resolveRefs(rule.actionParams),\n ...(rule.condition ? { conditions: rule.condition } : {}),\n ...(rule.name ? { name: rule.name } : {}),\n };\n await this.applyEventRule(\n payload,\n `${rule.actionType} on ${rule.eventType} '${resource.name}'`\n );\n } catch (err) {\n handleEventRuleApplyFailure(resource.name, err);\n }\n }\n }\n }\n }\n\n private async applyEventRule(payload: EventRuleFormData, label: string): Promise<void> {\n const existing = await this.findMatchingEventRule(payload);\n if (!existing) {\n await this.client.createEventRule(payload);\n writeLine(` Wired: ${label}`);\n return;\n }\n\n const update = eventRuleUpdate(existing, payload);\n if (Object.keys(update).length) {\n await this.client.updateEventRule(existing.id, update);\n writeLine(` Updated: ${label}`);\n } else {\n writeLine(` Exists: ${label}`);\n }\n }\n\n private async findMatchingEventRule(payload: EventRuleFormData): Promise<EventRule | undefined> {\n const sourceFilter = eventRuleSourceFilter(payload);\n const candidates = await this.client.searchEventRules({\n objectType: payload.objectType,\n eventType: payload.eventType,\n actionType: payload.actionType,\n includeDisabled: true,\n ...sourceFilter,\n });\n return candidates.find((candidate) => eventRulesMatch(candidate, payload));\n }\n\n private async applyJourneyConnections(resources: WorkspaceBuilderResource[]): Promise<void> {\n for (const resource of resources) {\n if (!(resource instanceof JourneyStepBuilder)) continue;\n for (const connection of resource.connections) {\n if (resource.journey._id === undefined) continue;\n const payload = buildJourneyConnectionPayload(connection);\n if (!payload) continue;\n await this.client.createConnection(resource.journey._id, payload);\n writeLine(` Wired: ${connection.parent.name} -> ${connection.child.name}`);\n }\n }\n }\n\n private async applyJourneyGoals(resources: WorkspaceBuilderResource[]): Promise<void> {\n for (const resource of resources) {\n if (!(resource instanceof JourneyBuilder) || resource._id === undefined) continue;\n for (const goal of resource.goals) {\n await this.client.createGoal(resource._id, buildJourneyGoalPayload(goal));\n writeLine(` Created goal: ${goal.name}`);\n }\n }\n }\n}\n\nexport class ApplyError extends Error {\n constructor(\n readonly resource: WorkspaceBuilderResource,\n readonly cause: unknown,\n readonly createdSoFar: ResourceSummary\n ) {\n super(\n `Failed creating ${resource.planLine()}: ${summarizeError(cause)}\\nAlready created: ${JSON.stringify(\n createdSoFar\n )}`\n );\n }\n}\n\nfunction resourceKey(resource: WorkspaceBuilderResource): string {\n if (resource instanceof RoleUpdate) return 'roleUpdates';\n if (resource instanceof FormBuilder) return 'forms';\n if (resource instanceof MemberLabelBuilder) return 'labels';\n if (resource instanceof WorkflowBuilder) return 'workflows';\n if (resource instanceof TaskBuilder) return 'tasks';\n if (resource instanceof MemberFilterBuilder) return 'memberFilters';\n if (resource instanceof RoutineBuilder) return 'routines';\n if (resource instanceof NotificationRuleBuilder) return 'notificationRules';\n if (resource instanceof JourneyBuilder) return 'journeys';\n if (resource instanceof JourneyStepBuilder) return 'journeySteps';\n if (resource instanceof AgentBuilder) return 'agents';\n return 'resources';\n}\n\nconst SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [\n 'taskId',\n 'dataTypeId',\n 'routineId',\n 'workflowId',\n 'journeyStepId',\n] as const;\n\nconst EVENT_RULE_SOURCE_FIELDS = [\n ...SEARCHABLE_EVENT_RULE_SOURCE_FIELDS,\n 'calendarId',\n 'calendarEventTypeId',\n] as const;\n\ntype SearchableEventRuleSourceField = (typeof SEARCHABLE_EVENT_RULE_SOURCE_FIELDS)[number];\n\nfunction eventRuleSourceFilter(\n payload: EventRuleFormData\n): Partial<Record<SearchableEventRuleSourceField, number>> {\n const filter: Partial<Record<SearchableEventRuleSourceField, number>> = {};\n for (const field of SEARCHABLE_EVENT_RULE_SOURCE_FIELDS) {\n const value = payload[field];\n if (value !== undefined && value !== null) {\n filter[field] = value;\n }\n }\n return filter;\n}\n\nfunction eventRulesMatch(existing: EventRule, payload: EventRuleFormData): boolean {\n if (normalizeString(existing.name) !== normalizeString(payload.name)) return false;\n if (existing.objectType !== payload.objectType) return false;\n if (existing.eventType !== payload.eventType) return false;\n if (existing.actionType !== payload.actionType) return false;\n\n for (const field of EVENT_RULE_SOURCE_FIELDS) {\n if ((existing[field] ?? null) !== (payload[field] ?? null)) return false;\n }\n\n if (normalizeString(payload.name)) return true;\n if (normalizeString(existing.conditions) !== normalizeString(payload.conditions)) return false;\n if (!eventRuleValueEqual(existing.actionParams, payload.actionParams ?? null)) return false;\n if (!eventRuleValueEqual(existing.triggerParams, payload.triggerParams ?? null)) return false;\n return true;\n}\n\nfunction eventRuleUpdate(existing: EventRule, payload: EventRuleFormData): UpdateEventRuleFormData {\n const update: UpdateEventRuleFormData = {};\n const conditions = payload.conditions ?? null;\n if (normalizeString(existing.conditions) !== normalizeString(conditions)) {\n update.conditions = conditions;\n }\n const actionParams = payload.actionParams ?? null;\n if (!eventRuleValueEqual(existing.actionParams, actionParams)) {\n update.actionParams = payload.actionParams;\n }\n const triggerParams = payload.triggerParams ?? null;\n if (!eventRuleValueEqual(existing.triggerParams, triggerParams)) {\n update.triggerParams = payload.triggerParams;\n }\n const active = payload.active ?? true;\n if (existing.active !== active) {\n update.active = active;\n }\n const delay = payload.delay ?? 0;\n if (existing.delay !== delay) {\n update.delay = delay;\n }\n const order = payload.order ?? 0;\n if (existing.order !== order) {\n update.order = order;\n }\n return update;\n}\n\nfunction normalizeString(value: string | null | undefined): string {\n return value ?? '';\n}\n\nfunction eventRuleValueEqual(left: unknown, right: unknown): boolean {\n return JSON.stringify(stableValue(left)) === JSON.stringify(stableValue(right));\n}\n\nfunction stableValue(value: unknown): unknown {\n if (Array.isArray(value)) return value.map(stableValue);\n if (!value || typeof value !== 'object') return value;\n const prototype = Object.getPrototypeOf(value);\n if (prototype !== Object.prototype && prototype !== null) return value;\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>)\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([key, nested]) => [key, stableValue(nested)])\n );\n}\n\nfunction writeLine(message = ''): void {\n process.stdout.write(`${message}\\n`);\n}\n\nfunction handleEventRuleApplyFailure(resourceName: string, err: unknown): void {\n if (hasStatus(err, 403)) {\n writeLine(\n ` WARNING: Event rule on '${resourceName}' failed (retry exec() with scopes=['automations:admin'])`\n );\n return;\n }\n const summary = summarizeError(err);\n writeLine(` FAILED: Event rule on '${resourceName}': ${summary}`);\n throw new Error(`Failed wiring event rule on '${resourceName}': ${summary}`);\n}\n\nfunction summarizeError(err: unknown): string {\n if (err instanceof Error) return err.name || 'Error';\n return typeof err;\n}\n\nfunction hasStatus(err: unknown, status: number): boolean {\n if (typeof err === 'object' && err !== null) {\n const candidate = err as { status?: unknown; statusCode?: unknown };\n if (candidate.status === status || candidate.statusCode === status) return true;\n }\n const message = err instanceof Error ? err.message : typeof err === 'string' ? err : '';\n return message.includes(String(status));\n}\n\nexport async function runWorkspaceScript(\n client: GravityRailWorkspaceClient,\n build: (workspace: WorkspaceBuilder) => void | Promise<void>,\n mode = 'plan'\n): Promise<ResourceSummary | void> {\n const workspace = new WorkspaceBuilder(client);\n await build(workspace);\n if (mode === 'plan') return workspace.plan();\n if (mode === 'preview') return workspace.preview();\n if (mode === 'apply') return workspace.apply();\n throw new Error(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A,OACA,OAAO,QACyB;AAChC,QAAM,YAAY,IAAI,iBAAiB,MAAM;AAC7C,QAAM,MAAM,SAAS;AACrB,MAAI,SAAS,OAAQ,QAAO,UAAU,KAAK;AAC3C,MAAI,SAAS,UAAW,QAAO,UAAU,QAAQ;AACjD,MAAI,SAAS,QAAS,QAAO,UAAU,MAAM;AAC7C,QAAM,IAAI,MAAM,iBAAiB,IAAI,iCAAiC;AACzE;","names":[]}
@@ -3558,4 +3558,4 @@ type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
3558
3558
  type EnrichInquiryInput = z.infer<typeof EnrichInquirySchema>;
3559
3559
  type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
3560
3560
 
3561
- export { type BusinessProfileCancelResponse as $, AccessLevel as A, type ApiKeyCreatedResponse as B, type ApiKeyFormData as C, type ApiKeyScope as D, type ApiKeyScopesResponse as E, type AssignmentSortField as F, type AssistantMessageActionParams as G, type AttendeeResponse as H, AttendeeResponseStatus as I, AttendeeStatus as J, type AuthorizedRep as K, type AvailabilityCheck as L, type AvailabilityResponse as M, type AvailableSlotsRequest as N, type AvailableSlotsResponse as O, type BotSortField as P, type BulkCreateDataRecordRequest as Q, type BulkCreateDataRecordResponse as R, type BulkCreateMembersRequest as S, type BulkCreateMembersResponse as T, type BulkMemberItem as U, type BulkMemberResult as V, type WorkspaceMemberResponse as W, BulkMemberResultStatus as X, type BulkRecordResult as Y, BusinessIndustry as Z, type BusinessInfo as _, type AccountResponse as a, type DataTypeFormData as a$, type BusinessProfileSubmitResponse as a0, BusinessType as a1, type Calendar as a2, type EventResponse as a3, type CalendarEventFormData as a4, type CalendarEventSortField as a5, CalendarEventStatus as a6, type EventTypeResponse as a7, type CalendarEventTypeFormData as a8, type CalendarEventsQueryParams as a9, type CreateWorkspaceMemberRequest as aA, type CredentialChangeInviteConfirmResponse as aB, type CredentialChangeInviteDetailsResponse as aC, type CredentialChangeInviteResponse as aD, type CredentialChangeRequestResponse as aE, type CredentialChangeVerifyResponse as aF, type CredentialType as aG, type CurrentMemberResponse as aH, type CurrentOrgMember as aI, type CursorPaginatedResponse as aJ, DataCategory as aK, type DataExportResponse as aL, type DataField as aM, type DataFieldFormData as aN, DataFieldType as aO, type DataIntegrityReportItem as aP, type DataRecordResponse as aQ, type DataRecordAssociationFormData as aR, type DataRecordFieldWarning as aS, type DataRecordFormData as aT, type DataRecordReportItem as aU, type DataRecordUpdateResponse as aV, type DataRecordWithAccessMode as aW, type DataRecordsPaginatedResponse as aX, DataSensitivity as aY, type DataTypeResponse as aZ, type DataTypeExportItem as a_, type CalendarFormData as aa, CalendarPermissionType as ab, type CalendarResponse as ac, type CalendarSchedule as ad, CalendarScheduleAvailabilityType as ae, type CalendarScheduleFormData as af, CalendarScheduleRecurrence as ag, type CalendarScheduleResponse as ah, CalendarSource as ai, type CancelCredentialChangeInviteResponse as aj, type CancelCredentialChangeResponse as ak, type ChatContinueActionParams as al, type ChatCreateActionParams as am, type ChatPauseActionParams as an, type ChatSortField as ao, type ChatSummarizeActionParams as ap, type ConcludeAssignmentActionParams as aq, type ConsentRecordExport as ar, type CreateAccountOrgMembershipRequest as as, type CreateAccountOrgMembershipResponse as at, type CreateAgentRequest as au, type CreateAnonymousMemberRequest as av, type CreateCredentialChangeInviteRequest as aw, type CreateOrganizationRequest as ax, type CreateRoutineRequest as ay, type CreateSignupResponse as az, type AccountDataExport as b, type MemberFieldDefinitionResponse as b$, type DataTypeMemberRoleAccessInput as b0, type DataTypeMemberRoleAccessResponse as b1, DataTypeRecordScope as b2, type DataTypeSortField as b3, type DeleteAccountOrgMembershipResponse as b4, type DeletionCancelResponse as b5, type DeletionRequestResponse as b6, type DetailedAccount as b7, type DuplicateAccountInfo as b8, type EcwRefreshMemberEncountersActionParams as b9, type MemoryResponse$1 as bA, type OrgDomainResponse as bB, type OwnershipDnsRecord as bC, type TwoFactorMethodResponse$1 as bD, type TwoFactorStatusResponse$1 as bE, type GoogleCalendarInfo as bF, type GoogleCalendarInsufficientScopesResponse as bG, type GoogleCalendarStatusResponse as bH, type ICalFeedTokenResponse as bI, type ICalFeedUrlResponse as bJ, IndexStatus as bK, type IndexStatusResponse as bL, type InvokeCustomToolActionParams as bM, JobPosition as bN, type JourneyEnrollActionParams as bO, type JourneySortField as bP, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bQ, type LinkCalendarRequest as bR, type LinkCalendarResponse as bS, type LoginRequest as bT, type LoginResponse as bU, type LogoUploadRequest as bV, type LogoUploadResponse as bW, MASKED_SECRET_SENTINEL as bX, type McpServerSortField as bY, type MemberCredentialResponse as bZ, type MemberFieldResponse as b_, type EmailDisableImpactResponse as ba, EmailDnsRecordType as bb, type EmailDomainConfigResponse as bc, type EmailSendActionParams as bd, type EmailVerificationResponse as be, type EnumOption as bf, type ErrorResponse as bg, type EventActionMapping as bh, type EventActionMappingsResponse as bi, type EventRule as bj, EventRuleActionType as bk, EventRuleEventType as bl, type EventRuleExportItem as bm, type EventRuleFormData as bn, type EventRuleInput as bo, EventRuleObjectType as bp, type EventRuleResponse as bq, type EventRunSortField as br, type ExpireAnonymousMemberRequest as bs, type FileSortField as bt, type FormFieldUpdateActionParams as bu, type GenerateRecoveryCodesRequest as bv, type BusinessProfileResponse as bw, type CalendarResponse$1 as bx, type CalendarScheduleResponse$1 as by, type MemoryListResponse as bz, type AccountFormData as c, PERMISSION_DELETE as c$, type MemberFieldDefinitionListResponse as c0, type MemberFieldListResponse as c1, type MemberFilterResponse as c2, type MemberFilterFilterType as c3, type MemberFilterFormData as c4, type MemberFilterObjectType as c5, type MemberFilterRuleResponse as c6, type MemberFilterRuleFormData as c7, type MemberFormData as c8, type MemberLabelResponse as c9, type MergeMembersRequest as cA, type MergeMembersResponse as cB, type MessageValidationActionParams as cC, type MilestoneSortField as cD, type MissingMembershipItem as cE, type MondayColumnMapping as cF, type MondayLookupType as cG, type MondayRefreshActionParams as cH, type MondayRefreshColumnMapping as cI, type MondayUpsertItemActionParams as cJ, type MondayUpsertMode as cK, type MultiMatchBehavior as cL, type NormalizeMemberRequest as cM, type NormalizeMemberResponse as cN, type OIDCAdminConfigInput as cO, type OIDCAdminConfigView as cP, OIDCAdminConfigViewProviderType as cQ, type ObjectPermission as cR, type ObjectPermissionFlags as cS, type OrgMember as cT, type OrgMemberListResponse as cU, type OrgMemberRole as cV, type OrgMembershipExport as cW, type OrganizationResponse as cX, type OwnershipVerificationResponse as cY, PERMISSION_ADMIN as cZ, PERMISSION_CREATE as c_, type MemberLabelActionParams as ca, type MemberLabelFormData as cb, type MemberMemoriesResponse as cc, type MemberMessageActivity as cd, type MemberOrgView as ce, type MemberReportItem as cf, type MemberRoleResponse as cg, type MemberRoleCalendarAccessResponse as ch, type MemberRoleDataTypeAccessResponse as ci, type MemberRoleFileAccessResponse as cj, type MemberRoleFolderAccessResponse as ck, type MemberRoleFormData as cl, type MemberRoleInboxAccessResponse as cm, type MemberRoleSiteAccessResponse as cn, type MemberRoleTaskAccess as co, type MemberRoleWorkflowAccessResponse as cp, type MemberSortField as cq, type MemberSummary as cr, MemberType as cs, type MemberUpsertActionParams as ct, type MemberUpsertBehavior as cu, type MemberWorkspaceInfo as cv, type MembersQueryParams as cw, type MemoryItem as cx, type MemoryResponse as cy, type MemoryType as cz, type AccountLookupResponse as d, type TwoFactorMethodType as d$, PERMISSION_EDIT as d0, PERMISSION_GEOLOCATE as d1, PERMISSION_LIST as d2, PERMISSION_LIST_ALL as d3, PERMISSION_NONE as d4, PERMISSION_USE as d5, PERMISSION_VERIFY as d6, type PageSortField as d7, type PaginatedResponse as d8, type PendingAnonymousMembersResponse as d9, type SchedulePreviewRequest as dA, type SchedulePreviewResponse as dB, type SchemaField as dC, Scope as dD, type SendEmailVerificationRequest as dE, type SessionExchangeRequest as dF, type SessionExchangeResponse as dG, type SetupTOTPRequest as dH, type SetupWebAuthnRequest as dI, type SignupAccountResponse as dJ, type SignupMemberResponse as dK, type SiteDisableImpactResponse as dL, SiteDnsRecordType as dM, type SiteDomainConfigResponse as dN, type SiteSortField as dO, type SiteVerificationResponse as dP, type SmsSendActionParams as dQ, type SortOrder as dR, type SwitchTaskActionParams as dS, type SyncCalendarResponse as dT, type TOTPSetupResponse as dU, type TaskExportDataTypeRelation as dV, type TaskExportEventRuleRelation as dW, type TaskSortField as dX, type TimeSlot as dY, type TwoFactorMethod as dZ, type TwoFactorMethodResponse as d_, type PendingCredentialChangeResponse as da, type PendingCredentialChangeInviteResponse as db, type PhoneCallActionParams as dc, type PlayAudioActionParams as dd, type QualificationSortField as de, type RecoveryCodeResponse as df, Region as dg, RegistrationIdentifier as dh, type RequestCredentialChangeRequest as di, type RequestMagicLinkRequest as dj, type RequestMagicLinkResponse as dk, type ResolveAnonymousMemberRequest as dl, type Routine as dm, type RoutineResponse as dn, type RoutineRunResponse as dp, type RoutineRunStatus as dq, type RoutineRunsQueryParams as dr, type RoutineScheduleMode as ds, type RoutineSortField as dt, type RoutineVisibility as du, type RoutinesQueryParams as dv, type RuleExecutionSortField as dw, type RuleExecutionsQueryParams as dx, type SendLoginCodeResponse as dy, type SSOConfigData as dz, type AccountReportItem as e, type TwoFactorOperationResponse as e0, type TwoFactorStatus as e1, type TwoFactorStatusResponse as e2, type UnlinkCalendarResponse as e3, type UpdateAgentRequest as e4, type UpdateAttendeeRequest as e5, type UpdateEventRuleFormData as e6, type UpdateOrgMemberRequest as e7, type UpdateOrganizationRequest as e8, type UpdateRoutineRequest as e9, type DeleteMilestoneInput as eA, DeleteMilestoneSchema as eB, type EnrichInquiryInput as eC, EnrichInquirySchema as eD, type GetInquiryInput as eE, GetInquirySchema as eF, type GetMilestoneInput as eG, GetMilestoneSchema as eH, type ListInquiriesInput as eI, ListInquiriesSchema as eJ, type ListMilestonesInput as eK, ListMilestonesSchema as eL, type MilestoneFormData as eM, MilestoneFormDataSchema as eN, MilestoneGoalFormDataSchema as eO, type UpdateInquiryInput as eP, UpdateInquiryRequestSchema as eQ, UpdateInquirySchema as eR, type UpdateMilestoneInput as eS, UpdateMilestoneSchema as eT, type EventRuleResponse$1 as eU, type EmailDnsRecord as eV, type EmailDomainConfigGetResponse as eW, type OrgDomainListResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type UpdateTwoFactorMethodRequest as ea, type UpdateWorkspaceMemberRequest as eb, type ValidateMagicLinkRequest as ec, type ValidateMagicLinkResponse as ed, type VerifyCodeRequest as ee, type VerifyCodeResponse as ef, type VerifyCredentialChangeRequest as eg, type VerifyEmailRequest as eh, type VerifyTOTPSetupRequest as ei, type VerifyWebAuthnSetupRequest as ej, type WebAuthnRegistrationResponse as ek, type WebhookActionParams as el, type WebhookLogSortField as em, type WebhookLogsQueryParams as en, type WorkflowSortField as eo, type WorkspaceMembershipExport as ep, type WorkspaceSortField as eq, decodePermissions as er, encodePermissions as es, eventRuleActionParams as et, type CreateInquiryInput as eu, CreateInquirySchema as ev, type CreateMilestoneInput as ew, CreateMilestoneSchema as ex, type DeleteInquiryInput as ey, DeleteInquirySchema as ez, type AccountSortField as f, type AccountState as g, type Address as h, type AdminAccountResponse as i, type AdminAccountFormData as j, type AdminAccountMembership as k, type AdminAccountMembershipResponse as l, type AdminAccountOrgMembershipResponse as m, type AdminOrganization as n, type AdminOrganizationResponse as o, type AdminWorkspaceMemberFormData as p, type AdminWorkspaceSortField as q, type AgentResponse as r, type AgentConfigResponse as s, type AgentConfigFormData as t, type AgentMemoryConfig as u, type AgentSortField as v, type AnonymousInteractionResponse as w, type AnonymousMemberResolutionResponse as x, type AnonymousMemberResolutionStatus as y, type ApiKeyResponse as z };
3561
+ export { type Calendar as $, AccessLevel as A, type AssistantMessageActionParams as B, type AttendeeResponse as C, type DataFieldFormData as D, EventRuleEventType as E, AttendeeResponseStatus as F, AttendeeStatus as G, type AuthorizedRep as H, type AvailabilityCheck as I, type AvailabilityResponse as J, type AvailableSlotsRequest as K, type AvailableSlotsResponse as L, type MemberFilterRuleFormData as M, type BotSortField as N, type BulkCreateDataRecordRequest as O, type BulkCreateDataRecordResponse as P, type BulkCreateMembersRequest as Q, type BulkCreateMembersResponse as R, type BulkMemberItem as S, type BulkMemberResult as T, BulkMemberResultStatus as U, type BulkRecordResult as V, BusinessIndustry as W, type BusinessInfo as X, type BusinessProfileCancelResponse as Y, type BusinessProfileSubmitResponse as Z, BusinessType as _, EventRuleActionType as a, type DuplicateAccountInfo as a$, type EventResponse as a0, type CalendarEventFormData as a1, type CalendarEventSortField as a2, CalendarEventStatus as a3, type EventTypeResponse as a4, type CalendarEventTypeFormData as a5, type CalendarEventsQueryParams as a6, type CalendarFormData as a7, CalendarPermissionType as a8, type CalendarResponse as a9, type CredentialChangeRequestResponse as aA, type CredentialChangeVerifyResponse as aB, type CredentialType as aC, type CurrentMemberResponse as aD, type CurrentOrgMember as aE, type CursorPaginatedResponse as aF, DataCategory as aG, type DataField as aH, type DataIntegrityReportItem as aI, type DataRecordResponse as aJ, type DataRecordAssociationFormData as aK, type DataRecordFieldWarning as aL, type DataRecordFormData as aM, type DataRecordReportItem as aN, type DataRecordUpdateResponse as aO, type DataRecordWithAccessMode as aP, type DataRecordsPaginatedResponse as aQ, DataSensitivity as aR, type DataTypeResponse as aS, type DataTypeExportItem as aT, type DataTypeFormData as aU, type DataTypeMemberRoleAccessInput as aV, type DataTypeMemberRoleAccessResponse as aW, DataTypeRecordScope as aX, type DataTypeSortField as aY, type DeleteAccountOrgMembershipResponse as aZ, type DetailedAccount as a_, type CalendarSchedule as aa, CalendarScheduleAvailabilityType as ab, type CalendarScheduleFormData as ac, CalendarScheduleRecurrence as ad, type CalendarScheduleResponse as ae, CalendarSource as af, type CancelCredentialChangeInviteResponse as ag, type CancelCredentialChangeResponse as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateOrganizationRequest as at, type CreateRoutineRequest as au, type CreateSignupResponse as av, type CreateWorkspaceMemberRequest as aw, type CredentialChangeInviteConfirmResponse as ax, type CredentialChangeInviteDetailsResponse as ay, type CredentialChangeInviteResponse as az, DataFieldType as b, type MemberOrgView as b$, type EcwRefreshMemberEncountersActionParams as b0, type EmailDisableImpactResponse as b1, EmailDnsRecordType as b2, type EmailDomainConfigResponse as b3, type EmailSendActionParams as b4, type EmailVerificationResponse as b5, type EnumOption as b6, type ErrorResponse as b7, type EventActionMapping as b8, type EventActionMappingsResponse as b9, JobPosition as bA, type JourneyEnrollActionParams as bB, type JourneySortField as bC, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bD, type LinkCalendarRequest as bE, type LinkCalendarResponse as bF, type LoginRequest as bG, type LoginResponse as bH, type LogoUploadRequest as bI, type LogoUploadResponse as bJ, MASKED_SECRET_SENTINEL as bK, type McpServerSortField as bL, type WorkspaceMemberResponse as bM, type MemberCredentialResponse as bN, type MemberFieldResponse as bO, type MemberFieldDefinitionResponse as bP, type MemberFieldDefinitionListResponse as bQ, type MemberFieldListResponse as bR, type MemberFilterResponse as bS, type MemberFilterFormData as bT, type MemberFilterRuleResponse as bU, type MemberFormData as bV, type MemberLabelResponse as bW, type MemberLabelActionParams as bX, type MemberLabelFormData as bY, type MemberMemoriesResponse as bZ, type MemberMessageActivity as b_, type EventRule as ba, type EventRuleExportItem as bb, type EventRuleFormData as bc, type EventRuleInput as bd, EventRuleObjectType as be, type EventRuleResponse as bf, type EventRunSortField as bg, type ExpireAnonymousMemberRequest as bh, type FileSortField as bi, type FormFieldUpdateActionParams as bj, type GenerateRecoveryCodesRequest as bk, type BusinessProfileResponse as bl, type CalendarResponse$1 as bm, type CalendarScheduleResponse$1 as bn, type MemoryListResponse as bo, type MemoryResponse$1 as bp, type OrgDomainResponse as bq, type OwnershipDnsRecord as br, type GoogleCalendarInfo as bs, type GoogleCalendarInsufficientScopesResponse as bt, type GoogleCalendarStatusResponse as bu, type ICalFeedTokenResponse as bv, type ICalFeedUrlResponse as bw, IndexStatus as bx, type IndexStatusResponse as by, type InvokeCustomToolActionParams as bz, type MemberFilterObjectType as c, Region as c$, type MemberReportItem as c0, type MemberRoleResponse as c1, type MemberRoleCalendarAccessResponse as c2, type MemberRoleDataTypeAccessResponse as c3, type MemberRoleFileAccessResponse as c4, type MemberRoleFolderAccessResponse as c5, type MemberRoleFormData as c6, type MemberRoleInboxAccessResponse as c7, type MemberRoleSiteAccessResponse as c8, type MemberRoleTaskAccess as c9, OIDCAdminConfigViewProviderType as cA, type ObjectPermission as cB, type ObjectPermissionFlags as cC, type OrgMember as cD, type OrgMemberListResponse as cE, type OrgMemberRole as cF, type OrganizationResponse as cG, type OwnershipVerificationResponse as cH, PERMISSION_ADMIN as cI, PERMISSION_CREATE as cJ, PERMISSION_DELETE as cK, PERMISSION_EDIT as cL, PERMISSION_GEOLOCATE as cM, PERMISSION_LIST as cN, PERMISSION_LIST_ALL as cO, PERMISSION_NONE as cP, PERMISSION_USE as cQ, PERMISSION_VERIFY as cR, type PageSortField as cS, type PaginatedResponse as cT, type PendingAnonymousMembersResponse as cU, type PendingCredentialChangeResponse as cV, type PendingCredentialChangeInviteResponse as cW, type PhoneCallActionParams as cX, type PlayAudioActionParams as cY, type QualificationSortField as cZ, type RecoveryCodeResponse as c_, type MemberRoleWorkflowAccessResponse as ca, type MemberSortField as cb, type MemberSummary as cc, MemberType as cd, type MemberUpsertActionParams as ce, type MemberUpsertBehavior as cf, type MemberWorkspaceInfo as cg, type MembersQueryParams as ch, type MemoryItem as ci, type MemoryResponse as cj, type MemoryType as ck, type MergeMembersRequest as cl, type MergeMembersResponse as cm, type MessageValidationActionParams as cn, type MilestoneSortField as co, type MissingMembershipItem as cp, type MondayColumnMapping as cq, type MondayLookupType as cr, type MondayRefreshActionParams as cs, type MondayRefreshColumnMapping as ct, type MondayUpsertItemActionParams as cu, type MondayUpsertMode as cv, type MultiMatchBehavior as cw, type NormalizeMemberRequest as cx, type NormalizeMemberResponse as cy, type OIDCAdminConfigView as cz, type MemberFilterFilterType as d, type VerifyWebAuthnSetupRequest as d$, RegistrationIdentifier as d0, type RequestCredentialChangeRequest as d1, type RequestMagicLinkRequest as d2, type RequestMagicLinkResponse as d3, type ResolveAnonymousMemberRequest as d4, type Routine as d5, type RoutineResponse as d6, type RoutineRunResponse as d7, type RoutineRunStatus as d8, type RoutineRunsQueryParams as d9, type SortOrder as dA, type SwitchTaskActionParams as dB, type SyncCalendarResponse as dC, type TOTPSetupResponse as dD, type TaskExportDataTypeRelation as dE, type TaskExportEventRuleRelation as dF, type TaskSortField as dG, type TimeSlot as dH, type TwoFactorMethod as dI, type TwoFactorOperationResponse as dJ, type TwoFactorStatus as dK, type UnlinkCalendarResponse as dL, type UpdateAgentRequest as dM, type UpdateAttendeeRequest as dN, type UpdateEventRuleFormData as dO, type UpdateOrgMemberRequest as dP, type UpdateOrganizationRequest as dQ, type UpdateRoutineRequest as dR, type UpdateTwoFactorMethodRequest as dS, type UpdateWorkspaceMemberRequest as dT, type ValidateMagicLinkRequest as dU, type ValidateMagicLinkResponse as dV, type VerifyCodeRequest as dW, type VerifyCodeResponse as dX, type VerifyCredentialChangeRequest as dY, type VerifyEmailRequest as dZ, type VerifyTOTPSetupRequest as d_, type RoutineScheduleMode as da, type RoutineSortField as db, type RoutineVisibility as dc, type RoutinesQueryParams as dd, type RuleExecutionSortField as de, type RuleExecutionsQueryParams as df, type SendLoginCodeResponse as dg, type SSOConfigData as dh, type SchedulePreviewRequest as di, type SchedulePreviewResponse as dj, type SchemaField as dk, Scope as dl, type SendEmailVerificationRequest as dm, type SessionExchangeRequest as dn, type SessionExchangeResponse as dp, type SetupTOTPRequest as dq, type SetupWebAuthnRequest as dr, type SignupAccountResponse as ds, type SignupMemberResponse as dt, type SiteDisableImpactResponse as du, SiteDnsRecordType as dv, type SiteDomainConfigResponse as dw, type SiteSortField as dx, type SiteVerificationResponse as dy, type SmsSendActionParams as dz, type AccountResponse as e, type WebhookActionParams as e0, type WebhookLogSortField as e1, type WebhookLogsQueryParams as e2, type WorkflowSortField as e3, type WorkspaceSortField as e4, decodePermissions as e5, encodePermissions as e6, eventRuleActionParams as e7, type CreateInquiryInput as e8, CreateInquirySchema as e9, type AdminAccountFormData as eA, type AdminAccountMembership as eB, type AdminAccountMembershipResponse as eC, type AdminAccountOrgMembershipResponse as eD, type AdminOrganization as eE, type AdminOrganizationResponse as eF, type AdminWorkspaceMemberFormData as eG, type ConsentRecordExport as eH, type DataExportResponse as eI, type DeletionCancelResponse as eJ, type DeletionRequestResponse as eK, type TwoFactorMethodResponse$1 as eL, type TwoFactorStatusResponse$1 as eM, type OIDCAdminConfigInput as eN, type OrgMembershipExport as eO, type TwoFactorMethodResponse as eP, type TwoFactorMethodType as eQ, type TwoFactorStatusResponse as eR, type WebAuthnRegistrationResponse as eS, type WorkspaceMembershipExport as eT, type EventRuleResponse$1 as eU, type OrgDomainListResponse as eV, type EmailDnsRecord as eW, type EmailDomainConfigGetResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type CreateMilestoneInput as ea, CreateMilestoneSchema as eb, type DeleteInquiryInput as ec, DeleteInquirySchema as ed, type DeleteMilestoneInput as ee, DeleteMilestoneSchema as ef, type EnrichInquiryInput as eg, EnrichInquirySchema as eh, type GetInquiryInput as ei, GetInquirySchema as ej, type GetMilestoneInput as ek, GetMilestoneSchema as el, type ListInquiriesInput as em, ListInquiriesSchema as en, type ListMilestonesInput as eo, ListMilestonesSchema as ep, type MilestoneFormData as eq, MilestoneFormDataSchema as er, MilestoneGoalFormDataSchema as es, type UpdateInquiryInput as et, UpdateInquiryRequestSchema as eu, UpdateInquirySchema as ev, type UpdateMilestoneInput as ew, UpdateMilestoneSchema as ex, type AccountDataExport as ey, type AdminAccountResponse as ez, type AccountFormData as f, type AccountLookupResponse as g, type AccountReportItem as h, type AccountSortField as i, type AccountState as j, type Address as k, type AdminWorkspaceSortField as l, type AgentResponse as m, type AgentConfigResponse as n, type AgentConfigFormData as o, type AgentMemoryConfig as p, type AgentSortField as q, type AnonymousInteractionResponse as r, type AnonymousMemberResolutionResponse as s, type AnonymousMemberResolutionStatus as t, type ApiKeyResponse as u, type ApiKeyCreatedResponse as v, type ApiKeyFormData as w, type ApiKeyScope as x, type ApiKeyScopesResponse as y, type AssignmentSortField as z };
@@ -3558,4 +3558,4 @@ type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
3558
3558
  type EnrichInquiryInput = z.infer<typeof EnrichInquirySchema>;
3559
3559
  type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
3560
3560
 
3561
- export { type BusinessProfileCancelResponse as $, AccessLevel as A, type ApiKeyCreatedResponse as B, type ApiKeyFormData as C, type ApiKeyScope as D, type ApiKeyScopesResponse as E, type AssignmentSortField as F, type AssistantMessageActionParams as G, type AttendeeResponse as H, AttendeeResponseStatus as I, AttendeeStatus as J, type AuthorizedRep as K, type AvailabilityCheck as L, type AvailabilityResponse as M, type AvailableSlotsRequest as N, type AvailableSlotsResponse as O, type BotSortField as P, type BulkCreateDataRecordRequest as Q, type BulkCreateDataRecordResponse as R, type BulkCreateMembersRequest as S, type BulkCreateMembersResponse as T, type BulkMemberItem as U, type BulkMemberResult as V, type WorkspaceMemberResponse as W, BulkMemberResultStatus as X, type BulkRecordResult as Y, BusinessIndustry as Z, type BusinessInfo as _, type AccountResponse as a, type DataTypeFormData as a$, type BusinessProfileSubmitResponse as a0, BusinessType as a1, type Calendar as a2, type EventResponse as a3, type CalendarEventFormData as a4, type CalendarEventSortField as a5, CalendarEventStatus as a6, type EventTypeResponse as a7, type CalendarEventTypeFormData as a8, type CalendarEventsQueryParams as a9, type CreateWorkspaceMemberRequest as aA, type CredentialChangeInviteConfirmResponse as aB, type CredentialChangeInviteDetailsResponse as aC, type CredentialChangeInviteResponse as aD, type CredentialChangeRequestResponse as aE, type CredentialChangeVerifyResponse as aF, type CredentialType as aG, type CurrentMemberResponse as aH, type CurrentOrgMember as aI, type CursorPaginatedResponse as aJ, DataCategory as aK, type DataExportResponse as aL, type DataField as aM, type DataFieldFormData as aN, DataFieldType as aO, type DataIntegrityReportItem as aP, type DataRecordResponse as aQ, type DataRecordAssociationFormData as aR, type DataRecordFieldWarning as aS, type DataRecordFormData as aT, type DataRecordReportItem as aU, type DataRecordUpdateResponse as aV, type DataRecordWithAccessMode as aW, type DataRecordsPaginatedResponse as aX, DataSensitivity as aY, type DataTypeResponse as aZ, type DataTypeExportItem as a_, type CalendarFormData as aa, CalendarPermissionType as ab, type CalendarResponse as ac, type CalendarSchedule as ad, CalendarScheduleAvailabilityType as ae, type CalendarScheduleFormData as af, CalendarScheduleRecurrence as ag, type CalendarScheduleResponse as ah, CalendarSource as ai, type CancelCredentialChangeInviteResponse as aj, type CancelCredentialChangeResponse as ak, type ChatContinueActionParams as al, type ChatCreateActionParams as am, type ChatPauseActionParams as an, type ChatSortField as ao, type ChatSummarizeActionParams as ap, type ConcludeAssignmentActionParams as aq, type ConsentRecordExport as ar, type CreateAccountOrgMembershipRequest as as, type CreateAccountOrgMembershipResponse as at, type CreateAgentRequest as au, type CreateAnonymousMemberRequest as av, type CreateCredentialChangeInviteRequest as aw, type CreateOrganizationRequest as ax, type CreateRoutineRequest as ay, type CreateSignupResponse as az, type AccountDataExport as b, type MemberFieldDefinitionResponse as b$, type DataTypeMemberRoleAccessInput as b0, type DataTypeMemberRoleAccessResponse as b1, DataTypeRecordScope as b2, type DataTypeSortField as b3, type DeleteAccountOrgMembershipResponse as b4, type DeletionCancelResponse as b5, type DeletionRequestResponse as b6, type DetailedAccount as b7, type DuplicateAccountInfo as b8, type EcwRefreshMemberEncountersActionParams as b9, type MemoryResponse$1 as bA, type OrgDomainResponse as bB, type OwnershipDnsRecord as bC, type TwoFactorMethodResponse$1 as bD, type TwoFactorStatusResponse$1 as bE, type GoogleCalendarInfo as bF, type GoogleCalendarInsufficientScopesResponse as bG, type GoogleCalendarStatusResponse as bH, type ICalFeedTokenResponse as bI, type ICalFeedUrlResponse as bJ, IndexStatus as bK, type IndexStatusResponse as bL, type InvokeCustomToolActionParams as bM, JobPosition as bN, type JourneyEnrollActionParams as bO, type JourneySortField as bP, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bQ, type LinkCalendarRequest as bR, type LinkCalendarResponse as bS, type LoginRequest as bT, type LoginResponse as bU, type LogoUploadRequest as bV, type LogoUploadResponse as bW, MASKED_SECRET_SENTINEL as bX, type McpServerSortField as bY, type MemberCredentialResponse as bZ, type MemberFieldResponse as b_, type EmailDisableImpactResponse as ba, EmailDnsRecordType as bb, type EmailDomainConfigResponse as bc, type EmailSendActionParams as bd, type EmailVerificationResponse as be, type EnumOption as bf, type ErrorResponse as bg, type EventActionMapping as bh, type EventActionMappingsResponse as bi, type EventRule as bj, EventRuleActionType as bk, EventRuleEventType as bl, type EventRuleExportItem as bm, type EventRuleFormData as bn, type EventRuleInput as bo, EventRuleObjectType as bp, type EventRuleResponse as bq, type EventRunSortField as br, type ExpireAnonymousMemberRequest as bs, type FileSortField as bt, type FormFieldUpdateActionParams as bu, type GenerateRecoveryCodesRequest as bv, type BusinessProfileResponse as bw, type CalendarResponse$1 as bx, type CalendarScheduleResponse$1 as by, type MemoryListResponse as bz, type AccountFormData as c, PERMISSION_DELETE as c$, type MemberFieldDefinitionListResponse as c0, type MemberFieldListResponse as c1, type MemberFilterResponse as c2, type MemberFilterFilterType as c3, type MemberFilterFormData as c4, type MemberFilterObjectType as c5, type MemberFilterRuleResponse as c6, type MemberFilterRuleFormData as c7, type MemberFormData as c8, type MemberLabelResponse as c9, type MergeMembersRequest as cA, type MergeMembersResponse as cB, type MessageValidationActionParams as cC, type MilestoneSortField as cD, type MissingMembershipItem as cE, type MondayColumnMapping as cF, type MondayLookupType as cG, type MondayRefreshActionParams as cH, type MondayRefreshColumnMapping as cI, type MondayUpsertItemActionParams as cJ, type MondayUpsertMode as cK, type MultiMatchBehavior as cL, type NormalizeMemberRequest as cM, type NormalizeMemberResponse as cN, type OIDCAdminConfigInput as cO, type OIDCAdminConfigView as cP, OIDCAdminConfigViewProviderType as cQ, type ObjectPermission as cR, type ObjectPermissionFlags as cS, type OrgMember as cT, type OrgMemberListResponse as cU, type OrgMemberRole as cV, type OrgMembershipExport as cW, type OrganizationResponse as cX, type OwnershipVerificationResponse as cY, PERMISSION_ADMIN as cZ, PERMISSION_CREATE as c_, type MemberLabelActionParams as ca, type MemberLabelFormData as cb, type MemberMemoriesResponse as cc, type MemberMessageActivity as cd, type MemberOrgView as ce, type MemberReportItem as cf, type MemberRoleResponse as cg, type MemberRoleCalendarAccessResponse as ch, type MemberRoleDataTypeAccessResponse as ci, type MemberRoleFileAccessResponse as cj, type MemberRoleFolderAccessResponse as ck, type MemberRoleFormData as cl, type MemberRoleInboxAccessResponse as cm, type MemberRoleSiteAccessResponse as cn, type MemberRoleTaskAccess as co, type MemberRoleWorkflowAccessResponse as cp, type MemberSortField as cq, type MemberSummary as cr, MemberType as cs, type MemberUpsertActionParams as ct, type MemberUpsertBehavior as cu, type MemberWorkspaceInfo as cv, type MembersQueryParams as cw, type MemoryItem as cx, type MemoryResponse as cy, type MemoryType as cz, type AccountLookupResponse as d, type TwoFactorMethodType as d$, PERMISSION_EDIT as d0, PERMISSION_GEOLOCATE as d1, PERMISSION_LIST as d2, PERMISSION_LIST_ALL as d3, PERMISSION_NONE as d4, PERMISSION_USE as d5, PERMISSION_VERIFY as d6, type PageSortField as d7, type PaginatedResponse as d8, type PendingAnonymousMembersResponse as d9, type SchedulePreviewRequest as dA, type SchedulePreviewResponse as dB, type SchemaField as dC, Scope as dD, type SendEmailVerificationRequest as dE, type SessionExchangeRequest as dF, type SessionExchangeResponse as dG, type SetupTOTPRequest as dH, type SetupWebAuthnRequest as dI, type SignupAccountResponse as dJ, type SignupMemberResponse as dK, type SiteDisableImpactResponse as dL, SiteDnsRecordType as dM, type SiteDomainConfigResponse as dN, type SiteSortField as dO, type SiteVerificationResponse as dP, type SmsSendActionParams as dQ, type SortOrder as dR, type SwitchTaskActionParams as dS, type SyncCalendarResponse as dT, type TOTPSetupResponse as dU, type TaskExportDataTypeRelation as dV, type TaskExportEventRuleRelation as dW, type TaskSortField as dX, type TimeSlot as dY, type TwoFactorMethod as dZ, type TwoFactorMethodResponse as d_, type PendingCredentialChangeResponse as da, type PendingCredentialChangeInviteResponse as db, type PhoneCallActionParams as dc, type PlayAudioActionParams as dd, type QualificationSortField as de, type RecoveryCodeResponse as df, Region as dg, RegistrationIdentifier as dh, type RequestCredentialChangeRequest as di, type RequestMagicLinkRequest as dj, type RequestMagicLinkResponse as dk, type ResolveAnonymousMemberRequest as dl, type Routine as dm, type RoutineResponse as dn, type RoutineRunResponse as dp, type RoutineRunStatus as dq, type RoutineRunsQueryParams as dr, type RoutineScheduleMode as ds, type RoutineSortField as dt, type RoutineVisibility as du, type RoutinesQueryParams as dv, type RuleExecutionSortField as dw, type RuleExecutionsQueryParams as dx, type SendLoginCodeResponse as dy, type SSOConfigData as dz, type AccountReportItem as e, type TwoFactorOperationResponse as e0, type TwoFactorStatus as e1, type TwoFactorStatusResponse as e2, type UnlinkCalendarResponse as e3, type UpdateAgentRequest as e4, type UpdateAttendeeRequest as e5, type UpdateEventRuleFormData as e6, type UpdateOrgMemberRequest as e7, type UpdateOrganizationRequest as e8, type UpdateRoutineRequest as e9, type DeleteMilestoneInput as eA, DeleteMilestoneSchema as eB, type EnrichInquiryInput as eC, EnrichInquirySchema as eD, type GetInquiryInput as eE, GetInquirySchema as eF, type GetMilestoneInput as eG, GetMilestoneSchema as eH, type ListInquiriesInput as eI, ListInquiriesSchema as eJ, type ListMilestonesInput as eK, ListMilestonesSchema as eL, type MilestoneFormData as eM, MilestoneFormDataSchema as eN, MilestoneGoalFormDataSchema as eO, type UpdateInquiryInput as eP, UpdateInquiryRequestSchema as eQ, UpdateInquirySchema as eR, type UpdateMilestoneInput as eS, UpdateMilestoneSchema as eT, type EventRuleResponse$1 as eU, type EmailDnsRecord as eV, type EmailDomainConfigGetResponse as eW, type OrgDomainListResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type UpdateTwoFactorMethodRequest as ea, type UpdateWorkspaceMemberRequest as eb, type ValidateMagicLinkRequest as ec, type ValidateMagicLinkResponse as ed, type VerifyCodeRequest as ee, type VerifyCodeResponse as ef, type VerifyCredentialChangeRequest as eg, type VerifyEmailRequest as eh, type VerifyTOTPSetupRequest as ei, type VerifyWebAuthnSetupRequest as ej, type WebAuthnRegistrationResponse as ek, type WebhookActionParams as el, type WebhookLogSortField as em, type WebhookLogsQueryParams as en, type WorkflowSortField as eo, type WorkspaceMembershipExport as ep, type WorkspaceSortField as eq, decodePermissions as er, encodePermissions as es, eventRuleActionParams as et, type CreateInquiryInput as eu, CreateInquirySchema as ev, type CreateMilestoneInput as ew, CreateMilestoneSchema as ex, type DeleteInquiryInput as ey, DeleteInquirySchema as ez, type AccountSortField as f, type AccountState as g, type Address as h, type AdminAccountResponse as i, type AdminAccountFormData as j, type AdminAccountMembership as k, type AdminAccountMembershipResponse as l, type AdminAccountOrgMembershipResponse as m, type AdminOrganization as n, type AdminOrganizationResponse as o, type AdminWorkspaceMemberFormData as p, type AdminWorkspaceSortField as q, type AgentResponse as r, type AgentConfigResponse as s, type AgentConfigFormData as t, type AgentMemoryConfig as u, type AgentSortField as v, type AnonymousInteractionResponse as w, type AnonymousMemberResolutionResponse as x, type AnonymousMemberResolutionStatus as y, type ApiKeyResponse as z };
3561
+ export { type Calendar as $, AccessLevel as A, type AssistantMessageActionParams as B, type AttendeeResponse as C, type DataFieldFormData as D, EventRuleEventType as E, AttendeeResponseStatus as F, AttendeeStatus as G, type AuthorizedRep as H, type AvailabilityCheck as I, type AvailabilityResponse as J, type AvailableSlotsRequest as K, type AvailableSlotsResponse as L, type MemberFilterRuleFormData as M, type BotSortField as N, type BulkCreateDataRecordRequest as O, type BulkCreateDataRecordResponse as P, type BulkCreateMembersRequest as Q, type BulkCreateMembersResponse as R, type BulkMemberItem as S, type BulkMemberResult as T, BulkMemberResultStatus as U, type BulkRecordResult as V, BusinessIndustry as W, type BusinessInfo as X, type BusinessProfileCancelResponse as Y, type BusinessProfileSubmitResponse as Z, BusinessType as _, EventRuleActionType as a, type DuplicateAccountInfo as a$, type EventResponse as a0, type CalendarEventFormData as a1, type CalendarEventSortField as a2, CalendarEventStatus as a3, type EventTypeResponse as a4, type CalendarEventTypeFormData as a5, type CalendarEventsQueryParams as a6, type CalendarFormData as a7, CalendarPermissionType as a8, type CalendarResponse as a9, type CredentialChangeRequestResponse as aA, type CredentialChangeVerifyResponse as aB, type CredentialType as aC, type CurrentMemberResponse as aD, type CurrentOrgMember as aE, type CursorPaginatedResponse as aF, DataCategory as aG, type DataField as aH, type DataIntegrityReportItem as aI, type DataRecordResponse as aJ, type DataRecordAssociationFormData as aK, type DataRecordFieldWarning as aL, type DataRecordFormData as aM, type DataRecordReportItem as aN, type DataRecordUpdateResponse as aO, type DataRecordWithAccessMode as aP, type DataRecordsPaginatedResponse as aQ, DataSensitivity as aR, type DataTypeResponse as aS, type DataTypeExportItem as aT, type DataTypeFormData as aU, type DataTypeMemberRoleAccessInput as aV, type DataTypeMemberRoleAccessResponse as aW, DataTypeRecordScope as aX, type DataTypeSortField as aY, type DeleteAccountOrgMembershipResponse as aZ, type DetailedAccount as a_, type CalendarSchedule as aa, CalendarScheduleAvailabilityType as ab, type CalendarScheduleFormData as ac, CalendarScheduleRecurrence as ad, type CalendarScheduleResponse as ae, CalendarSource as af, type CancelCredentialChangeInviteResponse as ag, type CancelCredentialChangeResponse as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateOrganizationRequest as at, type CreateRoutineRequest as au, type CreateSignupResponse as av, type CreateWorkspaceMemberRequest as aw, type CredentialChangeInviteConfirmResponse as ax, type CredentialChangeInviteDetailsResponse as ay, type CredentialChangeInviteResponse as az, DataFieldType as b, type MemberOrgView as b$, type EcwRefreshMemberEncountersActionParams as b0, type EmailDisableImpactResponse as b1, EmailDnsRecordType as b2, type EmailDomainConfigResponse as b3, type EmailSendActionParams as b4, type EmailVerificationResponse as b5, type EnumOption as b6, type ErrorResponse as b7, type EventActionMapping as b8, type EventActionMappingsResponse as b9, JobPosition as bA, type JourneyEnrollActionParams as bB, type JourneySortField as bC, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bD, type LinkCalendarRequest as bE, type LinkCalendarResponse as bF, type LoginRequest as bG, type LoginResponse as bH, type LogoUploadRequest as bI, type LogoUploadResponse as bJ, MASKED_SECRET_SENTINEL as bK, type McpServerSortField as bL, type WorkspaceMemberResponse as bM, type MemberCredentialResponse as bN, type MemberFieldResponse as bO, type MemberFieldDefinitionResponse as bP, type MemberFieldDefinitionListResponse as bQ, type MemberFieldListResponse as bR, type MemberFilterResponse as bS, type MemberFilterFormData as bT, type MemberFilterRuleResponse as bU, type MemberFormData as bV, type MemberLabelResponse as bW, type MemberLabelActionParams as bX, type MemberLabelFormData as bY, type MemberMemoriesResponse as bZ, type MemberMessageActivity as b_, type EventRule as ba, type EventRuleExportItem as bb, type EventRuleFormData as bc, type EventRuleInput as bd, EventRuleObjectType as be, type EventRuleResponse as bf, type EventRunSortField as bg, type ExpireAnonymousMemberRequest as bh, type FileSortField as bi, type FormFieldUpdateActionParams as bj, type GenerateRecoveryCodesRequest as bk, type BusinessProfileResponse as bl, type CalendarResponse$1 as bm, type CalendarScheduleResponse$1 as bn, type MemoryListResponse as bo, type MemoryResponse$1 as bp, type OrgDomainResponse as bq, type OwnershipDnsRecord as br, type GoogleCalendarInfo as bs, type GoogleCalendarInsufficientScopesResponse as bt, type GoogleCalendarStatusResponse as bu, type ICalFeedTokenResponse as bv, type ICalFeedUrlResponse as bw, IndexStatus as bx, type IndexStatusResponse as by, type InvokeCustomToolActionParams as bz, type MemberFilterObjectType as c, Region as c$, type MemberReportItem as c0, type MemberRoleResponse as c1, type MemberRoleCalendarAccessResponse as c2, type MemberRoleDataTypeAccessResponse as c3, type MemberRoleFileAccessResponse as c4, type MemberRoleFolderAccessResponse as c5, type MemberRoleFormData as c6, type MemberRoleInboxAccessResponse as c7, type MemberRoleSiteAccessResponse as c8, type MemberRoleTaskAccess as c9, OIDCAdminConfigViewProviderType as cA, type ObjectPermission as cB, type ObjectPermissionFlags as cC, type OrgMember as cD, type OrgMemberListResponse as cE, type OrgMemberRole as cF, type OrganizationResponse as cG, type OwnershipVerificationResponse as cH, PERMISSION_ADMIN as cI, PERMISSION_CREATE as cJ, PERMISSION_DELETE as cK, PERMISSION_EDIT as cL, PERMISSION_GEOLOCATE as cM, PERMISSION_LIST as cN, PERMISSION_LIST_ALL as cO, PERMISSION_NONE as cP, PERMISSION_USE as cQ, PERMISSION_VERIFY as cR, type PageSortField as cS, type PaginatedResponse as cT, type PendingAnonymousMembersResponse as cU, type PendingCredentialChangeResponse as cV, type PendingCredentialChangeInviteResponse as cW, type PhoneCallActionParams as cX, type PlayAudioActionParams as cY, type QualificationSortField as cZ, type RecoveryCodeResponse as c_, type MemberRoleWorkflowAccessResponse as ca, type MemberSortField as cb, type MemberSummary as cc, MemberType as cd, type MemberUpsertActionParams as ce, type MemberUpsertBehavior as cf, type MemberWorkspaceInfo as cg, type MembersQueryParams as ch, type MemoryItem as ci, type MemoryResponse as cj, type MemoryType as ck, type MergeMembersRequest as cl, type MergeMembersResponse as cm, type MessageValidationActionParams as cn, type MilestoneSortField as co, type MissingMembershipItem as cp, type MondayColumnMapping as cq, type MondayLookupType as cr, type MondayRefreshActionParams as cs, type MondayRefreshColumnMapping as ct, type MondayUpsertItemActionParams as cu, type MondayUpsertMode as cv, type MultiMatchBehavior as cw, type NormalizeMemberRequest as cx, type NormalizeMemberResponse as cy, type OIDCAdminConfigView as cz, type MemberFilterFilterType as d, type VerifyWebAuthnSetupRequest as d$, RegistrationIdentifier as d0, type RequestCredentialChangeRequest as d1, type RequestMagicLinkRequest as d2, type RequestMagicLinkResponse as d3, type ResolveAnonymousMemberRequest as d4, type Routine as d5, type RoutineResponse as d6, type RoutineRunResponse as d7, type RoutineRunStatus as d8, type RoutineRunsQueryParams as d9, type SortOrder as dA, type SwitchTaskActionParams as dB, type SyncCalendarResponse as dC, type TOTPSetupResponse as dD, type TaskExportDataTypeRelation as dE, type TaskExportEventRuleRelation as dF, type TaskSortField as dG, type TimeSlot as dH, type TwoFactorMethod as dI, type TwoFactorOperationResponse as dJ, type TwoFactorStatus as dK, type UnlinkCalendarResponse as dL, type UpdateAgentRequest as dM, type UpdateAttendeeRequest as dN, type UpdateEventRuleFormData as dO, type UpdateOrgMemberRequest as dP, type UpdateOrganizationRequest as dQ, type UpdateRoutineRequest as dR, type UpdateTwoFactorMethodRequest as dS, type UpdateWorkspaceMemberRequest as dT, type ValidateMagicLinkRequest as dU, type ValidateMagicLinkResponse as dV, type VerifyCodeRequest as dW, type VerifyCodeResponse as dX, type VerifyCredentialChangeRequest as dY, type VerifyEmailRequest as dZ, type VerifyTOTPSetupRequest as d_, type RoutineScheduleMode as da, type RoutineSortField as db, type RoutineVisibility as dc, type RoutinesQueryParams as dd, type RuleExecutionSortField as de, type RuleExecutionsQueryParams as df, type SendLoginCodeResponse as dg, type SSOConfigData as dh, type SchedulePreviewRequest as di, type SchedulePreviewResponse as dj, type SchemaField as dk, Scope as dl, type SendEmailVerificationRequest as dm, type SessionExchangeRequest as dn, type SessionExchangeResponse as dp, type SetupTOTPRequest as dq, type SetupWebAuthnRequest as dr, type SignupAccountResponse as ds, type SignupMemberResponse as dt, type SiteDisableImpactResponse as du, SiteDnsRecordType as dv, type SiteDomainConfigResponse as dw, type SiteSortField as dx, type SiteVerificationResponse as dy, type SmsSendActionParams as dz, type AccountResponse as e, type WebhookActionParams as e0, type WebhookLogSortField as e1, type WebhookLogsQueryParams as e2, type WorkflowSortField as e3, type WorkspaceSortField as e4, decodePermissions as e5, encodePermissions as e6, eventRuleActionParams as e7, type CreateInquiryInput as e8, CreateInquirySchema as e9, type AdminAccountFormData as eA, type AdminAccountMembership as eB, type AdminAccountMembershipResponse as eC, type AdminAccountOrgMembershipResponse as eD, type AdminOrganization as eE, type AdminOrganizationResponse as eF, type AdminWorkspaceMemberFormData as eG, type ConsentRecordExport as eH, type DataExportResponse as eI, type DeletionCancelResponse as eJ, type DeletionRequestResponse as eK, type TwoFactorMethodResponse$1 as eL, type TwoFactorStatusResponse$1 as eM, type OIDCAdminConfigInput as eN, type OrgMembershipExport as eO, type TwoFactorMethodResponse as eP, type TwoFactorMethodType as eQ, type TwoFactorStatusResponse as eR, type WebAuthnRegistrationResponse as eS, type WorkspaceMembershipExport as eT, type EventRuleResponse$1 as eU, type OrgDomainListResponse as eV, type EmailDnsRecord as eW, type EmailDomainConfigGetResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type CreateMilestoneInput as ea, CreateMilestoneSchema as eb, type DeleteInquiryInput as ec, DeleteInquirySchema as ed, type DeleteMilestoneInput as ee, DeleteMilestoneSchema as ef, type EnrichInquiryInput as eg, EnrichInquirySchema as eh, type GetInquiryInput as ei, GetInquirySchema as ej, type GetMilestoneInput as ek, GetMilestoneSchema as el, type ListInquiriesInput as em, ListInquiriesSchema as en, type ListMilestonesInput as eo, ListMilestonesSchema as ep, type MilestoneFormData as eq, MilestoneFormDataSchema as er, MilestoneGoalFormDataSchema as es, type UpdateInquiryInput as et, UpdateInquiryRequestSchema as eu, UpdateInquirySchema as ev, type UpdateMilestoneInput as ew, UpdateMilestoneSchema as ex, type AccountDataExport as ey, type AdminAccountResponse as ez, type AccountFormData as f, type AccountLookupResponse as g, type AccountReportItem as h, type AccountSortField as i, type AccountState as j, type Address as k, type AdminWorkspaceSortField as l, type AgentResponse as m, type AgentConfigResponse as n, type AgentConfigFormData as o, type AgentMemoryConfig as p, type AgentSortField as q, type AnonymousInteractionResponse as r, type AnonymousMemberResolutionResponse as s, type AnonymousMemberResolutionStatus as t, type ApiKeyResponse as u, type ApiKeyCreatedResponse as v, type ApiKeyFormData as w, type ApiKeyScope as x, type ApiKeyScopesResponse as y, type AssignmentSortField as z };