@elevasis/sdk 1.33.1 → 1.34.1

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.d.ts CHANGED
@@ -426,7 +426,7 @@ type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
426
426
  /**
427
427
  * Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
428
428
  */
429
- type AnthropicModel = 'claude-sonnet-4-5';
429
+ type AnthropicModel = 'claude-opus-4-8' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-sonnet-4-5';
430
430
  /** Supported LLM models */
431
431
  type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
432
432
  /**
@@ -469,9 +469,9 @@ declare const GoogleOptionsSchema: z.ZodObject<{
469
469
  }, z.core.$strip>;
470
470
  /**
471
471
  * Anthropic model options schema
472
- * Currently empty - future options: budget_tokens for extended thinking
472
+ * Currently empty - future options must be added per supported model family
473
473
  */
474
- declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strip>;
474
+ declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strict>;
475
475
  /**
476
476
  * Infer TypeScript types from schemas
477
477
  */
@@ -558,7 +558,7 @@ declare const WorkflowResourceEntrySchema$1: z.ZodObject<{
558
558
  }>>;
559
559
  }, z.core.$strip>>>;
560
560
  }, z.core.$strip>;
561
- declare const AgentResourceEntrySchema: z.ZodObject<{
561
+ declare const AgentResourceEntrySchema$1: z.ZodObject<{
562
562
  id: z.ZodString;
563
563
  order: z.ZodDefault<z.ZodNumber>;
564
564
  systemPath: z.ZodString;
@@ -860,7 +860,7 @@ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
860
860
  }, z.core.$strip>], "kind">;
861
861
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
862
862
  type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema$1>;
863
- type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
863
+ type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema$1>;
864
864
  type ResourceEntry$1 = z.infer<typeof ResourceEntrySchema$1>;
865
865
 
866
866
  /**
@@ -3537,6 +3537,138 @@ type Database = {
3537
3537
  };
3538
3538
  Relationships: [];
3539
3539
  };
3540
+ agent_access_grants: {
3541
+ Row: {
3542
+ allowed_origins: string[];
3543
+ branding: Json;
3544
+ capture_fields: Json;
3545
+ code_hash: string | null;
3546
+ code_salt: string | null;
3547
+ created_at: string;
3548
+ disabled_at: string | null;
3549
+ expires_at: string | null;
3550
+ id: string;
3551
+ max_sessions_per_visitor: number;
3552
+ max_turns_per_session: number;
3553
+ mode: string;
3554
+ organization_id: string;
3555
+ resource_id: string;
3556
+ slug: string;
3557
+ tool_policy: Json;
3558
+ updated_at: string;
3559
+ };
3560
+ Insert: {
3561
+ allowed_origins?: string[];
3562
+ branding?: Json;
3563
+ capture_fields?: Json;
3564
+ code_hash?: string | null;
3565
+ code_salt?: string | null;
3566
+ created_at?: string;
3567
+ disabled_at?: string | null;
3568
+ expires_at?: string | null;
3569
+ id?: string;
3570
+ max_sessions_per_visitor?: number;
3571
+ max_turns_per_session?: number;
3572
+ mode?: string;
3573
+ organization_id: string;
3574
+ resource_id: string;
3575
+ slug: string;
3576
+ tool_policy?: Json;
3577
+ updated_at?: string;
3578
+ };
3579
+ Update: {
3580
+ allowed_origins?: string[];
3581
+ branding?: Json;
3582
+ capture_fields?: Json;
3583
+ code_hash?: string | null;
3584
+ code_salt?: string | null;
3585
+ created_at?: string;
3586
+ disabled_at?: string | null;
3587
+ expires_at?: string | null;
3588
+ id?: string;
3589
+ max_sessions_per_visitor?: number;
3590
+ max_turns_per_session?: number;
3591
+ mode?: string;
3592
+ organization_id?: string;
3593
+ resource_id?: string;
3594
+ slug?: string;
3595
+ tool_policy?: Json;
3596
+ updated_at?: string;
3597
+ };
3598
+ Relationships: [
3599
+ {
3600
+ foreignKeyName: "agent_access_grants_organization_id_fkey";
3601
+ columns: ["organization_id"];
3602
+ isOneToOne: false;
3603
+ referencedRelation: "organizations";
3604
+ referencedColumns: ["id"];
3605
+ }
3606
+ ];
3607
+ };
3608
+ agent_chat_capabilities: {
3609
+ Row: {
3610
+ created_at: string;
3611
+ expires_at: string;
3612
+ grant_id: string;
3613
+ id: string;
3614
+ organization_id: string;
3615
+ origin: string | null;
3616
+ resource_id: string;
3617
+ revoked_at: string | null;
3618
+ session_id: string | null;
3619
+ token_hash: string;
3620
+ visitor_id: string | null;
3621
+ };
3622
+ Insert: {
3623
+ created_at?: string;
3624
+ expires_at: string;
3625
+ grant_id: string;
3626
+ id?: string;
3627
+ organization_id: string;
3628
+ origin?: string | null;
3629
+ resource_id: string;
3630
+ revoked_at?: string | null;
3631
+ session_id?: string | null;
3632
+ token_hash: string;
3633
+ visitor_id?: string | null;
3634
+ };
3635
+ Update: {
3636
+ created_at?: string;
3637
+ expires_at?: string;
3638
+ grant_id?: string;
3639
+ id?: string;
3640
+ organization_id?: string;
3641
+ origin?: string | null;
3642
+ resource_id?: string;
3643
+ revoked_at?: string | null;
3644
+ session_id?: string | null;
3645
+ token_hash?: string;
3646
+ visitor_id?: string | null;
3647
+ };
3648
+ Relationships: [
3649
+ {
3650
+ foreignKeyName: "agent_chat_capabilities_grant_id_fkey";
3651
+ columns: ["grant_id"];
3652
+ isOneToOne: false;
3653
+ referencedRelation: "agent_access_grants";
3654
+ referencedColumns: ["id"];
3655
+ },
3656
+ {
3657
+ foreignKeyName: "agent_chat_capabilities_organization_id_fkey";
3658
+ columns: ["organization_id"];
3659
+ isOneToOne: false;
3660
+ referencedRelation: "organizations";
3661
+ referencedColumns: ["id"];
3662
+ },
3663
+ {
3664
+ foreignKeyName: "agent_chat_capabilities_session_id_fkey";
3665
+ columns: ["session_id"];
3666
+ isOneToOne: false;
3667
+ referencedRelation: "sessions";
3668
+ referencedColumns: ["session_id"];
3669
+ }
3670
+ ];
3671
+ };
3540
3672
  organizations: {
3541
3673
  Row: {
3542
3674
  config: Json;
@@ -6546,7 +6678,7 @@ declare const OntologyGroupSchema: z.ZodObject<{
6546
6678
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6547
6679
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6548
6680
  }, z.core.$loose>;
6549
- declare const OntologySurfaceTypeSchema: z.ZodObject<{
6681
+ declare const OntologyEndpointTypeSchema: z.ZodObject<{
6550
6682
  id: z.ZodString;
6551
6683
  label: z.ZodOptional<z.ZodString>;
6552
6684
  description: z.ZodOptional<z.ZodString>;
@@ -6637,7 +6769,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
6637
6769
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6638
6770
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6639
6771
  }, z.core.$loose>>>>;
6640
- surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6772
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6641
6773
  id: z.ZodString;
6642
6774
  label: z.ZodOptional<z.ZodString>;
6643
6775
  description: z.ZodOptional<z.ZodString>;
@@ -6655,7 +6787,7 @@ type OntologyInterfaceType = z.infer<typeof OntologyInterfaceTypeSchema>;
6655
6787
  type OntologyValueType = z.infer<typeof OntologyValueTypeSchema>;
6656
6788
  type OntologySharedProperty = z.infer<typeof OntologySharedPropertySchema>;
6657
6789
  type OntologyGroup = z.infer<typeof OntologyGroupSchema>;
6658
- type OntologySurfaceType = z.infer<typeof OntologySurfaceTypeSchema>;
6790
+ type OntologyEndpointType = z.infer<typeof OntologyEndpointTypeSchema>;
6659
6791
  type OntologyScope = z.infer<typeof OntologyScopeSchema>;
6660
6792
  type ResolvedOntologyIndex = {
6661
6793
  objectTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyObjectType>>;
@@ -6667,7 +6799,7 @@ type ResolvedOntologyIndex = {
6667
6799
  valueTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyValueType>>;
6668
6800
  sharedProperties: Record<OntologyId, ResolvedOntologyRecord<OntologySharedProperty>>;
6669
6801
  groups: Record<OntologyId, ResolvedOntologyRecord<OntologyGroup>>;
6670
- surfaces: Record<OntologyId, ResolvedOntologyRecord<OntologySurfaceType>>;
6802
+ endpoints: Record<OntologyId, ResolvedOntologyRecord<OntologyEndpointType>>;
6671
6803
  };
6672
6804
  type OntologyRecordOrigin = {
6673
6805
  kind: 'authored' | 'projected';
@@ -7334,7 +7466,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
7334
7466
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7335
7467
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7336
7468
  }, z.core.$loose>>>>;
7337
- surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7469
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7338
7470
  id: z.ZodString;
7339
7471
  label: z.ZodOptional<z.ZodString>;
7340
7472
  description: z.ZodOptional<z.ZodString>;
@@ -12262,6 +12394,19 @@ declare const WorkflowResourceEntrySchema = ResourceEntryBaseSchema.extend({
12262
12394
  emits: z.array(EventEmissionDescriptorSchema).optional()
12263
12395
  })
12264
12396
 
12397
+ declare const AgentResourceEntrySchema = ResourceEntryBaseSchema.extend({
12398
+ kind: z.literal('agent'),
12399
+ /** Mirrors code-side AgentConfig.kind. */
12400
+ agentKind: AgentKindSchema,
12401
+ /** Role this agent embodies, if any. */
12402
+ actsAsRoleId: ModelIdSchema.meta({ ref: 'role' }).optional(),
12403
+ /** Mirrors AgentConfig.sessionCapable. */
12404
+ sessionCapable: z.boolean(),
12405
+ /** Broad/composite callable entry points orchestrated by this agent. */
12406
+ invocations: z.array(ActionInvocationSchema).default([]),
12407
+ emits: z.array(EventEmissionDescriptorSchema).optional()
12408
+ })
12409
+
12265
12410
  declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
12266
12411
  kind: z.literal('integration'),
12267
12412
  provider: z.string().trim().min(1).max(100)
@@ -12449,6 +12594,7 @@ type OrganizationModel = z.infer<typeof OrganizationModelSchema>
12449
12594
  type OrganizationModelResourceEntry = z.infer<typeof ResourceEntrySchema>
12450
12595
  type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
12451
12596
  type OrganizationModelWorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>
12597
+ type OrganizationModelAgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>
12452
12598
  type OrganizationModelIntegrationResourceEntry = z.infer<typeof IntegrationResourceEntrySchema>
12453
12599
  type OrganizationModelTopology = z.infer<typeof OmTopologyDomainSchema>
12454
12600
  type OrganizationModelTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>
@@ -12486,6 +12632,7 @@ type CrmStateKey = z.infer<typeof CrmStateKeySchema>
12486
12632
 
12487
12633
  type ResourceOntologyBindingResolver = (resourceId: string) => OrganizationModelResourceOntologyBinding | undefined;
12488
12634
  type WorkflowResourceDescriptorResolver = (resourceId: string) => OrganizationModelWorkflowResourceEntry;
12635
+ type AgentResourceDescriptorResolver = (resourceId: string) => OrganizationModelAgentResourceEntry;
12489
12636
  type IntegrationResourceDescriptorResolver = (resourceId: string) => OrganizationModelIntegrationResourceEntry;
12490
12637
  interface ProjectDeploymentSpecOptions {
12491
12638
  version: string;
@@ -12497,6 +12644,7 @@ interface ProjectDeploymentSpecOptions {
12497
12644
  externalResources?: DeploymentSpec['externalResources'];
12498
12645
  humanCheckpoints?: DeploymentSpec['humanCheckpoints'];
12499
12646
  getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver;
12647
+ getAgentResourceDescriptor?: AgentResourceDescriptorResolver;
12500
12648
  getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver;
12501
12649
  getResourceOntologyBinding?: ResourceOntologyBindingResolver;
12502
12650
  }
@@ -12508,6 +12656,8 @@ declare function toSdkResourceDescriptor<TResource extends {
12508
12656
  };
12509
12657
  declare function withPlatformResourceDescriptor(workflow: WorkflowDefinition, getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): WorkflowDefinition;
12510
12658
  declare function withPlatformResourceDescriptors(workflows: WorkflowDefinition[], getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): WorkflowDefinition[];
12659
+ declare function withPlatformAgentResourceDescriptor(agent: AgentDefinition, getAgentResourceDescriptor: AgentResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): AgentDefinition;
12660
+ declare function withPlatformAgentResourceDescriptors(agents: AgentDefinition[], getAgentResourceDescriptor: AgentResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): AgentDefinition[];
12511
12661
  declare function withPlatformIntegrationResourceDescriptor(integration: IntegrationDefinition, getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): IntegrationDefinition;
12512
12662
  declare function withPlatformIntegrationResourceDescriptors(integrations: IntegrationDefinition[], getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): IntegrationDefinition[];
12513
12663
  declare function projectTopologyRelationships(model: Pick<OrganizationModel, 'resources' | 'topology'>): ResourceRelationships;
@@ -12545,5 +12695,5 @@ declare function defineWorkflowConfig<const TResourceId extends string>(resource
12545
12695
  declare const ListBuilderStageKeySchema: z.ZodString;
12546
12696
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
12547
12697
 
12548
- export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
12549
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action$1 as Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
12698
+ export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
12699
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action$1 as Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
package/dist/index.js CHANGED
@@ -31,16 +31,13 @@ var OntologyKindSchema = z.enum([
31
31
  "value-type",
32
32
  "property",
33
33
  "group",
34
- "surface"
34
+ "endpoint"
35
35
  ]);
36
36
  var SYSTEM_PATH_PATTERN = "[a-z0-9][a-z0-9-]*(?:\\.[a-z0-9][a-z0-9-]*)*";
37
37
  var LOCAL_ID_PATTERN = "[a-z0-9][a-z0-9._-]*";
38
38
  var ONTOLOGY_ID_PATTERN = `^(global|${SYSTEM_PATH_PATTERN}):(${OntologyKindSchema.options.join("|")})\\/(${LOCAL_ID_PATTERN})$`;
39
39
  var ONTOLOGY_ID_REGEX = new RegExp(ONTOLOGY_ID_PATTERN);
40
- var OntologyIdSchema = z.string().trim().min(1).max(300).regex(
41
- ONTOLOGY_ID_REGEX,
42
- "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>"
43
- );
40
+ var OntologyIdSchema = z.string().trim().min(1).max(300).regex(ONTOLOGY_ID_REGEX, "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>");
44
41
  function parseOntologyId(id) {
45
42
  const normalized = OntologyIdSchema.parse(id);
46
43
  const match = ONTOLOGY_ID_REGEX.exec(normalized);
@@ -103,7 +100,7 @@ var OntologySharedPropertySchema = OntologyRecordBaseSchema.extend({
103
100
  var OntologyGroupSchema = OntologyRecordBaseSchema.extend({
104
101
  members: OntologyReferenceListSchema
105
102
  });
106
- var OntologySurfaceTypeSchema = OntologyRecordBaseSchema.extend({
103
+ var OntologyEndpointTypeSchema = OntologyRecordBaseSchema.extend({
107
104
  route: z.string().trim().min(1).max(500).optional()
108
105
  });
109
106
  var OntologyScopeSchema = z.object({
@@ -116,7 +113,7 @@ var OntologyScopeSchema = z.object({
116
113
  valueTypes: z.record(OntologyIdSchema, OntologyValueTypeSchema).default({}).optional(),
117
114
  sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
118
115
  groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
119
- surfaces: z.record(OntologyIdSchema, OntologySurfaceTypeSchema).default({}).optional()
116
+ endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
120
117
  }).default({});
121
118
  var SCOPE_KIND = {
122
119
  objectTypes: "object",
@@ -128,7 +125,7 @@ var SCOPE_KIND = {
128
125
  valueTypes: "value-type",
129
126
  sharedProperties: "property",
130
127
  groups: "group",
131
- surfaces: "surface"
128
+ endpoints: "endpoint"
132
129
  };
133
130
  var SCOPE_KEYS = Object.keys(SCOPE_KIND);
134
131
  function originFromContext(context) {
@@ -151,7 +148,7 @@ function createEmptyIndex() {
151
148
  valueTypes: {},
152
149
  sharedProperties: {},
153
150
  groups: {},
154
- surfaces: {}
151
+ endpoints: {}
155
152
  };
156
153
  }
157
154
  function sortResolvedOntologyIndex(index) {
@@ -1430,17 +1427,38 @@ var GoogleConfigSchema = z.object({
1430
1427
  topP: z.number().min(0).max(1).optional(),
1431
1428
  modelOptions: GoogleOptionsSchema.optional()
1432
1429
  });
1433
- var AnthropicOptionsSchema = z.object({});
1434
- var AnthropicConfigSchema = z.object({
1435
- model: z.enum(["claude-sonnet-4-5"]),
1430
+ var AnthropicOptionsSchema = z.object({}).strict();
1431
+ var AnthropicStandardConfigSchema = z.object({
1432
+ model: z.enum([
1433
+ "claude-sonnet-4-6",
1434
+ "claude-haiku-4-5-20251001",
1435
+ "claude-haiku-4-5",
1436
+ "claude-sonnet-4-5"
1437
+ ]),
1436
1438
  provider: z.literal("anthropic"),
1437
1439
  apiKey: z.string(),
1438
1440
  temperature: z.number().min(0).max(1).optional(),
1439
- maxOutputTokens: z.number().min(1e3).optional(),
1441
+ maxOutputTokens: z.number().min(1e3).max(64e3).optional(),
1440
1442
  // Anthropic requires max_tokens
1441
1443
  topP: z.number().min(0).max(1).optional(),
1442
1444
  modelOptions: AnthropicOptionsSchema.optional()
1443
1445
  });
1446
+ var AnthropicOpus48ConfigSchema = z.object({
1447
+ model: z.literal("claude-opus-4-8"),
1448
+ provider: z.literal("anthropic"),
1449
+ apiKey: z.string(),
1450
+ temperature: z.literal(1).optional(),
1451
+ maxOutputTokens: z.number().min(1e3).max(128e3).optional(),
1452
+ // Anthropic requires max_tokens
1453
+ topP: z.literal(1).optional(),
1454
+ topK: z.undefined().optional(),
1455
+ top_k: z.undefined().optional(),
1456
+ modelOptions: AnthropicOptionsSchema.optional()
1457
+ });
1458
+ var AnthropicConfigSchema = z.discriminatedUnion("model", [
1459
+ AnthropicOpus48ConfigSchema,
1460
+ AnthropicStandardConfigSchema
1461
+ ]);
1444
1462
  var MODEL_INFO = {
1445
1463
  // OpenAI GPT-5 (Reasoning Models)
1446
1464
  "gpt-5": {
@@ -1533,6 +1551,58 @@ var MODEL_INFO = {
1533
1551
  configSchema: GoogleConfigSchema
1534
1552
  },
1535
1553
  // Anthropic Claude Models (direct SDK access via @anthropic-ai/sdk)
1554
+ "claude-opus-4-8": {
1555
+ inputCostPer1M: 500,
1556
+ // $5.00 per 1M tokens
1557
+ outputCostPer1M: 2500,
1558
+ // $25.00 per 1M tokens
1559
+ minTokens: 4e3,
1560
+ recommendedTokens: 8e3,
1561
+ maxTokens: 1e6,
1562
+ // 1M context window
1563
+ maxOutputTokens: 128e3,
1564
+ category: "reasoning",
1565
+ configSchema: AnthropicConfigSchema
1566
+ },
1567
+ "claude-sonnet-4-6": {
1568
+ inputCostPer1M: 300,
1569
+ // $3.00 per 1M tokens
1570
+ outputCostPer1M: 1500,
1571
+ // $15.00 per 1M tokens
1572
+ minTokens: 4e3,
1573
+ recommendedTokens: 8e3,
1574
+ maxTokens: 1e6,
1575
+ // 1M context window
1576
+ maxOutputTokens: 64e3,
1577
+ category: "standard",
1578
+ configSchema: AnthropicConfigSchema
1579
+ },
1580
+ "claude-haiku-4-5-20251001": {
1581
+ inputCostPer1M: 100,
1582
+ // $1.00 per 1M tokens
1583
+ outputCostPer1M: 500,
1584
+ // $5.00 per 1M tokens
1585
+ minTokens: 4e3,
1586
+ recommendedTokens: 8e3,
1587
+ maxTokens: 2e5,
1588
+ // 200k context window
1589
+ maxOutputTokens: 64e3,
1590
+ category: "standard",
1591
+ configSchema: AnthropicConfigSchema
1592
+ },
1593
+ "claude-haiku-4-5": {
1594
+ inputCostPer1M: 100,
1595
+ // $1.00 per 1M tokens
1596
+ outputCostPer1M: 500,
1597
+ // $5.00 per 1M tokens
1598
+ minTokens: 4e3,
1599
+ recommendedTokens: 8e3,
1600
+ maxTokens: 2e5,
1601
+ // 200k context window
1602
+ maxOutputTokens: 64e3,
1603
+ category: "standard",
1604
+ configSchema: AnthropicConfigSchema
1605
+ },
1536
1606
  "claude-sonnet-4-5": {
1537
1607
  inputCostPer1M: 300,
1538
1608
  // $3.00 per 1M tokens
@@ -1542,6 +1612,7 @@ var MODEL_INFO = {
1542
1612
  recommendedTokens: 8e3,
1543
1613
  maxTokens: 2e5,
1544
1614
  // 200k context window
1615
+ maxOutputTokens: 64e3,
1545
1616
  category: "standard",
1546
1617
  configSchema: AnthropicConfigSchema
1547
1618
  }
@@ -2252,8 +2323,8 @@ function ontologyIndexForKind(index, kind) {
2252
2323
  return index.sharedProperties;
2253
2324
  case "group":
2254
2325
  return index.groups;
2255
- case "surface":
2256
- return index.surfaces;
2326
+ case "endpoint":
2327
+ return index.endpoints;
2257
2328
  }
2258
2329
  }
2259
2330
  function sameJson(left, right) {
@@ -6876,6 +6947,24 @@ function withPlatformResourceDescriptors(workflows, getWorkflowResourceDescripto
6876
6947
  (workflow) => withPlatformResourceDescriptor(workflow, getWorkflowResourceDescriptor, getResourceOntologyBinding)
6877
6948
  );
6878
6949
  }
6950
+ function withPlatformAgentResourceDescriptor(agent, getAgentResourceDescriptor, getResourceOntologyBinding) {
6951
+ const resource = getAgentResourceDescriptor(agent.config.resourceId);
6952
+ const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
6953
+ return {
6954
+ ...agent,
6955
+ config: {
6956
+ ...agent.config,
6957
+ resource: sdkResource,
6958
+ resourceId: sdkResource.id,
6959
+ type: sdkResource.kind
6960
+ }
6961
+ };
6962
+ }
6963
+ function withPlatformAgentResourceDescriptors(agents, getAgentResourceDescriptor, getResourceOntologyBinding) {
6964
+ return agents.map(
6965
+ (agent) => withPlatformAgentResourceDescriptor(agent, getAgentResourceDescriptor, getResourceOntologyBinding)
6966
+ );
6967
+ }
6879
6968
  function withPlatformIntegrationResourceDescriptor(integration, getIntegrationResourceDescriptor, getResourceOntologyBinding) {
6880
6969
  const resource = getIntegrationResourceDescriptor(integration.resourceId);
6881
6970
  const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
@@ -6935,11 +7024,16 @@ function projectDeploymentSpec(options) {
6935
7024
  options.getIntegrationResourceDescriptor,
6936
7025
  options.getResourceOntologyBinding
6937
7026
  );
7027
+ const agents = options.getAgentResourceDescriptor === void 0 ? options.agents ?? [] : withPlatformAgentResourceDescriptors(
7028
+ options.agents ?? [],
7029
+ options.getAgentResourceDescriptor,
7030
+ options.getResourceOntologyBinding
7031
+ );
6938
7032
  return {
6939
7033
  version: options.version,
6940
7034
  organizationModel: options.organizationModel,
6941
7035
  workflows,
6942
- agents: options.agents ?? [],
7036
+ agents,
6943
7037
  triggers: options.triggers,
6944
7038
  integrations,
6945
7039
  humanCheckpoints: options.humanCheckpoints,
@@ -6974,4 +7068,4 @@ function defineWorkflowConfig(resourceId, descriptors, actionRegistry = []) {
6974
7068
  }
6975
7069
  var ListBuilderStageKeySchema = z.string().min(1);
6976
7070
 
6977
- export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
7071
+ export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
@@ -296,7 +296,7 @@ type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
296
296
  /**
297
297
  * Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
298
298
  */
299
- type AnthropicModel = 'claude-sonnet-4-5';
299
+ type AnthropicModel = 'claude-opus-4-8' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-sonnet-4-5';
300
300
  /** Supported LLM models */
301
301
  type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
302
302
  /**
@@ -339,9 +339,9 @@ declare const GoogleOptionsSchema: z.ZodObject<{
339
339
  }, z.core.$strip>;
340
340
  /**
341
341
  * Anthropic model options schema
342
- * Currently empty - future options: budget_tokens for extended thinking
342
+ * Currently empty - future options must be added per supported model family
343
343
  */
344
- declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strip>;
344
+ declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strict>;
345
345
  /**
346
346
  * Infer TypeScript types from schemas
347
347
  */
@@ -428,7 +428,7 @@ declare const WorkflowResourceEntrySchema$1: z.ZodObject<{
428
428
  }>>;
429
429
  }, z.core.$strip>>>;
430
430
  }, z.core.$strip>;
431
- declare const AgentResourceEntrySchema: z.ZodObject<{
431
+ declare const AgentResourceEntrySchema$1: z.ZodObject<{
432
432
  id: z.ZodString;
433
433
  order: z.ZodDefault<z.ZodNumber>;
434
434
  systemPath: z.ZodString;
@@ -730,7 +730,7 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
730
730
  }, z.core.$strip>], "kind">;
731
731
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
732
732
  type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema$1>;
733
- type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
733
+ type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema$1>;
734
734
  type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
735
735
 
736
736
  /**
@@ -1377,7 +1377,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
1377
1377
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1378
1378
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
1379
1379
  }, z.core.$loose>>>>;
1380
- surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1380
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1381
1381
  id: z.ZodString;
1382
1382
  label: z.ZodOptional<z.ZodString>;
1383
1383
  description: z.ZodOptional<z.ZodString>;
@@ -2042,7 +2042,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
2042
2042
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
2043
2043
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
2044
2044
  }, z.core.$loose>>>>;
2045
- surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
2045
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
2046
2046
  id: z.ZodString;
2047
2047
  label: z.ZodOptional<z.ZodString>;
2048
2048
  description: z.ZodOptional<z.ZodString>;
@@ -3250,6 +3250,19 @@ declare const WorkflowResourceEntrySchema = ResourceEntryBaseSchema.extend({
3250
3250
  emits: z.array(EventEmissionDescriptorSchema).optional()
3251
3251
  })
3252
3252
 
3253
+ declare const AgentResourceEntrySchema = ResourceEntryBaseSchema.extend({
3254
+ kind: z.literal('agent'),
3255
+ /** Mirrors code-side AgentConfig.kind. */
3256
+ agentKind: AgentKindSchema,
3257
+ /** Role this agent embodies, if any. */
3258
+ actsAsRoleId: ModelIdSchema.meta({ ref: 'role' }).optional(),
3259
+ /** Mirrors AgentConfig.sessionCapable. */
3260
+ sessionCapable: z.boolean(),
3261
+ /** Broad/composite callable entry points orchestrated by this agent. */
3262
+ invocations: z.array(ActionInvocationSchema).default([]),
3263
+ emits: z.array(EventEmissionDescriptorSchema).optional()
3264
+ })
3265
+
3253
3266
  declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
3254
3267
  kind: z.literal('integration'),
3255
3268
  provider: z.string().trim().min(1).max(100)
@@ -3260,10 +3273,12 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
3260
3273
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>
3261
3274
  type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
3262
3275
  type OrganizationModelWorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>
3276
+ type OrganizationModelAgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>
3263
3277
  type OrganizationModelIntegrationResourceEntry = z.infer<typeof IntegrationResourceEntrySchema>
3264
3278
 
3265
3279
  type ResourceOntologyBindingResolver = (resourceId: string) => OrganizationModelResourceOntologyBinding | undefined;
3266
3280
  type WorkflowResourceDescriptorResolver = (resourceId: string) => OrganizationModelWorkflowResourceEntry;
3281
+ type AgentResourceDescriptorResolver = (resourceId: string) => OrganizationModelAgentResourceEntry;
3267
3282
  type IntegrationResourceDescriptorResolver = (resourceId: string) => OrganizationModelIntegrationResourceEntry;
3268
3283
  interface ProjectDeploymentSpecOptions {
3269
3284
  version: string;
@@ -3275,6 +3290,7 @@ interface ProjectDeploymentSpecOptions {
3275
3290
  externalResources?: DeploymentSpec['externalResources'];
3276
3291
  humanCheckpoints?: DeploymentSpec['humanCheckpoints'];
3277
3292
  getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver;
3293
+ getAgentResourceDescriptor?: AgentResourceDescriptorResolver;
3278
3294
  getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver;
3279
3295
  getResourceOntologyBinding?: ResourceOntologyBindingResolver;
3280
3296
  }
@@ -3286,10 +3302,12 @@ declare function toSdkResourceDescriptor<TResource extends {
3286
3302
  };
3287
3303
  declare function withPlatformResourceDescriptor(workflow: WorkflowDefinition, getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): WorkflowDefinition;
3288
3304
  declare function withPlatformResourceDescriptors(workflows: WorkflowDefinition[], getWorkflowResourceDescriptor: WorkflowResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): WorkflowDefinition[];
3305
+ declare function withPlatformAgentResourceDescriptor(agent: AgentDefinition, getAgentResourceDescriptor: AgentResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): AgentDefinition;
3306
+ declare function withPlatformAgentResourceDescriptors(agents: AgentDefinition[], getAgentResourceDescriptor: AgentResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): AgentDefinition[];
3289
3307
  declare function withPlatformIntegrationResourceDescriptor(integration: IntegrationDefinition, getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): IntegrationDefinition;
3290
3308
  declare function withPlatformIntegrationResourceDescriptors(integrations: IntegrationDefinition[], getIntegrationResourceDescriptor: IntegrationResourceDescriptorResolver, getResourceOntologyBinding?: ResourceOntologyBindingResolver): IntegrationDefinition[];
3291
3309
  declare function projectTopologyRelationships(model: Pick<OrganizationModel, 'resources' | 'topology'>): ResourceRelationships;
3292
3310
  declare function projectDeploymentSpec(options: ProjectDeploymentSpecOptions): DeploymentSpec;
3293
3311
 
3294
- export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, projectDeploymentSpec, projectTopologyRelationships, readKnowledgeNodeMdx, runKnowledgeCodegen, toSdkResourceDescriptor, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
3295
- export type { CodegenResult, DeploymentSpec, GenerateKnowledgeNodesOptions, GenerateKnowledgeNodesResult, IntegrationDefinition, IntegrationResourceDescriptorResolver, KnowledgeCodegenNode, KnowledgeKind, KnowledgeNodeInput, KnowledgeSearchEntry, ProjectDeploymentSpecOptions, ResolvedKnowledgeLayout, ResourceOntologyBindingResolver, ResourceRelationships, WorkflowDefinition, WorkflowResourceDescriptorResolver };
3312
+ export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, projectDeploymentSpec, projectTopologyRelationships, readKnowledgeNodeMdx, runKnowledgeCodegen, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
3313
+ export type { AgentResourceDescriptorResolver, CodegenResult, DeploymentSpec, GenerateKnowledgeNodesOptions, GenerateKnowledgeNodesResult, IntegrationDefinition, IntegrationResourceDescriptorResolver, KnowledgeCodegenNode, KnowledgeKind, KnowledgeNodeInput, KnowledgeSearchEntry, ProjectDeploymentSpecOptions, ResolvedKnowledgeLayout, ResourceOntologyBindingResolver, ResourceRelationships, WorkflowDefinition, WorkflowResourceDescriptorResolver };