@robosystems/client 0.3.10 → 0.3.11

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/sdk.gen.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { AutoSelectAgentData, AutoSelectAgentErrors, AutoSelectAgentResponses, BatchProcessQueriesData, BatchProcessQueriesErrors, BatchProcessQueriesResponses, CallMcpToolData, CallMcpToolErrors, CallMcpToolResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, ChangeSubscriptionPlanData, ChangeSubscriptionPlanErrors, ChangeSubscriptionPlanResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, ExecuteCypherQueryData, ExecuteCypherQueryErrors, ExecuteCypherQueryResponses, ExecuteSpecificAgentData, ExecuteSpecificAgentErrors, ExecuteSpecificAgentResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAgentMetadataData, GetAgentMetadataErrors, GetAgentMetadataResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigErrors, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserErrors, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetDocumentData, GetDocumentErrors, GetDocumentResponses, GetDocumentSectionData, GetDocumentSectionErrors, GetDocumentSectionResponses, GetFileData, GetFileErrors, GetFileResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsErrors, GetGraphUsageAnalyticsResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasswordPolicyData, GetPasswordPolicyErrors, GetPasswordPolicyResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, HandleHttpGetExtensionsGraphIdGraphqlGetData, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpPostExtensionsGraphIdGraphqlPostData, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, HandleHttpPostExtensionsGraphIdGraphqlPostResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListDocumentsData, ListDocumentsErrors, ListDocumentsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListMcpToolsData, ListMcpToolsErrors, ListMcpToolsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsErrors, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserErrors, LogoutUserResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, OpAddPublishListMembersData, OpAddPublishListMembersErrors, OpAddPublishListMembersResponses, OpAutoMapElementsData, OpAutoMapElementsErrors, OpAutoMapElementsResponses, OpBuildFactGridData, OpBuildFactGridErrors, OpBuildFactGridResponses, OpChangeTierData, OpChangeTierErrors, OpChangeTierResponses, OpClosePeriodData, OpClosePeriodErrors, OpClosePeriodResponses, OpCreateBackupData, OpCreateBackupErrors, OpCreateBackupResponses, OpCreateClosingEntryData, OpCreateClosingEntryErrors, OpCreateClosingEntryResponses, OpCreateInformationBlockData, OpCreateInformationBlockErrors, OpCreateInformationBlockResponses, OpCreateJournalEntryData, OpCreateJournalEntryErrors, OpCreateJournalEntryResponses, OpCreateManualClosingEntryData, OpCreateManualClosingEntryErrors, OpCreateManualClosingEntryResponses, OpCreateMappingAssociationData, OpCreateMappingAssociationErrors, OpCreateMappingAssociationResponses, OpCreatePortfolioData, OpCreatePortfolioErrors, OpCreatePortfolioResponses, OpCreatePositionData, OpCreatePositionErrors, OpCreatePositionResponses, OpCreatePublishListData, OpCreatePublishListErrors, OpCreatePublishListResponses, OpCreateReportData, OpCreateReportErrors, OpCreateReportResponses, OpCreateSecurityData, OpCreateSecurityErrors, OpCreateSecurityResponses, OpCreateSubgraphData, OpCreateSubgraphErrors, OpCreateSubgraphResponses, OpCreateTaxonomyBlockData, OpCreateTaxonomyBlockErrors, OpCreateTaxonomyBlockResponses, OpCreateTransactionData, OpCreateTransactionErrors, OpCreateTransactionResponses, OpDeleteInformationBlockData, OpDeleteInformationBlockErrors, OpDeleteInformationBlockResponses, OpDeleteJournalEntryData, OpDeleteJournalEntryErrors, OpDeleteJournalEntryResponses, OpDeleteMappingAssociationData, OpDeleteMappingAssociationErrors, OpDeleteMappingAssociationResponses, OpDeletePortfolioData, OpDeletePortfolioErrors, OpDeletePortfolioResponses, OpDeletePositionData, OpDeletePositionErrors, OpDeletePositionResponses, OpDeletePublishListData, OpDeletePublishListErrors, OpDeletePublishListResponses, OpDeleteReportData, OpDeleteReportErrors, OpDeleteReportResponses, OpDeleteSecurityData, OpDeleteSecurityErrors, OpDeleteSecurityResponses, OpDeleteSubgraphData, OpDeleteSubgraphErrors, OpDeleteSubgraphResponses, OpDeleteTaxonomyBlockData, OpDeleteTaxonomyBlockErrors, OpDeleteTaxonomyBlockResponses, OpDisposeScheduleData, OpDisposeScheduleErrors, OpDisposeScheduleResponses, OpEvaluateRulesData, OpEvaluateRulesErrors, OpEvaluateRulesResponses, OpFinancialStatementAnalysisData, OpFinancialStatementAnalysisErrors, OpFinancialStatementAnalysisResponses, OpInitializeLedgerData, OpInitializeLedgerErrors, OpInitializeLedgerResponses, OpLinkEntityTaxonomyData, OpLinkEntityTaxonomyErrors, OpLinkEntityTaxonomyResponses, OpLiveFinancialStatementData, OpLiveFinancialStatementErrors, OpLiveFinancialStatementResponses, OpMaterializeData, OpMaterializeErrors, OpMaterializeResponses, OpRegenerateReportData, OpRegenerateReportErrors, OpRegenerateReportResponses, OpRemovePublishListMemberData, OpRemovePublishListMemberErrors, OpRemovePublishListMemberResponses, OpReopenPeriodData, OpReopenPeriodErrors, OpReopenPeriodResponses, OpRestoreBackupData, OpRestoreBackupErrors, OpRestoreBackupResponses, OpReverseJournalEntryData, OpReverseJournalEntryErrors, OpReverseJournalEntryResponses, OpSetCloseTargetData, OpSetCloseTargetErrors, OpSetCloseTargetResponses, OpShareReportData, OpShareReportErrors, OpShareReportResponses, OpTruncateScheduleData, OpTruncateScheduleErrors, OpTruncateScheduleResponses, OpUpdateEntityData, OpUpdateEntityErrors, OpUpdateEntityResponses, OpUpdateInformationBlockData, OpUpdateInformationBlockErrors, OpUpdateInformationBlockResponses, OpUpdateJournalEntryData, OpUpdateJournalEntryErrors, OpUpdateJournalEntryResponses, OpUpdatePortfolioData, OpUpdatePortfolioErrors, OpUpdatePortfolioResponses, OpUpdatePositionData, OpUpdatePositionErrors, OpUpdatePositionResponses, OpUpdatePublishListData, OpUpdatePublishListErrors, OpUpdatePublishListResponses, OpUpdateSecurityData, OpUpdateSecurityErrors, OpUpdateSecurityResponses, OpUpdateTaxonomyBlockData, OpUpdateTaxonomyBlockErrors, OpUpdateTaxonomyBlockResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, SearchDocumentsData, SearchDocumentsErrors, SearchDocumentsResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, UpdateDocumentData, UpdateDocumentErrors, UpdateDocumentResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UploadDocumentData, UploadDocumentErrors, UploadDocumentResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
2
+ import type { AutoSelectAgentData, AutoSelectAgentErrors, AutoSelectAgentResponses, BatchProcessQueriesData, BatchProcessQueriesErrors, BatchProcessQueriesResponses, CallMcpToolData, CallMcpToolErrors, CallMcpToolResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, ChangeSubscriptionPlanData, ChangeSubscriptionPlanErrors, ChangeSubscriptionPlanResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, ExecuteCypherQueryData, ExecuteCypherQueryErrors, ExecuteCypherQueryResponses, ExecuteSpecificAgentData, ExecuteSpecificAgentErrors, ExecuteSpecificAgentResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAgentMetadataData, GetAgentMetadataErrors, GetAgentMetadataResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigErrors, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserErrors, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetDocumentData, GetDocumentErrors, GetDocumentResponses, GetDocumentSectionData, GetDocumentSectionErrors, GetDocumentSectionResponses, GetFileData, GetFileErrors, GetFileResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsErrors, GetGraphUsageAnalyticsResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasswordPolicyData, GetPasswordPolicyErrors, GetPasswordPolicyResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, HandleHttpGetExtensionsGraphIdGraphqlGetData, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpPostExtensionsGraphIdGraphqlPostData, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, HandleHttpPostExtensionsGraphIdGraphqlPostResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListDocumentsData, ListDocumentsErrors, ListDocumentsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListMcpToolsData, ListMcpToolsErrors, ListMcpToolsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsErrors, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserErrors, LogoutUserResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, OpAddPublishListMembersData, OpAddPublishListMembersErrors, OpAddPublishListMembersResponses, OpAutoMapElementsData, OpAutoMapElementsErrors, OpAutoMapElementsResponses, OpBuildFactGridData, OpBuildFactGridErrors, OpBuildFactGridResponses, OpChangeTierData, OpChangeTierErrors, OpChangeTierResponses, OpClosePeriodData, OpClosePeriodErrors, OpClosePeriodResponses, OpCreateAgentData, OpCreateAgentErrors, OpCreateAgentResponses, OpCreateBackupData, OpCreateBackupErrors, OpCreateBackupResponses, OpCreateEventBlockData, OpCreateEventBlockErrors, OpCreateEventBlockResponses, OpCreateEventHandlerData, OpCreateEventHandlerErrors, OpCreateEventHandlerResponses, OpCreateInformationBlockData, OpCreateInformationBlockErrors, OpCreateInformationBlockResponses, OpCreateMappingAssociationData, OpCreateMappingAssociationErrors, OpCreateMappingAssociationResponses, OpCreatePortfolioData, OpCreatePortfolioErrors, OpCreatePortfolioResponses, OpCreatePositionData, OpCreatePositionErrors, OpCreatePositionResponses, OpCreatePublishListData, OpCreatePublishListErrors, OpCreatePublishListResponses, OpCreateReportData, OpCreateReportErrors, OpCreateReportResponses, OpCreateSecurityData, OpCreateSecurityErrors, OpCreateSecurityResponses, OpCreateSubgraphData, OpCreateSubgraphErrors, OpCreateSubgraphResponses, OpCreateTaxonomyBlockData, OpCreateTaxonomyBlockErrors, OpCreateTaxonomyBlockResponses, OpDeleteInformationBlockData, OpDeleteInformationBlockErrors, OpDeleteInformationBlockResponses, OpDeleteJournalEntryData, OpDeleteJournalEntryErrors, OpDeleteJournalEntryResponses, OpDeleteMappingAssociationData, OpDeleteMappingAssociationErrors, OpDeleteMappingAssociationResponses, OpDeletePortfolioData, OpDeletePortfolioErrors, OpDeletePortfolioResponses, OpDeletePositionData, OpDeletePositionErrors, OpDeletePositionResponses, OpDeletePublishListData, OpDeletePublishListErrors, OpDeletePublishListResponses, OpDeleteReportData, OpDeleteReportErrors, OpDeleteReportResponses, OpDeleteSecurityData, OpDeleteSecurityErrors, OpDeleteSecurityResponses, OpDeleteSubgraphData, OpDeleteSubgraphErrors, OpDeleteSubgraphResponses, OpDeleteTaxonomyBlockData, OpDeleteTaxonomyBlockErrors, OpDeleteTaxonomyBlockResponses, OpEvaluateRulesData, OpEvaluateRulesErrors, OpEvaluateRulesResponses, OpFinancialStatementAnalysisData, OpFinancialStatementAnalysisErrors, OpFinancialStatementAnalysisResponses, OpInitializeLedgerData, OpInitializeLedgerErrors, OpInitializeLedgerResponses, OpLinkEntityTaxonomyData, OpLinkEntityTaxonomyErrors, OpLinkEntityTaxonomyResponses, OpLiveFinancialStatementData, OpLiveFinancialStatementErrors, OpLiveFinancialStatementResponses, OpMaterializeData, OpMaterializeErrors, OpMaterializeResponses, OpPreviewEventBlockData, OpPreviewEventBlockErrors, OpPreviewEventBlockResponses, OpRegenerateReportData, OpRegenerateReportErrors, OpRegenerateReportResponses, OpRemovePublishListMemberData, OpRemovePublishListMemberErrors, OpRemovePublishListMemberResponses, OpReopenPeriodData, OpReopenPeriodErrors, OpReopenPeriodResponses, OpRestoreBackupData, OpRestoreBackupErrors, OpRestoreBackupResponses, OpSetCloseTargetData, OpSetCloseTargetErrors, OpSetCloseTargetResponses, OpShareReportData, OpShareReportErrors, OpShareReportResponses, OpUpdateAgentData, OpUpdateAgentErrors, OpUpdateAgentResponses, OpUpdateEntityData, OpUpdateEntityErrors, OpUpdateEntityResponses, OpUpdateEventBlockData, OpUpdateEventBlockErrors, OpUpdateEventBlockResponses, OpUpdateEventHandlerData, OpUpdateEventHandlerErrors, OpUpdateEventHandlerResponses, OpUpdateInformationBlockData, OpUpdateInformationBlockErrors, OpUpdateInformationBlockResponses, OpUpdateJournalEntryData, OpUpdateJournalEntryErrors, OpUpdateJournalEntryResponses, OpUpdatePortfolioData, OpUpdatePortfolioErrors, OpUpdatePortfolioResponses, OpUpdatePositionData, OpUpdatePositionErrors, OpUpdatePositionResponses, OpUpdatePublishListData, OpUpdatePublishListErrors, OpUpdatePublishListResponses, OpUpdateSecurityData, OpUpdateSecurityErrors, OpUpdateSecurityResponses, OpUpdateTaxonomyBlockData, OpUpdateTaxonomyBlockErrors, OpUpdateTaxonomyBlockResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, SearchDocumentsData, SearchDocumentsErrors, SearchDocumentsResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, UpdateDocumentData, UpdateDocumentErrors, UpdateDocumentResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UploadDocumentData, UploadDocumentErrors, UploadDocumentResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -734,85 +734,85 @@ export declare const opDeleteInformationBlock: <ThrowOnError extends boolean = f
734
734
  */
735
735
  export declare const opEvaluateRules: <ThrowOnError extends boolean = false>(options: Options<OpEvaluateRulesData, ThrowOnError>) => import("./client").RequestResult<OpEvaluateRulesResponses, OpEvaluateRulesErrors, ThrowOnError, "fields">;
736
736
  /**
737
- * Create Transaction
737
+ * Create Agent
738
738
  *
739
- * Create a standalone business-event Transaction without entries. Returns a transaction_id that can be passed to create-journal-entry to attach one or more journal entries to this event. Use this when a single event (invoice, payment, deposit) produces multiple entries over its lifecycle.
739
+ * Create a counterparty record (customer, vendor, employee, etc.). The (source, external_id) pair is a dedup key a second insert with the same pair returns 409. Use update-agent to patch fields.
740
740
  *
741
741
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
742
742
  */
743
- export declare const opCreateTransaction: <ThrowOnError extends boolean = false>(options: Options<OpCreateTransactionData, ThrowOnError>) => import("./client").RequestResult<OpCreateTransactionResponses, OpCreateTransactionErrors, ThrowOnError, "fields">;
743
+ export declare const opCreateAgent: <ThrowOnError extends boolean = false>(options: Options<OpCreateAgentData, ThrowOnError>) => import("./client").RequestResult<OpCreateAgentResponses, OpCreateAgentErrors, ThrowOnError, "fields">;
744
744
  /**
745
- * Create Journal Entry
745
+ * Update Agent
746
746
  *
747
- * Create a new draft journal entry with balanced line items. Enforces DR=CR at the validation layer. Entries are always created as drafts; posting happens via close-period or a future per-entry post op.
747
+ * Patch counterparty fields. Only supplied fields are updated. Set is_active=false to deactivate (agents are never deleted they are reference data referenced by events and transactions).
748
748
  *
749
749
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
750
750
  */
751
- export declare const opCreateJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpCreateJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpCreateJournalEntryResponses, OpCreateJournalEntryErrors, ThrowOnError, "fields">;
751
+ export declare const opUpdateAgent: <ThrowOnError extends boolean = false>(options: Options<OpUpdateAgentData, ThrowOnError>) => import("./client").RequestResult<OpUpdateAgentResponses, OpUpdateAgentErrors, ThrowOnError, "fields">;
752
752
  /**
753
- * Update Journal Entry
753
+ * Create Event Block
754
754
  *
755
- * Update a draft journal entry. Posted entries are immutable and must be corrected via reverse-journal-entry. If line_items is provided, existing line items are replaced atomically and the new set must balance.
755
+ * Persist a real-world business event. apply_handlers=False (default): capture-only, status='captured'. apply_handlers=True: resolves an event_handler, fires the template, creates GL entries atomically, status='classified'. Use preview-event-block to dry-run before committing.
756
756
  *
757
757
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
758
758
  */
759
- export declare const opUpdateJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpUpdateJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpUpdateJournalEntryResponses, OpUpdateJournalEntryErrors, ThrowOnError, "fields">;
759
+ export declare const opCreateEventBlock: <ThrowOnError extends boolean = false>(options: Options<OpCreateEventBlockData, ThrowOnError>) => import("./client").RequestResult<OpCreateEventBlockResponses, OpCreateEventBlockErrors, ThrowOnError, "fields">;
760
760
  /**
761
- * Delete Journal Entry
761
+ * Update Event Block
762
762
  *
763
- * Hard-delete a draft journal entry. Posted entries are immutable and must be reversed instead.
763
+ * Apply a status transition (captured committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
764
764
  *
765
765
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
766
766
  */
767
- export declare const opDeleteJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpDeleteJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpDeleteJournalEntryResponses, OpDeleteJournalEntryErrors, ThrowOnError, "fields">;
767
+ export declare const opUpdateEventBlock: <ThrowOnError extends boolean = false>(options: Options<OpUpdateEventBlockData, ThrowOnError>) => import("./client").RequestResult<OpUpdateEventBlockResponses, OpUpdateEventBlockErrors, ThrowOnError, "fields">;
768
768
  /**
769
- * Reverse Journal Entry
769
+ * Create Event Handler
770
770
  *
771
- * Reverse a posted journal entry by creating a new offsetting entry (debits credits) and marking the original as status='reversed'. Both entries stay in the ledger the audit trail shows original + reversal side by side.
771
+ * Define a rule that fires GL transactions when a matching event block is created with apply_handlers=True. Match criteria (event_type, event_category, match_source, match_agent_type, etc.) act as AND-joined filters null fields match anything. The highest-priority matching handler wins. AI-suggested handlers (suggested_by='ai') require approval before they are eligible for matching.
772
772
  *
773
773
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
774
774
  */
775
- export declare const opReverseJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpReverseJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpReverseJournalEntryResponses, OpReverseJournalEntryErrors, ThrowOnError, "fields">;
775
+ export declare const opCreateEventHandler: <ThrowOnError extends boolean = false>(options: Options<OpCreateEventHandlerData, ThrowOnError>) => import("./client").RequestResult<OpCreateEventHandlerResponses, OpCreateEventHandlerErrors, ThrowOnError, "fields">;
776
776
  /**
777
- * Set Close Target
777
+ * Update Event Handler
778
778
  *
779
- * Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
779
+ * Patch an event handler's match criteria, template, priority, or active state. Pass approve=true to approve an AI-suggested handler; approve=false to revoke approval. Only supplied fields are updated.
780
780
  *
781
781
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
782
782
  */
783
- export declare const opSetCloseTarget: <ThrowOnError extends boolean = false>(options: Options<OpSetCloseTargetData, ThrowOnError>) => import("./client").RequestResult<OpSetCloseTargetResponses, OpSetCloseTargetErrors, ThrowOnError, "fields">;
783
+ export declare const opUpdateEventHandler: <ThrowOnError extends boolean = false>(options: Options<OpUpdateEventHandlerData, ThrowOnError>) => import("./client").RequestResult<OpUpdateEventHandlerResponses, OpUpdateEventHandlerErrors, ThrowOnError, "fields">;
784
784
  /**
785
- * Create Closing Entry
785
+ * Preview Event Block
786
786
  *
787
- * Create a draft closing entry pre-populated from a schedule's facts for the given period. Idempotent safe to call repeatedly; the `outcome` field describes what happened (`created`, `unchanged`, `regenerated`, `removed`, `skipped`).
787
+ * Dry-run: resolve the matching handler and evaluate the transaction template without writing any rows. Returns the matched handler + planned debit/credit lines + any validation errors. Use this before create-event-block(apply_handlers=True) to confirm the GL plan.
788
788
  *
789
789
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
790
790
  */
791
- export declare const opCreateClosingEntry: <ThrowOnError extends boolean = false>(options: Options<OpCreateClosingEntryData, ThrowOnError>) => import("./client").RequestResult<OpCreateClosingEntryResponses, OpCreateClosingEntryErrors, ThrowOnError, "fields">;
791
+ export declare const opPreviewEventBlock: <ThrowOnError extends boolean = false>(options: Options<OpPreviewEventBlockData, ThrowOnError>) => import("./client").RequestResult<OpPreviewEventBlockResponses, OpPreviewEventBlockErrors, ThrowOnError, "fields">;
792
792
  /**
793
- * Create Manual Closing Entry
793
+ * Update Journal Entry
794
794
  *
795
- * Create a draft closing entry with manually specified line items not tied to a schedule. Use for one-off business events (asset disposal, correcting entry, impairment). Total debits must equal total credits.
795
+ * Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are replaced atomically and the new set must balance.
796
796
  *
797
797
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
798
798
  */
799
- export declare const opCreateManualClosingEntry: <ThrowOnError extends boolean = false>(options: Options<OpCreateManualClosingEntryData, ThrowOnError>) => import("./client").RequestResult<OpCreateManualClosingEntryResponses, OpCreateManualClosingEntryErrors, ThrowOnError, "fields">;
799
+ export declare const opUpdateJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpUpdateJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpUpdateJournalEntryResponses, OpUpdateJournalEntryErrors, ThrowOnError, "fields">;
800
800
  /**
801
- * Truncate Schedule (End Early)
801
+ * Delete Journal Entry
802
802
  *
803
- * End a schedule early by deleting forward facts and any stale draft closing entries past the cutoff. Historical facts and posted entries are preserved. Use this when a business event (asset disposal, contract cancellation) shortens the schedule's lifespan.
803
+ * Hard-delete a draft journal entry. Posted entries are immutable and must be reversed instead.
804
804
  *
805
805
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
806
806
  */
807
- export declare const opTruncateSchedule: <ThrowOnError extends boolean = false>(options: Options<OpTruncateScheduleData, ThrowOnError>) => import("./client").RequestResult<OpTruncateScheduleResponses, OpTruncateScheduleErrors, ThrowOnError, "fields">;
807
+ export declare const opDeleteJournalEntry: <ThrowOnError extends boolean = false>(options: Options<OpDeleteJournalEntryData, ThrowOnError>) => import("./client").RequestResult<OpDeleteJournalEntryResponses, OpDeleteJournalEntryErrors, ThrowOnError, "fields">;
808
808
  /**
809
- * Dispose Schedule (Sale or Abandonment)
809
+ * Set Close Target
810
810
  *
811
- * Atomically truncate a schedule past the disposal date and create a balanced disposal closing entry. Computes accumulated depreciation from the schedule's own facts, derives net book value and gain/loss, removes forward facts, and books the disposal entry in one call. Use when an asset is sold or abandoned before the schedule runs to completion. For abandonment with no proceeds, omit `sale_proceeds` and `proceeds_element_id`.
811
+ * Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
812
812
  *
813
813
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
814
814
  */
815
- export declare const opDisposeSchedule: <ThrowOnError extends boolean = false>(options: Options<OpDisposeScheduleData, ThrowOnError>) => import("./client").RequestResult<OpDisposeScheduleResponses, OpDisposeScheduleErrors, ThrowOnError, "fields">;
815
+ export declare const opSetCloseTarget: <ThrowOnError extends boolean = false>(options: Options<OpSetCloseTargetData, ThrowOnError>) => import("./client").RequestResult<OpSetCloseTargetResponses, OpSetCloseTargetErrors, ThrowOnError, "fields">;
816
816
  /**
817
817
  * Close Fiscal Period
818
818
  *
package/sdk.gen.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
5
5
  exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.opMaterialize = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.listCreditTransactions = exports.getCreditSummary = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = void 0;
6
- exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opReopenPeriod = exports.opClosePeriod = exports.opDisposeSchedule = exports.opTruncateSchedule = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opSetCloseTarget = exports.opReverseJournalEntry = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opCreateJournalEntry = exports.opCreateTransaction = exports.opEvaluateRules = exports.opDeleteInformationBlock = exports.opUpdateInformationBlock = exports.opCreateInformationBlock = exports.opAutoMapElements = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomyBlock = exports.opUpdateTaxonomyBlock = exports.opCreateTaxonomyBlock = exports.opUpdateEntity = exports.opInitializeLedger = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = void 0;
6
+ exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opPreviewEventBlock = exports.opUpdateEventHandler = exports.opCreateEventHandler = exports.opUpdateEventBlock = exports.opCreateEventBlock = exports.opUpdateAgent = exports.opCreateAgent = exports.opEvaluateRules = exports.opDeleteInformationBlock = exports.opUpdateInformationBlock = exports.opCreateInformationBlock = exports.opAutoMapElements = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomyBlock = exports.opUpdateTaxonomyBlock = exports.opCreateTaxonomyBlock = exports.opUpdateEntity = exports.opInitializeLedger = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = void 0;
7
7
  exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = void 0;
8
8
  const client_gen_1 = require("./client.gen");
9
9
  /**
@@ -1519,175 +1519,175 @@ const opEvaluateRules = (options) => (options.client ?? client_gen_1.client).pos
1519
1519
  });
1520
1520
  exports.opEvaluateRules = opEvaluateRules;
1521
1521
  /**
1522
- * Create Transaction
1522
+ * Create Agent
1523
1523
  *
1524
- * Create a standalone business-event Transaction without entries. Returns a transaction_id that can be passed to create-journal-entry to attach one or more journal entries to this event. Use this when a single event (invoice, payment, deposit) produces multiple entries over its lifecycle.
1524
+ * Create a counterparty record (customer, vendor, employee, etc.). The (source, external_id) pair is a dedup key a second insert with the same pair returns 409. Use update-agent to patch fields.
1525
1525
  *
1526
1526
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1527
1527
  */
1528
- const opCreateTransaction = (options) => (options.client ?? client_gen_1.client).post({
1528
+ const opCreateAgent = (options) => (options.client ?? client_gen_1.client).post({
1529
1529
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1530
- url: '/extensions/roboledger/{graph_id}/operations/create-transaction',
1530
+ url: '/extensions/roboledger/{graph_id}/operations/create-agent',
1531
1531
  ...options,
1532
1532
  headers: {
1533
1533
  'Content-Type': 'application/json',
1534
1534
  ...options.headers
1535
1535
  }
1536
1536
  });
1537
- exports.opCreateTransaction = opCreateTransaction;
1537
+ exports.opCreateAgent = opCreateAgent;
1538
1538
  /**
1539
- * Create Journal Entry
1539
+ * Update Agent
1540
1540
  *
1541
- * Create a new draft journal entry with balanced line items. Enforces DR=CR at the validation layer. Entries are always created as drafts; posting happens via close-period or a future per-entry post op.
1541
+ * Patch counterparty fields. Only supplied fields are updated. Set is_active=false to deactivate (agents are never deleted they are reference data referenced by events and transactions).
1542
1542
  *
1543
1543
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1544
1544
  */
1545
- const opCreateJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1545
+ const opUpdateAgent = (options) => (options.client ?? client_gen_1.client).post({
1546
1546
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1547
- url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry',
1547
+ url: '/extensions/roboledger/{graph_id}/operations/update-agent',
1548
1548
  ...options,
1549
1549
  headers: {
1550
1550
  'Content-Type': 'application/json',
1551
1551
  ...options.headers
1552
1552
  }
1553
1553
  });
1554
- exports.opCreateJournalEntry = opCreateJournalEntry;
1554
+ exports.opUpdateAgent = opUpdateAgent;
1555
1555
  /**
1556
- * Update Journal Entry
1556
+ * Create Event Block
1557
1557
  *
1558
- * Update a draft journal entry. Posted entries are immutable and must be corrected via reverse-journal-entry. If line_items is provided, existing line items are replaced atomically and the new set must balance.
1558
+ * Persist a real-world business event. apply_handlers=False (default): capture-only, status='captured'. apply_handlers=True: resolves an event_handler, fires the template, creates GL entries atomically, status='classified'. Use preview-event-block to dry-run before committing.
1559
1559
  *
1560
1560
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1561
1561
  */
1562
- const opUpdateJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1562
+ const opCreateEventBlock = (options) => (options.client ?? client_gen_1.client).post({
1563
1563
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1564
- url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry',
1564
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-block',
1565
1565
  ...options,
1566
1566
  headers: {
1567
1567
  'Content-Type': 'application/json',
1568
1568
  ...options.headers
1569
1569
  }
1570
1570
  });
1571
- exports.opUpdateJournalEntry = opUpdateJournalEntry;
1571
+ exports.opCreateEventBlock = opCreateEventBlock;
1572
1572
  /**
1573
- * Delete Journal Entry
1573
+ * Update Event Block
1574
1574
  *
1575
- * Hard-delete a draft journal entry. Posted entries are immutable and must be reversed instead.
1575
+ * Apply a status transition (captured committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
1576
1576
  *
1577
1577
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1578
1578
  */
1579
- const opDeleteJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1579
+ const opUpdateEventBlock = (options) => (options.client ?? client_gen_1.client).post({
1580
1580
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1581
- url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry',
1581
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-block',
1582
1582
  ...options,
1583
1583
  headers: {
1584
1584
  'Content-Type': 'application/json',
1585
1585
  ...options.headers
1586
1586
  }
1587
1587
  });
1588
- exports.opDeleteJournalEntry = opDeleteJournalEntry;
1588
+ exports.opUpdateEventBlock = opUpdateEventBlock;
1589
1589
  /**
1590
- * Reverse Journal Entry
1590
+ * Create Event Handler
1591
1591
  *
1592
- * Reverse a posted journal entry by creating a new offsetting entry (debits credits) and marking the original as status='reversed'. Both entries stay in the ledger the audit trail shows original + reversal side by side.
1592
+ * Define a rule that fires GL transactions when a matching event block is created with apply_handlers=True. Match criteria (event_type, event_category, match_source, match_agent_type, etc.) act as AND-joined filters null fields match anything. The highest-priority matching handler wins. AI-suggested handlers (suggested_by='ai') require approval before they are eligible for matching.
1593
1593
  *
1594
1594
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1595
1595
  */
1596
- const opReverseJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1596
+ const opCreateEventHandler = (options) => (options.client ?? client_gen_1.client).post({
1597
1597
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1598
- url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry',
1598
+ url: '/extensions/roboledger/{graph_id}/operations/create-event-handler',
1599
1599
  ...options,
1600
1600
  headers: {
1601
1601
  'Content-Type': 'application/json',
1602
1602
  ...options.headers
1603
1603
  }
1604
1604
  });
1605
- exports.opReverseJournalEntry = opReverseJournalEntry;
1605
+ exports.opCreateEventHandler = opCreateEventHandler;
1606
1606
  /**
1607
- * Set Close Target
1607
+ * Update Event Handler
1608
1608
  *
1609
- * Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
1609
+ * Patch an event handler's match criteria, template, priority, or active state. Pass approve=true to approve an AI-suggested handler; approve=false to revoke approval. Only supplied fields are updated.
1610
1610
  *
1611
1611
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1612
1612
  */
1613
- const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
1613
+ const opUpdateEventHandler = (options) => (options.client ?? client_gen_1.client).post({
1614
1614
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1615
- url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
1615
+ url: '/extensions/roboledger/{graph_id}/operations/update-event-handler',
1616
1616
  ...options,
1617
1617
  headers: {
1618
1618
  'Content-Type': 'application/json',
1619
1619
  ...options.headers
1620
1620
  }
1621
1621
  });
1622
- exports.opSetCloseTarget = opSetCloseTarget;
1622
+ exports.opUpdateEventHandler = opUpdateEventHandler;
1623
1623
  /**
1624
- * Create Closing Entry
1624
+ * Preview Event Block
1625
1625
  *
1626
- * Create a draft closing entry pre-populated from a schedule's facts for the given period. Idempotent safe to call repeatedly; the `outcome` field describes what happened (`created`, `unchanged`, `regenerated`, `removed`, `skipped`).
1626
+ * Dry-run: resolve the matching handler and evaluate the transaction template without writing any rows. Returns the matched handler + planned debit/credit lines + any validation errors. Use this before create-event-block(apply_handlers=True) to confirm the GL plan.
1627
1627
  *
1628
1628
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1629
1629
  */
1630
- const opCreateClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1630
+ const opPreviewEventBlock = (options) => (options.client ?? client_gen_1.client).post({
1631
1631
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1632
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry',
1632
+ url: '/extensions/roboledger/{graph_id}/operations/preview-event-block',
1633
1633
  ...options,
1634
1634
  headers: {
1635
1635
  'Content-Type': 'application/json',
1636
1636
  ...options.headers
1637
1637
  }
1638
1638
  });
1639
- exports.opCreateClosingEntry = opCreateClosingEntry;
1639
+ exports.opPreviewEventBlock = opPreviewEventBlock;
1640
1640
  /**
1641
- * Create Manual Closing Entry
1641
+ * Update Journal Entry
1642
1642
  *
1643
- * Create a draft closing entry with manually specified line items not tied to a schedule. Use for one-off business events (asset disposal, correcting entry, impairment). Total debits must equal total credits.
1643
+ * Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are replaced atomically and the new set must balance.
1644
1644
  *
1645
1645
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1646
1646
  */
1647
- const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1647
+ const opUpdateJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1648
1648
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1649
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry',
1649
+ url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry',
1650
1650
  ...options,
1651
1651
  headers: {
1652
1652
  'Content-Type': 'application/json',
1653
1653
  ...options.headers
1654
1654
  }
1655
1655
  });
1656
- exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
1656
+ exports.opUpdateJournalEntry = opUpdateJournalEntry;
1657
1657
  /**
1658
- * Truncate Schedule (End Early)
1658
+ * Delete Journal Entry
1659
1659
  *
1660
- * End a schedule early by deleting forward facts and any stale draft closing entries past the cutoff. Historical facts and posted entries are preserved. Use this when a business event (asset disposal, contract cancellation) shortens the schedule's lifespan.
1660
+ * Hard-delete a draft journal entry. Posted entries are immutable and must be reversed instead.
1661
1661
  *
1662
1662
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1663
1663
  */
1664
- const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1664
+ const opDeleteJournalEntry = (options) => (options.client ?? client_gen_1.client).post({
1665
1665
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1666
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
1666
+ url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry',
1667
1667
  ...options,
1668
1668
  headers: {
1669
1669
  'Content-Type': 'application/json',
1670
1670
  ...options.headers
1671
1671
  }
1672
1672
  });
1673
- exports.opTruncateSchedule = opTruncateSchedule;
1673
+ exports.opDeleteJournalEntry = opDeleteJournalEntry;
1674
1674
  /**
1675
- * Dispose Schedule (Sale or Abandonment)
1675
+ * Set Close Target
1676
1676
  *
1677
- * Atomically truncate a schedule past the disposal date and create a balanced disposal closing entry. Computes accumulated depreciation from the schedule's own facts, derives net book value and gain/loss, removes forward facts, and books the disposal entry in one call. Use when an asset is sold or abandoned before the schedule runs to completion. For abandonment with no proceeds, omit `sale_proceeds` and `proceeds_element_id`.
1677
+ * Period format: YYYY-MM. The close target is the user-controlled goal date, distinct from `closed_through` (what's actually closed).
1678
1678
  *
1679
1679
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1680
1680
  */
1681
- const opDisposeSchedule = (options) => (options.client ?? client_gen_1.client).post({
1681
+ const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
1682
1682
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1683
- url: '/extensions/roboledger/{graph_id}/operations/dispose-schedule',
1683
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
1684
1684
  ...options,
1685
1685
  headers: {
1686
1686
  'Content-Type': 'application/json',
1687
1687
  ...options.headers
1688
1688
  }
1689
1689
  });
1690
- exports.opDisposeSchedule = opDisposeSchedule;
1690
+ exports.opSetCloseTarget = opSetCloseTarget;
1691
1691
  /**
1692
1692
  * Close Fiscal Period
1693
1693
  *