@robosystems/client 0.3.0 → 0.3.2
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/{extensions → artifacts}/InvestorClient.d.ts +7 -0
- package/{extensions → artifacts}/InvestorClient.js +0 -1
- package/{extensions → artifacts}/InvestorClient.ts +8 -1
- package/{extensions → artifacts}/LedgerClient.d.ts +175 -2
- package/{extensions → artifacts}/LedgerClient.js +301 -2
- package/{extensions → artifacts}/LedgerClient.ts +652 -2
- package/{extensions → artifacts}/config.d.ts +29 -10
- package/{extensions → artifacts}/config.js +11 -11
- package/{extensions → artifacts}/config.ts +36 -16
- package/artifacts/graphql/client.d.ts +82 -0
- package/artifacts/graphql/client.js +148 -0
- package/artifacts/graphql/client.ts +189 -0
- package/{extensions → artifacts}/hooks.js +6 -6
- package/{extensions → artifacts}/hooks.ts +7 -7
- package/{extensions → artifacts}/index.d.ts +34 -18
- package/{extensions → artifacts}/index.js +47 -44
- package/{extensions → artifacts}/index.ts +72 -52
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +38 -8
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +27 -9
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +275 -274
- package/sdk/sdk.gen.js +469 -314
- package/sdk/sdk.gen.ts +465 -311
- package/sdk/types.gen.d.ts +2940 -466
- package/sdk/types.gen.ts +3053 -474
- package/sdk.gen.d.ts +275 -274
- package/sdk.gen.js +469 -314
- package/sdk.gen.ts +465 -311
- package/types.gen.d.ts +2940 -466
- package/types.gen.ts +3053 -474
- package/extensions/ReportClient.d.ts +0 -113
- package/extensions/ReportClient.js +0 -191
- package/extensions/ReportClient.ts +0 -426
- package/extensions/graphql/client.d.ts +0 -46
- package/extensions/graphql/client.js +0 -75
- package/extensions/graphql/client.ts +0 -82
- /package/{extensions → artifacts}/AgentClient.d.ts +0 -0
- /package/{extensions → artifacts}/AgentClient.js +0 -0
- /package/{extensions → artifacts}/AgentClient.ts +0 -0
- /package/{extensions → artifacts}/OperationClient.d.ts +0 -0
- /package/{extensions → artifacts}/OperationClient.js +0 -0
- /package/{extensions → artifacts}/OperationClient.ts +0 -0
- /package/{extensions → artifacts}/QueryClient.d.ts +0 -0
- /package/{extensions → artifacts}/QueryClient.js +0 -0
- /package/{extensions → artifacts}/QueryClient.ts +0 -0
- /package/{extensions → artifacts}/SSEClient.d.ts +0 -0
- /package/{extensions → artifacts}/SSEClient.js +0 -0
- /package/{extensions → artifacts}/SSEClient.ts +0 -0
- /package/{extensions → artifacts}/graphql/generated/graphql.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/generated/graphql.js +0 -0
- /package/{extensions → artifacts}/graphql/generated/graphql.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/holdings.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/holdings.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/holdings.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolio.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolio.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolio.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolios.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolios.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/portfolios.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/position.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/position.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/position.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/positions.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/positions.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/positions.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/securities.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/securities.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/securities.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/security.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/security.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/investor/security.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountRollups.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountRollups.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountRollups.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountTree.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountTree.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accountTree.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accounts.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accounts.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/accounts.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/closingBookStructures.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/closingBookStructures.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/closingBookStructures.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/elements.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/elements.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/elements.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entities.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entities.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entities.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entity.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entity.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/entity.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/fiscalCalendar.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/fiscalCalendar.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/fiscalCalendar.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappedTrialBalance.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappedTrialBalance.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappedTrialBalance.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mapping.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mapping.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mapping.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappingCoverage.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappingCoverage.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappingCoverage.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappings.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappings.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/mappings.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodCloseStatus.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodCloseStatus.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodCloseStatus.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodDrafts.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodDrafts.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/periodDrafts.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishList.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishList.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishList.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishLists.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishLists.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/publishLists.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/report.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/report.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/report.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reportingTaxonomy.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reportingTaxonomy.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reportingTaxonomy.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reports.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reports.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/reports.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/scheduleFacts.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/scheduleFacts.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/scheduleFacts.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/schedules.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/schedules.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/schedules.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/statement.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/statement.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/statement.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/structures.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/structures.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/structures.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/summary.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/summary.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/summary.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/taxonomies.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/taxonomies.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/taxonomies.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transaction.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transaction.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transaction.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transactions.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transactions.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/transactions.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/trialBalance.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/trialBalance.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/trialBalance.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/unmappedElements.d.ts +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/unmappedElements.js +0 -0
- /package/{extensions → artifacts}/graphql/queries/ledger/unmappedElements.ts +0 -0
- /package/{extensions → artifacts}/hooks.d.ts +0 -0
package/sdk/sdk.gen.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
|
-
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, CreateBackupData, CreateBackupErrors, CreateBackupResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateSubgraphData, CreateSubgraphErrors, CreateSubgraphResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteSubgraphData, DeleteSubgraphErrors, DeleteSubgraphResponses, 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, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, 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, GetMaterializationStatusData, GetMaterializationStatusErrors, GetMaterializationStatusResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasswordPolicyData, 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, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserResponses, MaterializeGraphData, MaterializeGraphErrors, MaterializeGraphResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, OpAddPublishListMembersData, OpAddPublishListMembersErrors, OpAddPublishListMembersResponses, OpAutoMapElementsData, OpAutoMapElementsErrors, OpAutoMapElementsResponses, OpBuildFactGridData, OpBuildFactGridErrors, OpBuildFactGridResponses, OpClosePeriodData, OpClosePeriodErrors, OpClosePeriodResponses, OpCreateClosingEntryData, OpCreateClosingEntryErrors, OpCreateClosingEntryResponses, OpCreateManualClosingEntryData, OpCreateManualClosingEntryErrors, OpCreateManualClosingEntryResponses, OpCreateMappingAssociationData, OpCreateMappingAssociationErrors, OpCreateMappingAssociationResponses, OpCreatePortfolioData, OpCreatePortfolioErrors, OpCreatePortfolioResponses, OpCreatePositionData, OpCreatePositionErrors, OpCreatePositionResponses, OpCreatePublishListData, OpCreatePublishListErrors, OpCreatePublishListResponses, OpCreateReportData, OpCreateReportErrors, OpCreateReportResponses, OpCreateScheduleData, OpCreateScheduleErrors, OpCreateScheduleResponses, OpCreateSecurityData, OpCreateSecurityErrors, OpCreateSecurityResponses, OpCreateStructureData, OpCreateStructureErrors, OpCreateStructureResponses, OpCreateTaxonomyData, OpCreateTaxonomyErrors, OpCreateTaxonomyResponses, OpDeleteMappingAssociationData, OpDeleteMappingAssociationErrors, OpDeleteMappingAssociationResponses, OpDeletePortfolioData, OpDeletePortfolioErrors, OpDeletePortfolioResponses, OpDeletePositionData, OpDeletePositionErrors, OpDeletePositionResponses, OpDeletePublishListData, OpDeletePublishListErrors, OpDeletePublishListResponses, OpDeleteReportData, OpDeleteReportErrors, OpDeleteReportResponses, OpDeleteSecurityData, OpDeleteSecurityErrors, OpDeleteSecurityResponses, OpInitializeLedgerData, OpInitializeLedgerErrors, OpInitializeLedgerResponses, OpRegenerateReportData, OpRegenerateReportErrors, OpRegenerateReportResponses, OpRemovePublishListMemberData, OpRemovePublishListMemberErrors, OpRemovePublishListMemberResponses, OpReopenPeriodData, OpReopenPeriodErrors, OpReopenPeriodResponses, OpSetCloseTargetData, OpSetCloseTargetErrors, OpSetCloseTargetResponses, OpShareReportData, OpShareReportErrors, OpShareReportResponses, OpTruncateScheduleData, OpTruncateScheduleErrors, OpTruncateScheduleResponses, OpUpdateEntityData, OpUpdateEntityErrors, OpUpdateEntityResponses, OpUpdatePortfolioData, OpUpdatePortfolioErrors, OpUpdatePortfolioResponses, OpUpdatePositionData, OpUpdatePositionErrors, OpUpdatePositionResponses, OpUpdatePublishListData, OpUpdatePublishListErrors, OpUpdatePublishListResponses, OpUpdateSecurityData, OpUpdateSecurityErrors, OpUpdateSecurityResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RestoreBackupData, RestoreBackupErrors, RestoreBackupResponses, 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, UploadDocumentsBulkData, UploadDocumentsBulkErrors, UploadDocumentsBulkResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
|
|
5
|
+
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, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, 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, 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, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, OpAddPublishListMembersData, OpAddPublishListMembersErrors, OpAddPublishListMembersResponses, OpAutoMapElementsData, OpAutoMapElementsErrors, OpAutoMapElementsResponses, OpBuildFactGridData, OpBuildFactGridErrors, OpBuildFactGridResponses, OpClosePeriodData, OpClosePeriodErrors, OpClosePeriodResponses, OpCreateAssociationsData, OpCreateAssociationsErrors, OpCreateAssociationsResponses, OpCreateBackupData, OpCreateBackupErrors, OpCreateBackupResponses, OpCreateClosingEntryData, OpCreateClosingEntryErrors, OpCreateClosingEntryResponses, OpCreateElementData, OpCreateElementErrors, OpCreateElementResponses, OpCreateJournalEntryData, OpCreateJournalEntryErrors, OpCreateJournalEntryResponses, OpCreateManualClosingEntryData, OpCreateManualClosingEntryErrors, OpCreateManualClosingEntryResponses, OpCreateMappingAssociationData, OpCreateMappingAssociationErrors, OpCreateMappingAssociationResponses, OpCreatePortfolioData, OpCreatePortfolioErrors, OpCreatePortfolioResponses, OpCreatePositionData, OpCreatePositionErrors, OpCreatePositionResponses, OpCreatePublishListData, OpCreatePublishListErrors, OpCreatePublishListResponses, OpCreateReportData, OpCreateReportErrors, OpCreateReportResponses, OpCreateScheduleData, OpCreateScheduleErrors, OpCreateScheduleResponses, OpCreateSecurityData, OpCreateSecurityErrors, OpCreateSecurityResponses, OpCreateStructureData, OpCreateStructureErrors, OpCreateStructureResponses, OpCreateSubgraphData, OpCreateSubgraphErrors, OpCreateSubgraphResponses, OpCreateTaxonomyData, OpCreateTaxonomyErrors, OpCreateTaxonomyResponses, OpDeleteAssociationData, OpDeleteAssociationErrors, OpDeleteAssociationResponses, OpDeleteElementData, OpDeleteElementErrors, OpDeleteElementResponses, OpDeleteJournalEntryData, OpDeleteJournalEntryErrors, OpDeleteJournalEntryResponses, OpDeleteMappingAssociationData, OpDeleteMappingAssociationErrors, OpDeleteMappingAssociationResponses, OpDeletePortfolioData, OpDeletePortfolioErrors, OpDeletePortfolioResponses, OpDeletePositionData, OpDeletePositionErrors, OpDeletePositionResponses, OpDeletePublishListData, OpDeletePublishListErrors, OpDeletePublishListResponses, OpDeleteReportData, OpDeleteReportErrors, OpDeleteReportResponses, OpDeleteScheduleData, OpDeleteScheduleErrors, OpDeleteScheduleResponses, OpDeleteSecurityData, OpDeleteSecurityErrors, OpDeleteSecurityResponses, OpDeleteStructureData, OpDeleteStructureErrors, OpDeleteStructureResponses, OpDeleteSubgraphData, OpDeleteSubgraphErrors, OpDeleteSubgraphResponses, OpDeleteTaxonomyData, OpDeleteTaxonomyErrors, OpDeleteTaxonomyResponses, OpInitializeLedgerData, OpInitializeLedgerErrors, OpInitializeLedgerResponses, OpLinkEntityTaxonomyData, OpLinkEntityTaxonomyErrors, OpLinkEntityTaxonomyResponses, 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, OpUpdateAssociationData, OpUpdateAssociationErrors, OpUpdateAssociationResponses, OpUpdateElementData, OpUpdateElementErrors, OpUpdateElementResponses, OpUpdateEntityData, OpUpdateEntityErrors, OpUpdateEntityResponses, OpUpdateJournalEntryData, OpUpdateJournalEntryErrors, OpUpdateJournalEntryResponses, OpUpdatePortfolioData, OpUpdatePortfolioErrors, OpUpdatePortfolioResponses, OpUpdatePositionData, OpUpdatePositionErrors, OpUpdatePositionResponses, OpUpdatePublishListData, OpUpdatePublishListErrors, OpUpdatePublishListResponses, OpUpdateScheduleData, OpUpdateScheduleErrors, OpUpdateScheduleResponses, OpUpdateSecurityData, OpUpdateSecurityErrors, OpUpdateSecurityResponses, OpUpdateStructureData, OpUpdateStructureErrors, OpUpdateStructureResponses, OpUpdateTaxonomyData, OpUpdateTaxonomyErrors, OpUpdateTaxonomyResponses, OpUpgradeTierData, OpUpgradeTierErrors, OpUpgradeTierResponses, 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, UploadDocumentsBulkData, UploadDocumentsBulkErrors, UploadDocumentsBulkResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
8
|
/**
|
|
@@ -918,80 +918,6 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
918
918
|
...options
|
|
919
919
|
});
|
|
920
920
|
|
|
921
|
-
/**
|
|
922
|
-
* Create Backup
|
|
923
|
-
*
|
|
924
|
-
* Create a backup of the graph database.
|
|
925
|
-
*
|
|
926
|
-
* Creates a complete backup of the graph database (.lbug file) with:
|
|
927
|
-
* - **Format**: Full database backup only (complete .lbug file)
|
|
928
|
-
* - **Compression**: Always enabled for optimal storage
|
|
929
|
-
* - **Encryption**: Optional AES-256 encryption for security
|
|
930
|
-
* - **Retention**: Configurable retention period (1-2555 days)
|
|
931
|
-
*
|
|
932
|
-
* **Backup Features:**
|
|
933
|
-
* - **Complete Backup**: Full database file backup
|
|
934
|
-
* - **Consistency**: Point-in-time consistent snapshot
|
|
935
|
-
* - **Download Support**: Unencrypted backups can be downloaded
|
|
936
|
-
* - **Restore Support**: Future support for encrypted backup restoration
|
|
937
|
-
*
|
|
938
|
-
* **Operation State Machine:**
|
|
939
|
-
* ```
|
|
940
|
-
* pending → processing → completed
|
|
941
|
-
* ↘ failed
|
|
942
|
-
* ```
|
|
943
|
-
* - **pending**: Backup queued, waiting to start
|
|
944
|
-
* - **processing**: Actively backing up database
|
|
945
|
-
* - **completed**: Backup successfully created and stored
|
|
946
|
-
* - **failed**: Backup failed (check error message)
|
|
947
|
-
*
|
|
948
|
-
* **Expected Durations:**
|
|
949
|
-
* Operation times vary by database size:
|
|
950
|
-
* - **Small** (<1GB): 30 seconds - 2 minutes
|
|
951
|
-
* - **Medium** (1-10GB): 2-10 minutes
|
|
952
|
-
* - **Large** (10-100GB): 10-30 minutes
|
|
953
|
-
* - **Very Large** (>100GB): 30+ minutes
|
|
954
|
-
*
|
|
955
|
-
* **Progress Monitoring:**
|
|
956
|
-
* Use the returned operation_id to connect to the SSE stream:
|
|
957
|
-
* ```javascript
|
|
958
|
-
* const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
959
|
-
* eventSource.addEventListener('operation_progress', (event) => {
|
|
960
|
-
* const data = JSON.parse(event.data);
|
|
961
|
-
* console.log('Backup progress:', data.progress_percent + '%');
|
|
962
|
-
* console.log('Status:', data.status); // pending, processing, completed, failed
|
|
963
|
-
* });
|
|
964
|
-
* ```
|
|
965
|
-
*
|
|
966
|
-
* **SSE Connection Limits:**
|
|
967
|
-
* - Maximum 5 concurrent SSE connections per user
|
|
968
|
-
* - Rate limited to 10 new connections per minute
|
|
969
|
-
* - Automatic circuit breaker for Redis failures
|
|
970
|
-
* - Graceful degradation if event system unavailable
|
|
971
|
-
*
|
|
972
|
-
* **Important Notes:**
|
|
973
|
-
* - Only full_dump format is supported (no CSV/JSON exports)
|
|
974
|
-
* - Compression is always enabled
|
|
975
|
-
* - Encrypted backups cannot be downloaded (security measure)
|
|
976
|
-
* - All backups are stored securely in cloud storage
|
|
977
|
-
*
|
|
978
|
-
* **Credit Consumption:**
|
|
979
|
-
* - Base cost: 25.0 credits
|
|
980
|
-
* - Large databases (>10GB): 50.0 credits
|
|
981
|
-
* - Multiplied by graph tier
|
|
982
|
-
*
|
|
983
|
-
* Returns operation details for SSE monitoring.
|
|
984
|
-
*/
|
|
985
|
-
export const createBackup = <ThrowOnError extends boolean = false>(options: Options<CreateBackupData, ThrowOnError>) => (options.client ?? client).post<CreateBackupResponses, CreateBackupErrors, ThrowOnError>({
|
|
986
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
987
|
-
url: '/v1/graphs/{graph_id}/backups',
|
|
988
|
-
...options,
|
|
989
|
-
headers: {
|
|
990
|
-
'Content-Type': 'application/json',
|
|
991
|
-
...options.headers
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
|
|
995
921
|
/**
|
|
996
922
|
* Get temporary download URL for backup
|
|
997
923
|
*
|
|
@@ -1003,85 +929,6 @@ export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(optio
|
|
|
1003
929
|
...options
|
|
1004
930
|
});
|
|
1005
931
|
|
|
1006
|
-
/**
|
|
1007
|
-
* Restore Encrypted Backup
|
|
1008
|
-
*
|
|
1009
|
-
* Restore a graph database from an encrypted backup.
|
|
1010
|
-
*
|
|
1011
|
-
* Restores a complete graph database from an encrypted backup:
|
|
1012
|
-
* - **Format**: Only full_dump backups can be restored
|
|
1013
|
-
* - **Encryption**: Only encrypted backups can be restored (security requirement)
|
|
1014
|
-
* - **System Backup**: Creates automatic backup of existing database before restore
|
|
1015
|
-
* - **Verification**: Optionally verifies database integrity after restore
|
|
1016
|
-
*
|
|
1017
|
-
* **Restore Features:**
|
|
1018
|
-
* - **Atomic Operation**: Complete replacement of database
|
|
1019
|
-
* - **Rollback Protection**: System backup created before restore
|
|
1020
|
-
* - **Data Integrity**: Verification ensures successful restore
|
|
1021
|
-
* - **Security**: Only encrypted backups to prevent data tampering
|
|
1022
|
-
*
|
|
1023
|
-
* **Operation State Machine:**
|
|
1024
|
-
* ```
|
|
1025
|
-
* pending → backing_up_current → downloading → restoring → verifying → completed
|
|
1026
|
-
* ↘ failed
|
|
1027
|
-
* ```
|
|
1028
|
-
* - **pending**: Restore queued, waiting to start
|
|
1029
|
-
* - **backing_up_current**: Creating safety backup of existing database
|
|
1030
|
-
* - **downloading**: Downloading backup from storage
|
|
1031
|
-
* - **restoring**: Replacing database with backup contents
|
|
1032
|
-
* - **verifying**: Verifying database integrity (if enabled)
|
|
1033
|
-
* - **completed**: Restore successful, database operational
|
|
1034
|
-
* - **failed**: Restore failed (rollback may be available)
|
|
1035
|
-
*
|
|
1036
|
-
* **Expected Durations:**
|
|
1037
|
-
* Operation times vary by database size (includes backup + restore):
|
|
1038
|
-
* - **Small** (<1GB): 1-3 minutes
|
|
1039
|
-
* - **Medium** (1-10GB): 5-15 minutes
|
|
1040
|
-
* - **Large** (10-100GB): 20-45 minutes
|
|
1041
|
-
* - **Very Large** (>100GB): 45+ minutes
|
|
1042
|
-
*
|
|
1043
|
-
* Note: Restore operations take longer than backups due to safety backup step.
|
|
1044
|
-
*
|
|
1045
|
-
* **Progress Monitoring:**
|
|
1046
|
-
* Use the returned operation_id to connect to the SSE stream:
|
|
1047
|
-
* ```javascript
|
|
1048
|
-
* const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
1049
|
-
* eventSource.addEventListener('operation_progress', (event) => {
|
|
1050
|
-
* const data = JSON.parse(event.data);
|
|
1051
|
-
* console.log('Restore progress:', data.message);
|
|
1052
|
-
* console.log('Status:', data.status); // Shows current state
|
|
1053
|
-
* });
|
|
1054
|
-
* ```
|
|
1055
|
-
*
|
|
1056
|
-
* **SSE Connection Limits:**
|
|
1057
|
-
* - Maximum 5 concurrent SSE connections per user
|
|
1058
|
-
* - Rate limited to 10 new connections per minute
|
|
1059
|
-
* - Automatic circuit breaker for Redis failures
|
|
1060
|
-
* - Graceful degradation if event system unavailable
|
|
1061
|
-
*
|
|
1062
|
-
* **Important Notes:**
|
|
1063
|
-
* - Only encrypted backups can be restored (security measure)
|
|
1064
|
-
* - Existing database is backed up to S3 before restore
|
|
1065
|
-
* - Restore is a destructive operation - existing data is replaced
|
|
1066
|
-
* - System backups are stored separately for recovery
|
|
1067
|
-
*
|
|
1068
|
-
* **Credit Consumption:**
|
|
1069
|
-
* - Base cost: 100.0 credits
|
|
1070
|
-
* - Large databases (>10GB): 200.0 credits
|
|
1071
|
-
* - Multiplied by graph tier
|
|
1072
|
-
*
|
|
1073
|
-
* Returns operation details for SSE monitoring.
|
|
1074
|
-
*/
|
|
1075
|
-
export const restoreBackup = <ThrowOnError extends boolean = false>(options: Options<RestoreBackupData, ThrowOnError>) => (options.client ?? client).post<RestoreBackupResponses, RestoreBackupErrors, ThrowOnError>({
|
|
1076
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1077
|
-
url: '/v1/graphs/{graph_id}/backups/{backup_id}/restore',
|
|
1078
|
-
...options,
|
|
1079
|
-
headers: {
|
|
1080
|
-
'Content-Type': 'application/json',
|
|
1081
|
-
...options.headers
|
|
1082
|
-
}
|
|
1083
|
-
});
|
|
1084
|
-
|
|
1085
932
|
/**
|
|
1086
933
|
* Get backup statistics
|
|
1087
934
|
*
|
|
@@ -1551,85 +1398,6 @@ export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1551
1398
|
...options
|
|
1552
1399
|
});
|
|
1553
1400
|
|
|
1554
|
-
/**
|
|
1555
|
-
* Create Subgraph
|
|
1556
|
-
*
|
|
1557
|
-
* Create a new subgraph within a parent graph, with optional data forking.
|
|
1558
|
-
*
|
|
1559
|
-
* **Requirements:**
|
|
1560
|
-
* - Valid authentication
|
|
1561
|
-
* - Parent graph must exist and be accessible to the user
|
|
1562
|
-
* - User must have 'admin' permission on the parent graph
|
|
1563
|
-
* - Parent graph tier must support subgraphs (LadybugDB Large/XLarge)
|
|
1564
|
-
* - Must be within subgraph quota limits
|
|
1565
|
-
* - Subgraph name must be unique within the parent graph
|
|
1566
|
-
*
|
|
1567
|
-
* **Fork Mode:**
|
|
1568
|
-
* When `fork_parent=true`, the operation:
|
|
1569
|
-
* - Returns immediately with an operation_id for SSE monitoring
|
|
1570
|
-
* - Copies data from parent graph to the new subgraph
|
|
1571
|
-
* - Supports selective forking via metadata.fork_options
|
|
1572
|
-
* - Tracks progress in real-time via SSE
|
|
1573
|
-
*
|
|
1574
|
-
* **Returns:**
|
|
1575
|
-
* - Without fork: Immediate SubgraphResponse with created subgraph details
|
|
1576
|
-
* - With fork: Operation response with SSE monitoring endpoint
|
|
1577
|
-
*
|
|
1578
|
-
* **Subgraph ID format:** `{parent_id}_{subgraph_name}` (e.g., kg1234567890abcdef_dev)
|
|
1579
|
-
*
|
|
1580
|
-
* **Usage:**
|
|
1581
|
-
* - Subgraphs share parent's credit pool
|
|
1582
|
-
* - Subgraph ID can be used in all standard `/v1/graphs/{graph_id}*` endpoints
|
|
1583
|
-
* - Permissions inherited from parent graph
|
|
1584
|
-
*/
|
|
1585
|
-
export const createSubgraph = <ThrowOnError extends boolean = false>(options: Options<CreateSubgraphData, ThrowOnError>) => (options.client ?? client).post<CreateSubgraphResponses, CreateSubgraphErrors, ThrowOnError>({
|
|
1586
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1587
|
-
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
1588
|
-
...options,
|
|
1589
|
-
headers: {
|
|
1590
|
-
'Content-Type': 'application/json',
|
|
1591
|
-
...options.headers
|
|
1592
|
-
}
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
/**
|
|
1596
|
-
* Delete Subgraph
|
|
1597
|
-
*
|
|
1598
|
-
* Delete a subgraph database.
|
|
1599
|
-
*
|
|
1600
|
-
* **Requirements:**
|
|
1601
|
-
* - Must be a valid subgraph (not parent graph)
|
|
1602
|
-
* - User must have admin access to parent graph
|
|
1603
|
-
* - Subgraph name must be alphanumeric (1-20 characters)
|
|
1604
|
-
* - Optional backup before deletion
|
|
1605
|
-
*
|
|
1606
|
-
* **Deletion Options:**
|
|
1607
|
-
* - `force`: Delete even if contains data
|
|
1608
|
-
* - `backup_first`: Create backup before deletion
|
|
1609
|
-
*
|
|
1610
|
-
* **Warning:**
|
|
1611
|
-
* Deletion is permanent unless backup is created.
|
|
1612
|
-
* All data in the subgraph will be lost.
|
|
1613
|
-
*
|
|
1614
|
-
* **Backup Location:**
|
|
1615
|
-
* If backup requested, stored in S3 graph database bucket at:
|
|
1616
|
-
* `s3://{graph_s3_bucket}/{instance_id}/{database_name}_{timestamp}.backup`
|
|
1617
|
-
*
|
|
1618
|
-
* **Notes:**
|
|
1619
|
-
* - Use the subgraph name (e.g., 'dev', 'staging') not the full subgraph ID
|
|
1620
|
-
* - Deletion does not affect parent graph's credit pool or permissions
|
|
1621
|
-
* - Backup creation consumes credits from parent graph's allocation
|
|
1622
|
-
*/
|
|
1623
|
-
export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Options<DeleteSubgraphData, ThrowOnError>) => (options.client ?? client).delete<DeleteSubgraphResponses, DeleteSubgraphErrors, ThrowOnError>({
|
|
1624
|
-
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1625
|
-
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}',
|
|
1626
|
-
...options,
|
|
1627
|
-
headers: {
|
|
1628
|
-
'Content-Type': 'application/json',
|
|
1629
|
-
...options.headers
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
|
|
1633
1401
|
/**
|
|
1634
1402
|
* Get Subgraph Details
|
|
1635
1403
|
*
|
|
@@ -1660,7 +1428,7 @@ export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1660
1428
|
*/
|
|
1661
1429
|
export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: Options<GetSubgraphInfoData, ThrowOnError>) => (options.client ?? client).get<GetSubgraphInfoResponses, GetSubgraphInfoErrors, ThrowOnError>({
|
|
1662
1430
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1663
|
-
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}
|
|
1431
|
+
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}',
|
|
1664
1432
|
...options
|
|
1665
1433
|
});
|
|
1666
1434
|
|
|
@@ -1978,101 +1746,86 @@ export const uploadDocumentsBulk = <ThrowOnError extends boolean = false>(option
|
|
|
1978
1746
|
});
|
|
1979
1747
|
|
|
1980
1748
|
/**
|
|
1981
|
-
*
|
|
1982
|
-
*
|
|
1983
|
-
* Get current materialization status for the graph.
|
|
1984
|
-
*
|
|
1985
|
-
* Shows whether the graph is stale (DuckDB has changes not yet in graph database),
|
|
1986
|
-
* when it was last materialized, and how long since last materialization.
|
|
1987
|
-
*
|
|
1988
|
-
* **Status Information:**
|
|
1989
|
-
* - Whether graph is currently stale
|
|
1990
|
-
* - Reason for staleness if applicable
|
|
1991
|
-
* - When graph became stale
|
|
1992
|
-
* - When graph was last materialized
|
|
1993
|
-
* - Total materialization count
|
|
1994
|
-
* - Hours since last materialization
|
|
1749
|
+
* Create Subgraph
|
|
1995
1750
|
*
|
|
1996
|
-
*
|
|
1997
|
-
* - Decide if materialization is needed
|
|
1998
|
-
* - Monitor graph freshness
|
|
1999
|
-
* - Track materialization history
|
|
2000
|
-
* - Understand data pipeline state
|
|
1751
|
+
* Create a new subgraph, optionally forking parent data.
|
|
2001
1752
|
*
|
|
2002
|
-
* **
|
|
2003
|
-
* - Stale graph means DuckDB has changes not in graph
|
|
2004
|
-
* - Graph becomes stale after file deletions
|
|
2005
|
-
* - Materialization clears staleness
|
|
2006
|
-
* - Status retrieval is included - no credit consumption
|
|
1753
|
+
* **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.
|
|
2007
1754
|
*/
|
|
2008
|
-
export const
|
|
1755
|
+
export const opCreateSubgraph = <ThrowOnError extends boolean = false>(options: Options<OpCreateSubgraphData, ThrowOnError>) => (options.client ?? client).post<OpCreateSubgraphResponses, OpCreateSubgraphErrors, ThrowOnError>({
|
|
2009
1756
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2010
|
-
url: '/v1/graphs/{graph_id}/
|
|
2011
|
-
...options
|
|
1757
|
+
url: '/v1/graphs/{graph_id}/operations/create-subgraph',
|
|
1758
|
+
...options,
|
|
1759
|
+
headers: {
|
|
1760
|
+
'Content-Type': 'application/json',
|
|
1761
|
+
...options.headers
|
|
1762
|
+
}
|
|
2012
1763
|
});
|
|
2013
1764
|
|
|
2014
1765
|
/**
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
* Rebuild entire graph from DuckDB staging tables (materialized view pattern).
|
|
2018
|
-
*
|
|
2019
|
-
* This endpoint rebuilds the complete graph database from the current state of DuckDB
|
|
2020
|
-
* staging tables. It automatically discovers all tables, ingests them in the correct
|
|
2021
|
-
* order (nodes before relationships), and clears the staleness flag.
|
|
2022
|
-
*
|
|
2023
|
-
* **When to Use:**
|
|
2024
|
-
* - After batch uploads (files uploaded with ingest_to_graph=false)
|
|
2025
|
-
* - After cascade file deletions (graph marked stale)
|
|
2026
|
-
* - To ensure graph consistency with DuckDB state
|
|
2027
|
-
* - Periodic full refresh
|
|
1766
|
+
* Delete Subgraph
|
|
2028
1767
|
*
|
|
2029
|
-
*
|
|
2030
|
-
* 1. Discovers all tables for the graph from PostgreSQL registry
|
|
2031
|
-
* 2. Sorts tables (nodes before relationships)
|
|
2032
|
-
* 3. Ingests all tables from DuckDB to graph in order
|
|
2033
|
-
* 4. Clears staleness flag on success
|
|
2034
|
-
* 5. Returns detailed materialization report
|
|
1768
|
+
* Delete a subgraph database.
|
|
2035
1769
|
*
|
|
2036
|
-
* **
|
|
2037
|
-
|
|
2038
|
-
|
|
1770
|
+
* **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.
|
|
1771
|
+
*/
|
|
1772
|
+
export const opDeleteSubgraph = <ThrowOnError extends boolean = false>(options: Options<OpDeleteSubgraphData, ThrowOnError>) => (options.client ?? client).post<OpDeleteSubgraphResponses, OpDeleteSubgraphErrors, ThrowOnError>({
|
|
1773
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1774
|
+
url: '/v1/graphs/{graph_id}/operations/delete-subgraph',
|
|
1775
|
+
...options,
|
|
1776
|
+
headers: {
|
|
1777
|
+
'Content-Type': 'application/json',
|
|
1778
|
+
...options.headers
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Create Backup
|
|
2039
1784
|
*
|
|
2040
|
-
*
|
|
2041
|
-
* Setting `rebuild=true` regenerates the entire graph database from scratch:
|
|
2042
|
-
* - Deletes existing graph database
|
|
2043
|
-
* - Recreates with fresh schema from active GraphSchema
|
|
2044
|
-
* - Ingests all data files
|
|
2045
|
-
* - Safe operation - DuckDB is source of truth
|
|
2046
|
-
* - Useful for schema changes or data corrections
|
|
2047
|
-
* - Graph marked as 'rebuilding' during process
|
|
1785
|
+
* Create a backup of the graph database (async).
|
|
2048
1786
|
*
|
|
2049
|
-
* **
|
|
2050
|
-
|
|
2051
|
-
|
|
1787
|
+
* **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.
|
|
1788
|
+
*/
|
|
1789
|
+
export const opCreateBackup = <ThrowOnError extends boolean = false>(options: Options<OpCreateBackupData, ThrowOnError>) => (options.client ?? client).post<OpCreateBackupResponses, OpCreateBackupErrors, ThrowOnError>({
|
|
1790
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1791
|
+
url: '/v1/graphs/{graph_id}/operations/create-backup',
|
|
1792
|
+
...options,
|
|
1793
|
+
headers: {
|
|
1794
|
+
'Content-Type': 'application/json',
|
|
1795
|
+
...options.headers
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Restore Backup
|
|
2052
1801
|
*
|
|
2053
|
-
*
|
|
2054
|
-
* With `ignore_errors=true` (default), continues materializing even if individual
|
|
2055
|
-
* rows fail. Failed rows are logged but don't stop the process.
|
|
1802
|
+
* Restore a graph database from an encrypted backup.
|
|
2056
1803
|
*
|
|
2057
|
-
*
|
|
2058
|
-
*
|
|
2059
|
-
* you'll receive a 409 Conflict error. The distributed lock automatically expires after
|
|
2060
|
-
* the configured TTL (default: 1 hour) to prevent deadlocks from failed materializations.
|
|
1804
|
+
* Blocked for entity graphs — OLTP is the source of truth, use
|
|
1805
|
+
* the materialize operation instead.
|
|
2061
1806
|
*
|
|
2062
|
-
* **
|
|
2063
|
-
|
|
2064
|
-
|
|
1807
|
+
* **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.
|
|
1808
|
+
*/
|
|
1809
|
+
export const opRestoreBackup = <ThrowOnError extends boolean = false>(options: Options<OpRestoreBackupData, ThrowOnError>) => (options.client ?? client).post<OpRestoreBackupResponses, OpRestoreBackupErrors, ThrowOnError>({
|
|
1810
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1811
|
+
url: '/v1/graphs/{graph_id}/operations/restore-backup',
|
|
1812
|
+
...options,
|
|
1813
|
+
headers: {
|
|
1814
|
+
'Content-Type': 'application/json',
|
|
1815
|
+
...options.headers
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Upgrade Tier
|
|
2065
1821
|
*
|
|
2066
|
-
*
|
|
2067
|
-
* Set `dry_run=true` to validate limits without executing. Returns current usage, tier limits,
|
|
2068
|
-
* and any warnings or errors. No lock is acquired, no SSE operation is created.
|
|
1822
|
+
* Change the infrastructure tier on a graph (async EBS migration).
|
|
2069
1823
|
*
|
|
2070
|
-
* **
|
|
2071
|
-
* Materialization is included - no credit consumption
|
|
1824
|
+
* **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.
|
|
2072
1825
|
*/
|
|
2073
|
-
export const
|
|
1826
|
+
export const opUpgradeTier = <ThrowOnError extends boolean = false>(options: Options<OpUpgradeTierData, ThrowOnError>) => (options.client ?? client).post<OpUpgradeTierResponses, OpUpgradeTierErrors, ThrowOnError>({
|
|
2074
1827
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2075
|
-
url: '/v1/graphs/{graph_id}/
|
|
1828
|
+
url: '/v1/graphs/{graph_id}/operations/upgrade-tier',
|
|
2076
1829
|
...options,
|
|
2077
1830
|
headers: {
|
|
2078
1831
|
'Content-Type': 'application/json',
|
|
@@ -2080,6 +1833,22 @@ export const materializeGraph = <ThrowOnError extends boolean = false>(options:
|
|
|
2080
1833
|
}
|
|
2081
1834
|
});
|
|
2082
1835
|
|
|
1836
|
+
/**
|
|
1837
|
+
* Materialize Graph
|
|
1838
|
+
*
|
|
1839
|
+
* Materialize graph from staging tables or extensions OLTP.
|
|
1840
|
+
*
|
|
1841
|
+
* Delegates to the existing materialize_graph handler which handles
|
|
1842
|
+
* distributed locking, source routing, and Dagster/direct dispatch.
|
|
1843
|
+
*
|
|
1844
|
+
* **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.
|
|
1845
|
+
*/
|
|
1846
|
+
export const opMaterialize = <ThrowOnError extends boolean = false>(options: Options<OpMaterializeData, ThrowOnError>) => (options.client ?? client).post<OpMaterializeResponses, OpMaterializeErrors, ThrowOnError>({
|
|
1847
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1848
|
+
url: '/v1/graphs/{graph_id}/operations/materialize',
|
|
1849
|
+
...options
|
|
1850
|
+
});
|
|
1851
|
+
|
|
2083
1852
|
/**
|
|
2084
1853
|
* List Files in Graph
|
|
2085
1854
|
*
|
|
@@ -2870,6 +2639,12 @@ export const getCheckoutStatus = <ThrowOnError extends boolean = false>(options:
|
|
|
2870
2639
|
|
|
2871
2640
|
/**
|
|
2872
2641
|
* Handle Http Get
|
|
2642
|
+
*
|
|
2643
|
+
*
|
|
2644
|
+
*
|
|
2645
|
+
* **Auth**: pass `X-API-Key` (or a JWT `Authorization: Bearer` header). Unauthenticated introspection queries are deliberately allowed for SDK codegen; data queries require credentials and raise `UNAUTHENTICATED`.
|
|
2646
|
+
*
|
|
2647
|
+
* **Error codes**: `LEDGER_NOT_INITIALIZED`, `INVESTOR_NOT_INITIALIZED`, and `UNAUTHENTICATED` surface in the GraphQL `errors[].extensions.code` field — see `graphql/README.md` for the full vocabulary.
|
|
2873
2648
|
*/
|
|
2874
2649
|
export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends boolean = false>(options: Options<HandleHttpGetExtensionsGraphIdGraphqlGetData, ThrowOnError>) => (options.client ?? client).get<HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, ThrowOnError>({
|
|
2875
2650
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2879,6 +2654,12 @@ export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends bo
|
|
|
2879
2654
|
|
|
2880
2655
|
/**
|
|
2881
2656
|
* Handle Http Post
|
|
2657
|
+
*
|
|
2658
|
+
*
|
|
2659
|
+
*
|
|
2660
|
+
* **Auth**: pass `X-API-Key` (or a JWT `Authorization: Bearer` header). Unauthenticated introspection queries are deliberately allowed for SDK codegen; data queries require credentials and raise `UNAUTHENTICATED`.
|
|
2661
|
+
*
|
|
2662
|
+
* **Error codes**: `LEDGER_NOT_INITIALIZED`, `INVESTOR_NOT_INITIALIZED`, and `UNAUTHENTICATED` surface in the GraphQL `errors[].extensions.code` field — see `graphql/README.md` for the full vocabulary.
|
|
2882
2663
|
*/
|
|
2883
2664
|
export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends boolean = false>(options: Options<HandleHttpPostExtensionsGraphIdGraphqlPostData, ThrowOnError>) => (options.client ?? client).post<HandleHttpPostExtensionsGraphIdGraphqlPostResponses, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, ThrowOnError>({
|
|
2884
2665
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2890,6 +2671,8 @@ export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends
|
|
|
2890
2671
|
* Update Entity
|
|
2891
2672
|
*
|
|
2892
2673
|
* Update entity details. Only provided (non-null) fields are updated.
|
|
2674
|
+
*
|
|
2675
|
+
* **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.
|
|
2893
2676
|
*/
|
|
2894
2677
|
export const opUpdateEntity = <ThrowOnError extends boolean = false>(options: Options<OpUpdateEntityData, ThrowOnError>) => (options.client ?? client).post<OpUpdateEntityResponses, OpUpdateEntityErrors, ThrowOnError>({
|
|
2895
2678
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2905,6 +2688,8 @@ export const opUpdateEntity = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2905
2688
|
* Initialize Ledger
|
|
2906
2689
|
*
|
|
2907
2690
|
* One-time ledger initialization — create fiscal calendar + seed periods.
|
|
2691
|
+
*
|
|
2692
|
+
* **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.
|
|
2908
2693
|
*/
|
|
2909
2694
|
export const opInitializeLedger = <ThrowOnError extends boolean = false>(options: Options<OpInitializeLedgerData, ThrowOnError>) => (options.client ?? client).post<OpInitializeLedgerResponses, OpInitializeLedgerErrors, ThrowOnError>({
|
|
2910
2695
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2920,6 +2705,8 @@ export const opInitializeLedger = <ThrowOnError extends boolean = false>(options
|
|
|
2920
2705
|
* Set Close Target
|
|
2921
2706
|
*
|
|
2922
2707
|
* Set the user-controlled close target (YYYY-MM).
|
|
2708
|
+
*
|
|
2709
|
+
* **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.
|
|
2923
2710
|
*/
|
|
2924
2711
|
export const opSetCloseTarget = <ThrowOnError extends boolean = false>(options: Options<OpSetCloseTargetData, ThrowOnError>) => (options.client ?? client).post<OpSetCloseTargetResponses, OpSetCloseTargetErrors, ThrowOnError>({
|
|
2925
2712
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2935,6 +2722,8 @@ export const opSetCloseTarget = <ThrowOnError extends boolean = false>(options:
|
|
|
2935
2722
|
* Close Fiscal Period
|
|
2936
2723
|
*
|
|
2937
2724
|
* Close a fiscal period — the final commit action.
|
|
2725
|
+
*
|
|
2726
|
+
* **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.
|
|
2938
2727
|
*/
|
|
2939
2728
|
export const opClosePeriod = <ThrowOnError extends boolean = false>(options: Options<OpClosePeriodData, ThrowOnError>) => (options.client ?? client).post<OpClosePeriodResponses, OpClosePeriodErrors, ThrowOnError>({
|
|
2940
2729
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2950,6 +2739,8 @@ export const opClosePeriod = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2950
2739
|
* Reopen Fiscal Period
|
|
2951
2740
|
*
|
|
2952
2741
|
* Reopen a closed fiscal period — decrements `closed_through`.
|
|
2742
|
+
*
|
|
2743
|
+
* **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.
|
|
2953
2744
|
*/
|
|
2954
2745
|
export const opReopenPeriod = <ThrowOnError extends boolean = false>(options: Options<OpReopenPeriodData, ThrowOnError>) => (options.client ?? client).post<OpReopenPeriodResponses, OpReopenPeriodErrors, ThrowOnError>({
|
|
2955
2746
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2965,6 +2756,8 @@ export const opReopenPeriod = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2965
2756
|
* Create Schedule
|
|
2966
2757
|
*
|
|
2967
2758
|
* Create a schedule with pre-generated monthly facts.
|
|
2759
|
+
*
|
|
2760
|
+
* **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.
|
|
2968
2761
|
*/
|
|
2969
2762
|
export const opCreateSchedule = <ThrowOnError extends boolean = false>(options: Options<OpCreateScheduleData, ThrowOnError>) => (options.client ?? client).post<OpCreateScheduleResponses, OpCreateScheduleErrors, ThrowOnError>({
|
|
2970
2763
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2980,6 +2773,8 @@ export const opCreateSchedule = <ThrowOnError extends boolean = false>(options:
|
|
|
2980
2773
|
* Truncate Schedule (End Early)
|
|
2981
2774
|
*
|
|
2982
2775
|
* End a schedule early — delete forward facts + stale drafts.
|
|
2776
|
+
*
|
|
2777
|
+
* **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.
|
|
2983
2778
|
*/
|
|
2984
2779
|
export const opTruncateSchedule = <ThrowOnError extends boolean = false>(options: Options<OpTruncateScheduleData, ThrowOnError>) => (options.client ?? client).post<OpTruncateScheduleResponses, OpTruncateScheduleErrors, ThrowOnError>({
|
|
2985
2780
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -2995,6 +2790,8 @@ export const opTruncateSchedule = <ThrowOnError extends boolean = false>(options
|
|
|
2995
2790
|
* Create Closing Entry
|
|
2996
2791
|
*
|
|
2997
2792
|
* Create a draft closing entry from a schedule's facts for a period.
|
|
2793
|
+
*
|
|
2794
|
+
* **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.
|
|
2998
2795
|
*/
|
|
2999
2796
|
export const opCreateClosingEntry = <ThrowOnError extends boolean = false>(options: Options<OpCreateClosingEntryData, ThrowOnError>) => (options.client ?? client).post<OpCreateClosingEntryResponses, OpCreateClosingEntryErrors, ThrowOnError>({
|
|
3000
2797
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3010,6 +2807,8 @@ export const opCreateClosingEntry = <ThrowOnError extends boolean = false>(optio
|
|
|
3010
2807
|
* Create Manual Closing Entry
|
|
3011
2808
|
*
|
|
3012
2809
|
* Create a manual (non-schedule) draft closing entry.
|
|
2810
|
+
*
|
|
2811
|
+
* **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.
|
|
3013
2812
|
*/
|
|
3014
2813
|
export const opCreateManualClosingEntry = <ThrowOnError extends boolean = false>(options: Options<OpCreateManualClosingEntryData, ThrowOnError>) => (options.client ?? client).post<OpCreateManualClosingEntryResponses, OpCreateManualClosingEntryErrors, ThrowOnError>({
|
|
3015
2814
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3025,6 +2824,8 @@ export const opCreateManualClosingEntry = <ThrowOnError extends boolean = false>
|
|
|
3025
2824
|
* Create Taxonomy
|
|
3026
2825
|
*
|
|
3027
2826
|
* Create a new taxonomy definition.
|
|
2827
|
+
*
|
|
2828
|
+
* **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.
|
|
3028
2829
|
*/
|
|
3029
2830
|
export const opCreateTaxonomy = <ThrowOnError extends boolean = false>(options: Options<OpCreateTaxonomyData, ThrowOnError>) => (options.client ?? client).post<OpCreateTaxonomyResponses, OpCreateTaxonomyErrors, ThrowOnError>({
|
|
3030
2831
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3040,6 +2841,8 @@ export const opCreateTaxonomy = <ThrowOnError extends boolean = false>(options:
|
|
|
3040
2841
|
* Create Structure
|
|
3041
2842
|
*
|
|
3042
2843
|
* Create a new structure (statement, mapping, schedule, etc.).
|
|
2844
|
+
*
|
|
2845
|
+
* **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.
|
|
3043
2846
|
*/
|
|
3044
2847
|
export const opCreateStructure = <ThrowOnError extends boolean = false>(options: Options<OpCreateStructureData, ThrowOnError>) => (options.client ?? client).post<OpCreateStructureResponses, OpCreateStructureErrors, ThrowOnError>({
|
|
3045
2848
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3055,6 +2858,8 @@ export const opCreateStructure = <ThrowOnError extends boolean = false>(options:
|
|
|
3055
2858
|
* Create Mapping Association
|
|
3056
2859
|
*
|
|
3057
2860
|
* Add a mapping association (CoA element → reporting concept).
|
|
2861
|
+
*
|
|
2862
|
+
* **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.
|
|
3058
2863
|
*/
|
|
3059
2864
|
export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<OpCreateMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<OpCreateMappingAssociationResponses, OpCreateMappingAssociationErrors, ThrowOnError>({
|
|
3060
2865
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3070,6 +2875,8 @@ export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>
|
|
|
3070
2875
|
* Delete Mapping Association
|
|
3071
2876
|
*
|
|
3072
2877
|
* Remove a mapping association.
|
|
2878
|
+
*
|
|
2879
|
+
* **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.
|
|
3073
2880
|
*/
|
|
3074
2881
|
export const opDeleteMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<OpDeleteMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<OpDeleteMappingAssociationResponses, OpDeleteMappingAssociationErrors, ThrowOnError>({
|
|
3075
2882
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3081,6 +2888,295 @@ export const opDeleteMappingAssociation = <ThrowOnError extends boolean = false>
|
|
|
3081
2888
|
}
|
|
3082
2889
|
});
|
|
3083
2890
|
|
|
2891
|
+
/**
|
|
2892
|
+
* Update Taxonomy
|
|
2893
|
+
*
|
|
2894
|
+
* Update mutable fields on a taxonomy. `taxonomy_type` is immutable.
|
|
2895
|
+
*
|
|
2896
|
+
* **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.
|
|
2897
|
+
*/
|
|
2898
|
+
export const opUpdateTaxonomy = <ThrowOnError extends boolean = false>(options: Options<OpUpdateTaxonomyData, ThrowOnError>) => (options.client ?? client).post<OpUpdateTaxonomyResponses, OpUpdateTaxonomyErrors, ThrowOnError>({
|
|
2899
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2900
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy',
|
|
2901
|
+
...options,
|
|
2902
|
+
headers: {
|
|
2903
|
+
'Content-Type': 'application/json',
|
|
2904
|
+
...options.headers
|
|
2905
|
+
}
|
|
2906
|
+
});
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Delete Taxonomy
|
|
2910
|
+
*
|
|
2911
|
+
* Soft-delete a taxonomy (sets `is_active=false`). Historical references remain valid.
|
|
2912
|
+
*
|
|
2913
|
+
* **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.
|
|
2914
|
+
*/
|
|
2915
|
+
export const opDeleteTaxonomy = <ThrowOnError extends boolean = false>(options: Options<OpDeleteTaxonomyData, ThrowOnError>) => (options.client ?? client).post<OpDeleteTaxonomyResponses, OpDeleteTaxonomyErrors, ThrowOnError>({
|
|
2916
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2917
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy',
|
|
2918
|
+
...options,
|
|
2919
|
+
headers: {
|
|
2920
|
+
'Content-Type': 'application/json',
|
|
2921
|
+
...options.headers
|
|
2922
|
+
}
|
|
2923
|
+
});
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Link Entity to Taxonomy
|
|
2927
|
+
*
|
|
2928
|
+
* Link the graph's entity to a taxonomy (creates the ENTITY_HAS_TAXONOMY edge). Idempotent — returns existing linkage if it already exists. Required after creating a CoA taxonomy so the platform knows which chart of accounts the entity reports under.
|
|
2929
|
+
*
|
|
2930
|
+
* **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.
|
|
2931
|
+
*/
|
|
2932
|
+
export const opLinkEntityTaxonomy = <ThrowOnError extends boolean = false>(options: Options<OpLinkEntityTaxonomyData, ThrowOnError>) => (options.client ?? client).post<OpLinkEntityTaxonomyResponses, OpLinkEntityTaxonomyErrors, ThrowOnError>({
|
|
2933
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2934
|
+
url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy',
|
|
2935
|
+
...options,
|
|
2936
|
+
headers: {
|
|
2937
|
+
'Content-Type': 'application/json',
|
|
2938
|
+
...options.headers
|
|
2939
|
+
}
|
|
2940
|
+
});
|
|
2941
|
+
|
|
2942
|
+
/**
|
|
2943
|
+
* Update Structure
|
|
2944
|
+
*
|
|
2945
|
+
* Update mutable fields on a structure. `structure_type` and `taxonomy_id` are immutable.
|
|
2946
|
+
*
|
|
2947
|
+
* **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.
|
|
2948
|
+
*/
|
|
2949
|
+
export const opUpdateStructure = <ThrowOnError extends boolean = false>(options: Options<OpUpdateStructureData, ThrowOnError>) => (options.client ?? client).post<OpUpdateStructureResponses, OpUpdateStructureErrors, ThrowOnError>({
|
|
2950
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2951
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-structure',
|
|
2952
|
+
...options,
|
|
2953
|
+
headers: {
|
|
2954
|
+
'Content-Type': 'application/json',
|
|
2955
|
+
...options.headers
|
|
2956
|
+
}
|
|
2957
|
+
});
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* Delete Structure
|
|
2961
|
+
*
|
|
2962
|
+
* Soft-delete a structure (sets `is_active=false`). Associations referencing it are effectively orphaned.
|
|
2963
|
+
*
|
|
2964
|
+
* **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.
|
|
2965
|
+
*/
|
|
2966
|
+
export const opDeleteStructure = <ThrowOnError extends boolean = false>(options: Options<OpDeleteStructureData, ThrowOnError>) => (options.client ?? client).post<OpDeleteStructureResponses, OpDeleteStructureErrors, ThrowOnError>({
|
|
2967
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2968
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-structure',
|
|
2969
|
+
...options,
|
|
2970
|
+
headers: {
|
|
2971
|
+
'Content-Type': 'application/json',
|
|
2972
|
+
...options.headers
|
|
2973
|
+
}
|
|
2974
|
+
});
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* Create Element
|
|
2978
|
+
*
|
|
2979
|
+
* Create an element within a taxonomy. For chart-of-accounts taxonomies this is how native accounts are added.
|
|
2980
|
+
*
|
|
2981
|
+
* **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.
|
|
2982
|
+
*/
|
|
2983
|
+
export const opCreateElement = <ThrowOnError extends boolean = false>(options: Options<OpCreateElementData, ThrowOnError>) => (options.client ?? client).post<OpCreateElementResponses, OpCreateElementErrors, ThrowOnError>({
|
|
2984
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2985
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-element',
|
|
2986
|
+
...options,
|
|
2987
|
+
headers: {
|
|
2988
|
+
'Content-Type': 'application/json',
|
|
2989
|
+
...options.headers
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
|
|
2993
|
+
/**
|
|
2994
|
+
* Update Element
|
|
2995
|
+
*
|
|
2996
|
+
* Update mutable fields on an element. `taxonomy_id` and `source` are immutable. Reparenting cascades path/depth to descendants.
|
|
2997
|
+
*
|
|
2998
|
+
* **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.
|
|
2999
|
+
*/
|
|
3000
|
+
export const opUpdateElement = <ThrowOnError extends boolean = false>(options: Options<OpUpdateElementData, ThrowOnError>) => (options.client ?? client).post<OpUpdateElementResponses, OpUpdateElementErrors, ThrowOnError>({
|
|
3001
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3002
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-element',
|
|
3003
|
+
...options,
|
|
3004
|
+
headers: {
|
|
3005
|
+
'Content-Type': 'application/json',
|
|
3006
|
+
...options.headers
|
|
3007
|
+
}
|
|
3008
|
+
});
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* Delete Element
|
|
3012
|
+
*
|
|
3013
|
+
* Soft-delete an element (sets `is_active=false`). Historical line items referencing it remain valid.
|
|
3014
|
+
*
|
|
3015
|
+
* **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.
|
|
3016
|
+
*/
|
|
3017
|
+
export const opDeleteElement = <ThrowOnError extends boolean = false>(options: Options<OpDeleteElementData, ThrowOnError>) => (options.client ?? client).post<OpDeleteElementResponses, OpDeleteElementErrors, ThrowOnError>({
|
|
3018
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3019
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-element',
|
|
3020
|
+
...options,
|
|
3021
|
+
headers: {
|
|
3022
|
+
'Content-Type': 'application/json',
|
|
3023
|
+
...options.headers
|
|
3024
|
+
}
|
|
3025
|
+
});
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Create Associations (Bulk)
|
|
3029
|
+
*
|
|
3030
|
+
* Create N associations in a single structure, atomically. Handles 50+ presentation arcs, 25+ calculation arcs, or a full table linkbase in one call. Any failed row rolls back the batch.
|
|
3031
|
+
*
|
|
3032
|
+
* **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.
|
|
3033
|
+
*/
|
|
3034
|
+
export const opCreateAssociations = <ThrowOnError extends boolean = false>(options: Options<OpCreateAssociationsData, ThrowOnError>) => (options.client ?? client).post<OpCreateAssociationsResponses, OpCreateAssociationsErrors, ThrowOnError>({
|
|
3035
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3036
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-associations',
|
|
3037
|
+
...options,
|
|
3038
|
+
headers: {
|
|
3039
|
+
'Content-Type': 'application/json',
|
|
3040
|
+
...options.headers
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
|
|
3044
|
+
/**
|
|
3045
|
+
* Update Association
|
|
3046
|
+
*
|
|
3047
|
+
* Update mutable fields on an association. `from_element_id`, `to_element_id`, `association_type`, and `structure_id` are immutable — delete and recreate instead.
|
|
3048
|
+
*
|
|
3049
|
+
* **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.
|
|
3050
|
+
*/
|
|
3051
|
+
export const opUpdateAssociation = <ThrowOnError extends boolean = false>(options: Options<OpUpdateAssociationData, ThrowOnError>) => (options.client ?? client).post<OpUpdateAssociationResponses, OpUpdateAssociationErrors, ThrowOnError>({
|
|
3052
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3053
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-association',
|
|
3054
|
+
...options,
|
|
3055
|
+
headers: {
|
|
3056
|
+
'Content-Type': 'application/json',
|
|
3057
|
+
...options.headers
|
|
3058
|
+
}
|
|
3059
|
+
});
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* Delete Association
|
|
3063
|
+
*
|
|
3064
|
+
* Hard-delete an association. Generalizes delete-mapping-association to all association types (presentation, calculation, mapping).
|
|
3065
|
+
*
|
|
3066
|
+
* **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.
|
|
3067
|
+
*/
|
|
3068
|
+
export const opDeleteAssociation = <ThrowOnError extends boolean = false>(options: Options<OpDeleteAssociationData, ThrowOnError>) => (options.client ?? client).post<OpDeleteAssociationResponses, OpDeleteAssociationErrors, ThrowOnError>({
|
|
3069
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3070
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-association',
|
|
3071
|
+
...options,
|
|
3072
|
+
headers: {
|
|
3073
|
+
'Content-Type': 'application/json',
|
|
3074
|
+
...options.headers
|
|
3075
|
+
}
|
|
3076
|
+
});
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* Create Journal Entry
|
|
3080
|
+
*
|
|
3081
|
+
* 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.
|
|
3082
|
+
*
|
|
3083
|
+
* **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.
|
|
3084
|
+
*/
|
|
3085
|
+
export const opCreateJournalEntry = <ThrowOnError extends boolean = false>(options: Options<OpCreateJournalEntryData, ThrowOnError>) => (options.client ?? client).post<OpCreateJournalEntryResponses, OpCreateJournalEntryErrors, ThrowOnError>({
|
|
3086
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3087
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-journal-entry',
|
|
3088
|
+
...options,
|
|
3089
|
+
headers: {
|
|
3090
|
+
'Content-Type': 'application/json',
|
|
3091
|
+
...options.headers
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Update Journal Entry
|
|
3097
|
+
*
|
|
3098
|
+
* 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.
|
|
3099
|
+
*
|
|
3100
|
+
* **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.
|
|
3101
|
+
*/
|
|
3102
|
+
export const opUpdateJournalEntry = <ThrowOnError extends boolean = false>(options: Options<OpUpdateJournalEntryData, ThrowOnError>) => (options.client ?? client).post<OpUpdateJournalEntryResponses, OpUpdateJournalEntryErrors, ThrowOnError>({
|
|
3103
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3104
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry',
|
|
3105
|
+
...options,
|
|
3106
|
+
headers: {
|
|
3107
|
+
'Content-Type': 'application/json',
|
|
3108
|
+
...options.headers
|
|
3109
|
+
}
|
|
3110
|
+
});
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* Delete Journal Entry
|
|
3114
|
+
*
|
|
3115
|
+
* Hard-delete a draft journal entry. Posted entries are immutable and must be reversed instead.
|
|
3116
|
+
*
|
|
3117
|
+
* **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.
|
|
3118
|
+
*/
|
|
3119
|
+
export const opDeleteJournalEntry = <ThrowOnError extends boolean = false>(options: Options<OpDeleteJournalEntryData, ThrowOnError>) => (options.client ?? client).post<OpDeleteJournalEntryResponses, OpDeleteJournalEntryErrors, ThrowOnError>({
|
|
3120
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3121
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry',
|
|
3122
|
+
...options,
|
|
3123
|
+
headers: {
|
|
3124
|
+
'Content-Type': 'application/json',
|
|
3125
|
+
...options.headers
|
|
3126
|
+
}
|
|
3127
|
+
});
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* Reverse Journal Entry
|
|
3131
|
+
*
|
|
3132
|
+
* 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.
|
|
3133
|
+
*
|
|
3134
|
+
* **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.
|
|
3135
|
+
*/
|
|
3136
|
+
export const opReverseJournalEntry = <ThrowOnError extends boolean = false>(options: Options<OpReverseJournalEntryData, ThrowOnError>) => (options.client ?? client).post<OpReverseJournalEntryResponses, OpReverseJournalEntryErrors, ThrowOnError>({
|
|
3137
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3138
|
+
url: '/extensions/roboledger/{graph_id}/operations/reverse-journal-entry',
|
|
3139
|
+
...options,
|
|
3140
|
+
headers: {
|
|
3141
|
+
'Content-Type': 'application/json',
|
|
3142
|
+
...options.headers
|
|
3143
|
+
}
|
|
3144
|
+
});
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* Update Schedule
|
|
3148
|
+
*
|
|
3149
|
+
* Update mutable fields on a schedule: name, entry_template, schedule_metadata. Period range and monthly_amount are NOT editable — use truncate-schedule + create-schedule instead.
|
|
3150
|
+
*
|
|
3151
|
+
* **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.
|
|
3152
|
+
*/
|
|
3153
|
+
export const opUpdateSchedule = <ThrowOnError extends boolean = false>(options: Options<OpUpdateScheduleData, ThrowOnError>) => (options.client ?? client).post<OpUpdateScheduleResponses, OpUpdateScheduleErrors, ThrowOnError>({
|
|
3154
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3155
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-schedule',
|
|
3156
|
+
...options,
|
|
3157
|
+
headers: {
|
|
3158
|
+
'Content-Type': 'application/json',
|
|
3159
|
+
...options.headers
|
|
3160
|
+
}
|
|
3161
|
+
});
|
|
3162
|
+
|
|
3163
|
+
/**
|
|
3164
|
+
* Delete Schedule
|
|
3165
|
+
*
|
|
3166
|
+
* Permanently delete a schedule, cascading through facts and associations. For ending a schedule early without removing history, use truncate-schedule instead.
|
|
3167
|
+
*
|
|
3168
|
+
* **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.
|
|
3169
|
+
*/
|
|
3170
|
+
export const opDeleteSchedule = <ThrowOnError extends boolean = false>(options: Options<OpDeleteScheduleData, ThrowOnError>) => (options.client ?? client).post<OpDeleteScheduleResponses, OpDeleteScheduleErrors, ThrowOnError>({
|
|
3171
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
3172
|
+
url: '/extensions/roboledger/{graph_id}/operations/delete-schedule',
|
|
3173
|
+
...options,
|
|
3174
|
+
headers: {
|
|
3175
|
+
'Content-Type': 'application/json',
|
|
3176
|
+
...options.headers
|
|
3177
|
+
}
|
|
3178
|
+
});
|
|
3179
|
+
|
|
3084
3180
|
/**
|
|
3085
3181
|
* Auto-Map Elements via AI (async)
|
|
3086
3182
|
*
|
|
@@ -3096,6 +3192,8 @@ export const opDeleteMappingAssociation = <ThrowOnError extends boolean = false>
|
|
|
3096
3192
|
* - ≥0.90: auto-approved mapping
|
|
3097
3193
|
* - 0.70-0.89: flagged for review
|
|
3098
3194
|
* - <0.70: skipped (left unmapped)
|
|
3195
|
+
*
|
|
3196
|
+
* **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.
|
|
3099
3197
|
*/
|
|
3100
3198
|
export const opAutoMapElements = <ThrowOnError extends boolean = false>(options: Options<OpAutoMapElementsData, ThrowOnError>) => (options.client ?? client).post<OpAutoMapElementsResponses, OpAutoMapElementsErrors, ThrowOnError>({
|
|
3101
3199
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3111,6 +3209,8 @@ export const opAutoMapElements = <ThrowOnError extends boolean = false>(options:
|
|
|
3111
3209
|
* Create Report
|
|
3112
3210
|
*
|
|
3113
3211
|
* Create a report definition, generate facts, and mark as published.
|
|
3212
|
+
*
|
|
3213
|
+
* **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.
|
|
3114
3214
|
*/
|
|
3115
3215
|
export const opCreateReport = <ThrowOnError extends boolean = false>(options: Options<OpCreateReportData, ThrowOnError>) => (options.client ?? client).post<OpCreateReportResponses, OpCreateReportErrors, ThrowOnError>({
|
|
3116
3216
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3126,6 +3226,8 @@ export const opCreateReport = <ThrowOnError extends boolean = false>(options: Op
|
|
|
3126
3226
|
* Regenerate Report
|
|
3127
3227
|
*
|
|
3128
3228
|
* Regenerate a report with new period dates.
|
|
3229
|
+
*
|
|
3230
|
+
* **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.
|
|
3129
3231
|
*/
|
|
3130
3232
|
export const opRegenerateReport = <ThrowOnError extends boolean = false>(options: Options<OpRegenerateReportData, ThrowOnError>) => (options.client ?? client).post<OpRegenerateReportResponses, OpRegenerateReportErrors, ThrowOnError>({
|
|
3131
3233
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3141,6 +3243,8 @@ export const opRegenerateReport = <ThrowOnError extends boolean = false>(options
|
|
|
3141
3243
|
* Delete Report
|
|
3142
3244
|
*
|
|
3143
3245
|
* Delete a report definition and its facts.
|
|
3246
|
+
*
|
|
3247
|
+
* **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.
|
|
3144
3248
|
*/
|
|
3145
3249
|
export const opDeleteReport = <ThrowOnError extends boolean = false>(options: Options<OpDeleteReportData, ThrowOnError>) => (options.client ?? client).post<OpDeleteReportResponses, OpDeleteReportErrors, ThrowOnError>({
|
|
3146
3250
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3156,6 +3260,8 @@ export const opDeleteReport = <ThrowOnError extends boolean = false>(options: Op
|
|
|
3156
3260
|
* Share Report
|
|
3157
3261
|
*
|
|
3158
3262
|
* Share a published report to a publish list's members.
|
|
3263
|
+
*
|
|
3264
|
+
* **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.
|
|
3159
3265
|
*/
|
|
3160
3266
|
export const opShareReport = <ThrowOnError extends boolean = false>(options: Options<OpShareReportData, ThrowOnError>) => (options.client ?? client).post<OpShareReportResponses, OpShareReportErrors, ThrowOnError>({
|
|
3161
3267
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3171,6 +3277,8 @@ export const opShareReport = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
3171
3277
|
* Create Publish List
|
|
3172
3278
|
*
|
|
3173
3279
|
* Create a new publish list.
|
|
3280
|
+
*
|
|
3281
|
+
* **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.
|
|
3174
3282
|
*/
|
|
3175
3283
|
export const opCreatePublishList = <ThrowOnError extends boolean = false>(options: Options<OpCreatePublishListData, ThrowOnError>) => (options.client ?? client).post<OpCreatePublishListResponses, OpCreatePublishListErrors, ThrowOnError>({
|
|
3176
3284
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3186,6 +3294,8 @@ export const opCreatePublishList = <ThrowOnError extends boolean = false>(option
|
|
|
3186
3294
|
* Update Publish List
|
|
3187
3295
|
*
|
|
3188
3296
|
* Update a publish list's name / description.
|
|
3297
|
+
*
|
|
3298
|
+
* **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.
|
|
3189
3299
|
*/
|
|
3190
3300
|
export const opUpdatePublishList = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePublishListData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePublishListResponses, OpUpdatePublishListErrors, ThrowOnError>({
|
|
3191
3301
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3201,6 +3311,8 @@ export const opUpdatePublishList = <ThrowOnError extends boolean = false>(option
|
|
|
3201
3311
|
* Delete Publish List
|
|
3202
3312
|
*
|
|
3203
3313
|
* Delete a publish list.
|
|
3314
|
+
*
|
|
3315
|
+
* **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.
|
|
3204
3316
|
*/
|
|
3205
3317
|
export const opDeletePublishList = <ThrowOnError extends boolean = false>(options: Options<OpDeletePublishListData, ThrowOnError>) => (options.client ?? client).post<OpDeletePublishListResponses, OpDeletePublishListErrors, ThrowOnError>({
|
|
3206
3318
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3216,6 +3328,8 @@ export const opDeletePublishList = <ThrowOnError extends boolean = false>(option
|
|
|
3216
3328
|
* Add Members to Publish List
|
|
3217
3329
|
*
|
|
3218
3330
|
* Add target graphs as members of a publish list.
|
|
3331
|
+
*
|
|
3332
|
+
* **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.
|
|
3219
3333
|
*/
|
|
3220
3334
|
export const opAddPublishListMembers = <ThrowOnError extends boolean = false>(options: Options<OpAddPublishListMembersData, ThrowOnError>) => (options.client ?? client).post<OpAddPublishListMembersResponses, OpAddPublishListMembersErrors, ThrowOnError>({
|
|
3221
3335
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3231,6 +3345,8 @@ export const opAddPublishListMembers = <ThrowOnError extends boolean = false>(op
|
|
|
3231
3345
|
* Remove Member from Publish List
|
|
3232
3346
|
*
|
|
3233
3347
|
* Remove a target graph from a publish list.
|
|
3348
|
+
*
|
|
3349
|
+
* **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.
|
|
3234
3350
|
*/
|
|
3235
3351
|
export const opRemovePublishListMember = <ThrowOnError extends boolean = false>(options: Options<OpRemovePublishListMemberData, ThrowOnError>) => (options.client ?? client).post<OpRemovePublishListMemberResponses, OpRemovePublishListMemberErrors, ThrowOnError>({
|
|
3236
3352
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3256,6 +3372,8 @@ export const opRemovePublishListMember = <ThrowOnError extends boolean = false>(
|
|
|
3256
3372
|
* not the extensions OLTP database. The same operation works for
|
|
3257
3373
|
* roboledger tenant graphs (post-materialization) and the SEC shared
|
|
3258
3374
|
* repository (which uses the same XBRL hypercube schema).
|
|
3375
|
+
*
|
|
3376
|
+
* **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.
|
|
3259
3377
|
*/
|
|
3260
3378
|
export const opBuildFactGrid = <ThrowOnError extends boolean = false>(options: Options<OpBuildFactGridData, ThrowOnError>) => (options.client ?? client).post<OpBuildFactGridResponses, OpBuildFactGridErrors, ThrowOnError>({
|
|
3261
3379
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3269,6 +3387,10 @@ export const opBuildFactGrid = <ThrowOnError extends boolean = false>(options: O
|
|
|
3269
3387
|
|
|
3270
3388
|
/**
|
|
3271
3389
|
* Create Portfolio
|
|
3390
|
+
*
|
|
3391
|
+
*
|
|
3392
|
+
*
|
|
3393
|
+
* **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.
|
|
3272
3394
|
*/
|
|
3273
3395
|
export const opCreatePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpCreatePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpCreatePortfolioResponses, OpCreatePortfolioErrors, ThrowOnError>({
|
|
3274
3396
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3282,6 +3404,10 @@ export const opCreatePortfolio = <ThrowOnError extends boolean = false>(options:
|
|
|
3282
3404
|
|
|
3283
3405
|
/**
|
|
3284
3406
|
* Update Portfolio
|
|
3407
|
+
*
|
|
3408
|
+
*
|
|
3409
|
+
*
|
|
3410
|
+
* **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.
|
|
3285
3411
|
*/
|
|
3286
3412
|
export const opUpdatePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePortfolioResponses, OpUpdatePortfolioErrors, ThrowOnError>({
|
|
3287
3413
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3295,6 +3421,10 @@ export const opUpdatePortfolio = <ThrowOnError extends boolean = false>(options:
|
|
|
3295
3421
|
|
|
3296
3422
|
/**
|
|
3297
3423
|
* Delete Portfolio
|
|
3424
|
+
*
|
|
3425
|
+
*
|
|
3426
|
+
*
|
|
3427
|
+
* **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.
|
|
3298
3428
|
*/
|
|
3299
3429
|
export const opDeletePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpDeletePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpDeletePortfolioResponses, OpDeletePortfolioErrors, ThrowOnError>({
|
|
3300
3430
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3308,6 +3438,10 @@ export const opDeletePortfolio = <ThrowOnError extends boolean = false>(options:
|
|
|
3308
3438
|
|
|
3309
3439
|
/**
|
|
3310
3440
|
* Create Security
|
|
3441
|
+
*
|
|
3442
|
+
*
|
|
3443
|
+
*
|
|
3444
|
+
* **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.
|
|
3311
3445
|
*/
|
|
3312
3446
|
export const opCreateSecurity = <ThrowOnError extends boolean = false>(options: Options<OpCreateSecurityData, ThrowOnError>) => (options.client ?? client).post<OpCreateSecurityResponses, OpCreateSecurityErrors, ThrowOnError>({
|
|
3313
3447
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3321,6 +3455,10 @@ export const opCreateSecurity = <ThrowOnError extends boolean = false>(options:
|
|
|
3321
3455
|
|
|
3322
3456
|
/**
|
|
3323
3457
|
* Update Security
|
|
3458
|
+
*
|
|
3459
|
+
*
|
|
3460
|
+
*
|
|
3461
|
+
* **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.
|
|
3324
3462
|
*/
|
|
3325
3463
|
export const opUpdateSecurity = <ThrowOnError extends boolean = false>(options: Options<OpUpdateSecurityData, ThrowOnError>) => (options.client ?? client).post<OpUpdateSecurityResponses, OpUpdateSecurityErrors, ThrowOnError>({
|
|
3326
3464
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3334,6 +3472,10 @@ export const opUpdateSecurity = <ThrowOnError extends boolean = false>(options:
|
|
|
3334
3472
|
|
|
3335
3473
|
/**
|
|
3336
3474
|
* Delete Security
|
|
3475
|
+
*
|
|
3476
|
+
*
|
|
3477
|
+
*
|
|
3478
|
+
* **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.
|
|
3337
3479
|
*/
|
|
3338
3480
|
export const opDeleteSecurity = <ThrowOnError extends boolean = false>(options: Options<OpDeleteSecurityData, ThrowOnError>) => (options.client ?? client).post<OpDeleteSecurityResponses, OpDeleteSecurityErrors, ThrowOnError>({
|
|
3339
3481
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3347,6 +3489,10 @@ export const opDeleteSecurity = <ThrowOnError extends boolean = false>(options:
|
|
|
3347
3489
|
|
|
3348
3490
|
/**
|
|
3349
3491
|
* Create Position
|
|
3492
|
+
*
|
|
3493
|
+
*
|
|
3494
|
+
*
|
|
3495
|
+
* **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.
|
|
3350
3496
|
*/
|
|
3351
3497
|
export const opCreatePosition = <ThrowOnError extends boolean = false>(options: Options<OpCreatePositionData, ThrowOnError>) => (options.client ?? client).post<OpCreatePositionResponses, OpCreatePositionErrors, ThrowOnError>({
|
|
3352
3498
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3360,6 +3506,10 @@ export const opCreatePosition = <ThrowOnError extends boolean = false>(options:
|
|
|
3360
3506
|
|
|
3361
3507
|
/**
|
|
3362
3508
|
* Update Position
|
|
3509
|
+
*
|
|
3510
|
+
*
|
|
3511
|
+
*
|
|
3512
|
+
* **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.
|
|
3363
3513
|
*/
|
|
3364
3514
|
export const opUpdatePosition = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePositionData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePositionResponses, OpUpdatePositionErrors, ThrowOnError>({
|
|
3365
3515
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
@@ -3373,6 +3523,10 @@ export const opUpdatePosition = <ThrowOnError extends boolean = false>(options:
|
|
|
3373
3523
|
|
|
3374
3524
|
/**
|
|
3375
3525
|
* Delete Position
|
|
3526
|
+
*
|
|
3527
|
+
*
|
|
3528
|
+
*
|
|
3529
|
+
* **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.
|
|
3376
3530
|
*/
|
|
3377
3531
|
export const opDeletePosition = <ThrowOnError extends boolean = false>(options: Options<OpDeletePositionData, ThrowOnError>) => (options.client ?? client).post<OpDeletePositionResponses, OpDeletePositionErrors, ThrowOnError>({
|
|
3378
3532
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|