@robosystems/client 1.13.2 → 1.14.0
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/artifacts/LedgerClient.js +1 -1
- package/artifacts/LedgerClient.ts +2 -1
- package/artifacts/OperatorClient.js +2 -2
- package/artifacts/OperatorClient.ts +3 -2
- package/artifacts/QueryClient.js +1 -1
- package/artifacts/QueryClient.ts +1 -1
- package/artifacts/SSEClient.js +1 -1
- package/artifacts/SSEClient.ts +2 -1
- package/artifacts/graphql/client.js +1 -1
- package/artifacts/graphql/client.ts +2 -1
- package/artifacts/graphql/generated/graphql.d.ts +263 -2526
- package/artifacts/graphql/generated/graphql.ts +275 -2656
- package/client/index.d.ts +2 -0
- package/client/index.ts +2 -0
- package/client/utils.gen.d.ts +1 -1
- package/client/utils.gen.ts +2 -2
- package/client.gen.d.ts +2 -2
- package/client.gen.ts +2 -2
- package/core/auth.gen.d.ts +7 -0
- package/core/auth.gen.ts +7 -0
- package/core/params.gen.d.ts +2 -2
- package/core/params.gen.js +21 -13
- package/core/params.gen.ts +21 -12
- package/core/pathSerializer.gen.ts +6 -6
- package/core/queryKeySerializer.gen.d.ts +1 -1
- package/core/queryKeySerializer.gen.ts +1 -1
- package/core/types.gen.d.ts +5 -0
- package/core/types.gen.ts +6 -0
- package/core/utils.gen.ts +4 -4
- package/package.json +11 -8
- package/sdk/client/index.d.ts +2 -0
- package/sdk/client/index.ts +2 -0
- package/sdk/client/utils.gen.d.ts +1 -1
- package/sdk/client/utils.gen.ts +2 -2
- package/sdk/client.gen.d.ts +2 -2
- package/sdk/client.gen.ts +2 -2
- package/sdk/core/auth.gen.d.ts +7 -0
- package/sdk/core/auth.gen.ts +7 -0
- package/sdk/core/params.gen.d.ts +2 -2
- package/sdk/core/params.gen.js +21 -13
- package/sdk/core/params.gen.ts +21 -12
- package/sdk/core/pathSerializer.gen.ts +6 -6
- package/sdk/core/queryKeySerializer.gen.d.ts +1 -1
- package/sdk/core/queryKeySerializer.gen.ts +1 -1
- package/sdk/core/types.gen.d.ts +5 -0
- package/sdk/core/types.gen.ts +6 -0
- package/sdk/core/utils.gen.ts +4 -4
- package/sdk/sdk.gen.d.ts +199 -199
- package/sdk/sdk.gen.ts +199 -199
- package/sdk.gen.d.ts +199 -199
- package/sdk.gen.ts +199 -199
package/sdk.gen.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import type { Client, Options as Options2, TDataShape } from './client';
|
|
3
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
5
|
import type { AddGraphMemberData, AddGraphMemberErrors, AddGraphMemberResponses, AddPublishListMembersData, AddPublishListMembersErrors, AddPublishListMembersResponses, AssertMetricsData, AssertMetricsErrors, AssertMetricsResponses, AutoMapElementsData, AutoMapElementsErrors, AutoMapElementsResponses, AutoSelectOperatorData, AutoSelectOperatorErrors, AutoSelectOperatorResponses, BackfillPlanHistoryData, BackfillPlanHistoryErrors, BackfillPlanHistoryResponses, BindTextBlockData, BindTextBlockErrors, BindTextBlockResponses, BlockSourceGraphData, BlockSourceGraphErrors, BlockSourceGraphResponses, BuildFactGridData, BuildFactGridErrors, BuildFactGridResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, CancelRepositorySubscriptionData, CancelRepositorySubscriptionErrors, CancelRepositorySubscriptionResponses, ChangeReportingStyleData, ChangeReportingStyleErrors, ChangeReportingStyleResponses, ChangeSubscriptionPlanData, ChangeSubscriptionPlanErrors, ChangeSubscriptionPlanResponses, ChangeTierData, ChangeTierErrors, ChangeTierResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, ClosePeriodData, ClosePeriodErrors, ClosePeriodResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, ComputeForecastData, ComputeForecastErrors, ComputeForecastResponses, ComputeMetricsData, ComputeMetricsErrors, ComputeMetricsResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateBackupData, CreateBackupErrors, CreateBackupResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateEventBlockData, CreateEventBlockErrors, CreateEventBlockResponses, CreateEventHandlerData, CreateEventHandlerErrors, CreateEventHandlerResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreateInformationBlockData, CreateInformationBlockErrors, CreateInformationBlockResponses, CreateMappingAssociationData, CreateMappingAssociationErrors, CreateMappingAssociationResponses, CreateOrgInvitationData, CreateOrgInvitationErrors, CreateOrgInvitationResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreatePortfolioBlockData, CreatePortfolioBlockErrors, CreatePortfolioBlockResponses, CreatePublishListData, CreatePublishListErrors, CreatePublishListResponses, CreateReportData, CreateReportErrors, CreateReportResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateSecurityData, CreateSecurityErrors, CreateSecurityResponses, CreateSubgraphData, CreateSubgraphErrors, CreateSubgraphResponses, CreateTaxonomyBlockData, CreateTaxonomyBlockErrors, CreateTaxonomyBlockResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteGraphData, DeleteGraphErrors, DeleteGraphResponses, DeleteInformationBlockData, DeleteInformationBlockErrors, DeleteInformationBlockResponses, DeleteJournalEntryData, DeleteJournalEntryErrors, DeleteJournalEntryResponses, DeleteMappingAssociationData, DeleteMappingAssociationErrors, DeleteMappingAssociationResponses, DeletePortfolioBlockData, DeletePortfolioBlockErrors, DeletePortfolioBlockResponses, DeletePublishListData, DeletePublishListErrors, DeletePublishListResponses, DeleteReportData, DeleteReportErrors, DeleteReportResponses, DeleteSecurityData, DeleteSecurityErrors, DeleteSecurityResponses, DeleteSubgraphData, DeleteSubgraphErrors, DeleteSubgraphResponses, DeleteTaxonomyBlockData, DeleteTaxonomyBlockErrors, DeleteTaxonomyBlockResponses, DeleteUserPasskeyData, DeleteUserPasskeyErrors, DeleteUserPasskeyResponses, EvaluateRulesData, EvaluateRulesErrors, EvaluateRulesResponses, ExecuteCypherData, ExecuteCypherErrors, ExecuteCypherResponses, ExecuteEventBlockData, ExecuteEventBlockErrors, ExecuteEventBlockResponses, ExecuteSpecificOperatorData, ExecuteSpecificOperatorErrors, ExecuteSpecificOperatorResponses, ExecuteSqlData, ExecuteSqlErrors, ExecuteSqlResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, FileReportData, FileReportErrors, FileReportResponses, FinancialStatementAnalysisData, FinancialStatementAnalysisErrors, FinancialStatementAnalysisResponses, ForgetData, ForgetErrors, ForgetResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAuthProvidersData, GetAuthProvidersErrors, GetAuthProvidersResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigErrors, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserErrors, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetDocumentData, GetDocumentErrors, GetDocumentResponses, GetDocumentSectionData, GetDocumentSectionErrors, GetDocumentSectionResponses, GetFileData, GetFileErrors, GetFileResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageData, GetGraphUsageErrors, GetGraphUsageResponses, GetInvitationPreviewData, GetInvitationPreviewErrors, GetInvitationPreviewResponses, GetMemoryData, GetMemoryErrors, GetMemoryResponses, GetMfaOptionsData, GetMfaOptionsErrors, GetMfaOptionsResponses, GetMfaStatusData, GetMfaStatusErrors, GetMfaStatusResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOperatorMetadataData, GetOperatorMetadataErrors, GetOperatorMetadataResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasskeyLoginOptionsData, GetPasskeyLoginOptionsErrors, GetPasskeyLoginOptionsResponses, GetPasskeyReauthOptionsData, GetPasskeyReauthOptionsErrors, GetPasskeyReauthOptionsResponses, GetPasskeyRegistrationOptionsData, GetPasskeyRegistrationOptionsErrors, GetPasskeyRegistrationOptionsResponses, GetPasswordPolicyData, GetPasswordPolicyErrors, GetPasswordPolicyResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, HandleHttpGetExtensionsGraphIdGraphqlGetData, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpPostExtensionsGraphIdGraphqlPostData, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, HandleHttpPostExtensionsGraphIdGraphqlPostResponses, IndexDocumentData, IndexDocumentErrors, IndexDocumentResponses, IngestFileData, IngestFileErrors, IngestFileResponses, InitializeLedgerData, InitializeLedgerErrors, InitializeLedgerResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, LinkEntityTaxonomyData, LinkEntityTaxonomyErrors, LinkEntityTaxonomyResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListDocumentsData, ListDocumentsErrors, ListDocumentsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListGraphMembersData, ListGraphMembersErrors, ListGraphMembersResponses, ListMemoriesData, ListMemoriesErrors, ListMemoriesResponses, ListOperatorsData, ListOperatorsErrors, ListOperatorsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvitationsData, ListOrgInvitationsErrors, ListOrgInvitationsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListUserOAuthGrantsData, ListUserOAuthGrantsErrors, ListUserOAuthGrantsResponses, ListUserOrgsData, ListUserOrgsErrors, ListUserOrgsResponses, ListUserPasskeysData, ListUserPasskeysErrors, ListUserPasskeysResponses, LiveFinancialStatementData, LiveFinancialStatementErrors, LiveFinancialStatementResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserErrors, LogoutUserResponses, MaterializeData, MaterializeErrors, MaterializeResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, PreviewEventBlockData, PreviewEventBlockErrors, PreviewEventBlockResponses, PreviewReconcilingItemData, PreviewReconcilingItemErrors, PreviewReconcilingItemResponses, PromoteObligationsData, PromoteObligationsErrors, PromoteObligationsResponses, RebuildScheduleData, RebuildScheduleErrors, RebuildScheduleResponses, RecallMemoryData, RecallMemoryErrors, RecallMemoryResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegenerateMfaRecoveryCodesData, RegenerateMfaRecoveryCodesErrors, RegenerateMfaRecoveryCodesResponses, RegenerateReportData, RegenerateReportErrors, RegenerateReportResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RememberData, RememberErrors, RememberResponses, RemoveGraphMemberData, RemoveGraphMemberErrors, RemoveGraphMemberResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, RemovePublishListMemberData, RemovePublishListMemberErrors, RemovePublishListMemberResponses, ReopenPeriodData, ReopenPeriodErrors, ReopenPeriodResponses, ResendOrgInvitationData, ResendOrgInvitationErrors, ResendOrgInvitationResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, ResolveReconcilingItemData, ResolveReconcilingItemErrors, ResolveReconcilingItemResponses, ResumeOperationData, ResumeOperationErrors, ResumeOperationResponses, RevokeOrgInvitationData, RevokeOrgInvitationErrors, RevokeOrgInvitationResponses, RevokeReportShareData, RevokeReportShareErrors, RevokeReportShareResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, RevokeUserOAuthGrantData, RevokeUserOAuthGrantErrors, RevokeUserOAuthGrantResponses, SearchDocumentsData, SearchDocumentsErrors, SearchDocumentsResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SetCloseTargetData, SetCloseTargetErrors, SetCloseTargetResponses, SetConnectionWritePolicyData, SetConnectionWritePolicyErrors, SetConnectionWritePolicyResponses, ShareReportData, ShareReportErrors, ShareReportResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, TerminateScheduleData, TerminateScheduleErrors, TerminateScheduleResponses, TransitionFilingStatusData, TransitionFilingStatusErrors, TransitionFilingStatusResponses, UnblockSourceGraphData, UnblockSourceGraphErrors, UnblockSourceGraphResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateEntityData, UpdateEntityErrors, UpdateEntityResponses, UpdateEventBlockData, UpdateEventBlockErrors, UpdateEventBlockResponses, UpdateEventHandlerData, UpdateEventHandlerErrors, UpdateEventHandlerResponses, UpdateGraphMemberRoleData, UpdateGraphMemberRoleErrors, UpdateGraphMemberRoleResponses, UpdateGraphMetadataData, UpdateGraphMetadataErrors, UpdateGraphMetadataResponses, UpdateInformationBlockData, UpdateInformationBlockErrors, UpdateInformationBlockResponses, UpdateJournalEntryData, UpdateJournalEntryErrors, UpdateJournalEntryResponses, UpdateMemoryData, UpdateMemoryErrors, UpdateMemoryResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdatePortfolioBlockData, UpdatePortfolioBlockErrors, UpdatePortfolioBlockResponses, UpdatePublishListData, UpdatePublishListErrors, UpdatePublishListResponses, UpdateSecurityData, UpdateSecurityErrors, UpdateSecurityResponses, UpdateTaxonomyBlockData, UpdateTaxonomyBlockErrors, UpdateTaxonomyBlockResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses, VerifyMfaData, VerifyMfaErrors, VerifyMfaResponses, VerifyPasskeyLoginData, VerifyPasskeyLoginErrors, VerifyPasskeyLoginResponses, VerifyPasskeyRegistrationData, VerifyPasskeyRegistrationErrors, VerifyPasskeyRegistrationResponses } from './types.gen';
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
15
15
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
16
|
* used to access values that aren't defined as part of the SDK function.
|
|
17
17
|
*/
|
|
18
|
-
meta?: Record<string, unknown
|
|
18
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -23,7 +23,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
23
23
|
*
|
|
24
24
|
* Creates the user and a personal organization. CAPTCHA required in production. Sends verification email when email verification is enabled.
|
|
25
25
|
*/
|
|
26
|
-
export const registerUser = <ThrowOnError extends boolean = false>(options: Options<RegisterUserData, ThrowOnError>) => (options.client ?? client).post<RegisterUserResponses, RegisterUserErrors, ThrowOnError>({
|
|
26
|
+
export const registerUser = <ThrowOnError extends boolean = false>(options: Options<RegisterUserData, ThrowOnError>): RequestResult<RegisterUserResponses, RegisterUserErrors, ThrowOnError> => (options.client ?? client).post<RegisterUserResponses, RegisterUserErrors, ThrowOnError>({
|
|
27
27
|
url: '/v1/auth/register',
|
|
28
28
|
...options,
|
|
29
29
|
headers: {
|
|
@@ -37,7 +37,7 @@ export const registerUser = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
37
37
|
*
|
|
38
38
|
* Returns a JWT token on success. IP-based progressive delays apply after repeated failures.
|
|
39
39
|
*/
|
|
40
|
-
export const loginUser = <ThrowOnError extends boolean = false>(options: Options<LoginUserData, ThrowOnError>) => (options.client ?? client).post<LoginUserResponses, LoginUserErrors, ThrowOnError>({
|
|
40
|
+
export const loginUser = <ThrowOnError extends boolean = false>(options: Options<LoginUserData, ThrowOnError>): RequestResult<LoginUserResponses, LoginUserErrors, ThrowOnError> => (options.client ?? client).post<LoginUserResponses, LoginUserErrors, ThrowOnError>({
|
|
41
41
|
url: '/v1/auth/login',
|
|
42
42
|
...options,
|
|
43
43
|
headers: {
|
|
@@ -49,33 +49,33 @@ export const loginUser = <ThrowOnError extends boolean = false>(options: Options
|
|
|
49
49
|
/**
|
|
50
50
|
* User Logout
|
|
51
51
|
*/
|
|
52
|
-
export const logoutUser = <ThrowOnError extends boolean = false>(options?: Options<LogoutUserData, ThrowOnError>) => (options?.client ?? client).post<LogoutUserResponses, LogoutUserErrors, ThrowOnError>({ url: '/v1/auth/logout', ...options });
|
|
52
|
+
export const logoutUser = <ThrowOnError extends boolean = false>(options?: Options<LogoutUserData, ThrowOnError>): RequestResult<LogoutUserResponses, LogoutUserErrors, ThrowOnError> => (options?.client ?? client).post<LogoutUserResponses, LogoutUserErrors, ThrowOnError>({ url: '/v1/auth/logout', ...options });
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Get Current User
|
|
56
56
|
*/
|
|
57
|
-
export const getCurrentAuthUser = <ThrowOnError extends boolean = false>(options?: Options<GetCurrentAuthUserData, ThrowOnError>) => (options?.client ?? client).get<GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, ThrowOnError>({ url: '/v1/auth/me', ...options });
|
|
57
|
+
export const getCurrentAuthUser = <ThrowOnError extends boolean = false>(options?: Options<GetCurrentAuthUserData, ThrowOnError>): RequestResult<GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, ThrowOnError> => (options?.client ?? client).get<GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, ThrowOnError>({ url: '/v1/auth/me', ...options });
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Refresh Session
|
|
61
61
|
*
|
|
62
62
|
* Revokes the current token and issues a new one. Accepts recently-expired tokens within the grace period.
|
|
63
63
|
*/
|
|
64
|
-
export const refreshAuthSession = <ThrowOnError extends boolean = false>(options?: Options<RefreshAuthSessionData, ThrowOnError>) => (options?.client ?? client).post<RefreshAuthSessionResponses, RefreshAuthSessionErrors, ThrowOnError>({ url: '/v1/auth/refresh', ...options });
|
|
64
|
+
export const refreshAuthSession = <ThrowOnError extends boolean = false>(options?: Options<RefreshAuthSessionData, ThrowOnError>): RequestResult<RefreshAuthSessionResponses, RefreshAuthSessionErrors, ThrowOnError> => (options?.client ?? client).post<RefreshAuthSessionResponses, RefreshAuthSessionErrors, ThrowOnError>({ url: '/v1/auth/refresh', ...options });
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Resend Email Verification
|
|
68
68
|
*
|
|
69
69
|
* Resend verification email to the authenticated user. Rate limited to 3 per hour.
|
|
70
70
|
*/
|
|
71
|
-
export const resendVerificationEmail = <ThrowOnError extends boolean = false>(options?: Options<ResendVerificationEmailData, ThrowOnError>) => (options?.client ?? client).post<ResendVerificationEmailResponses, ResendVerificationEmailErrors, ThrowOnError>({ url: '/v1/auth/email/resend', ...options });
|
|
71
|
+
export const resendVerificationEmail = <ThrowOnError extends boolean = false>(options?: Options<ResendVerificationEmailData, ThrowOnError>): RequestResult<ResendVerificationEmailResponses, ResendVerificationEmailErrors, ThrowOnError> => (options?.client ?? client).post<ResendVerificationEmailResponses, ResendVerificationEmailErrors, ThrowOnError>({ url: '/v1/auth/email/resend', ...options });
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Verify Email
|
|
75
75
|
*
|
|
76
76
|
* Verify email address with token from email link. Returns JWT for auto-login.
|
|
77
77
|
*/
|
|
78
|
-
export const verifyEmail = <ThrowOnError extends boolean = false>(options: Options<VerifyEmailData, ThrowOnError>) => (options.client ?? client).post<VerifyEmailResponses, VerifyEmailErrors, ThrowOnError>({
|
|
78
|
+
export const verifyEmail = <ThrowOnError extends boolean = false>(options: Options<VerifyEmailData, ThrowOnError>): RequestResult<VerifyEmailResponses, VerifyEmailErrors, ThrowOnError> => (options.client ?? client).post<VerifyEmailResponses, VerifyEmailErrors, ThrowOnError>({
|
|
79
79
|
url: '/v1/auth/email/verify',
|
|
80
80
|
...options,
|
|
81
81
|
headers: {
|
|
@@ -89,17 +89,17 @@ export const verifyEmail = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
89
89
|
*
|
|
90
90
|
* Look up a pending org invitation by its token so the registration page can show what is being joined. Returns 404 for unknown, expired, revoked, or accepted tokens.
|
|
91
91
|
*/
|
|
92
|
-
export const getInvitationPreview = <ThrowOnError extends boolean = false>(options: Options<GetInvitationPreviewData, ThrowOnError>) => (options.client ?? client).get<GetInvitationPreviewResponses, GetInvitationPreviewErrors, ThrowOnError>({ url: '/v1/auth/invitations/{token}', ...options });
|
|
92
|
+
export const getInvitationPreview = <ThrowOnError extends boolean = false>(options: Options<GetInvitationPreviewData, ThrowOnError>): RequestResult<GetInvitationPreviewResponses, GetInvitationPreviewErrors, ThrowOnError> => (options.client ?? client).get<GetInvitationPreviewResponses, GetInvitationPreviewErrors, ThrowOnError>({ url: '/v1/auth/invitations/{token}', ...options });
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Get Password Policy
|
|
96
96
|
*/
|
|
97
|
-
export const getPasswordPolicy = <ThrowOnError extends boolean = false>(options?: Options<GetPasswordPolicyData, ThrowOnError>) => (options?.client ?? client).get<GetPasswordPolicyResponses, GetPasswordPolicyErrors, ThrowOnError>({ url: '/v1/auth/password/policy', ...options });
|
|
97
|
+
export const getPasswordPolicy = <ThrowOnError extends boolean = false>(options?: Options<GetPasswordPolicyData, ThrowOnError>): RequestResult<GetPasswordPolicyResponses, GetPasswordPolicyErrors, ThrowOnError> => (options?.client ?? client).get<GetPasswordPolicyResponses, GetPasswordPolicyErrors, ThrowOnError>({ url: '/v1/auth/password/policy', ...options });
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Check Password Strength
|
|
101
101
|
*/
|
|
102
|
-
export const checkPasswordStrength = <ThrowOnError extends boolean = false>(options: Options<CheckPasswordStrengthData, ThrowOnError>) => (options.client ?? client).post<CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ThrowOnError>({
|
|
102
|
+
export const checkPasswordStrength = <ThrowOnError extends boolean = false>(options: Options<CheckPasswordStrengthData, ThrowOnError>): RequestResult<CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ThrowOnError> => (options.client ?? client).post<CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ThrowOnError>({
|
|
103
103
|
url: '/v1/auth/password/check',
|
|
104
104
|
...options,
|
|
105
105
|
headers: {
|
|
@@ -113,7 +113,7 @@ export const checkPasswordStrength = <ThrowOnError extends boolean = false>(opti
|
|
|
113
113
|
*
|
|
114
114
|
* Request password reset email. Always returns success to prevent email enumeration.
|
|
115
115
|
*/
|
|
116
|
-
export const forgotPassword = <ThrowOnError extends boolean = false>(options: Options<ForgotPasswordData, ThrowOnError>) => (options.client ?? client).post<ForgotPasswordResponses, ForgotPasswordErrors, ThrowOnError>({
|
|
116
|
+
export const forgotPassword = <ThrowOnError extends boolean = false>(options: Options<ForgotPasswordData, ThrowOnError>): RequestResult<ForgotPasswordResponses, ForgotPasswordErrors, ThrowOnError> => (options.client ?? client).post<ForgotPasswordResponses, ForgotPasswordErrors, ThrowOnError>({
|
|
117
117
|
url: '/v1/auth/password/forgot',
|
|
118
118
|
...options,
|
|
119
119
|
headers: {
|
|
@@ -127,14 +127,14 @@ export const forgotPassword = <ThrowOnError extends boolean = false>(options: Op
|
|
|
127
127
|
*
|
|
128
128
|
* Check if a password reset token is valid without consuming it. Returns masked email on success.
|
|
129
129
|
*/
|
|
130
|
-
export const validateResetToken = <ThrowOnError extends boolean = false>(options: Options<ValidateResetTokenData, ThrowOnError>) => (options.client ?? client).get<ValidateResetTokenResponses, ValidateResetTokenErrors, ThrowOnError>({ url: '/v1/auth/password/reset/validate', ...options });
|
|
130
|
+
export const validateResetToken = <ThrowOnError extends boolean = false>(options: Options<ValidateResetTokenData, ThrowOnError>): RequestResult<ValidateResetTokenResponses, ValidateResetTokenErrors, ThrowOnError> => (options.client ?? client).get<ValidateResetTokenResponses, ValidateResetTokenErrors, ThrowOnError>({ url: '/v1/auth/password/reset/validate', ...options });
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Reset Password
|
|
134
134
|
*
|
|
135
135
|
* Reset password with token from email. Invalidates all existing sessions. Returns JWT for auto-login.
|
|
136
136
|
*/
|
|
137
|
-
export const resetPassword = <ThrowOnError extends boolean = false>(options: Options<ResetPasswordData, ThrowOnError>) => (options.client ?? client).post<ResetPasswordResponses, ResetPasswordErrors, ThrowOnError>({
|
|
137
|
+
export const resetPassword = <ThrowOnError extends boolean = false>(options: Options<ResetPasswordData, ThrowOnError>): RequestResult<ResetPasswordResponses, ResetPasswordErrors, ThrowOnError> => (options.client ?? client).post<ResetPasswordResponses, ResetPasswordErrors, ThrowOnError>({
|
|
138
138
|
url: '/v1/auth/password/reset',
|
|
139
139
|
...options,
|
|
140
140
|
headers: {
|
|
@@ -148,14 +148,14 @@ export const resetPassword = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
148
148
|
*
|
|
149
149
|
* Step 1 of 3 in the cross-app SSO flow. Issues a single-use token (5 minute TTL) for handoff to a target application.
|
|
150
150
|
*/
|
|
151
|
-
export const generateSsoToken = <ThrowOnError extends boolean = false>(options?: Options<GenerateSsoTokenData, ThrowOnError>) => (options?.client ?? client).post<GenerateSsoTokenResponses, GenerateSsoTokenErrors, ThrowOnError>({ url: '/v1/auth/sso-token', ...options });
|
|
151
|
+
export const generateSsoToken = <ThrowOnError extends boolean = false>(options?: Options<GenerateSsoTokenData, ThrowOnError>): RequestResult<GenerateSsoTokenResponses, GenerateSsoTokenErrors, ThrowOnError> => (options?.client ?? client).post<GenerateSsoTokenResponses, GenerateSsoTokenErrors, ThrowOnError>({ url: '/v1/auth/sso-token', ...options });
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* SSO Token Exchange
|
|
155
155
|
*
|
|
156
156
|
* Step 2 of 3. Exchanges the SSO token for a short-lived session ID. Avoids passing tokens in redirect URLs.
|
|
157
157
|
*/
|
|
158
|
-
export const ssoTokenExchange = <ThrowOnError extends boolean = false>(options: Options<SsoTokenExchangeData, ThrowOnError>) => (options.client ?? client).post<SsoTokenExchangeResponses, SsoTokenExchangeErrors, ThrowOnError>({
|
|
158
|
+
export const ssoTokenExchange = <ThrowOnError extends boolean = false>(options: Options<SsoTokenExchangeData, ThrowOnError>): RequestResult<SsoTokenExchangeResponses, SsoTokenExchangeErrors, ThrowOnError> => (options.client ?? client).post<SsoTokenExchangeResponses, SsoTokenExchangeErrors, ThrowOnError>({
|
|
159
159
|
url: '/v1/auth/sso-exchange',
|
|
160
160
|
...options,
|
|
161
161
|
headers: {
|
|
@@ -169,7 +169,7 @@ export const ssoTokenExchange = <ThrowOnError extends boolean = false>(options:
|
|
|
169
169
|
*
|
|
170
170
|
* Step 3 of 3. Exchanges the session ID for a full JWT token. Called by the target app after redirect.
|
|
171
171
|
*/
|
|
172
|
-
export const completeSsoAuth = <ThrowOnError extends boolean = false>(options: Options<CompleteSsoAuthData, ThrowOnError>) => (options.client ?? client).post<CompleteSsoAuthResponses, CompleteSsoAuthErrors, ThrowOnError>({
|
|
172
|
+
export const completeSsoAuth = <ThrowOnError extends boolean = false>(options: Options<CompleteSsoAuthData, ThrowOnError>): RequestResult<CompleteSsoAuthResponses, CompleteSsoAuthErrors, ThrowOnError> => (options.client ?? client).post<CompleteSsoAuthResponses, CompleteSsoAuthErrors, ThrowOnError>({
|
|
173
173
|
url: '/v1/auth/sso-complete',
|
|
174
174
|
...options,
|
|
175
175
|
headers: {
|
|
@@ -183,7 +183,7 @@ export const completeSsoAuth = <ThrowOnError extends boolean = false>(options: O
|
|
|
183
183
|
*
|
|
184
184
|
* Begin a passkey enrollment ceremony. The settings lane requires a fresh re-auth proof (password or assertion); the forced lane presents its enrollment token.
|
|
185
185
|
*/
|
|
186
|
-
export const getPasskeyRegistrationOptions = <ThrowOnError extends boolean = false>(options: Options<GetPasskeyRegistrationOptionsData, ThrowOnError>) => (options.client ?? client).post<GetPasskeyRegistrationOptionsResponses, GetPasskeyRegistrationOptionsErrors, ThrowOnError>({
|
|
186
|
+
export const getPasskeyRegistrationOptions = <ThrowOnError extends boolean = false>(options: Options<GetPasskeyRegistrationOptionsData, ThrowOnError>): RequestResult<GetPasskeyRegistrationOptionsResponses, GetPasskeyRegistrationOptionsErrors, ThrowOnError> => (options.client ?? client).post<GetPasskeyRegistrationOptionsResponses, GetPasskeyRegistrationOptionsErrors, ThrowOnError>({
|
|
187
187
|
url: '/v1/auth/passkeys/register/options',
|
|
188
188
|
...options,
|
|
189
189
|
headers: {
|
|
@@ -197,7 +197,7 @@ export const getPasskeyRegistrationOptions = <ThrowOnError extends boolean = fal
|
|
|
197
197
|
*
|
|
198
198
|
* Finish enrollment. The first passkey returns recovery codes (once); the forced-enrollment lane also completes the login.
|
|
199
199
|
*/
|
|
200
|
-
export const verifyPasskeyRegistration = <ThrowOnError extends boolean = false>(options: Options<VerifyPasskeyRegistrationData, ThrowOnError>) => (options.client ?? client).post<VerifyPasskeyRegistrationResponses, VerifyPasskeyRegistrationErrors, ThrowOnError>({
|
|
200
|
+
export const verifyPasskeyRegistration = <ThrowOnError extends boolean = false>(options: Options<VerifyPasskeyRegistrationData, ThrowOnError>): RequestResult<VerifyPasskeyRegistrationResponses, VerifyPasskeyRegistrationErrors, ThrowOnError> => (options.client ?? client).post<VerifyPasskeyRegistrationResponses, VerifyPasskeyRegistrationErrors, ThrowOnError>({
|
|
201
201
|
url: '/v1/auth/passkeys/register/verify',
|
|
202
202
|
...options,
|
|
203
203
|
headers: {
|
|
@@ -211,7 +211,7 @@ export const verifyPasskeyRegistration = <ThrowOnError extends boolean = false>(
|
|
|
211
211
|
*
|
|
212
212
|
* The authenticated user's enrolled passkeys.
|
|
213
213
|
*/
|
|
214
|
-
export const listUserPasskeys = <ThrowOnError extends boolean = false>(options?: Options<ListUserPasskeysData, ThrowOnError>) => (options?.client ?? client).get<ListUserPasskeysResponses, ListUserPasskeysErrors, ThrowOnError>({
|
|
214
|
+
export const listUserPasskeys = <ThrowOnError extends boolean = false>(options?: Options<ListUserPasskeysData, ThrowOnError>): RequestResult<ListUserPasskeysResponses, ListUserPasskeysErrors, ThrowOnError> => (options?.client ?? client).get<ListUserPasskeysResponses, ListUserPasskeysErrors, ThrowOnError>({
|
|
215
215
|
security: [{ name: 'X-API-Key', type: 'apiKey' }],
|
|
216
216
|
url: '/v1/auth/passkeys',
|
|
217
217
|
...options
|
|
@@ -222,7 +222,7 @@ export const listUserPasskeys = <ThrowOnError extends boolean = false>(options?:
|
|
|
222
222
|
*
|
|
223
223
|
* Fresh-assertion options for destructive passkey lifecycle actions.
|
|
224
224
|
*/
|
|
225
|
-
export const getPasskeyReauthOptions = <ThrowOnError extends boolean = false>(options?: Options<GetPasskeyReauthOptionsData, ThrowOnError>) => (options?.client ?? client).post<GetPasskeyReauthOptionsResponses, GetPasskeyReauthOptionsErrors, ThrowOnError>({
|
|
225
|
+
export const getPasskeyReauthOptions = <ThrowOnError extends boolean = false>(options?: Options<GetPasskeyReauthOptionsData, ThrowOnError>): RequestResult<GetPasskeyReauthOptionsResponses, GetPasskeyReauthOptionsErrors, ThrowOnError> => (options?.client ?? client).post<GetPasskeyReauthOptionsResponses, GetPasskeyReauthOptionsErrors, ThrowOnError>({
|
|
226
226
|
security: [{ name: 'X-API-Key', type: 'apiKey' }],
|
|
227
227
|
url: '/v1/auth/passkeys/reauth/options',
|
|
228
228
|
...options
|
|
@@ -233,7 +233,7 @@ export const getPasskeyReauthOptions = <ThrowOnError extends boolean = false>(op
|
|
|
233
233
|
*
|
|
234
234
|
* Remove one passkey after re-authentication (password or fresh assertion). The last passkey of an MFA-required role cannot be removed while enforcement is active.
|
|
235
235
|
*/
|
|
236
|
-
export const deleteUserPasskey = <ThrowOnError extends boolean = false>(options: Options<DeleteUserPasskeyData, ThrowOnError>) => (options.client ?? client).delete<DeleteUserPasskeyResponses, DeleteUserPasskeyErrors, ThrowOnError>({
|
|
236
|
+
export const deleteUserPasskey = <ThrowOnError extends boolean = false>(options: Options<DeleteUserPasskeyData, ThrowOnError>): RequestResult<DeleteUserPasskeyResponses, DeleteUserPasskeyErrors, ThrowOnError> => (options.client ?? client).delete<DeleteUserPasskeyResponses, DeleteUserPasskeyErrors, ThrowOnError>({
|
|
237
237
|
security: [{ name: 'X-API-Key', type: 'apiKey' }],
|
|
238
238
|
url: '/v1/auth/passkeys/{passkey_id}',
|
|
239
239
|
...options,
|
|
@@ -248,14 +248,14 @@ export const deleteUserPasskey = <ThrowOnError extends boolean = false>(options:
|
|
|
248
248
|
*
|
|
249
249
|
* Usernameless assertion options for passwordless (passkey) login.
|
|
250
250
|
*/
|
|
251
|
-
export const getPasskeyLoginOptions = <ThrowOnError extends boolean = false>(options?: Options<GetPasskeyLoginOptionsData, ThrowOnError>) => (options?.client ?? client).post<GetPasskeyLoginOptionsResponses, GetPasskeyLoginOptionsErrors, ThrowOnError>({ url: '/v1/auth/passkeys/login/options', ...options });
|
|
251
|
+
export const getPasskeyLoginOptions = <ThrowOnError extends boolean = false>(options?: Options<GetPasskeyLoginOptionsData, ThrowOnError>): RequestResult<GetPasskeyLoginOptionsResponses, GetPasskeyLoginOptionsErrors, ThrowOnError> => (options?.client ?? client).post<GetPasskeyLoginOptionsResponses, GetPasskeyLoginOptionsErrors, ThrowOnError>({ url: '/v1/auth/passkeys/login/options', ...options });
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* Passwordless Login Verify
|
|
255
255
|
*
|
|
256
256
|
* Complete a passwordless login. A user-verified passkey assertion is two factors in one gesture.
|
|
257
257
|
*/
|
|
258
|
-
export const verifyPasskeyLogin = <ThrowOnError extends boolean = false>(options: Options<VerifyPasskeyLoginData, ThrowOnError>) => (options.client ?? client).post<VerifyPasskeyLoginResponses, VerifyPasskeyLoginErrors, ThrowOnError>({
|
|
258
|
+
export const verifyPasskeyLogin = <ThrowOnError extends boolean = false>(options: Options<VerifyPasskeyLoginData, ThrowOnError>): RequestResult<VerifyPasskeyLoginResponses, VerifyPasskeyLoginErrors, ThrowOnError> => (options.client ?? client).post<VerifyPasskeyLoginResponses, VerifyPasskeyLoginErrors, ThrowOnError>({
|
|
259
259
|
url: '/v1/auth/passkeys/login/verify',
|
|
260
260
|
...options,
|
|
261
261
|
headers: {
|
|
@@ -269,7 +269,7 @@ export const verifyPasskeyLogin = <ThrowOnError extends boolean = false>(options
|
|
|
269
269
|
*
|
|
270
270
|
* Exchange an mfa_required login token for passkey assertion options.
|
|
271
271
|
*/
|
|
272
|
-
export const getMfaOptions = <ThrowOnError extends boolean = false>(options: Options<GetMfaOptionsData, ThrowOnError>) => (options.client ?? client).post<GetMfaOptionsResponses, GetMfaOptionsErrors, ThrowOnError>({
|
|
272
|
+
export const getMfaOptions = <ThrowOnError extends boolean = false>(options: Options<GetMfaOptionsData, ThrowOnError>): RequestResult<GetMfaOptionsResponses, GetMfaOptionsErrors, ThrowOnError> => (options.client ?? client).post<GetMfaOptionsResponses, GetMfaOptionsErrors, ThrowOnError>({
|
|
273
273
|
url: '/v1/auth/mfa/options',
|
|
274
274
|
...options,
|
|
275
275
|
headers: {
|
|
@@ -283,7 +283,7 @@ export const getMfaOptions = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
283
283
|
*
|
|
284
284
|
* Complete the second factor with a passkey assertion or a recovery code.
|
|
285
285
|
*/
|
|
286
|
-
export const verifyMfa = <ThrowOnError extends boolean = false>(options: Options<VerifyMfaData, ThrowOnError>) => (options.client ?? client).post<VerifyMfaResponses, VerifyMfaErrors, ThrowOnError>({
|
|
286
|
+
export const verifyMfa = <ThrowOnError extends boolean = false>(options: Options<VerifyMfaData, ThrowOnError>): RequestResult<VerifyMfaResponses, VerifyMfaErrors, ThrowOnError> => (options.client ?? client).post<VerifyMfaResponses, VerifyMfaErrors, ThrowOnError>({
|
|
287
287
|
url: '/v1/auth/mfa/verify',
|
|
288
288
|
...options,
|
|
289
289
|
headers: {
|
|
@@ -297,7 +297,7 @@ export const verifyMfa = <ThrowOnError extends boolean = false>(options: Options
|
|
|
297
297
|
*
|
|
298
298
|
* The authenticated user's MFA posture for account settings.
|
|
299
299
|
*/
|
|
300
|
-
export const getMfaStatus = <ThrowOnError extends boolean = false>(options?: Options<GetMfaStatusData, ThrowOnError>) => (options?.client ?? client).get<GetMfaStatusResponses, GetMfaStatusErrors, ThrowOnError>({
|
|
300
|
+
export const getMfaStatus = <ThrowOnError extends boolean = false>(options?: Options<GetMfaStatusData, ThrowOnError>): RequestResult<GetMfaStatusResponses, GetMfaStatusErrors, ThrowOnError> => (options?.client ?? client).get<GetMfaStatusResponses, GetMfaStatusErrors, ThrowOnError>({
|
|
301
301
|
security: [{ name: 'X-API-Key', type: 'apiKey' }],
|
|
302
302
|
url: '/v1/auth/mfa/status',
|
|
303
303
|
...options
|
|
@@ -308,7 +308,7 @@ export const getMfaStatus = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
308
308
|
*
|
|
309
309
|
* Replace the recovery-code set after re-authentication; codes are shown once.
|
|
310
310
|
*/
|
|
311
|
-
export const regenerateMfaRecoveryCodes = <ThrowOnError extends boolean = false>(options: Options<RegenerateMfaRecoveryCodesData, ThrowOnError>) => (options.client ?? client).post<RegenerateMfaRecoveryCodesResponses, RegenerateMfaRecoveryCodesErrors, ThrowOnError>({
|
|
311
|
+
export const regenerateMfaRecoveryCodes = <ThrowOnError extends boolean = false>(options: Options<RegenerateMfaRecoveryCodesData, ThrowOnError>): RequestResult<RegenerateMfaRecoveryCodesResponses, RegenerateMfaRecoveryCodesErrors, ThrowOnError> => (options.client ?? client).post<RegenerateMfaRecoveryCodesResponses, RegenerateMfaRecoveryCodesErrors, ThrowOnError>({
|
|
312
312
|
security: [{ name: 'X-API-Key', type: 'apiKey' }],
|
|
313
313
|
url: '/v1/auth/mfa/recovery-codes/regenerate',
|
|
314
314
|
...options,
|
|
@@ -323,26 +323,26 @@ export const regenerateMfaRecoveryCodes = <ThrowOnError extends boolean = false>
|
|
|
323
323
|
*
|
|
324
324
|
* Returns site key and whether CAPTCHA is required. Site key is null when CAPTCHA is disabled.
|
|
325
325
|
*/
|
|
326
|
-
export const getCaptchaConfig = <ThrowOnError extends boolean = false>(options?: Options<GetCaptchaConfigData, ThrowOnError>) => (options?.client ?? client).get<GetCaptchaConfigResponses, GetCaptchaConfigErrors, ThrowOnError>({ url: '/v1/auth/captcha/config', ...options });
|
|
326
|
+
export const getCaptchaConfig = <ThrowOnError extends boolean = false>(options?: Options<GetCaptchaConfigData, ThrowOnError>): RequestResult<GetCaptchaConfigResponses, GetCaptchaConfigErrors, ThrowOnError> => (options?.client ?? client).get<GetCaptchaConfigResponses, GetCaptchaConfigErrors, ThrowOnError>({ url: '/v1/auth/captcha/config', ...options });
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
329
|
* Get Auth Providers
|
|
330
330
|
*
|
|
331
331
|
* Returns which authentication methods this deployment offers. The login surface renders its posture from this instead of hardcoding methods.
|
|
332
332
|
*/
|
|
333
|
-
export const getAuthProviders = <ThrowOnError extends boolean = false>(options?: Options<GetAuthProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetAuthProvidersResponses, GetAuthProvidersErrors, ThrowOnError>({ url: '/v1/auth/providers', ...options });
|
|
333
|
+
export const getAuthProviders = <ThrowOnError extends boolean = false>(options?: Options<GetAuthProvidersData, ThrowOnError>): RequestResult<GetAuthProvidersResponses, GetAuthProvidersErrors, ThrowOnError> => (options?.client ?? client).get<GetAuthProvidersResponses, GetAuthProvidersErrors, ThrowOnError>({ url: '/v1/auth/providers', ...options });
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
336
|
* Health Check
|
|
337
337
|
*
|
|
338
338
|
* Unprotected — used by load balancers and monitoring. No authentication required.
|
|
339
339
|
*/
|
|
340
|
-
export const getServiceStatus = <ThrowOnError extends boolean = false>(options?: Options<GetServiceStatusData, ThrowOnError>) => (options?.client ?? client).get<GetServiceStatusResponses, unknown, ThrowOnError>({ url: '/v1/status', ...options });
|
|
340
|
+
export const getServiceStatus = <ThrowOnError extends boolean = false>(options?: Options<GetServiceStatusData, ThrowOnError>): RequestResult<GetServiceStatusResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetServiceStatusResponses, unknown, ThrowOnError>({ url: '/v1/status', ...options });
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
343
|
* Get Current User
|
|
344
344
|
*/
|
|
345
|
-
export const getCurrentUser = <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => (options?.client ?? client).get<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError>({
|
|
345
|
+
export const getCurrentUser = <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>): RequestResult<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError> => (options?.client ?? client).get<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError>({
|
|
346
346
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
347
347
|
url: '/v1/user',
|
|
348
348
|
...options
|
|
@@ -351,7 +351,7 @@ export const getCurrentUser = <ThrowOnError extends boolean = false>(options?: O
|
|
|
351
351
|
/**
|
|
352
352
|
* Update User Profile
|
|
353
353
|
*/
|
|
354
|
-
export const updateUser = <ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>) => (options.client ?? client).put<UpdateUserResponses, UpdateUserErrors, ThrowOnError>({
|
|
354
|
+
export const updateUser = <ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>): RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError> => (options.client ?? client).put<UpdateUserResponses, UpdateUserErrors, ThrowOnError>({
|
|
355
355
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
356
356
|
url: '/v1/user',
|
|
357
357
|
...options,
|
|
@@ -366,7 +366,7 @@ export const updateUser = <ThrowOnError extends boolean = false>(options: Option
|
|
|
366
366
|
*
|
|
367
367
|
* Requires current password verification. Not available for SSO-only accounts.
|
|
368
368
|
*/
|
|
369
|
-
export const updateUserPassword = <ThrowOnError extends boolean = false>(options: Options<UpdateUserPasswordData, ThrowOnError>) => (options.client ?? client).put<UpdateUserPasswordResponses, UpdateUserPasswordErrors, ThrowOnError>({
|
|
369
|
+
export const updateUserPassword = <ThrowOnError extends boolean = false>(options: Options<UpdateUserPasswordData, ThrowOnError>): RequestResult<UpdateUserPasswordResponses, UpdateUserPasswordErrors, ThrowOnError> => (options.client ?? client).put<UpdateUserPasswordResponses, UpdateUserPasswordErrors, ThrowOnError>({
|
|
370
370
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
371
371
|
url: '/v1/user/password',
|
|
372
372
|
...options,
|
|
@@ -381,7 +381,7 @@ export const updateUserPassword = <ThrowOnError extends boolean = false>(options
|
|
|
381
381
|
*
|
|
382
382
|
* Lists active keys only. Revoked keys are omitted — revocation is permanent, so a revoked key never returns to this list.
|
|
383
383
|
*/
|
|
384
|
-
export const listUserApiKeys = <ThrowOnError extends boolean = false>(options?: Options<ListUserApiKeysData, ThrowOnError>) => (options?.client ?? client).get<ListUserApiKeysResponses, ListUserApiKeysErrors, ThrowOnError>({
|
|
384
|
+
export const listUserApiKeys = <ThrowOnError extends boolean = false>(options?: Options<ListUserApiKeysData, ThrowOnError>): RequestResult<ListUserApiKeysResponses, ListUserApiKeysErrors, ThrowOnError> => (options?.client ?? client).get<ListUserApiKeysResponses, ListUserApiKeysErrors, ThrowOnError>({
|
|
385
385
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
386
386
|
url: '/v1/user/api-keys',
|
|
387
387
|
...options
|
|
@@ -392,7 +392,7 @@ export const listUserApiKeys = <ThrowOnError extends boolean = false>(options?:
|
|
|
392
392
|
*
|
|
393
393
|
* The raw key value is only returned once at creation time and cannot be retrieved again.
|
|
394
394
|
*/
|
|
395
|
-
export const createUserApiKey = <ThrowOnError extends boolean = false>(options: Options<CreateUserApiKeyData, ThrowOnError>) => (options.client ?? client).post<CreateUserApiKeyResponses, CreateUserApiKeyErrors, ThrowOnError>({
|
|
395
|
+
export const createUserApiKey = <ThrowOnError extends boolean = false>(options: Options<CreateUserApiKeyData, ThrowOnError>): RequestResult<CreateUserApiKeyResponses, CreateUserApiKeyErrors, ThrowOnError> => (options.client ?? client).post<CreateUserApiKeyResponses, CreateUserApiKeyErrors, ThrowOnError>({
|
|
396
396
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
397
397
|
url: '/v1/user/api-keys',
|
|
398
398
|
...options,
|
|
@@ -407,7 +407,7 @@ export const createUserApiKey = <ThrowOnError extends boolean = false>(options:
|
|
|
407
407
|
*
|
|
408
408
|
* Deactivates the key immediately. Requests using the revoked key will fail with 401.
|
|
409
409
|
*/
|
|
410
|
-
export const revokeUserApiKey = <ThrowOnError extends boolean = false>(options: Options<RevokeUserApiKeyData, ThrowOnError>) => (options.client ?? client).delete<RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, ThrowOnError>({
|
|
410
|
+
export const revokeUserApiKey = <ThrowOnError extends boolean = false>(options: Options<RevokeUserApiKeyData, ThrowOnError>): RequestResult<RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, ThrowOnError> => (options.client ?? client).delete<RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, ThrowOnError>({
|
|
411
411
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
412
412
|
url: '/v1/user/api-keys/{api_key_id}',
|
|
413
413
|
...options
|
|
@@ -416,7 +416,7 @@ export const revokeUserApiKey = <ThrowOnError extends boolean = false>(options:
|
|
|
416
416
|
/**
|
|
417
417
|
* Update API Key
|
|
418
418
|
*/
|
|
419
|
-
export const updateUserApiKey = <ThrowOnError extends boolean = false>(options: Options<UpdateUserApiKeyData, ThrowOnError>) => (options.client ?? client).put<UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ThrowOnError>({
|
|
419
|
+
export const updateUserApiKey = <ThrowOnError extends boolean = false>(options: Options<UpdateUserApiKeyData, ThrowOnError>): RequestResult<UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ThrowOnError> => (options.client ?? client).put<UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ThrowOnError>({
|
|
420
420
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
421
421
|
url: '/v1/user/api-keys/{api_key_id}',
|
|
422
422
|
...options,
|
|
@@ -431,7 +431,7 @@ export const updateUserApiKey = <ThrowOnError extends boolean = false>(options:
|
|
|
431
431
|
*
|
|
432
432
|
* Every MCP client the user has authorized through OAuth, with the one graph each connection reaches. Active grants only: a revoked grant cannot be reinstated, so it leaves the list.
|
|
433
433
|
*/
|
|
434
|
-
export const listUserOAuthGrants = <ThrowOnError extends boolean = false>(options?: Options<ListUserOAuthGrantsData, ThrowOnError>) => (options?.client ?? client).get<ListUserOAuthGrantsResponses, ListUserOAuthGrantsErrors, ThrowOnError>({
|
|
434
|
+
export const listUserOAuthGrants = <ThrowOnError extends boolean = false>(options?: Options<ListUserOAuthGrantsData, ThrowOnError>): RequestResult<ListUserOAuthGrantsResponses, ListUserOAuthGrantsErrors, ThrowOnError> => (options?.client ?? client).get<ListUserOAuthGrantsResponses, ListUserOAuthGrantsErrors, ThrowOnError>({
|
|
435
435
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
436
436
|
url: '/v1/user/oauth/grants',
|
|
437
437
|
...options
|
|
@@ -442,7 +442,7 @@ export const listUserOAuthGrants = <ThrowOnError extends boolean = false>(option
|
|
|
442
442
|
*
|
|
443
443
|
* Revokes the grant and every access and refresh token minted from it. The client's next request fails with 401 and it must ask the user to authorize again. Revoking an already revoked grant succeeds and changes nothing.
|
|
444
444
|
*/
|
|
445
|
-
export const revokeUserOAuthGrant = <ThrowOnError extends boolean = false>(options: Options<RevokeUserOAuthGrantData, ThrowOnError>) => (options.client ?? client).delete<RevokeUserOAuthGrantResponses, RevokeUserOAuthGrantErrors, ThrowOnError>({
|
|
445
|
+
export const revokeUserOAuthGrant = <ThrowOnError extends boolean = false>(options: Options<RevokeUserOAuthGrantData, ThrowOnError>): RequestResult<RevokeUserOAuthGrantResponses, RevokeUserOAuthGrantErrors, ThrowOnError> => (options.client ?? client).delete<RevokeUserOAuthGrantResponses, RevokeUserOAuthGrantErrors, ThrowOnError>({
|
|
446
446
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
447
447
|
url: '/v1/user/oauth/grants/{grant_id}',
|
|
448
448
|
...options
|
|
@@ -451,7 +451,7 @@ export const revokeUserOAuthGrant = <ThrowOnError extends boolean = false>(optio
|
|
|
451
451
|
/**
|
|
452
452
|
* List User's Organizations
|
|
453
453
|
*/
|
|
454
|
-
export const listUserOrgs = <ThrowOnError extends boolean = false>(options?: Options<ListUserOrgsData, ThrowOnError>) => (options?.client ?? client).get<ListUserOrgsResponses, ListUserOrgsErrors, ThrowOnError>({
|
|
454
|
+
export const listUserOrgs = <ThrowOnError extends boolean = false>(options?: Options<ListUserOrgsData, ThrowOnError>): RequestResult<ListUserOrgsResponses, ListUserOrgsErrors, ThrowOnError> => (options?.client ?? client).get<ListUserOrgsResponses, ListUserOrgsErrors, ThrowOnError>({
|
|
455
455
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
456
456
|
url: '/v1/orgs',
|
|
457
457
|
...options
|
|
@@ -460,7 +460,7 @@ export const listUserOrgs = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
460
460
|
/**
|
|
461
461
|
* Get Organization
|
|
462
462
|
*/
|
|
463
|
-
export const getOrg = <ThrowOnError extends boolean = false>(options: Options<GetOrgData, ThrowOnError>) => (options.client ?? client).get<GetOrgResponses, GetOrgErrors, ThrowOnError>({
|
|
463
|
+
export const getOrg = <ThrowOnError extends boolean = false>(options: Options<GetOrgData, ThrowOnError>): RequestResult<GetOrgResponses, GetOrgErrors, ThrowOnError> => (options.client ?? client).get<GetOrgResponses, GetOrgErrors, ThrowOnError>({
|
|
464
464
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
465
465
|
url: '/v1/orgs/{org_id}',
|
|
466
466
|
...options
|
|
@@ -471,7 +471,7 @@ export const getOrg = <ThrowOnError extends boolean = false>(options: Options<Ge
|
|
|
471
471
|
*
|
|
472
472
|
* Requires admin or owner role. Only owners can change the org type.
|
|
473
473
|
*/
|
|
474
|
-
export const updateOrg = <ThrowOnError extends boolean = false>(options: Options<UpdateOrgData, ThrowOnError>) => (options.client ?? client).put<UpdateOrgResponses, UpdateOrgErrors, ThrowOnError>({
|
|
474
|
+
export const updateOrg = <ThrowOnError extends boolean = false>(options: Options<UpdateOrgData, ThrowOnError>): RequestResult<UpdateOrgResponses, UpdateOrgErrors, ThrowOnError> => (options.client ?? client).put<UpdateOrgResponses, UpdateOrgErrors, ThrowOnError>({
|
|
475
475
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
476
476
|
url: '/v1/orgs/{org_id}',
|
|
477
477
|
...options,
|
|
@@ -484,7 +484,7 @@ export const updateOrg = <ThrowOnError extends boolean = false>(options: Options
|
|
|
484
484
|
/**
|
|
485
485
|
* List Organization Graphs
|
|
486
486
|
*/
|
|
487
|
-
export const listOrgGraphs = <ThrowOnError extends boolean = false>(options: Options<ListOrgGraphsData, ThrowOnError>) => (options.client ?? client).get<ListOrgGraphsResponses, ListOrgGraphsErrors, ThrowOnError>({
|
|
487
|
+
export const listOrgGraphs = <ThrowOnError extends boolean = false>(options: Options<ListOrgGraphsData, ThrowOnError>): RequestResult<ListOrgGraphsResponses, ListOrgGraphsErrors, ThrowOnError> => (options.client ?? client).get<ListOrgGraphsResponses, ListOrgGraphsErrors, ThrowOnError>({
|
|
488
488
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
489
489
|
url: '/v1/orgs/{org_id}/graphs',
|
|
490
490
|
...options
|
|
@@ -493,7 +493,7 @@ export const listOrgGraphs = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
493
493
|
/**
|
|
494
494
|
* List Organization Members
|
|
495
495
|
*/
|
|
496
|
-
export const listOrgMembers = <ThrowOnError extends boolean = false>(options: Options<ListOrgMembersData, ThrowOnError>) => (options.client ?? client).get<ListOrgMembersResponses, ListOrgMembersErrors, ThrowOnError>({
|
|
496
|
+
export const listOrgMembers = <ThrowOnError extends boolean = false>(options: Options<ListOrgMembersData, ThrowOnError>): RequestResult<ListOrgMembersResponses, ListOrgMembersErrors, ThrowOnError> => (options.client ?? client).get<ListOrgMembersResponses, ListOrgMembersErrors, ThrowOnError>({
|
|
497
497
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
498
498
|
url: '/v1/orgs/{org_id}/members',
|
|
499
499
|
...options
|
|
@@ -504,7 +504,7 @@ export const listOrgMembers = <ThrowOnError extends boolean = false>(options: Op
|
|
|
504
504
|
*
|
|
505
505
|
* Requires admin or owner role. Members may remove themselves.
|
|
506
506
|
*/
|
|
507
|
-
export const removeOrgMember = <ThrowOnError extends boolean = false>(options: Options<RemoveOrgMemberData, ThrowOnError>) => (options.client ?? client).delete<RemoveOrgMemberResponses, RemoveOrgMemberErrors, ThrowOnError>({
|
|
507
|
+
export const removeOrgMember = <ThrowOnError extends boolean = false>(options: Options<RemoveOrgMemberData, ThrowOnError>): RequestResult<RemoveOrgMemberResponses, RemoveOrgMemberErrors, ThrowOnError> => (options.client ?? client).delete<RemoveOrgMemberResponses, RemoveOrgMemberErrors, ThrowOnError>({
|
|
508
508
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
509
509
|
url: '/v1/orgs/{org_id}/members/{user_id}',
|
|
510
510
|
...options
|
|
@@ -515,7 +515,7 @@ export const removeOrgMember = <ThrowOnError extends boolean = false>(options: O
|
|
|
515
515
|
*
|
|
516
516
|
* Requires admin or owner role. Owner promotion/demotion requires a dedicated ownership transfer workflow.
|
|
517
517
|
*/
|
|
518
|
-
export const updateOrgMemberRole = <ThrowOnError extends boolean = false>(options: Options<UpdateOrgMemberRoleData, ThrowOnError>) => (options.client ?? client).put<UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, ThrowOnError>({
|
|
518
|
+
export const updateOrgMemberRole = <ThrowOnError extends boolean = false>(options: Options<UpdateOrgMemberRoleData, ThrowOnError>): RequestResult<UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, ThrowOnError> => (options.client ?? client).put<UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, ThrowOnError>({
|
|
519
519
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
520
520
|
url: '/v1/orgs/{org_id}/members/{user_id}',
|
|
521
521
|
...options,
|
|
@@ -530,7 +530,7 @@ export const updateOrgMemberRole = <ThrowOnError extends boolean = false>(option
|
|
|
530
530
|
*
|
|
531
531
|
* Requires admin or owner role.
|
|
532
532
|
*/
|
|
533
|
-
export const listOrgInvitations = <ThrowOnError extends boolean = false>(options: Options<ListOrgInvitationsData, ThrowOnError>) => (options.client ?? client).get<ListOrgInvitationsResponses, ListOrgInvitationsErrors, ThrowOnError>({
|
|
533
|
+
export const listOrgInvitations = <ThrowOnError extends boolean = false>(options: Options<ListOrgInvitationsData, ThrowOnError>): RequestResult<ListOrgInvitationsResponses, ListOrgInvitationsErrors, ThrowOnError> => (options.client ?? client).get<ListOrgInvitationsResponses, ListOrgInvitationsErrors, ThrowOnError>({
|
|
534
534
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
535
535
|
url: '/v1/orgs/{org_id}/invitations',
|
|
536
536
|
...options
|
|
@@ -541,7 +541,7 @@ export const listOrgInvitations = <ThrowOnError extends boolean = false>(options
|
|
|
541
541
|
*
|
|
542
542
|
* Invite a new user to the organization by email. Disabled by default (ORG_MEMBER_INVITATIONS_ENABLED=false); returns 501 when disabled. Requires admin or owner role. Only emails without an existing account can be invited.
|
|
543
543
|
*/
|
|
544
|
-
export const createOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<CreateOrgInvitationData, ThrowOnError>) => (options.client ?? client).post<CreateOrgInvitationResponses, CreateOrgInvitationErrors, ThrowOnError>({
|
|
544
|
+
export const createOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<CreateOrgInvitationData, ThrowOnError>): RequestResult<CreateOrgInvitationResponses, CreateOrgInvitationErrors, ThrowOnError> => (options.client ?? client).post<CreateOrgInvitationResponses, CreateOrgInvitationErrors, ThrowOnError>({
|
|
545
545
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
546
546
|
url: '/v1/orgs/{org_id}/invitations',
|
|
547
547
|
...options,
|
|
@@ -556,7 +556,7 @@ export const createOrgInvitation = <ThrowOnError extends boolean = false>(option
|
|
|
556
556
|
*
|
|
557
557
|
* Requires admin or owner role. Only pending invitations can be revoked.
|
|
558
558
|
*/
|
|
559
|
-
export const revokeOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<RevokeOrgInvitationData, ThrowOnError>) => (options.client ?? client).delete<RevokeOrgInvitationResponses, RevokeOrgInvitationErrors, ThrowOnError>({
|
|
559
|
+
export const revokeOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<RevokeOrgInvitationData, ThrowOnError>): RequestResult<RevokeOrgInvitationResponses, RevokeOrgInvitationErrors, ThrowOnError> => (options.client ?? client).delete<RevokeOrgInvitationResponses, RevokeOrgInvitationErrors, ThrowOnError>({
|
|
560
560
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
561
561
|
url: '/v1/orgs/{org_id}/invitations/{invitation_id}',
|
|
562
562
|
...options
|
|
@@ -567,7 +567,7 @@ export const revokeOrgInvitation = <ThrowOnError extends boolean = false>(option
|
|
|
567
567
|
*
|
|
568
568
|
* Requires admin or owner role. Rotates the invitation token, extends its expiry, and re-sends the email.
|
|
569
569
|
*/
|
|
570
|
-
export const resendOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<ResendOrgInvitationData, ThrowOnError>) => (options.client ?? client).post<ResendOrgInvitationResponses, ResendOrgInvitationErrors, ThrowOnError>({
|
|
570
|
+
export const resendOrgInvitation = <ThrowOnError extends boolean = false>(options: Options<ResendOrgInvitationData, ThrowOnError>): RequestResult<ResendOrgInvitationResponses, ResendOrgInvitationErrors, ThrowOnError> => (options.client ?? client).post<ResendOrgInvitationResponses, ResendOrgInvitationErrors, ThrowOnError>({
|
|
571
571
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
572
572
|
url: '/v1/orgs/{org_id}/invitations/{invitation_id}/resend',
|
|
573
573
|
...options
|
|
@@ -576,7 +576,7 @@ export const resendOrgInvitation = <ThrowOnError extends boolean = false>(option
|
|
|
576
576
|
/**
|
|
577
577
|
* Get Organization Limits
|
|
578
578
|
*/
|
|
579
|
-
export const getOrgLimits = <ThrowOnError extends boolean = false>(options: Options<GetOrgLimitsData, ThrowOnError>) => (options.client ?? client).get<GetOrgLimitsResponses, GetOrgLimitsErrors, ThrowOnError>({
|
|
579
|
+
export const getOrgLimits = <ThrowOnError extends boolean = false>(options: Options<GetOrgLimitsData, ThrowOnError>): RequestResult<GetOrgLimitsResponses, GetOrgLimitsErrors, ThrowOnError> => (options.client ?? client).get<GetOrgLimitsResponses, GetOrgLimitsErrors, ThrowOnError>({
|
|
580
580
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
581
581
|
url: '/v1/orgs/{org_id}/limits',
|
|
582
582
|
...options
|
|
@@ -587,7 +587,7 @@ export const getOrgLimits = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
587
587
|
*
|
|
588
588
|
* Aggregated across all graphs in the org. Use the `days` query param to control the lookback window (default 30).
|
|
589
589
|
*/
|
|
590
|
-
export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Options<GetOrgUsageData, ThrowOnError>) => (options.client ?? client).get<GetOrgUsageResponses, GetOrgUsageErrors, ThrowOnError>({
|
|
590
|
+
export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Options<GetOrgUsageData, ThrowOnError>): RequestResult<GetOrgUsageResponses, GetOrgUsageErrors, ThrowOnError> => (options.client ?? client).get<GetOrgUsageResponses, GetOrgUsageErrors, ThrowOnError>({
|
|
591
591
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
592
592
|
url: '/v1/orgs/{org_id}/usage',
|
|
593
593
|
...options
|
|
@@ -598,7 +598,7 @@ export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
598
598
|
*
|
|
599
599
|
* QuickBooks: fetches transactions, balances, and chart of accounts; the envelope is `pending` with the run's `task_id`, and completion is reflected in the connection's `last_sync` timestamp. External connections are push-based and have nothing to pull; the envelope is `completed` with a null `task_id` and a message saying so — there is nothing to poll. Returns an `OperationEnvelope`; supports `Idempotency-Key`.
|
|
600
600
|
*/
|
|
601
|
-
export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
|
|
601
|
+
export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>): RequestResult<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError> => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
|
|
602
602
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
603
603
|
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
|
|
604
604
|
...options,
|
|
@@ -613,7 +613,7 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
613
613
|
*
|
|
614
614
|
* Returns available providers and their requirements. Only enabled providers are included (gated by feature flags). QuickBooks requires OAuth 2.0; external connections require no auth.
|
|
615
615
|
*/
|
|
616
|
-
export const getConnectionOptions = <ThrowOnError extends boolean = false>(options: Options<GetConnectionOptionsData, ThrowOnError>) => (options.client ?? client).get<GetConnectionOptionsResponses, GetConnectionOptionsErrors, ThrowOnError>({
|
|
616
|
+
export const getConnectionOptions = <ThrowOnError extends boolean = false>(options: Options<GetConnectionOptionsData, ThrowOnError>): RequestResult<GetConnectionOptionsResponses, GetConnectionOptionsErrors, ThrowOnError> => (options.client ?? client).get<GetConnectionOptionsResponses, GetConnectionOptionsErrors, ThrowOnError>({
|
|
617
617
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
618
618
|
url: '/v1/graphs/{graph_id}/connections/options',
|
|
619
619
|
...options
|
|
@@ -622,7 +622,7 @@ export const getConnectionOptions = <ThrowOnError extends boolean = false>(optio
|
|
|
622
622
|
/**
|
|
623
623
|
* Initialize OAuth Flow
|
|
624
624
|
*/
|
|
625
|
-
export const initOAuth = <ThrowOnError extends boolean = false>(options: Options<InitOAuthData, ThrowOnError>) => (options.client ?? client).post<InitOAuthResponses, InitOAuthErrors, ThrowOnError>({
|
|
625
|
+
export const initOAuth = <ThrowOnError extends boolean = false>(options: Options<InitOAuthData, ThrowOnError>): RequestResult<InitOAuthResponses, InitOAuthErrors, ThrowOnError> => (options.client ?? client).post<InitOAuthResponses, InitOAuthErrors, ThrowOnError>({
|
|
626
626
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
627
627
|
url: '/v1/graphs/{graph_id}/connections/oauth/init',
|
|
628
628
|
...options,
|
|
@@ -637,7 +637,7 @@ export const initOAuth = <ThrowOnError extends boolean = false>(options: Options
|
|
|
637
637
|
*
|
|
638
638
|
* Completes the OAuth authorization flow after provider redirect. Exchanges the authorization code for tokens, stores them, and triggers an initial sync. This is a redirect target — not typically called directly.
|
|
639
639
|
*/
|
|
640
|
-
export const oauthCallback = <ThrowOnError extends boolean = false>(options: Options<OauthCallbackData, ThrowOnError>) => (options.client ?? client).post<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError>({
|
|
640
|
+
export const oauthCallback = <ThrowOnError extends boolean = false>(options: Options<OauthCallbackData, ThrowOnError>): RequestResult<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError> => (options.client ?? client).post<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError>({
|
|
641
641
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
642
642
|
url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
|
|
643
643
|
...options,
|
|
@@ -650,7 +650,7 @@ export const oauthCallback = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
650
650
|
/**
|
|
651
651
|
* List Connections
|
|
652
652
|
*/
|
|
653
|
-
export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
|
|
653
|
+
export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>): RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError> => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
|
|
654
654
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
655
655
|
url: '/v1/graphs/{graph_id}/connections',
|
|
656
656
|
...options
|
|
@@ -661,7 +661,7 @@ export const listConnections = <ThrowOnError extends boolean = false>(options: O
|
|
|
661
661
|
*
|
|
662
662
|
* QuickBooks: returns an OAuth URL — complete the flow to activate. External: registers a source namespace for an integration that writes through the public API. One connection allowed per provider per graph, except 'external' which allows one per source_name.
|
|
663
663
|
*/
|
|
664
|
-
export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
|
|
664
|
+
export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>): RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError> => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
|
|
665
665
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
666
666
|
url: '/v1/graphs/{graph_id}/connections',
|
|
667
667
|
...options,
|
|
@@ -676,7 +676,7 @@ export const createConnection = <ThrowOnError extends boolean = false>(options:
|
|
|
676
676
|
*
|
|
677
677
|
* Removes the connection and revokes credentials. Imported data is preserved in the graph. Requires admin role.
|
|
678
678
|
*/
|
|
679
|
-
export const deleteConnection = <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionData, ThrowOnError>) => (options.client ?? client).delete<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError>({
|
|
679
|
+
export const deleteConnection = <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionData, ThrowOnError>): RequestResult<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError> => (options.client ?? client).delete<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError>({
|
|
680
680
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
681
681
|
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
682
682
|
...options
|
|
@@ -685,7 +685,7 @@ export const deleteConnection = <ThrowOnError extends boolean = false>(options:
|
|
|
685
685
|
/**
|
|
686
686
|
* Get Connection
|
|
687
687
|
*/
|
|
688
|
-
export const getConnection = <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => (options.client ?? client).get<GetConnectionResponses, GetConnectionErrors, ThrowOnError>({
|
|
688
|
+
export const getConnection = <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>): RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError> => (options.client ?? client).get<GetConnectionResponses, GetConnectionErrors, ThrowOnError>({
|
|
689
689
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
690
690
|
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
691
691
|
...options
|
|
@@ -696,7 +696,7 @@ export const getConnection = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
696
696
|
*
|
|
697
697
|
* Opt a connection into or out of outbound write-back. 'qb_authoritative' makes QuickBooks the source of truth — RoboSystems-originated entries (manual JEs, schedule drafts) publish to QuickBooks when executed or at close. 'native' keeps RoboSystems authoritative with no write-back. This is the explicit operator opt-in for writing to your books of record.
|
|
698
698
|
*/
|
|
699
|
-
export const setConnectionWritePolicy = <ThrowOnError extends boolean = false>(options: Options<SetConnectionWritePolicyData, ThrowOnError>) => (options.client ?? client).put<SetConnectionWritePolicyResponses, SetConnectionWritePolicyErrors, ThrowOnError>({
|
|
699
|
+
export const setConnectionWritePolicy = <ThrowOnError extends boolean = false>(options: Options<SetConnectionWritePolicyData, ThrowOnError>): RequestResult<SetConnectionWritePolicyResponses, SetConnectionWritePolicyErrors, ThrowOnError> => (options.client ?? client).put<SetConnectionWritePolicyResponses, SetConnectionWritePolicyErrors, ThrowOnError>({
|
|
700
700
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
701
701
|
url: '/v1/graphs/{graph_id}/connections/{connection_id}/write-policy',
|
|
702
702
|
...options,
|
|
@@ -711,7 +711,7 @@ export const setConnectionWritePolicy = <ThrowOnError extends boolean = false>(o
|
|
|
711
711
|
*
|
|
712
712
|
* Filter by capability using the `capability` query param (e.g., `financial_analysis`, `rag_search`).
|
|
713
713
|
*/
|
|
714
|
-
export const listOperators = <ThrowOnError extends boolean = false>(options: Options<ListOperatorsData, ThrowOnError>) => (options.client ?? client).get<ListOperatorsResponses, ListOperatorsErrors, ThrowOnError>({
|
|
714
|
+
export const listOperators = <ThrowOnError extends boolean = false>(options: Options<ListOperatorsData, ThrowOnError>): RequestResult<ListOperatorsResponses, ListOperatorsErrors, ThrowOnError> => (options.client ?? client).get<ListOperatorsResponses, ListOperatorsErrors, ThrowOnError>({
|
|
715
715
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
716
716
|
url: '/v1/graphs/{graph_id}/operator',
|
|
717
717
|
...options
|
|
@@ -722,7 +722,7 @@ export const listOperators = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
722
722
|
*
|
|
723
723
|
* Routes to the best operator for your query. Operators: `analyst` (answers natural-language questions over the graph — curated financial reads, documents, memory, and read-only Cypher; supports `quick`, `standard`, `extended`; `cypher` is accepted as its former name) and `mapping` (autonomous Chart of Accounts → rs-gaap mapping; roboledger graphs only, `extended` only). `GET /v1/graphs/{graph_id}/operator` lists what is registered. Credits are consumed by actual token usage, not a fixed price per mode. The run executes on the background worker: the default answer is 202 with the operation's `_links` (stream, status, cancel); `?mode=sync` waits up to 50s and answers 200 with the result.
|
|
724
724
|
*/
|
|
725
|
-
export const autoSelectOperator = <ThrowOnError extends boolean = false>(options: Options<AutoSelectOperatorData, ThrowOnError>) => (options.client ?? client).post<AutoSelectOperatorResponses, AutoSelectOperatorErrors, ThrowOnError>({
|
|
725
|
+
export const autoSelectOperator = <ThrowOnError extends boolean = false>(options: Options<AutoSelectOperatorData, ThrowOnError>): RequestResult<AutoSelectOperatorResponses, AutoSelectOperatorErrors, ThrowOnError> => (options.client ?? client).post<AutoSelectOperatorResponses, AutoSelectOperatorErrors, ThrowOnError>({
|
|
726
726
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
727
727
|
url: '/v1/graphs/{graph_id}/operator',
|
|
728
728
|
...options,
|
|
@@ -735,7 +735,7 @@ export const autoSelectOperator = <ThrowOnError extends boolean = false>(options
|
|
|
735
735
|
/**
|
|
736
736
|
* Get Operator Metadata
|
|
737
737
|
*/
|
|
738
|
-
export const getOperatorMetadata = <ThrowOnError extends boolean = false>(options: Options<GetOperatorMetadataData, ThrowOnError>) => (options.client ?? client).get<GetOperatorMetadataResponses, GetOperatorMetadataErrors, ThrowOnError>({
|
|
738
|
+
export const getOperatorMetadata = <ThrowOnError extends boolean = false>(options: Options<GetOperatorMetadataData, ThrowOnError>): RequestResult<GetOperatorMetadataResponses, GetOperatorMetadataErrors, ThrowOnError> => (options.client ?? client).get<GetOperatorMetadataResponses, GetOperatorMetadataErrors, ThrowOnError>({
|
|
739
739
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
740
740
|
url: '/v1/graphs/{graph_id}/operator/{operator_type}',
|
|
741
741
|
...options
|
|
@@ -746,7 +746,7 @@ export const getOperatorMetadata = <ThrowOnError extends boolean = false>(option
|
|
|
746
746
|
*
|
|
747
747
|
* Available: `analyst` (natural-language questions over the graph — curated financial reads, documents, memory, and read-only Cypher; RAG retrieval is one of its capabilities, not a separate operator; `cypher` is accepted as its former name) and `mapping` (Chart of Accounts → rs-gaap mapping, roboledger graphs only). `GET /v1/graphs/{graph_id}/operator` lists what is registered. The run executes on the background worker: the default answer is 202 with the operation's `_links` (stream, status, cancel); `?mode=sync` waits up to 50s and answers 200 with the result.
|
|
748
748
|
*/
|
|
749
|
-
export const executeSpecificOperator = <ThrowOnError extends boolean = false>(options: Options<ExecuteSpecificOperatorData, ThrowOnError>) => (options.client ?? client).post<ExecuteSpecificOperatorResponses, ExecuteSpecificOperatorErrors, ThrowOnError>({
|
|
749
|
+
export const executeSpecificOperator = <ThrowOnError extends boolean = false>(options: Options<ExecuteSpecificOperatorData, ThrowOnError>): RequestResult<ExecuteSpecificOperatorResponses, ExecuteSpecificOperatorErrors, ThrowOnError> => (options.client ?? client).post<ExecuteSpecificOperatorResponses, ExecuteSpecificOperatorErrors, ThrowOnError>({
|
|
750
750
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
751
751
|
url: '/v1/graphs/{graph_id}/operator/{operator_type}',
|
|
752
752
|
...options,
|
|
@@ -759,7 +759,7 @@ export const executeSpecificOperator = <ThrowOnError extends boolean = false>(op
|
|
|
759
759
|
/**
|
|
760
760
|
* List graph database backups
|
|
761
761
|
*/
|
|
762
|
-
export const listBackups = <ThrowOnError extends boolean = false>(options: Options<ListBackupsData, ThrowOnError>) => (options.client ?? client).get<ListBackupsResponses, ListBackupsErrors, ThrowOnError>({
|
|
762
|
+
export const listBackups = <ThrowOnError extends boolean = false>(options: Options<ListBackupsData, ThrowOnError>): RequestResult<ListBackupsResponses, ListBackupsErrors, ThrowOnError> => (options.client ?? client).get<ListBackupsResponses, ListBackupsErrors, ThrowOnError>({
|
|
763
763
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
764
764
|
url: '/v1/graphs/{graph_id}/backups',
|
|
765
765
|
...options
|
|
@@ -770,7 +770,7 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
770
770
|
*
|
|
771
771
|
* Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
|
|
772
772
|
*/
|
|
773
|
-
export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>) => (options.client ?? client).get<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError>({
|
|
773
|
+
export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>): RequestResult<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError> => (options.client ?? client).get<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError>({
|
|
774
774
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
775
775
|
url: '/v1/graphs/{graph_id}/backups/{backup_id}/download',
|
|
776
776
|
...options
|
|
@@ -779,7 +779,7 @@ export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(optio
|
|
|
779
779
|
/**
|
|
780
780
|
* Get backup statistics
|
|
781
781
|
*/
|
|
782
|
-
export const getBackupStats = <ThrowOnError extends boolean = false>(options: Options<GetBackupStatsData, ThrowOnError>) => (options.client ?? client).get<GetBackupStatsResponses, GetBackupStatsErrors, ThrowOnError>({
|
|
782
|
+
export const getBackupStats = <ThrowOnError extends boolean = false>(options: Options<GetBackupStatsData, ThrowOnError>): RequestResult<GetBackupStatsResponses, GetBackupStatsErrors, ThrowOnError> => (options.client ?? client).get<GetBackupStatsResponses, GetBackupStatsErrors, ThrowOnError>({
|
|
783
783
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
784
784
|
url: '/v1/graphs/{graph_id}/backups/stats',
|
|
785
785
|
...options
|
|
@@ -788,7 +788,7 @@ export const getBackupStats = <ThrowOnError extends boolean = false>(options: Op
|
|
|
788
788
|
/**
|
|
789
789
|
* Get Graph Metrics
|
|
790
790
|
*/
|
|
791
|
-
export const getGraphMetrics = <ThrowOnError extends boolean = false>(options: Options<GetGraphMetricsData, ThrowOnError>) => (options.client ?? client).get<GetGraphMetricsResponses, GetGraphMetricsErrors, ThrowOnError>({
|
|
791
|
+
export const getGraphMetrics = <ThrowOnError extends boolean = false>(options: Options<GetGraphMetricsData, ThrowOnError>): RequestResult<GetGraphMetricsResponses, GetGraphMetricsErrors, ThrowOnError> => (options.client ?? client).get<GetGraphMetricsResponses, GetGraphMetricsErrors, ThrowOnError>({
|
|
792
792
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
793
793
|
url: '/v1/graphs/{graph_id}/metrics',
|
|
794
794
|
...options
|
|
@@ -799,7 +799,7 @@ export const getGraphMetrics = <ThrowOnError extends boolean = false>(options: O
|
|
|
799
799
|
*
|
|
800
800
|
* Time ranges: 24h, 7d, 30d, current_month, last_month. Toggle storage, credits, performance, and events sections via query params.
|
|
801
801
|
*/
|
|
802
|
-
export const getGraphUsage = <ThrowOnError extends boolean = false>(options: Options<GetGraphUsageData, ThrowOnError>) => (options.client ?? client).get<GetGraphUsageResponses, GetGraphUsageErrors, ThrowOnError>({
|
|
802
|
+
export const getGraphUsage = <ThrowOnError extends boolean = false>(options: Options<GetGraphUsageData, ThrowOnError>): RequestResult<GetGraphUsageResponses, GetGraphUsageErrors, ThrowOnError> => (options.client ?? client).get<GetGraphUsageResponses, GetGraphUsageErrors, ThrowOnError>({
|
|
803
803
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
804
804
|
url: '/v1/graphs/{graph_id}/usage',
|
|
805
805
|
...options
|
|
@@ -810,7 +810,7 @@ export const getGraphUsage = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
810
810
|
*
|
|
811
811
|
* Cypher over the graph (LadybugDB). Main graphs are **read-only** — use the staging pipeline to ingest data. Subgraphs support full writes. Always use parameterized queries (`parameters: {"key": "val"}`) to prevent injection. Response modes: `auto` (default), `sync`, `async`, `stream`. Under load, queries are queued and emit an `operation_id` for SSE monitoring at `/v1/operations/{id}/stream`.
|
|
812
812
|
*/
|
|
813
|
-
export const executeCypher = <ThrowOnError extends boolean = false>(options: Options<ExecuteCypherData, ThrowOnError>) => (options.client ?? client).post<ExecuteCypherResponses, ExecuteCypherErrors, ThrowOnError>({
|
|
813
|
+
export const executeCypher = <ThrowOnError extends boolean = false>(options: Options<ExecuteCypherData, ThrowOnError>): RequestResult<ExecuteCypherResponses, ExecuteCypherErrors, ThrowOnError> => (options.client ?? client).post<ExecuteCypherResponses, ExecuteCypherErrors, ThrowOnError>({
|
|
814
814
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
815
815
|
url: '/v1/graphs/{graph_id}/query/cypher',
|
|
816
816
|
...options,
|
|
@@ -825,7 +825,7 @@ export const executeCypher = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
825
825
|
*
|
|
826
826
|
* SQL over the graph's columnar tables (DuckDB) — a relational lens on the same graph-centric data, often ahead of the materialized graph. Use `?` placeholders with the `parameters` array to prevent injection. Read-only (SELECT only), 30s timeout, 10,000 row limit. Not available on shared repositories.
|
|
827
827
|
*/
|
|
828
|
-
export const executeSql = <ThrowOnError extends boolean = false>(options: Options<ExecuteSqlData, ThrowOnError>) => (options.client ?? client).post<ExecuteSqlResponses, ExecuteSqlErrors, ThrowOnError>({
|
|
828
|
+
export const executeSql = <ThrowOnError extends boolean = false>(options: Options<ExecuteSqlData, ThrowOnError>): RequestResult<ExecuteSqlResponses, ExecuteSqlErrors, ThrowOnError> => (options.client ?? client).post<ExecuteSqlResponses, ExecuteSqlErrors, ThrowOnError>({
|
|
829
829
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
830
830
|
url: '/v1/graphs/{graph_id}/query/sql',
|
|
831
831
|
...options,
|
|
@@ -840,7 +840,7 @@ export const executeSql = <ThrowOnError extends boolean = false>(options: Option
|
|
|
840
840
|
*
|
|
841
841
|
* Runtime schema from actual graph data — node labels, relationship types, and up to 10 sample properties per node type. For the original schema definition or structured export formats, use `/schema/export`.
|
|
842
842
|
*/
|
|
843
|
-
export const getGraphSchema = <ThrowOnError extends boolean = false>(options: Options<GetGraphSchemaData, ThrowOnError>) => (options.client ?? client).get<GetGraphSchemaResponses, GetGraphSchemaErrors, ThrowOnError>({
|
|
843
|
+
export const getGraphSchema = <ThrowOnError extends boolean = false>(options: Options<GetGraphSchemaData, ThrowOnError>): RequestResult<GetGraphSchemaResponses, GetGraphSchemaErrors, ThrowOnError> => (options.client ?? client).get<GetGraphSchemaResponses, GetGraphSchemaErrors, ThrowOnError>({
|
|
844
844
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
845
845
|
url: '/v1/graphs/{graph_id}/schema',
|
|
846
846
|
...options
|
|
@@ -851,7 +851,7 @@ export const getGraphSchema = <ThrowOnError extends boolean = false>(options: Op
|
|
|
851
851
|
*
|
|
852
852
|
* Returns the original schema definition from graph creation, not the runtime state. Set `include_data_stats=true` to add live node/relationship counts. Use `/schema` to inspect what's actually in the database.
|
|
853
853
|
*/
|
|
854
|
-
export const exportGraphSchema = <ThrowOnError extends boolean = false>(options: Options<ExportGraphSchemaData, ThrowOnError>) => (options.client ?? client).get<ExportGraphSchemaResponses, ExportGraphSchemaErrors, ThrowOnError>({
|
|
854
|
+
export const exportGraphSchema = <ThrowOnError extends boolean = false>(options: Options<ExportGraphSchemaData, ThrowOnError>): RequestResult<ExportGraphSchemaResponses, ExportGraphSchemaErrors, ThrowOnError> => (options.client ?? client).get<ExportGraphSchemaResponses, ExportGraphSchemaErrors, ThrowOnError>({
|
|
855
855
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
856
856
|
url: '/v1/graphs/{graph_id}/schema/export',
|
|
857
857
|
...options
|
|
@@ -860,7 +860,7 @@ export const exportGraphSchema = <ThrowOnError extends boolean = false>(options:
|
|
|
860
860
|
/**
|
|
861
861
|
* Get Credit Summary
|
|
862
862
|
*/
|
|
863
|
-
export const getCreditSummary = <ThrowOnError extends boolean = false>(options: Options<GetCreditSummaryData, ThrowOnError>) => (options.client ?? client).get<GetCreditSummaryResponses, GetCreditSummaryErrors, ThrowOnError>({
|
|
863
|
+
export const getCreditSummary = <ThrowOnError extends boolean = false>(options: Options<GetCreditSummaryData, ThrowOnError>): RequestResult<GetCreditSummaryResponses, GetCreditSummaryErrors, ThrowOnError> => (options.client ?? client).get<GetCreditSummaryResponses, GetCreditSummaryErrors, ThrowOnError>({
|
|
864
864
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
865
865
|
url: '/v1/graphs/{graph_id}/credits',
|
|
866
866
|
...options
|
|
@@ -869,7 +869,7 @@ export const getCreditSummary = <ThrowOnError extends boolean = false>(options:
|
|
|
869
869
|
/**
|
|
870
870
|
* List Credit Transactions
|
|
871
871
|
*/
|
|
872
|
-
export const listCreditTransactions = <ThrowOnError extends boolean = false>(options: Options<ListCreditTransactionsData, ThrowOnError>) => (options.client ?? client).get<ListCreditTransactionsResponses, ListCreditTransactionsErrors, ThrowOnError>({
|
|
872
|
+
export const listCreditTransactions = <ThrowOnError extends boolean = false>(options: Options<ListCreditTransactionsData, ThrowOnError>): RequestResult<ListCreditTransactionsResponses, ListCreditTransactionsErrors, ThrowOnError> => (options.client ?? client).get<ListCreditTransactionsResponses, ListCreditTransactionsErrors, ThrowOnError>({
|
|
873
873
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
874
874
|
url: '/v1/graphs/{graph_id}/credits/transactions',
|
|
875
875
|
...options
|
|
@@ -878,7 +878,7 @@ export const listCreditTransactions = <ThrowOnError extends boolean = false>(opt
|
|
|
878
878
|
/**
|
|
879
879
|
* Database Health Check
|
|
880
880
|
*/
|
|
881
|
-
export const getDatabaseHealth = <ThrowOnError extends boolean = false>(options: Options<GetDatabaseHealthData, ThrowOnError>) => (options.client ?? client).get<GetDatabaseHealthResponses, GetDatabaseHealthErrors, ThrowOnError>({
|
|
881
|
+
export const getDatabaseHealth = <ThrowOnError extends boolean = false>(options: Options<GetDatabaseHealthData, ThrowOnError>): RequestResult<GetDatabaseHealthResponses, GetDatabaseHealthErrors, ThrowOnError> => (options.client ?? client).get<GetDatabaseHealthResponses, GetDatabaseHealthErrors, ThrowOnError>({
|
|
882
882
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
883
883
|
url: '/v1/graphs/{graph_id}/health',
|
|
884
884
|
...options
|
|
@@ -887,7 +887,7 @@ export const getDatabaseHealth = <ThrowOnError extends boolean = false>(options:
|
|
|
887
887
|
/**
|
|
888
888
|
* Database Information
|
|
889
889
|
*/
|
|
890
|
-
export const getDatabaseInfo = <ThrowOnError extends boolean = false>(options: Options<GetDatabaseInfoData, ThrowOnError>) => (options.client ?? client).get<GetDatabaseInfoResponses, GetDatabaseInfoErrors, ThrowOnError>({
|
|
890
|
+
export const getDatabaseInfo = <ThrowOnError extends boolean = false>(options: Options<GetDatabaseInfoData, ThrowOnError>): RequestResult<GetDatabaseInfoResponses, GetDatabaseInfoErrors, ThrowOnError> => (options.client ?? client).get<GetDatabaseInfoResponses, GetDatabaseInfoErrors, ThrowOnError>({
|
|
891
891
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
892
892
|
url: '/v1/graphs/{graph_id}/info',
|
|
893
893
|
...options
|
|
@@ -898,7 +898,7 @@ export const getDatabaseInfo = <ThrowOnError extends boolean = false>(options: O
|
|
|
898
898
|
*
|
|
899
899
|
* Limits vary by subscription tier (ladybug-standard, ladybug-large, ladybug-xlarge). Includes storage, query, backup, rate, credit, document, and instance usage limits.
|
|
900
900
|
*/
|
|
901
|
-
export const getGraphLimits = <ThrowOnError extends boolean = false>(options: Options<GetGraphLimitsData, ThrowOnError>) => (options.client ?? client).get<GetGraphLimitsResponses, GetGraphLimitsErrors, ThrowOnError>({
|
|
901
|
+
export const getGraphLimits = <ThrowOnError extends boolean = false>(options: Options<GetGraphLimitsData, ThrowOnError>): RequestResult<GetGraphLimitsResponses, GetGraphLimitsErrors, ThrowOnError> => (options.client ?? client).get<GetGraphLimitsResponses, GetGraphLimitsErrors, ThrowOnError>({
|
|
902
902
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
903
903
|
url: '/v1/graphs/{graph_id}/limits',
|
|
904
904
|
...options
|
|
@@ -909,7 +909,7 @@ export const getGraphLimits = <ThrowOnError extends boolean = false>(options: Op
|
|
|
909
909
|
*
|
|
910
910
|
* All users with access to the graph: explicit grants plus org owners/admins who hold implicit admin. Requires graph admin.
|
|
911
911
|
*/
|
|
912
|
-
export const listGraphMembers = <ThrowOnError extends boolean = false>(options: Options<ListGraphMembersData, ThrowOnError>) => (options.client ?? client).get<ListGraphMembersResponses, ListGraphMembersErrors, ThrowOnError>({
|
|
912
|
+
export const listGraphMembers = <ThrowOnError extends boolean = false>(options: Options<ListGraphMembersData, ThrowOnError>): RequestResult<ListGraphMembersResponses, ListGraphMembersErrors, ThrowOnError> => (options.client ?? client).get<ListGraphMembersResponses, ListGraphMembersErrors, ThrowOnError>({
|
|
913
913
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
914
914
|
url: '/v1/graphs/{graph_id}/members',
|
|
915
915
|
...options
|
|
@@ -920,7 +920,7 @@ export const listGraphMembers = <ThrowOnError extends boolean = false>(options:
|
|
|
920
920
|
*
|
|
921
921
|
* Grant a member of the graph's organization access at a chosen role. Requires graph admin.
|
|
922
922
|
*/
|
|
923
|
-
export const addGraphMember = <ThrowOnError extends boolean = false>(options: Options<AddGraphMemberData, ThrowOnError>) => (options.client ?? client).post<AddGraphMemberResponses, AddGraphMemberErrors, ThrowOnError>({
|
|
923
|
+
export const addGraphMember = <ThrowOnError extends boolean = false>(options: Options<AddGraphMemberData, ThrowOnError>): RequestResult<AddGraphMemberResponses, AddGraphMemberErrors, ThrowOnError> => (options.client ?? client).post<AddGraphMemberResponses, AddGraphMemberErrors, ThrowOnError>({
|
|
924
924
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
925
925
|
url: '/v1/graphs/{graph_id}/members',
|
|
926
926
|
...options,
|
|
@@ -935,7 +935,7 @@ export const addGraphMember = <ThrowOnError extends boolean = false>(options: Op
|
|
|
935
935
|
*
|
|
936
936
|
* Revoke an explicit member's access to the graph. Requires graph admin.
|
|
937
937
|
*/
|
|
938
|
-
export const removeGraphMember = <ThrowOnError extends boolean = false>(options: Options<RemoveGraphMemberData, ThrowOnError>) => (options.client ?? client).delete<RemoveGraphMemberResponses, RemoveGraphMemberErrors, ThrowOnError>({
|
|
938
|
+
export const removeGraphMember = <ThrowOnError extends boolean = false>(options: Options<RemoveGraphMemberData, ThrowOnError>): RequestResult<RemoveGraphMemberResponses, RemoveGraphMemberErrors, ThrowOnError> => (options.client ?? client).delete<RemoveGraphMemberResponses, RemoveGraphMemberErrors, ThrowOnError>({
|
|
939
939
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
940
940
|
url: '/v1/graphs/{graph_id}/members/{user_id}',
|
|
941
941
|
...options
|
|
@@ -946,7 +946,7 @@ export const removeGraphMember = <ThrowOnError extends boolean = false>(options:
|
|
|
946
946
|
*
|
|
947
947
|
* Change an explicit member's graph role. Requires graph admin. Implicit org owner/admin access is managed through org roles.
|
|
948
948
|
*/
|
|
949
|
-
export const updateGraphMemberRole = <ThrowOnError extends boolean = false>(options: Options<UpdateGraphMemberRoleData, ThrowOnError>) => (options.client ?? client).put<UpdateGraphMemberRoleResponses, UpdateGraphMemberRoleErrors, ThrowOnError>({
|
|
949
|
+
export const updateGraphMemberRole = <ThrowOnError extends boolean = false>(options: Options<UpdateGraphMemberRoleData, ThrowOnError>): RequestResult<UpdateGraphMemberRoleResponses, UpdateGraphMemberRoleErrors, ThrowOnError> => (options.client ?? client).put<UpdateGraphMemberRoleResponses, UpdateGraphMemberRoleErrors, ThrowOnError>({
|
|
950
950
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
951
951
|
url: '/v1/graphs/{graph_id}/members/{user_id}',
|
|
952
952
|
...options,
|
|
@@ -959,7 +959,7 @@ export const updateGraphMemberRole = <ThrowOnError extends boolean = false>(opti
|
|
|
959
959
|
/**
|
|
960
960
|
* List Subgraphs
|
|
961
961
|
*/
|
|
962
|
-
export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Options<ListSubgraphsData, ThrowOnError>) => (options.client ?? client).get<ListSubgraphsResponses, ListSubgraphsErrors, ThrowOnError>({
|
|
962
|
+
export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Options<ListSubgraphsData, ThrowOnError>): RequestResult<ListSubgraphsResponses, ListSubgraphsErrors, ThrowOnError> => (options.client ?? client).get<ListSubgraphsResponses, ListSubgraphsErrors, ThrowOnError>({
|
|
963
963
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
964
964
|
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
965
965
|
...options
|
|
@@ -970,7 +970,7 @@ export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
970
970
|
*
|
|
971
971
|
* Pass the subgraph name (e.g., `dev`) not the full subgraph ID (e.g., `kg0123_dev`).
|
|
972
972
|
*/
|
|
973
|
-
export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: Options<GetSubgraphInfoData, ThrowOnError>) => (options.client ?? client).get<GetSubgraphInfoResponses, GetSubgraphInfoErrors, ThrowOnError>({
|
|
973
|
+
export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: Options<GetSubgraphInfoData, ThrowOnError>): RequestResult<GetSubgraphInfoResponses, GetSubgraphInfoErrors, ThrowOnError> => (options.client ?? client).get<GetSubgraphInfoResponses, GetSubgraphInfoErrors, ThrowOnError>({
|
|
974
974
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
975
975
|
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}',
|
|
976
976
|
...options
|
|
@@ -981,7 +981,7 @@ export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: O
|
|
|
981
981
|
*
|
|
982
982
|
* Detects resource type automatically: user graphs (kg*) return the graph's subscription; shared repositories return the user's personal subscription to that repo.
|
|
983
983
|
*/
|
|
984
|
-
export const getGraphSubscription = <ThrowOnError extends boolean = false>(options: Options<GetGraphSubscriptionData, ThrowOnError>) => (options.client ?? client).get<GetGraphSubscriptionResponses, GetGraphSubscriptionErrors, ThrowOnError>({
|
|
984
|
+
export const getGraphSubscription = <ThrowOnError extends boolean = false>(options: Options<GetGraphSubscriptionData, ThrowOnError>): RequestResult<GetGraphSubscriptionResponses, GetGraphSubscriptionErrors, ThrowOnError> => (options.client ?? client).get<GetGraphSubscriptionResponses, GetGraphSubscriptionErrors, ThrowOnError>({
|
|
985
985
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
986
986
|
url: '/v1/graphs/{graph_id}/subscriptions',
|
|
987
987
|
...options
|
|
@@ -992,7 +992,7 @@ export const getGraphSubscription = <ThrowOnError extends boolean = false>(optio
|
|
|
992
992
|
*
|
|
993
993
|
* For repositories: synchronous tier change. For user graphs: use `POST /v1/graphs/{graph_id}/operations/change-tier` instead — this endpoint rejects graph tier changes. Requires org owner role.
|
|
994
994
|
*/
|
|
995
|
-
export const changeSubscriptionPlan = <ThrowOnError extends boolean = false>(options: Options<ChangeSubscriptionPlanData, ThrowOnError>) => (options.client ?? client).patch<ChangeSubscriptionPlanResponses, ChangeSubscriptionPlanErrors, ThrowOnError>({
|
|
995
|
+
export const changeSubscriptionPlan = <ThrowOnError extends boolean = false>(options: Options<ChangeSubscriptionPlanData, ThrowOnError>): RequestResult<ChangeSubscriptionPlanResponses, ChangeSubscriptionPlanErrors, ThrowOnError> => (options.client ?? client).patch<ChangeSubscriptionPlanResponses, ChangeSubscriptionPlanErrors, ThrowOnError>({
|
|
996
996
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
997
997
|
url: '/v1/graphs/{graph_id}/subscriptions',
|
|
998
998
|
...options,
|
|
@@ -1007,7 +1007,7 @@ export const changeSubscriptionPlan = <ThrowOnError extends boolean = false>(opt
|
|
|
1007
1007
|
*
|
|
1008
1008
|
* For shared repositories only (sec, industry, etc.). User graph subscriptions are created automatically during provisioning. Subscribes the caller by default; org owners and admins may subscribe another member of their organization by passing `user_id`. Billing is charged to the organization either way — repository access is per-user, so the subscriber determines who receives access.
|
|
1009
1009
|
*/
|
|
1010
|
-
export const createRepositorySubscription = <ThrowOnError extends boolean = false>(options: Options<CreateRepositorySubscriptionData, ThrowOnError>) => (options.client ?? client).post<CreateRepositorySubscriptionResponses, CreateRepositorySubscriptionErrors, ThrowOnError>({
|
|
1010
|
+
export const createRepositorySubscription = <ThrowOnError extends boolean = false>(options: Options<CreateRepositorySubscriptionData, ThrowOnError>): RequestResult<CreateRepositorySubscriptionResponses, CreateRepositorySubscriptionErrors, ThrowOnError> => (options.client ?? client).post<CreateRepositorySubscriptionResponses, CreateRepositorySubscriptionErrors, ThrowOnError>({
|
|
1011
1011
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1012
1012
|
url: '/v1/graphs/{graph_id}/subscriptions',
|
|
1013
1013
|
...options,
|
|
@@ -1022,7 +1022,7 @@ export const createRepositorySubscription = <ThrowOnError extends boolean = fals
|
|
|
1022
1022
|
*
|
|
1023
1023
|
* Cancel a shared repository subscription. Two modes via the `immediate` flag: omit it (default `false`) to cancel at period end (access stays until the period closes); pass `true` with `confirm=<repo_id>` to stop access right away. Members cancel their own subscription; org owners and admins can cancel any member's by passing `user_id`. For user graphs, use `POST /v1/graphs/{graph_id}/operations/delete-graph` — this endpoint rejects user graphs.
|
|
1024
1024
|
*/
|
|
1025
|
-
export const cancelRepositorySubscription = <ThrowOnError extends boolean = false>(options: Options<CancelRepositorySubscriptionData, ThrowOnError>) => (options.client ?? client).post<CancelRepositorySubscriptionResponses, CancelRepositorySubscriptionErrors, ThrowOnError>({
|
|
1025
|
+
export const cancelRepositorySubscription = <ThrowOnError extends boolean = false>(options: Options<CancelRepositorySubscriptionData, ThrowOnError>): RequestResult<CancelRepositorySubscriptionResponses, CancelRepositorySubscriptionErrors, ThrowOnError> => (options.client ?? client).post<CancelRepositorySubscriptionResponses, CancelRepositorySubscriptionErrors, ThrowOnError>({
|
|
1026
1026
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1027
1027
|
url: '/v1/graphs/{graph_id}/subscriptions/cancel',
|
|
1028
1028
|
...options,
|
|
@@ -1037,7 +1037,7 @@ export const cancelRepositorySubscription = <ThrowOnError extends boolean = fals
|
|
|
1037
1037
|
*
|
|
1038
1038
|
* Returns file count, storage size, row count, and S3 location per table. Tables with `file_count=0` are skipped during ingestion.
|
|
1039
1039
|
*/
|
|
1040
|
-
export const listTables = <ThrowOnError extends boolean = false>(options: Options<ListTablesData, ThrowOnError>) => (options.client ?? client).get<ListTablesResponses, ListTablesErrors, ThrowOnError>({
|
|
1040
|
+
export const listTables = <ThrowOnError extends boolean = false>(options: Options<ListTablesData, ThrowOnError>): RequestResult<ListTablesResponses, ListTablesErrors, ThrowOnError> => (options.client ?? client).get<ListTablesResponses, ListTablesErrors, ThrowOnError>({
|
|
1041
1041
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1042
1042
|
url: '/v1/graphs/{graph_id}/tables',
|
|
1043
1043
|
...options
|
|
@@ -1048,7 +1048,7 @@ export const listTables = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1048
1048
|
*
|
|
1049
1049
|
* Shared repositories require a subscription; subscription plan determines search rate limits.
|
|
1050
1050
|
*/
|
|
1051
|
-
export const searchDocuments = <ThrowOnError extends boolean = false>(options: Options<SearchDocumentsData, ThrowOnError>) => (options.client ?? client).post<SearchDocumentsResponses, SearchDocumentsErrors, ThrowOnError>({
|
|
1051
|
+
export const searchDocuments = <ThrowOnError extends boolean = false>(options: Options<SearchDocumentsData, ThrowOnError>): RequestResult<SearchDocumentsResponses, SearchDocumentsErrors, ThrowOnError> => (options.client ?? client).post<SearchDocumentsResponses, SearchDocumentsErrors, ThrowOnError>({
|
|
1052
1052
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1053
1053
|
url: '/v1/graphs/{graph_id}/search',
|
|
1054
1054
|
...options,
|
|
@@ -1061,7 +1061,7 @@ export const searchDocuments = <ThrowOnError extends boolean = false>(options: O
|
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Get Document Section
|
|
1063
1063
|
*/
|
|
1064
|
-
export const getDocumentSection = <ThrowOnError extends boolean = false>(options: Options<GetDocumentSectionData, ThrowOnError>) => (options.client ?? client).get<GetDocumentSectionResponses, GetDocumentSectionErrors, ThrowOnError>({
|
|
1064
|
+
export const getDocumentSection = <ThrowOnError extends boolean = false>(options: Options<GetDocumentSectionData, ThrowOnError>): RequestResult<GetDocumentSectionResponses, GetDocumentSectionErrors, ThrowOnError> => (options.client ?? client).get<GetDocumentSectionResponses, GetDocumentSectionErrors, ThrowOnError>({
|
|
1065
1065
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1066
1066
|
url: '/v1/graphs/{graph_id}/search/{document_id}',
|
|
1067
1067
|
...options
|
|
@@ -1070,7 +1070,7 @@ export const getDocumentSection = <ThrowOnError extends boolean = false>(options
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* List Documents
|
|
1072
1072
|
*/
|
|
1073
|
-
export const listDocuments = <ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>) => (options.client ?? client).get<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError>({
|
|
1073
|
+
export const listDocuments = <ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>): RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError> => (options.client ?? client).get<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError>({
|
|
1074
1074
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1075
1075
|
url: '/v1/graphs/{graph_id}/documents',
|
|
1076
1076
|
...options
|
|
@@ -1079,7 +1079,7 @@ export const listDocuments = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Get Document
|
|
1081
1081
|
*/
|
|
1082
|
-
export const getDocument = <ThrowOnError extends boolean = false>(options: Options<GetDocumentData, ThrowOnError>) => (options.client ?? client).get<GetDocumentResponses, GetDocumentErrors, ThrowOnError>({
|
|
1082
|
+
export const getDocument = <ThrowOnError extends boolean = false>(options: Options<GetDocumentData, ThrowOnError>): RequestResult<GetDocumentResponses, GetDocumentErrors, ThrowOnError> => (options.client ?? client).get<GetDocumentResponses, GetDocumentErrors, ThrowOnError>({
|
|
1083
1083
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1084
1084
|
url: '/v1/graphs/{graph_id}/documents/{document_id}',
|
|
1085
1085
|
...options
|
|
@@ -1088,7 +1088,7 @@ export const getDocument = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* List Memories
|
|
1090
1090
|
*/
|
|
1091
|
-
export const listMemories = <ThrowOnError extends boolean = false>(options: Options<ListMemoriesData, ThrowOnError>) => (options.client ?? client).get<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError>({
|
|
1091
|
+
export const listMemories = <ThrowOnError extends boolean = false>(options: Options<ListMemoriesData, ThrowOnError>): RequestResult<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError> => (options.client ?? client).get<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError>({
|
|
1092
1092
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1093
1093
|
url: '/v1/graphs/{graph_id}/memory',
|
|
1094
1094
|
...options
|
|
@@ -1097,7 +1097,7 @@ export const listMemories = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Get Memory
|
|
1099
1099
|
*/
|
|
1100
|
-
export const getMemory = <ThrowOnError extends boolean = false>(options: Options<GetMemoryData, ThrowOnError>) => (options.client ?? client).get<GetMemoryResponses, GetMemoryErrors, ThrowOnError>({
|
|
1100
|
+
export const getMemory = <ThrowOnError extends boolean = false>(options: Options<GetMemoryData, ThrowOnError>): RequestResult<GetMemoryResponses, GetMemoryErrors, ThrowOnError> => (options.client ?? client).get<GetMemoryResponses, GetMemoryErrors, ThrowOnError>({
|
|
1101
1101
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1102
1102
|
url: '/v1/graphs/{graph_id}/memory/{memory_id}',
|
|
1103
1103
|
...options
|
|
@@ -1108,7 +1108,7 @@ export const getMemory = <ThrowOnError extends boolean = false>(options: Options
|
|
|
1108
1108
|
*
|
|
1109
1109
|
* Ranked semantic recall over the graph's per-graph memory store. Returns scored hits in the same shape as document search.
|
|
1110
1110
|
*/
|
|
1111
|
-
export const recallMemory = <ThrowOnError extends boolean = false>(options: Options<RecallMemoryData, ThrowOnError>) => (options.client ?? client).post<RecallMemoryResponses, RecallMemoryErrors, ThrowOnError>({
|
|
1111
|
+
export const recallMemory = <ThrowOnError extends boolean = false>(options: Options<RecallMemoryData, ThrowOnError>): RequestResult<RecallMemoryResponses, RecallMemoryErrors, ThrowOnError> => (options.client ?? client).post<RecallMemoryResponses, RecallMemoryErrors, ThrowOnError>({
|
|
1112
1112
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1113
1113
|
url: '/v1/graphs/{graph_id}/memory/recall',
|
|
1114
1114
|
...options,
|
|
@@ -1125,7 +1125,7 @@ export const recallMemory = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1125
1125
|
*
|
|
1126
1126
|
* **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.
|
|
1127
1127
|
*/
|
|
1128
|
-
export const createSubgraph = <ThrowOnError extends boolean = false>(options: Options<CreateSubgraphData, ThrowOnError>) => (options.client ?? client).post<CreateSubgraphResponses, CreateSubgraphErrors, ThrowOnError>({
|
|
1128
|
+
export const createSubgraph = <ThrowOnError extends boolean = false>(options: Options<CreateSubgraphData, ThrowOnError>): RequestResult<CreateSubgraphResponses, CreateSubgraphErrors, ThrowOnError> => (options.client ?? client).post<CreateSubgraphResponses, CreateSubgraphErrors, ThrowOnError>({
|
|
1129
1129
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1130
1130
|
url: '/v1/graphs/{graph_id}/operations/create-subgraph',
|
|
1131
1131
|
...options,
|
|
@@ -1142,7 +1142,7 @@ export const createSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1142
1142
|
*
|
|
1143
1143
|
* **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.
|
|
1144
1144
|
*/
|
|
1145
|
-
export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Options<DeleteSubgraphData, ThrowOnError>) => (options.client ?? client).post<DeleteSubgraphResponses, DeleteSubgraphErrors, ThrowOnError>({
|
|
1145
|
+
export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Options<DeleteSubgraphData, ThrowOnError>): RequestResult<DeleteSubgraphResponses, DeleteSubgraphErrors, ThrowOnError> => (options.client ?? client).post<DeleteSubgraphResponses, DeleteSubgraphErrors, ThrowOnError>({
|
|
1146
1146
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1147
1147
|
url: '/v1/graphs/{graph_id}/operations/delete-subgraph',
|
|
1148
1148
|
...options,
|
|
@@ -1159,7 +1159,7 @@ export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1159
1159
|
*
|
|
1160
1160
|
* **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.
|
|
1161
1161
|
*/
|
|
1162
|
-
export const deleteGraph = <ThrowOnError extends boolean = false>(options: Options<DeleteGraphData, ThrowOnError>) => (options.client ?? client).post<DeleteGraphResponses, DeleteGraphErrors, ThrowOnError>({
|
|
1162
|
+
export const deleteGraph = <ThrowOnError extends boolean = false>(options: Options<DeleteGraphData, ThrowOnError>): RequestResult<DeleteGraphResponses, DeleteGraphErrors, ThrowOnError> => (options.client ?? client).post<DeleteGraphResponses, DeleteGraphErrors, ThrowOnError>({
|
|
1163
1163
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1164
1164
|
url: '/v1/graphs/{graph_id}/operations/delete-graph',
|
|
1165
1165
|
...options,
|
|
@@ -1176,7 +1176,7 @@ export const deleteGraph = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1176
1176
|
*
|
|
1177
1177
|
* **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.
|
|
1178
1178
|
*/
|
|
1179
|
-
export const createBackup = <ThrowOnError extends boolean = false>(options: Options<CreateBackupData, ThrowOnError>) => (options.client ?? client).post<CreateBackupResponses, CreateBackupErrors, ThrowOnError>({
|
|
1179
|
+
export const createBackup = <ThrowOnError extends boolean = false>(options: Options<CreateBackupData, ThrowOnError>): RequestResult<CreateBackupResponses, CreateBackupErrors, ThrowOnError> => (options.client ?? client).post<CreateBackupResponses, CreateBackupErrors, ThrowOnError>({
|
|
1180
1180
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1181
1181
|
url: '/v1/graphs/{graph_id}/operations/create-backup',
|
|
1182
1182
|
...options,
|
|
@@ -1193,7 +1193,7 @@ export const createBackup = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1193
1193
|
*
|
|
1194
1194
|
* **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.
|
|
1195
1195
|
*/
|
|
1196
|
-
export const changeTier = <ThrowOnError extends boolean = false>(options: Options<ChangeTierData, ThrowOnError>) => (options.client ?? client).post<ChangeTierResponses, ChangeTierErrors, ThrowOnError>({
|
|
1196
|
+
export const changeTier = <ThrowOnError extends boolean = false>(options: Options<ChangeTierData, ThrowOnError>): RequestResult<ChangeTierResponses, ChangeTierErrors, ThrowOnError> => (options.client ?? client).post<ChangeTierResponses, ChangeTierErrors, ThrowOnError>({
|
|
1197
1197
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1198
1198
|
url: '/v1/graphs/{graph_id}/operations/change-tier',
|
|
1199
1199
|
...options,
|
|
@@ -1210,7 +1210,7 @@ export const changeTier = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1210
1210
|
*
|
|
1211
1211
|
* **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.
|
|
1212
1212
|
*/
|
|
1213
|
-
export const updateGraphMetadata = <ThrowOnError extends boolean = false>(options: Options<UpdateGraphMetadataData, ThrowOnError>) => (options.client ?? client).post<UpdateGraphMetadataResponses, UpdateGraphMetadataErrors, ThrowOnError>({
|
|
1213
|
+
export const updateGraphMetadata = <ThrowOnError extends boolean = false>(options: Options<UpdateGraphMetadataData, ThrowOnError>): RequestResult<UpdateGraphMetadataResponses, UpdateGraphMetadataErrors, ThrowOnError> => (options.client ?? client).post<UpdateGraphMetadataResponses, UpdateGraphMetadataErrors, ThrowOnError>({
|
|
1214
1214
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1215
1215
|
url: '/v1/graphs/{graph_id}/operations/update-graph-metadata',
|
|
1216
1216
|
...options,
|
|
@@ -1227,7 +1227,7 @@ export const updateGraphMetadata = <ThrowOnError extends boolean = false>(option
|
|
|
1227
1227
|
*
|
|
1228
1228
|
* **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.
|
|
1229
1229
|
*/
|
|
1230
|
-
export const materialize = <ThrowOnError extends boolean = false>(options: Options<MaterializeData, ThrowOnError>) => (options.client ?? client).post<MaterializeResponses, MaterializeErrors, ThrowOnError>({
|
|
1230
|
+
export const materialize = <ThrowOnError extends boolean = false>(options: Options<MaterializeData, ThrowOnError>): RequestResult<MaterializeResponses, MaterializeErrors, ThrowOnError> => (options.client ?? client).post<MaterializeResponses, MaterializeErrors, ThrowOnError>({
|
|
1231
1231
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1232
1232
|
url: '/v1/graphs/{graph_id}/operations/materialize',
|
|
1233
1233
|
...options,
|
|
@@ -1244,7 +1244,7 @@ export const materialize = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1244
1244
|
*
|
|
1245
1245
|
* **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.
|
|
1246
1246
|
*/
|
|
1247
|
-
export const remember = <ThrowOnError extends boolean = false>(options: Options<RememberData, ThrowOnError>) => (options.client ?? client).post<RememberResponses, RememberErrors, ThrowOnError>({
|
|
1247
|
+
export const remember = <ThrowOnError extends boolean = false>(options: Options<RememberData, ThrowOnError>): RequestResult<RememberResponses, RememberErrors, ThrowOnError> => (options.client ?? client).post<RememberResponses, RememberErrors, ThrowOnError>({
|
|
1248
1248
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1249
1249
|
url: '/v1/graphs/{graph_id}/operations/remember',
|
|
1250
1250
|
...options,
|
|
@@ -1261,7 +1261,7 @@ export const remember = <ThrowOnError extends boolean = false>(options: Options<
|
|
|
1261
1261
|
*
|
|
1262
1262
|
* **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.
|
|
1263
1263
|
*/
|
|
1264
|
-
export const forget = <ThrowOnError extends boolean = false>(options: Options<ForgetData, ThrowOnError>) => (options.client ?? client).post<ForgetResponses, ForgetErrors, ThrowOnError>({
|
|
1264
|
+
export const forget = <ThrowOnError extends boolean = false>(options: Options<ForgetData, ThrowOnError>): RequestResult<ForgetResponses, ForgetErrors, ThrowOnError> => (options.client ?? client).post<ForgetResponses, ForgetErrors, ThrowOnError>({
|
|
1265
1265
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1266
1266
|
url: '/v1/graphs/{graph_id}/operations/forget',
|
|
1267
1267
|
...options,
|
|
@@ -1278,7 +1278,7 @@ export const forget = <ThrowOnError extends boolean = false>(options: Options<Fo
|
|
|
1278
1278
|
*
|
|
1279
1279
|
* **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.
|
|
1280
1280
|
*/
|
|
1281
|
-
export const updateMemory = <ThrowOnError extends boolean = false>(options: Options<UpdateMemoryData, ThrowOnError>) => (options.client ?? client).post<UpdateMemoryResponses, UpdateMemoryErrors, ThrowOnError>({
|
|
1281
|
+
export const updateMemory = <ThrowOnError extends boolean = false>(options: Options<UpdateMemoryData, ThrowOnError>): RequestResult<UpdateMemoryResponses, UpdateMemoryErrors, ThrowOnError> => (options.client ?? client).post<UpdateMemoryResponses, UpdateMemoryErrors, ThrowOnError>({
|
|
1282
1282
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1283
1283
|
url: '/v1/graphs/{graph_id}/operations/update-memory',
|
|
1284
1284
|
...options,
|
|
@@ -1295,7 +1295,7 @@ export const updateMemory = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1295
1295
|
*
|
|
1296
1296
|
* **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.
|
|
1297
1297
|
*/
|
|
1298
|
-
export const indexDocument = <ThrowOnError extends boolean = false>(options: Options<IndexDocumentData, ThrowOnError>) => (options.client ?? client).post<IndexDocumentResponses, IndexDocumentErrors, ThrowOnError>({
|
|
1298
|
+
export const indexDocument = <ThrowOnError extends boolean = false>(options: Options<IndexDocumentData, ThrowOnError>): RequestResult<IndexDocumentResponses, IndexDocumentErrors, ThrowOnError> => (options.client ?? client).post<IndexDocumentResponses, IndexDocumentErrors, ThrowOnError>({
|
|
1299
1299
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1300
1300
|
url: '/v1/graphs/{graph_id}/operations/index-document',
|
|
1301
1301
|
...options,
|
|
@@ -1312,7 +1312,7 @@ export const indexDocument = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1312
1312
|
*
|
|
1313
1313
|
* **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.
|
|
1314
1314
|
*/
|
|
1315
|
-
export const deleteDocument = <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => (options.client ?? client).post<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError>({
|
|
1315
|
+
export const deleteDocument = <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>): RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError> => (options.client ?? client).post<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError>({
|
|
1316
1316
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1317
1317
|
url: '/v1/graphs/{graph_id}/operations/delete-document',
|
|
1318
1318
|
...options,
|
|
@@ -1329,7 +1329,7 @@ export const deleteDocument = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1329
1329
|
*
|
|
1330
1330
|
* **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.
|
|
1331
1331
|
*/
|
|
1332
|
-
export const createFileUpload = <ThrowOnError extends boolean = false>(options: Options<CreateFileUploadData, ThrowOnError>) => (options.client ?? client).post<CreateFileUploadResponses, CreateFileUploadErrors, ThrowOnError>({
|
|
1332
|
+
export const createFileUpload = <ThrowOnError extends boolean = false>(options: Options<CreateFileUploadData, ThrowOnError>): RequestResult<CreateFileUploadResponses, CreateFileUploadErrors, ThrowOnError> => (options.client ?? client).post<CreateFileUploadResponses, CreateFileUploadErrors, ThrowOnError>({
|
|
1333
1333
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1334
1334
|
url: '/v1/graphs/{graph_id}/operations/create-file-upload',
|
|
1335
1335
|
...options,
|
|
@@ -1346,7 +1346,7 @@ export const createFileUpload = <ThrowOnError extends boolean = false>(options:
|
|
|
1346
1346
|
*
|
|
1347
1347
|
* **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.
|
|
1348
1348
|
*/
|
|
1349
|
-
export const ingestFile = <ThrowOnError extends boolean = false>(options: Options<IngestFileData, ThrowOnError>) => (options.client ?? client).post<IngestFileResponses, IngestFileErrors, ThrowOnError>({
|
|
1349
|
+
export const ingestFile = <ThrowOnError extends boolean = false>(options: Options<IngestFileData, ThrowOnError>): RequestResult<IngestFileResponses, IngestFileErrors, ThrowOnError> => (options.client ?? client).post<IngestFileResponses, IngestFileErrors, ThrowOnError>({
|
|
1350
1350
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1351
1351
|
url: '/v1/graphs/{graph_id}/operations/ingest-file',
|
|
1352
1352
|
...options,
|
|
@@ -1363,7 +1363,7 @@ export const ingestFile = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1363
1363
|
*
|
|
1364
1364
|
* **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.
|
|
1365
1365
|
*/
|
|
1366
|
-
export const deleteFile = <ThrowOnError extends boolean = false>(options: Options<DeleteFileData, ThrowOnError>) => (options.client ?? client).post<DeleteFileResponses, DeleteFileErrors, ThrowOnError>({
|
|
1366
|
+
export const deleteFile = <ThrowOnError extends boolean = false>(options: Options<DeleteFileData, ThrowOnError>): RequestResult<DeleteFileResponses, DeleteFileErrors, ThrowOnError> => (options.client ?? client).post<DeleteFileResponses, DeleteFileErrors, ThrowOnError>({
|
|
1367
1367
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1368
1368
|
url: '/v1/graphs/{graph_id}/operations/delete-file',
|
|
1369
1369
|
...options,
|
|
@@ -1378,7 +1378,7 @@ export const deleteFile = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1378
1378
|
*
|
|
1379
1379
|
* Filter by `table_name` or upload `status`. Files are graph-scoped resources with S3 → DuckDB → Graph lifecycle tracking.
|
|
1380
1380
|
*/
|
|
1381
|
-
export const listFiles = <ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>) => (options.client ?? client).get<ListFilesResponses, ListFilesErrors, ThrowOnError>({
|
|
1381
|
+
export const listFiles = <ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>): RequestResult<ListFilesResponses, ListFilesErrors, ThrowOnError> => (options.client ?? client).get<ListFilesResponses, ListFilesErrors, ThrowOnError>({
|
|
1382
1382
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1383
1383
|
url: '/v1/graphs/{graph_id}/files',
|
|
1384
1384
|
...options
|
|
@@ -1389,7 +1389,7 @@ export const listFiles = <ThrowOnError extends boolean = false>(options: Options
|
|
|
1389
1389
|
*
|
|
1390
1390
|
* Returns per-layer status (`layers.s3`, `layers.duckdb`, `layers.graph`) for pipeline debugging.
|
|
1391
1391
|
*/
|
|
1392
|
-
export const getFile = <ThrowOnError extends boolean = false>(options: Options<GetFileData, ThrowOnError>) => (options.client ?? client).get<GetFileResponses, GetFileErrors, ThrowOnError>({
|
|
1392
|
+
export const getFile = <ThrowOnError extends boolean = false>(options: Options<GetFileData, ThrowOnError>): RequestResult<GetFileResponses, GetFileErrors, ThrowOnError> => (options.client ?? client).get<GetFileResponses, GetFileErrors, ThrowOnError>({
|
|
1393
1393
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1394
1394
|
url: '/v1/graphs/{graph_id}/files/{file_id}',
|
|
1395
1395
|
...options
|
|
@@ -1398,7 +1398,7 @@ export const getFile = <ThrowOnError extends boolean = false>(options: Options<G
|
|
|
1398
1398
|
/**
|
|
1399
1399
|
* List User Graphs and Repositories
|
|
1400
1400
|
*/
|
|
1401
|
-
export const getGraphs = <ThrowOnError extends boolean = false>(options?: Options<GetGraphsData, ThrowOnError>) => (options?.client ?? client).get<GetGraphsResponses, GetGraphsErrors, ThrowOnError>({
|
|
1401
|
+
export const getGraphs = <ThrowOnError extends boolean = false>(options?: Options<GetGraphsData, ThrowOnError>): RequestResult<GetGraphsResponses, GetGraphsErrors, ThrowOnError> => (options?.client ?? client).get<GetGraphsResponses, GetGraphsErrors, ThrowOnError>({
|
|
1402
1402
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1403
1403
|
url: '/v1/graphs',
|
|
1404
1404
|
...options
|
|
@@ -1409,7 +1409,7 @@ export const getGraphs = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
1409
1409
|
*
|
|
1410
1410
|
* Creates a graph asynchronously. Returns an `OperationEnvelope` with `operation_id` for SSE progress at `/v1/operations/{operation_id}/stream`. Entity graphs require `initial_entity`. Supports `Idempotency-Key` header.
|
|
1411
1411
|
*/
|
|
1412
|
-
export const createGraph = <ThrowOnError extends boolean = false>(options: Options<CreateGraphData, ThrowOnError>) => (options.client ?? client).post<CreateGraphResponses, CreateGraphErrors, ThrowOnError>({
|
|
1412
|
+
export const createGraph = <ThrowOnError extends boolean = false>(options: Options<CreateGraphData, ThrowOnError>): RequestResult<CreateGraphResponses, CreateGraphErrors, ThrowOnError> => (options.client ?? client).post<CreateGraphResponses, CreateGraphErrors, ThrowOnError>({
|
|
1413
1413
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1414
1414
|
url: '/v1/graphs',
|
|
1415
1415
|
...options,
|
|
@@ -1422,7 +1422,7 @@ export const createGraph = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Get Available Schema Extensions
|
|
1424
1424
|
*/
|
|
1425
|
-
export const getAvailableExtensions = <ThrowOnError extends boolean = false>(options?: Options<GetAvailableExtensionsData, ThrowOnError>) => (options?.client ?? client).get<GetAvailableExtensionsResponses, GetAvailableExtensionsErrors, ThrowOnError>({
|
|
1425
|
+
export const getAvailableExtensions = <ThrowOnError extends boolean = false>(options?: Options<GetAvailableExtensionsData, ThrowOnError>): RequestResult<GetAvailableExtensionsResponses, GetAvailableExtensionsErrors, ThrowOnError> => (options?.client ?? client).get<GetAvailableExtensionsResponses, GetAvailableExtensionsErrors, ThrowOnError>({
|
|
1426
1426
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1427
1427
|
url: '/v1/graphs/extensions',
|
|
1428
1428
|
...options
|
|
@@ -1431,7 +1431,7 @@ export const getAvailableExtensions = <ThrowOnError extends boolean = false>(opt
|
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Get Available Graph Tiers
|
|
1433
1433
|
*/
|
|
1434
|
-
export const getAvailableGraphTiers = <ThrowOnError extends boolean = false>(options?: Options<GetAvailableGraphTiersData, ThrowOnError>) => (options?.client ?? client).get<GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, ThrowOnError>({
|
|
1434
|
+
export const getAvailableGraphTiers = <ThrowOnError extends boolean = false>(options?: Options<GetAvailableGraphTiersData, ThrowOnError>): RequestResult<GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, ThrowOnError> => (options?.client ?? client).get<GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, ThrowOnError>({
|
|
1435
1435
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1436
1436
|
url: '/v1/graphs/tiers',
|
|
1437
1437
|
...options
|
|
@@ -1442,7 +1442,7 @@ export const getAvailableGraphTiers = <ThrowOnError extends boolean = false>(opt
|
|
|
1442
1442
|
*
|
|
1443
1443
|
* Status per tier: `ready` (slot available) or `at_capacity` (contact support).
|
|
1444
1444
|
*/
|
|
1445
|
-
export const getGraphCapacity = <ThrowOnError extends boolean = false>(options?: Options<GetGraphCapacityData, ThrowOnError>) => (options?.client ?? client).get<GetGraphCapacityResponses, GetGraphCapacityErrors, ThrowOnError>({
|
|
1445
|
+
export const getGraphCapacity = <ThrowOnError extends boolean = false>(options?: Options<GetGraphCapacityData, ThrowOnError>): RequestResult<GetGraphCapacityResponses, GetGraphCapacityErrors, ThrowOnError> => (options?.client ?? client).get<GetGraphCapacityResponses, GetGraphCapacityErrors, ThrowOnError>({
|
|
1446
1446
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1447
1447
|
url: '/v1/graphs/capacity',
|
|
1448
1448
|
...options
|
|
@@ -1451,7 +1451,7 @@ export const getGraphCapacity = <ThrowOnError extends boolean = false>(options?:
|
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Select Graph
|
|
1453
1453
|
*/
|
|
1454
|
-
export const selectGraph = <ThrowOnError extends boolean = false>(options: Options<SelectGraphData, ThrowOnError>) => (options.client ?? client).post<SelectGraphResponses, SelectGraphErrors, ThrowOnError>({
|
|
1454
|
+
export const selectGraph = <ThrowOnError extends boolean = false>(options: Options<SelectGraphData, ThrowOnError>): RequestResult<SelectGraphResponses, SelectGraphErrors, ThrowOnError> => (options.client ?? client).post<SelectGraphResponses, SelectGraphErrors, ThrowOnError>({
|
|
1455
1455
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1456
1456
|
url: '/v1/graphs/{graph_id}/select',
|
|
1457
1457
|
...options
|
|
@@ -1462,7 +1462,7 @@ export const selectGraph = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1462
1462
|
*
|
|
1463
1463
|
* Validates a custom schema definition before deployment — checks structure, types, constraints, and relationship references. Returns errors and warnings without applying changes. Supports JSON, YAML, and dict formats.
|
|
1464
1464
|
*/
|
|
1465
|
-
export const validateSchema = <ThrowOnError extends boolean = false>(options: Options<ValidateSchemaData, ThrowOnError>) => (options.client ?? client).post<ValidateSchemaResponses, ValidateSchemaErrors, ThrowOnError>({
|
|
1465
|
+
export const validateSchema = <ThrowOnError extends boolean = false>(options: Options<ValidateSchemaData, ThrowOnError>): RequestResult<ValidateSchemaResponses, ValidateSchemaErrors, ThrowOnError> => (options.client ?? client).post<ValidateSchemaResponses, ValidateSchemaErrors, ThrowOnError>({
|
|
1466
1466
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1467
1467
|
url: '/v1/graphs/schema/validate',
|
|
1468
1468
|
...options,
|
|
@@ -1477,14 +1477,14 @@ export const validateSchema = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1477
1477
|
*
|
|
1478
1478
|
* Returns all subscription tiers, shared repository plans, and AI credit costs. No authentication required.
|
|
1479
1479
|
*/
|
|
1480
|
-
export const getServiceOfferings = <ThrowOnError extends boolean = false>(options?: Options<GetServiceOfferingsData, ThrowOnError>) => (options?.client ?? client).get<GetServiceOfferingsResponses, GetServiceOfferingsErrors, ThrowOnError>({ url: '/v1/offering', ...options });
|
|
1480
|
+
export const getServiceOfferings = <ThrowOnError extends boolean = false>(options?: Options<GetServiceOfferingsData, ThrowOnError>): RequestResult<GetServiceOfferingsResponses, GetServiceOfferingsErrors, ThrowOnError> => (options?.client ?? client).get<GetServiceOfferingsResponses, GetServiceOfferingsErrors, ThrowOnError>({ url: '/v1/offering', ...options });
|
|
1481
1481
|
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Stream Operation Events
|
|
1484
1484
|
*
|
|
1485
1485
|
* Server-Sent Events stream for real-time operation progress. Use `from_sequence` to replay missed events on reconnect. Max 5 concurrent SSE connections per user. Consumes no credits.
|
|
1486
1486
|
*/
|
|
1487
|
-
export const streamOperationEvents = <ThrowOnError extends boolean = false>(options: Options<StreamOperationEventsData, ThrowOnError>) => (options.client ?? client).get<StreamOperationEventsResponses, StreamOperationEventsErrors, ThrowOnError>({
|
|
1487
|
+
export const streamOperationEvents = <ThrowOnError extends boolean = false>(options: Options<StreamOperationEventsData, ThrowOnError>): RequestResult<StreamOperationEventsResponses, StreamOperationEventsErrors, ThrowOnError> => (options.client ?? client).get<StreamOperationEventsResponses, StreamOperationEventsErrors, ThrowOnError>({
|
|
1488
1488
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1489
1489
|
url: '/v1/operations/{operation_id}/stream',
|
|
1490
1490
|
...options
|
|
@@ -1495,7 +1495,7 @@ export const streamOperationEvents = <ThrowOnError extends boolean = false>(opti
|
|
|
1495
1495
|
*
|
|
1496
1496
|
* Point-in-time status check. Use `/stream` for real-time updates. Consumes no credits.
|
|
1497
1497
|
*/
|
|
1498
|
-
export const getOperationStatus = <ThrowOnError extends boolean = false>(options: Options<GetOperationStatusData, ThrowOnError>) => (options.client ?? client).get<GetOperationStatusResponses, GetOperationStatusErrors, ThrowOnError>({
|
|
1498
|
+
export const getOperationStatus = <ThrowOnError extends boolean = false>(options: Options<GetOperationStatusData, ThrowOnError>): RequestResult<GetOperationStatusResponses, GetOperationStatusErrors, ThrowOnError> => (options.client ?? client).get<GetOperationStatusResponses, GetOperationStatusErrors, ThrowOnError>({
|
|
1499
1499
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1500
1500
|
url: '/v1/operations/{operation_id}/status',
|
|
1501
1501
|
...options
|
|
@@ -1506,7 +1506,7 @@ export const getOperationStatus = <ThrowOnError extends boolean = false>(options
|
|
|
1506
1506
|
*
|
|
1507
1507
|
* Cancels a pending or running operation. Emits a cancellation event to any active SSE connections. Cannot cancel completed or failed operations.
|
|
1508
1508
|
*/
|
|
1509
|
-
export const cancelOperation = <ThrowOnError extends boolean = false>(options: Options<CancelOperationData, ThrowOnError>) => (options.client ?? client).delete<CancelOperationResponses, CancelOperationErrors, ThrowOnError>({
|
|
1509
|
+
export const cancelOperation = <ThrowOnError extends boolean = false>(options: Options<CancelOperationData, ThrowOnError>): RequestResult<CancelOperationResponses, CancelOperationErrors, ThrowOnError> => (options.client ?? client).delete<CancelOperationResponses, CancelOperationErrors, ThrowOnError>({
|
|
1510
1510
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1511
1511
|
url: '/v1/operations/{operation_id}',
|
|
1512
1512
|
...options
|
|
@@ -1517,7 +1517,7 @@ export const cancelOperation = <ThrowOnError extends boolean = false>(options: O
|
|
|
1517
1517
|
*
|
|
1518
1518
|
* Answers an operation that paused at a checkpoint (status `awaiting_input`) and puts it back on the worker queue with the answer. The operation keeps its id, so the stream, status and cancel links stay valid; reconnect to `/stream` to follow the resumed run. Consumes no credits.
|
|
1519
1519
|
*/
|
|
1520
|
-
export const resumeOperation = <ThrowOnError extends boolean = false>(options: Options<ResumeOperationData, ThrowOnError>) => (options.client ?? client).post<ResumeOperationResponses, ResumeOperationErrors, ThrowOnError>({
|
|
1520
|
+
export const resumeOperation = <ThrowOnError extends boolean = false>(options: Options<ResumeOperationData, ThrowOnError>): RequestResult<ResumeOperationResponses, ResumeOperationErrors, ThrowOnError> => (options.client ?? client).post<ResumeOperationResponses, ResumeOperationErrors, ThrowOnError>({
|
|
1521
1521
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1522
1522
|
url: '/v1/operations/{operation_id}/resume',
|
|
1523
1523
|
...options,
|
|
@@ -1532,7 +1532,7 @@ export const resumeOperation = <ThrowOnError extends boolean = false>(options: O
|
|
|
1532
1532
|
*
|
|
1533
1533
|
* Payment method details are only visible to org owners.
|
|
1534
1534
|
*/
|
|
1535
|
-
export const getOrgBillingCustomer = <ThrowOnError extends boolean = false>(options: Options<GetOrgBillingCustomerData, ThrowOnError>) => (options.client ?? client).get<GetOrgBillingCustomerResponses, GetOrgBillingCustomerErrors, ThrowOnError>({
|
|
1535
|
+
export const getOrgBillingCustomer = <ThrowOnError extends boolean = false>(options: Options<GetOrgBillingCustomerData, ThrowOnError>): RequestResult<GetOrgBillingCustomerResponses, GetOrgBillingCustomerErrors, ThrowOnError> => (options.client ?? client).get<GetOrgBillingCustomerResponses, GetOrgBillingCustomerErrors, ThrowOnError>({
|
|
1536
1536
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1537
1537
|
url: '/v1/billing/customer/{org_id}',
|
|
1538
1538
|
...options
|
|
@@ -1543,7 +1543,7 @@ export const getOrgBillingCustomer = <ThrowOnError extends boolean = false>(opti
|
|
|
1543
1543
|
*
|
|
1544
1544
|
* Returns a Stripe Customer Portal URL for managing payment methods and billing history. Requires org owner role.
|
|
1545
1545
|
*/
|
|
1546
|
-
export const createPortalSession = <ThrowOnError extends boolean = false>(options: Options<CreatePortalSessionData, ThrowOnError>) => (options.client ?? client).post<CreatePortalSessionResponses, CreatePortalSessionErrors, ThrowOnError>({
|
|
1546
|
+
export const createPortalSession = <ThrowOnError extends boolean = false>(options: Options<CreatePortalSessionData, ThrowOnError>): RequestResult<CreatePortalSessionResponses, CreatePortalSessionErrors, ThrowOnError> => (options.client ?? client).post<CreatePortalSessionResponses, CreatePortalSessionErrors, ThrowOnError>({
|
|
1547
1547
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1548
1548
|
url: '/v1/billing/customer/{org_id}/portal',
|
|
1549
1549
|
...options
|
|
@@ -1552,7 +1552,7 @@ export const createPortalSession = <ThrowOnError extends boolean = false>(option
|
|
|
1552
1552
|
/**
|
|
1553
1553
|
* List Organization Subscriptions
|
|
1554
1554
|
*/
|
|
1555
|
-
export const listOrgSubscriptions = <ThrowOnError extends boolean = false>(options: Options<ListOrgSubscriptionsData, ThrowOnError>) => (options.client ?? client).get<ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, ThrowOnError>({
|
|
1555
|
+
export const listOrgSubscriptions = <ThrowOnError extends boolean = false>(options: Options<ListOrgSubscriptionsData, ThrowOnError>): RequestResult<ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, ThrowOnError> => (options.client ?? client).get<ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, ThrowOnError>({
|
|
1556
1556
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1557
1557
|
url: '/v1/billing/subscriptions/{org_id}',
|
|
1558
1558
|
...options
|
|
@@ -1561,7 +1561,7 @@ export const listOrgSubscriptions = <ThrowOnError extends boolean = false>(optio
|
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Get Organization Subscription Details
|
|
1563
1563
|
*/
|
|
1564
|
-
export const getOrgSubscription = <ThrowOnError extends boolean = false>(options: Options<GetOrgSubscriptionData, ThrowOnError>) => (options.client ?? client).get<GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, ThrowOnError>({
|
|
1564
|
+
export const getOrgSubscription = <ThrowOnError extends boolean = false>(options: Options<GetOrgSubscriptionData, ThrowOnError>): RequestResult<GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, ThrowOnError> => (options.client ?? client).get<GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, ThrowOnError>({
|
|
1565
1565
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1566
1566
|
url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}',
|
|
1567
1567
|
...options
|
|
@@ -1572,7 +1572,7 @@ export const getOrgSubscription = <ThrowOnError extends boolean = false>(options
|
|
|
1572
1572
|
*
|
|
1573
1573
|
* Cancels a subscription. Default behavior cancels at period end (subscription stays active through the current cycle). Pass `immediate=true` with `confirm=<resource_id>` to terminate now and trigger fast-path deprovisioning of the underlying resource. Requires org owner role.
|
|
1574
1574
|
*/
|
|
1575
|
-
export const cancelOrgSubscription = <ThrowOnError extends boolean = false>(options: Options<CancelOrgSubscriptionData, ThrowOnError>) => (options.client ?? client).post<CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ThrowOnError>({
|
|
1575
|
+
export const cancelOrgSubscription = <ThrowOnError extends boolean = false>(options: Options<CancelOrgSubscriptionData, ThrowOnError>): RequestResult<CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ThrowOnError> => (options.client ?? client).post<CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ThrowOnError>({
|
|
1576
1576
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1577
1577
|
url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel',
|
|
1578
1578
|
...options,
|
|
@@ -1587,7 +1587,7 @@ export const cancelOrgSubscription = <ThrowOnError extends boolean = false>(opti
|
|
|
1587
1587
|
*
|
|
1588
1588
|
* Requires admin or owner role.
|
|
1589
1589
|
*/
|
|
1590
|
-
export const listOrgInvoices = <ThrowOnError extends boolean = false>(options: Options<ListOrgInvoicesData, ThrowOnError>) => (options.client ?? client).get<ListOrgInvoicesResponses, ListOrgInvoicesErrors, ThrowOnError>({
|
|
1590
|
+
export const listOrgInvoices = <ThrowOnError extends boolean = false>(options: Options<ListOrgInvoicesData, ThrowOnError>): RequestResult<ListOrgInvoicesResponses, ListOrgInvoicesErrors, ThrowOnError> => (options.client ?? client).get<ListOrgInvoicesResponses, ListOrgInvoicesErrors, ThrowOnError>({
|
|
1591
1591
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1592
1592
|
url: '/v1/billing/invoices/{org_id}',
|
|
1593
1593
|
...options
|
|
@@ -1598,7 +1598,7 @@ export const listOrgInvoices = <ThrowOnError extends boolean = false>(options: O
|
|
|
1598
1598
|
*
|
|
1599
1599
|
* Requires admin or owner role. Returns null if no billing activity yet.
|
|
1600
1600
|
*/
|
|
1601
|
-
export const getOrgUpcomingInvoice = <ThrowOnError extends boolean = false>(options: Options<GetOrgUpcomingInvoiceData, ThrowOnError>) => (options.client ?? client).get<GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, ThrowOnError>({
|
|
1601
|
+
export const getOrgUpcomingInvoice = <ThrowOnError extends boolean = false>(options: Options<GetOrgUpcomingInvoiceData, ThrowOnError>): RequestResult<GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, ThrowOnError> => (options.client ?? client).get<GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, ThrowOnError>({
|
|
1602
1602
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1603
1603
|
url: '/v1/billing/invoices/{org_id}/upcoming',
|
|
1604
1604
|
...options
|
|
@@ -1609,7 +1609,7 @@ export const getOrgUpcomingInvoice = <ThrowOnError extends boolean = false>(opti
|
|
|
1609
1609
|
*
|
|
1610
1610
|
* Initiates a Stripe checkout session for payment collection. Creates a pending subscription; the webhook activates it and provisions the resource after payment completes. Returns billing_disabled=true with no URL when billing is off. Requires org owner role.
|
|
1611
1611
|
*/
|
|
1612
|
-
export const createCheckoutSession = <ThrowOnError extends boolean = false>(options: Options<CreateCheckoutSessionData, ThrowOnError>) => (options.client ?? client).post<CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, ThrowOnError>({
|
|
1612
|
+
export const createCheckoutSession = <ThrowOnError extends boolean = false>(options: Options<CreateCheckoutSessionData, ThrowOnError>): RequestResult<CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, ThrowOnError> => (options.client ?? client).post<CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, ThrowOnError>({
|
|
1613
1613
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1614
1614
|
url: '/v1/billing/checkout',
|
|
1615
1615
|
...options,
|
|
@@ -1624,7 +1624,7 @@ export const createCheckoutSession = <ThrowOnError extends boolean = false>(opti
|
|
|
1624
1624
|
*
|
|
1625
1625
|
* Poll after returning from Stripe Checkout. Status progresses: pending_payment → provisioning → active. When active, resource_id is populated. `operation_id` is always null for webhook-driven provisioning and cannot be used to follow progress — poll this endpoint instead.
|
|
1626
1626
|
*/
|
|
1627
|
-
export const getCheckoutStatus = <ThrowOnError extends boolean = false>(options: Options<GetCheckoutStatusData, ThrowOnError>) => (options.client ?? client).get<GetCheckoutStatusResponses, GetCheckoutStatusErrors, ThrowOnError>({
|
|
1627
|
+
export const getCheckoutStatus = <ThrowOnError extends boolean = false>(options: Options<GetCheckoutStatusData, ThrowOnError>): RequestResult<GetCheckoutStatusResponses, GetCheckoutStatusErrors, ThrowOnError> => (options.client ?? client).get<GetCheckoutStatusResponses, GetCheckoutStatusErrors, ThrowOnError>({
|
|
1628
1628
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1629
1629
|
url: '/v1/billing/checkout/{session_id}/status',
|
|
1630
1630
|
...options
|
|
@@ -1639,7 +1639,7 @@ export const getCheckoutStatus = <ThrowOnError extends boolean = false>(options:
|
|
|
1639
1639
|
*
|
|
1640
1640
|
* **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.
|
|
1641
1641
|
*/
|
|
1642
|
-
export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends boolean = false>(options: Options<HandleHttpGetExtensionsGraphIdGraphqlGetData, ThrowOnError>) => (options.client ?? client).get<HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, ThrowOnError>({
|
|
1642
|
+
export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends boolean = false>(options: Options<HandleHttpGetExtensionsGraphIdGraphqlGetData, ThrowOnError>): RequestResult<HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, ThrowOnError> => (options.client ?? client).get<HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, ThrowOnError>({
|
|
1643
1643
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1644
1644
|
url: '/extensions/{graph_id}/graphql',
|
|
1645
1645
|
...options
|
|
@@ -1654,7 +1654,7 @@ export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends bo
|
|
|
1654
1654
|
*
|
|
1655
1655
|
* **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.
|
|
1656
1656
|
*/
|
|
1657
|
-
export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends boolean = false>(options: Options<HandleHttpPostExtensionsGraphIdGraphqlPostData, ThrowOnError>) => (options.client ?? client).post<HandleHttpPostExtensionsGraphIdGraphqlPostResponses, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, ThrowOnError>({
|
|
1657
|
+
export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends boolean = false>(options: Options<HandleHttpPostExtensionsGraphIdGraphqlPostData, ThrowOnError>): RequestResult<HandleHttpPostExtensionsGraphIdGraphqlPostResponses, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, ThrowOnError> => (options.client ?? client).post<HandleHttpPostExtensionsGraphIdGraphqlPostResponses, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, ThrowOnError>({
|
|
1658
1658
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1659
1659
|
url: '/extensions/{graph_id}/graphql',
|
|
1660
1660
|
...options
|
|
@@ -1667,7 +1667,7 @@ export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends
|
|
|
1667
1667
|
*
|
|
1668
1668
|
* **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.
|
|
1669
1669
|
*/
|
|
1670
|
-
export const initializeLedger = <ThrowOnError extends boolean = false>(options: Options<InitializeLedgerData, ThrowOnError>) => (options.client ?? client).post<InitializeLedgerResponses, InitializeLedgerErrors, ThrowOnError>({
|
|
1670
|
+
export const initializeLedger = <ThrowOnError extends boolean = false>(options: Options<InitializeLedgerData, ThrowOnError>): RequestResult<InitializeLedgerResponses, InitializeLedgerErrors, ThrowOnError> => (options.client ?? client).post<InitializeLedgerResponses, InitializeLedgerErrors, ThrowOnError>({
|
|
1671
1671
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1672
1672
|
url: '/extensions/roboledger/{graph_id}/operations/initialize',
|
|
1673
1673
|
...options,
|
|
@@ -1684,7 +1684,7 @@ export const initializeLedger = <ThrowOnError extends boolean = false>(options:
|
|
|
1684
1684
|
*
|
|
1685
1685
|
* **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.
|
|
1686
1686
|
*/
|
|
1687
|
-
export const updateEntity = <ThrowOnError extends boolean = false>(options: Options<UpdateEntityData, ThrowOnError>) => (options.client ?? client).post<UpdateEntityResponses, UpdateEntityErrors, ThrowOnError>({
|
|
1687
|
+
export const updateEntity = <ThrowOnError extends boolean = false>(options: Options<UpdateEntityData, ThrowOnError>): RequestResult<UpdateEntityResponses, UpdateEntityErrors, ThrowOnError> => (options.client ?? client).post<UpdateEntityResponses, UpdateEntityErrors, ThrowOnError>({
|
|
1688
1688
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1689
1689
|
url: '/extensions/roboledger/{graph_id}/operations/update-entity',
|
|
1690
1690
|
...options,
|
|
@@ -1701,7 +1701,7 @@ export const updateEntity = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1701
1701
|
*
|
|
1702
1702
|
* **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.
|
|
1703
1703
|
*/
|
|
1704
|
-
export const changeReportingStyle = <ThrowOnError extends boolean = false>(options: Options<ChangeReportingStyleData, ThrowOnError>) => (options.client ?? client).post<ChangeReportingStyleResponses, ChangeReportingStyleErrors, ThrowOnError>({
|
|
1704
|
+
export const changeReportingStyle = <ThrowOnError extends boolean = false>(options: Options<ChangeReportingStyleData, ThrowOnError>): RequestResult<ChangeReportingStyleResponses, ChangeReportingStyleErrors, ThrowOnError> => (options.client ?? client).post<ChangeReportingStyleResponses, ChangeReportingStyleErrors, ThrowOnError>({
|
|
1705
1705
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1706
1706
|
url: '/extensions/roboledger/{graph_id}/operations/change-reporting-style',
|
|
1707
1707
|
...options,
|
|
@@ -1718,7 +1718,7 @@ export const changeReportingStyle = <ThrowOnError extends boolean = false>(optio
|
|
|
1718
1718
|
*
|
|
1719
1719
|
* **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.
|
|
1720
1720
|
*/
|
|
1721
|
-
export const createTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<CreateTaxonomyBlockData, ThrowOnError>) => (options.client ?? client).post<CreateTaxonomyBlockResponses, CreateTaxonomyBlockErrors, ThrowOnError>({
|
|
1721
|
+
export const createTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<CreateTaxonomyBlockData, ThrowOnError>): RequestResult<CreateTaxonomyBlockResponses, CreateTaxonomyBlockErrors, ThrowOnError> => (options.client ?? client).post<CreateTaxonomyBlockResponses, CreateTaxonomyBlockErrors, ThrowOnError>({
|
|
1722
1722
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1723
1723
|
url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy-block',
|
|
1724
1724
|
...options,
|
|
@@ -1735,7 +1735,7 @@ export const createTaxonomyBlock = <ThrowOnError extends boolean = false>(option
|
|
|
1735
1735
|
*
|
|
1736
1736
|
* **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.
|
|
1737
1737
|
*/
|
|
1738
|
-
export const updateTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateTaxonomyBlockData, ThrowOnError>) => (options.client ?? client).post<UpdateTaxonomyBlockResponses, UpdateTaxonomyBlockErrors, ThrowOnError>({
|
|
1738
|
+
export const updateTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateTaxonomyBlockData, ThrowOnError>): RequestResult<UpdateTaxonomyBlockResponses, UpdateTaxonomyBlockErrors, ThrowOnError> => (options.client ?? client).post<UpdateTaxonomyBlockResponses, UpdateTaxonomyBlockErrors, ThrowOnError>({
|
|
1739
1739
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1740
1740
|
url: '/extensions/roboledger/{graph_id}/operations/update-taxonomy-block',
|
|
1741
1741
|
...options,
|
|
@@ -1752,7 +1752,7 @@ export const updateTaxonomyBlock = <ThrowOnError extends boolean = false>(option
|
|
|
1752
1752
|
*
|
|
1753
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.
|
|
1754
1754
|
*/
|
|
1755
|
-
export const deleteTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<DeleteTaxonomyBlockData, ThrowOnError>) => (options.client ?? client).post<DeleteTaxonomyBlockResponses, DeleteTaxonomyBlockErrors, ThrowOnError>({
|
|
1755
|
+
export const deleteTaxonomyBlock = <ThrowOnError extends boolean = false>(options: Options<DeleteTaxonomyBlockData, ThrowOnError>): RequestResult<DeleteTaxonomyBlockResponses, DeleteTaxonomyBlockErrors, ThrowOnError> => (options.client ?? client).post<DeleteTaxonomyBlockResponses, DeleteTaxonomyBlockErrors, ThrowOnError>({
|
|
1756
1756
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1757
1757
|
url: '/extensions/roboledger/{graph_id}/operations/delete-taxonomy-block',
|
|
1758
1758
|
...options,
|
|
@@ -1769,7 +1769,7 @@ export const deleteTaxonomyBlock = <ThrowOnError extends boolean = false>(option
|
|
|
1769
1769
|
*
|
|
1770
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
1771
|
*/
|
|
1772
|
-
export const linkEntityTaxonomy = <ThrowOnError extends boolean = false>(options: Options<LinkEntityTaxonomyData, ThrowOnError>) => (options.client ?? client).post<LinkEntityTaxonomyResponses, LinkEntityTaxonomyErrors, ThrowOnError>({
|
|
1772
|
+
export const linkEntityTaxonomy = <ThrowOnError extends boolean = false>(options: Options<LinkEntityTaxonomyData, ThrowOnError>): RequestResult<LinkEntityTaxonomyResponses, LinkEntityTaxonomyErrors, ThrowOnError> => (options.client ?? client).post<LinkEntityTaxonomyResponses, LinkEntityTaxonomyErrors, ThrowOnError>({
|
|
1773
1773
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1774
1774
|
url: '/extensions/roboledger/{graph_id}/operations/link-entity-taxonomy',
|
|
1775
1775
|
...options,
|
|
@@ -1786,7 +1786,7 @@ export const linkEntityTaxonomy = <ThrowOnError extends boolean = false>(options
|
|
|
1786
1786
|
*
|
|
1787
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
1788
|
*/
|
|
1789
|
-
export const createMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<CreateMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<CreateMappingAssociationResponses, CreateMappingAssociationErrors, ThrowOnError>({
|
|
1789
|
+
export const createMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<CreateMappingAssociationData, ThrowOnError>): RequestResult<CreateMappingAssociationResponses, CreateMappingAssociationErrors, ThrowOnError> => (options.client ?? client).post<CreateMappingAssociationResponses, CreateMappingAssociationErrors, ThrowOnError>({
|
|
1790
1790
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1791
1791
|
url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
|
|
1792
1792
|
...options,
|
|
@@ -1803,7 +1803,7 @@ export const createMappingAssociation = <ThrowOnError extends boolean = false>(o
|
|
|
1803
1803
|
*
|
|
1804
1804
|
* **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.
|
|
1805
1805
|
*/
|
|
1806
|
-
export const deleteMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<DeleteMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<DeleteMappingAssociationResponses, DeleteMappingAssociationErrors, ThrowOnError>({
|
|
1806
|
+
export const deleteMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<DeleteMappingAssociationData, ThrowOnError>): RequestResult<DeleteMappingAssociationResponses, DeleteMappingAssociationErrors, ThrowOnError> => (options.client ?? client).post<DeleteMappingAssociationResponses, DeleteMappingAssociationErrors, ThrowOnError>({
|
|
1807
1807
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1808
1808
|
url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association',
|
|
1809
1809
|
...options,
|
|
@@ -1820,7 +1820,7 @@ export const deleteMappingAssociation = <ThrowOnError extends boolean = false>(o
|
|
|
1820
1820
|
*
|
|
1821
1821
|
* **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.
|
|
1822
1822
|
*/
|
|
1823
|
-
export const autoMapElements = <ThrowOnError extends boolean = false>(options: Options<AutoMapElementsData, ThrowOnError>) => (options.client ?? client).post<AutoMapElementsResponses, AutoMapElementsErrors, ThrowOnError>({
|
|
1823
|
+
export const autoMapElements = <ThrowOnError extends boolean = false>(options: Options<AutoMapElementsData, ThrowOnError>): RequestResult<AutoMapElementsResponses, AutoMapElementsErrors, ThrowOnError> => (options.client ?? client).post<AutoMapElementsResponses, AutoMapElementsErrors, ThrowOnError>({
|
|
1824
1824
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1825
1825
|
url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements',
|
|
1826
1826
|
...options,
|
|
@@ -1837,7 +1837,7 @@ export const autoMapElements = <ThrowOnError extends boolean = false>(options: O
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* **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.
|
|
1839
1839
|
*/
|
|
1840
|
-
export const createInformationBlock = <ThrowOnError extends boolean = false>(options: Options<CreateInformationBlockData, ThrowOnError>) => (options.client ?? client).post<CreateInformationBlockResponses, CreateInformationBlockErrors, ThrowOnError>({
|
|
1840
|
+
export const createInformationBlock = <ThrowOnError extends boolean = false>(options: Options<CreateInformationBlockData, ThrowOnError>): RequestResult<CreateInformationBlockResponses, CreateInformationBlockErrors, ThrowOnError> => (options.client ?? client).post<CreateInformationBlockResponses, CreateInformationBlockErrors, ThrowOnError>({
|
|
1841
1841
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1842
1842
|
url: '/extensions/roboledger/{graph_id}/operations/create-information-block',
|
|
1843
1843
|
...options,
|
|
@@ -1854,7 +1854,7 @@ export const createInformationBlock = <ThrowOnError extends boolean = false>(opt
|
|
|
1854
1854
|
*
|
|
1855
1855
|
* **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.
|
|
1856
1856
|
*/
|
|
1857
|
-
export const updateInformationBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateInformationBlockData, ThrowOnError>) => (options.client ?? client).post<UpdateInformationBlockResponses, UpdateInformationBlockErrors, ThrowOnError>({
|
|
1857
|
+
export const updateInformationBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateInformationBlockData, ThrowOnError>): RequestResult<UpdateInformationBlockResponses, UpdateInformationBlockErrors, ThrowOnError> => (options.client ?? client).post<UpdateInformationBlockResponses, UpdateInformationBlockErrors, ThrowOnError>({
|
|
1858
1858
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1859
1859
|
url: '/extensions/roboledger/{graph_id}/operations/update-information-block',
|
|
1860
1860
|
...options,
|
|
@@ -1871,7 +1871,7 @@ export const updateInformationBlock = <ThrowOnError extends boolean = false>(opt
|
|
|
1871
1871
|
*
|
|
1872
1872
|
* **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.
|
|
1873
1873
|
*/
|
|
1874
|
-
export const deleteInformationBlock = <ThrowOnError extends boolean = false>(options: Options<DeleteInformationBlockData, ThrowOnError>) => (options.client ?? client).post<DeleteInformationBlockResponses, DeleteInformationBlockErrors, ThrowOnError>({
|
|
1874
|
+
export const deleteInformationBlock = <ThrowOnError extends boolean = false>(options: Options<DeleteInformationBlockData, ThrowOnError>): RequestResult<DeleteInformationBlockResponses, DeleteInformationBlockErrors, ThrowOnError> => (options.client ?? client).post<DeleteInformationBlockResponses, DeleteInformationBlockErrors, ThrowOnError>({
|
|
1875
1875
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1876
1876
|
url: '/extensions/roboledger/{graph_id}/operations/delete-information-block',
|
|
1877
1877
|
...options,
|
|
@@ -1888,7 +1888,7 @@ export const deleteInformationBlock = <ThrowOnError extends boolean = false>(opt
|
|
|
1888
1888
|
*
|
|
1889
1889
|
* **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.
|
|
1890
1890
|
*/
|
|
1891
|
-
export const evaluateRules = <ThrowOnError extends boolean = false>(options: Options<EvaluateRulesData, ThrowOnError>) => (options.client ?? client).post<EvaluateRulesResponses, EvaluateRulesErrors, ThrowOnError>({
|
|
1891
|
+
export const evaluateRules = <ThrowOnError extends boolean = false>(options: Options<EvaluateRulesData, ThrowOnError>): RequestResult<EvaluateRulesResponses, EvaluateRulesErrors, ThrowOnError> => (options.client ?? client).post<EvaluateRulesResponses, EvaluateRulesErrors, ThrowOnError>({
|
|
1892
1892
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1893
1893
|
url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules',
|
|
1894
1894
|
...options,
|
|
@@ -1905,7 +1905,7 @@ export const evaluateRules = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1905
1905
|
*
|
|
1906
1906
|
* **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.
|
|
1907
1907
|
*/
|
|
1908
|
-
export const computeMetrics = <ThrowOnError extends boolean = false>(options: Options<ComputeMetricsData, ThrowOnError>) => (options.client ?? client).post<ComputeMetricsResponses, ComputeMetricsErrors, ThrowOnError>({
|
|
1908
|
+
export const computeMetrics = <ThrowOnError extends boolean = false>(options: Options<ComputeMetricsData, ThrowOnError>): RequestResult<ComputeMetricsResponses, ComputeMetricsErrors, ThrowOnError> => (options.client ?? client).post<ComputeMetricsResponses, ComputeMetricsErrors, ThrowOnError>({
|
|
1909
1909
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1910
1910
|
url: '/extensions/roboledger/{graph_id}/operations/compute-metrics',
|
|
1911
1911
|
...options,
|
|
@@ -1922,7 +1922,7 @@ export const computeMetrics = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1922
1922
|
*
|
|
1923
1923
|
* **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.
|
|
1924
1924
|
*/
|
|
1925
|
-
export const assertMetrics = <ThrowOnError extends boolean = false>(options: Options<AssertMetricsData, ThrowOnError>) => (options.client ?? client).post<AssertMetricsResponses, AssertMetricsErrors, ThrowOnError>({
|
|
1925
|
+
export const assertMetrics = <ThrowOnError extends boolean = false>(options: Options<AssertMetricsData, ThrowOnError>): RequestResult<AssertMetricsResponses, AssertMetricsErrors, ThrowOnError> => (options.client ?? client).post<AssertMetricsResponses, AssertMetricsErrors, ThrowOnError>({
|
|
1926
1926
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1927
1927
|
url: '/extensions/roboledger/{graph_id}/operations/assert-metrics',
|
|
1928
1928
|
...options,
|
|
@@ -1939,7 +1939,7 @@ export const assertMetrics = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1939
1939
|
*
|
|
1940
1940
|
* **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.
|
|
1941
1941
|
*/
|
|
1942
|
-
export const computeForecast = <ThrowOnError extends boolean = false>(options: Options<ComputeForecastData, ThrowOnError>) => (options.client ?? client).post<ComputeForecastResponses, ComputeForecastErrors, ThrowOnError>({
|
|
1942
|
+
export const computeForecast = <ThrowOnError extends boolean = false>(options: Options<ComputeForecastData, ThrowOnError>): RequestResult<ComputeForecastResponses, ComputeForecastErrors, ThrowOnError> => (options.client ?? client).post<ComputeForecastResponses, ComputeForecastErrors, ThrowOnError>({
|
|
1943
1943
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1944
1944
|
url: '/extensions/roboledger/{graph_id}/operations/compute-forecast',
|
|
1945
1945
|
...options,
|
|
@@ -1956,7 +1956,7 @@ export const computeForecast = <ThrowOnError extends boolean = false>(options: O
|
|
|
1956
1956
|
*
|
|
1957
1957
|
* **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.
|
|
1958
1958
|
*/
|
|
1959
|
-
export const bindTextBlock = <ThrowOnError extends boolean = false>(options: Options<BindTextBlockData, ThrowOnError>) => (options.client ?? client).post<BindTextBlockResponses, BindTextBlockErrors, ThrowOnError>({
|
|
1959
|
+
export const bindTextBlock = <ThrowOnError extends boolean = false>(options: Options<BindTextBlockData, ThrowOnError>): RequestResult<BindTextBlockResponses, BindTextBlockErrors, ThrowOnError> => (options.client ?? client).post<BindTextBlockResponses, BindTextBlockErrors, ThrowOnError>({
|
|
1960
1960
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1961
1961
|
url: '/extensions/roboledger/{graph_id}/operations/bind-text-block',
|
|
1962
1962
|
...options,
|
|
@@ -1973,7 +1973,7 @@ export const bindTextBlock = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1973
1973
|
*
|
|
1974
1974
|
* **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.
|
|
1975
1975
|
*/
|
|
1976
|
-
export const createAgent = <ThrowOnError extends boolean = false>(options: Options<CreateAgentData, ThrowOnError>) => (options.client ?? client).post<CreateAgentResponses, CreateAgentErrors, ThrowOnError>({
|
|
1976
|
+
export const createAgent = <ThrowOnError extends boolean = false>(options: Options<CreateAgentData, ThrowOnError>): RequestResult<CreateAgentResponses, CreateAgentErrors, ThrowOnError> => (options.client ?? client).post<CreateAgentResponses, CreateAgentErrors, ThrowOnError>({
|
|
1977
1977
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1978
1978
|
url: '/extensions/roboledger/{graph_id}/operations/create-agent',
|
|
1979
1979
|
...options,
|
|
@@ -1990,7 +1990,7 @@ export const createAgent = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1990
1990
|
*
|
|
1991
1991
|
* **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.
|
|
1992
1992
|
*/
|
|
1993
|
-
export const updateAgent = <ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>) => (options.client ?? client).post<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>({
|
|
1993
|
+
export const updateAgent = <ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>): RequestResult<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError> => (options.client ?? client).post<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>({
|
|
1994
1994
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1995
1995
|
url: '/extensions/roboledger/{graph_id}/operations/update-agent',
|
|
1996
1996
|
...options,
|
|
@@ -2007,7 +2007,7 @@ export const updateAgent = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2007
2007
|
*
|
|
2008
2008
|
* **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.
|
|
2009
2009
|
*/
|
|
2010
|
-
export const createEventBlock = <ThrowOnError extends boolean = false>(options: Options<CreateEventBlockData, ThrowOnError>) => (options.client ?? client).post<CreateEventBlockResponses, CreateEventBlockErrors, ThrowOnError>({
|
|
2010
|
+
export const createEventBlock = <ThrowOnError extends boolean = false>(options: Options<CreateEventBlockData, ThrowOnError>): RequestResult<CreateEventBlockResponses, CreateEventBlockErrors, ThrowOnError> => (options.client ?? client).post<CreateEventBlockResponses, CreateEventBlockErrors, ThrowOnError>({
|
|
2011
2011
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2012
2012
|
url: '/extensions/roboledger/{graph_id}/operations/create-event-block',
|
|
2013
2013
|
...options,
|
|
@@ -2024,7 +2024,7 @@ export const createEventBlock = <ThrowOnError extends boolean = false>(options:
|
|
|
2024
2024
|
*
|
|
2025
2025
|
* **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.
|
|
2026
2026
|
*/
|
|
2027
|
-
export const updateEventBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateEventBlockData, ThrowOnError>) => (options.client ?? client).post<UpdateEventBlockResponses, UpdateEventBlockErrors, ThrowOnError>({
|
|
2027
|
+
export const updateEventBlock = <ThrowOnError extends boolean = false>(options: Options<UpdateEventBlockData, ThrowOnError>): RequestResult<UpdateEventBlockResponses, UpdateEventBlockErrors, ThrowOnError> => (options.client ?? client).post<UpdateEventBlockResponses, UpdateEventBlockErrors, ThrowOnError>({
|
|
2028
2028
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2029
2029
|
url: '/extensions/roboledger/{graph_id}/operations/update-event-block',
|
|
2030
2030
|
...options,
|
|
@@ -2041,7 +2041,7 @@ export const updateEventBlock = <ThrowOnError extends boolean = false>(options:
|
|
|
2041
2041
|
*
|
|
2042
2042
|
* **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.
|
|
2043
2043
|
*/
|
|
2044
|
-
export const executeEventBlock = <ThrowOnError extends boolean = false>(options: Options<ExecuteEventBlockData, ThrowOnError>) => (options.client ?? client).post<ExecuteEventBlockResponses, ExecuteEventBlockErrors, ThrowOnError>({
|
|
2044
|
+
export const executeEventBlock = <ThrowOnError extends boolean = false>(options: Options<ExecuteEventBlockData, ThrowOnError>): RequestResult<ExecuteEventBlockResponses, ExecuteEventBlockErrors, ThrowOnError> => (options.client ?? client).post<ExecuteEventBlockResponses, ExecuteEventBlockErrors, ThrowOnError>({
|
|
2045
2045
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2046
2046
|
url: '/extensions/roboledger/{graph_id}/operations/execute-event-block',
|
|
2047
2047
|
...options,
|
|
@@ -2058,7 +2058,7 @@ export const executeEventBlock = <ThrowOnError extends boolean = false>(options:
|
|
|
2058
2058
|
*
|
|
2059
2059
|
* **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.
|
|
2060
2060
|
*/
|
|
2061
|
-
export const createEventHandler = <ThrowOnError extends boolean = false>(options: Options<CreateEventHandlerData, ThrowOnError>) => (options.client ?? client).post<CreateEventHandlerResponses, CreateEventHandlerErrors, ThrowOnError>({
|
|
2061
|
+
export const createEventHandler = <ThrowOnError extends boolean = false>(options: Options<CreateEventHandlerData, ThrowOnError>): RequestResult<CreateEventHandlerResponses, CreateEventHandlerErrors, ThrowOnError> => (options.client ?? client).post<CreateEventHandlerResponses, CreateEventHandlerErrors, ThrowOnError>({
|
|
2062
2062
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2063
2063
|
url: '/extensions/roboledger/{graph_id}/operations/create-event-handler',
|
|
2064
2064
|
...options,
|
|
@@ -2075,7 +2075,7 @@ export const createEventHandler = <ThrowOnError extends boolean = false>(options
|
|
|
2075
2075
|
*
|
|
2076
2076
|
* **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.
|
|
2077
2077
|
*/
|
|
2078
|
-
export const updateEventHandler = <ThrowOnError extends boolean = false>(options: Options<UpdateEventHandlerData, ThrowOnError>) => (options.client ?? client).post<UpdateEventHandlerResponses, UpdateEventHandlerErrors, ThrowOnError>({
|
|
2078
|
+
export const updateEventHandler = <ThrowOnError extends boolean = false>(options: Options<UpdateEventHandlerData, ThrowOnError>): RequestResult<UpdateEventHandlerResponses, UpdateEventHandlerErrors, ThrowOnError> => (options.client ?? client).post<UpdateEventHandlerResponses, UpdateEventHandlerErrors, ThrowOnError>({
|
|
2079
2079
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2080
2080
|
url: '/extensions/roboledger/{graph_id}/operations/update-event-handler',
|
|
2081
2081
|
...options,
|
|
@@ -2092,7 +2092,7 @@ export const updateEventHandler = <ThrowOnError extends boolean = false>(options
|
|
|
2092
2092
|
*
|
|
2093
2093
|
* **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.
|
|
2094
2094
|
*/
|
|
2095
|
-
export const previewEventBlock = <ThrowOnError extends boolean = false>(options: Options<PreviewEventBlockData, ThrowOnError>) => (options.client ?? client).post<PreviewEventBlockResponses, PreviewEventBlockErrors, ThrowOnError>({
|
|
2095
|
+
export const previewEventBlock = <ThrowOnError extends boolean = false>(options: Options<PreviewEventBlockData, ThrowOnError>): RequestResult<PreviewEventBlockResponses, PreviewEventBlockErrors, ThrowOnError> => (options.client ?? client).post<PreviewEventBlockResponses, PreviewEventBlockErrors, ThrowOnError>({
|
|
2096
2096
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2097
2097
|
url: '/extensions/roboledger/{graph_id}/operations/preview-event-block',
|
|
2098
2098
|
...options,
|
|
@@ -2109,7 +2109,7 @@ export const previewEventBlock = <ThrowOnError extends boolean = false>(options:
|
|
|
2109
2109
|
*
|
|
2110
2110
|
* **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.
|
|
2111
2111
|
*/
|
|
2112
|
-
export const previewReconcilingItem = <ThrowOnError extends boolean = false>(options: Options<PreviewReconcilingItemData, ThrowOnError>) => (options.client ?? client).post<PreviewReconcilingItemResponses, PreviewReconcilingItemErrors, ThrowOnError>({
|
|
2112
|
+
export const previewReconcilingItem = <ThrowOnError extends boolean = false>(options: Options<PreviewReconcilingItemData, ThrowOnError>): RequestResult<PreviewReconcilingItemResponses, PreviewReconcilingItemErrors, ThrowOnError> => (options.client ?? client).post<PreviewReconcilingItemResponses, PreviewReconcilingItemErrors, ThrowOnError>({
|
|
2113
2113
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2114
2114
|
url: '/extensions/roboledger/{graph_id}/operations/preview-reconciling-item',
|
|
2115
2115
|
...options,
|
|
@@ -2126,7 +2126,7 @@ export const previewReconcilingItem = <ThrowOnError extends boolean = false>(opt
|
|
|
2126
2126
|
*
|
|
2127
2127
|
* **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.
|
|
2128
2128
|
*/
|
|
2129
|
-
export const resolveReconcilingItem = <ThrowOnError extends boolean = false>(options: Options<ResolveReconcilingItemData, ThrowOnError>) => (options.client ?? client).post<ResolveReconcilingItemResponses, ResolveReconcilingItemErrors, ThrowOnError>({
|
|
2129
|
+
export const resolveReconcilingItem = <ThrowOnError extends boolean = false>(options: Options<ResolveReconcilingItemData, ThrowOnError>): RequestResult<ResolveReconcilingItemResponses, ResolveReconcilingItemErrors, ThrowOnError> => (options.client ?? client).post<ResolveReconcilingItemResponses, ResolveReconcilingItemErrors, ThrowOnError>({
|
|
2130
2130
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2131
2131
|
url: '/extensions/roboledger/{graph_id}/operations/resolve-reconciling-item',
|
|
2132
2132
|
...options,
|
|
@@ -2143,7 +2143,7 @@ export const resolveReconcilingItem = <ThrowOnError extends boolean = false>(opt
|
|
|
2143
2143
|
*
|
|
2144
2144
|
* **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.
|
|
2145
2145
|
*/
|
|
2146
|
-
export const updateJournalEntry = <ThrowOnError extends boolean = false>(options: Options<UpdateJournalEntryData, ThrowOnError>) => (options.client ?? client).post<UpdateJournalEntryResponses, UpdateJournalEntryErrors, ThrowOnError>({
|
|
2146
|
+
export const updateJournalEntry = <ThrowOnError extends boolean = false>(options: Options<UpdateJournalEntryData, ThrowOnError>): RequestResult<UpdateJournalEntryResponses, UpdateJournalEntryErrors, ThrowOnError> => (options.client ?? client).post<UpdateJournalEntryResponses, UpdateJournalEntryErrors, ThrowOnError>({
|
|
2147
2147
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2148
2148
|
url: '/extensions/roboledger/{graph_id}/operations/update-journal-entry',
|
|
2149
2149
|
...options,
|
|
@@ -2160,7 +2160,7 @@ export const updateJournalEntry = <ThrowOnError extends boolean = false>(options
|
|
|
2160
2160
|
*
|
|
2161
2161
|
* **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.
|
|
2162
2162
|
*/
|
|
2163
|
-
export const deleteJournalEntry = <ThrowOnError extends boolean = false>(options: Options<DeleteJournalEntryData, ThrowOnError>) => (options.client ?? client).post<DeleteJournalEntryResponses, DeleteJournalEntryErrors, ThrowOnError>({
|
|
2163
|
+
export const deleteJournalEntry = <ThrowOnError extends boolean = false>(options: Options<DeleteJournalEntryData, ThrowOnError>): RequestResult<DeleteJournalEntryResponses, DeleteJournalEntryErrors, ThrowOnError> => (options.client ?? client).post<DeleteJournalEntryResponses, DeleteJournalEntryErrors, ThrowOnError>({
|
|
2164
2164
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2165
2165
|
url: '/extensions/roboledger/{graph_id}/operations/delete-journal-entry',
|
|
2166
2166
|
...options,
|
|
@@ -2177,7 +2177,7 @@ export const deleteJournalEntry = <ThrowOnError extends boolean = false>(options
|
|
|
2177
2177
|
*
|
|
2178
2178
|
* **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.
|
|
2179
2179
|
*/
|
|
2180
|
-
export const promoteObligations = <ThrowOnError extends boolean = false>(options: Options<PromoteObligationsData, ThrowOnError>) => (options.client ?? client).post<PromoteObligationsResponses, PromoteObligationsErrors, ThrowOnError>({
|
|
2180
|
+
export const promoteObligations = <ThrowOnError extends boolean = false>(options: Options<PromoteObligationsData, ThrowOnError>): RequestResult<PromoteObligationsResponses, PromoteObligationsErrors, ThrowOnError> => (options.client ?? client).post<PromoteObligationsResponses, PromoteObligationsErrors, ThrowOnError>({
|
|
2181
2181
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2182
2182
|
url: '/extensions/roboledger/{graph_id}/operations/promote-obligations',
|
|
2183
2183
|
...options,
|
|
@@ -2194,7 +2194,7 @@ export const promoteObligations = <ThrowOnError extends boolean = false>(options
|
|
|
2194
2194
|
*
|
|
2195
2195
|
* **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.
|
|
2196
2196
|
*/
|
|
2197
|
-
export const rebuildSchedule = <ThrowOnError extends boolean = false>(options: Options<RebuildScheduleData, ThrowOnError>) => (options.client ?? client).post<RebuildScheduleResponses, RebuildScheduleErrors, ThrowOnError>({
|
|
2197
|
+
export const rebuildSchedule = <ThrowOnError extends boolean = false>(options: Options<RebuildScheduleData, ThrowOnError>): RequestResult<RebuildScheduleResponses, RebuildScheduleErrors, ThrowOnError> => (options.client ?? client).post<RebuildScheduleResponses, RebuildScheduleErrors, ThrowOnError>({
|
|
2198
2198
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2199
2199
|
url: '/extensions/roboledger/{graph_id}/operations/rebuild-schedule',
|
|
2200
2200
|
...options,
|
|
@@ -2211,7 +2211,7 @@ export const rebuildSchedule = <ThrowOnError extends boolean = false>(options: O
|
|
|
2211
2211
|
*
|
|
2212
2212
|
* **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.
|
|
2213
2213
|
*/
|
|
2214
|
-
export const terminateSchedule = <ThrowOnError extends boolean = false>(options: Options<TerminateScheduleData, ThrowOnError>) => (options.client ?? client).post<TerminateScheduleResponses, TerminateScheduleErrors, ThrowOnError>({
|
|
2214
|
+
export const terminateSchedule = <ThrowOnError extends boolean = false>(options: Options<TerminateScheduleData, ThrowOnError>): RequestResult<TerminateScheduleResponses, TerminateScheduleErrors, ThrowOnError> => (options.client ?? client).post<TerminateScheduleResponses, TerminateScheduleErrors, ThrowOnError>({
|
|
2215
2215
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2216
2216
|
url: '/extensions/roboledger/{graph_id}/operations/terminate-schedule',
|
|
2217
2217
|
...options,
|
|
@@ -2228,7 +2228,7 @@ export const terminateSchedule = <ThrowOnError extends boolean = false>(options:
|
|
|
2228
2228
|
*
|
|
2229
2229
|
* **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.
|
|
2230
2230
|
*/
|
|
2231
|
-
export const setCloseTarget = <ThrowOnError extends boolean = false>(options: Options<SetCloseTargetData, ThrowOnError>) => (options.client ?? client).post<SetCloseTargetResponses, SetCloseTargetErrors, ThrowOnError>({
|
|
2231
|
+
export const setCloseTarget = <ThrowOnError extends boolean = false>(options: Options<SetCloseTargetData, ThrowOnError>): RequestResult<SetCloseTargetResponses, SetCloseTargetErrors, ThrowOnError> => (options.client ?? client).post<SetCloseTargetResponses, SetCloseTargetErrors, ThrowOnError>({
|
|
2232
2232
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2233
2233
|
url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
|
|
2234
2234
|
...options,
|
|
@@ -2245,7 +2245,7 @@ export const setCloseTarget = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2245
2245
|
*
|
|
2246
2246
|
* **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.
|
|
2247
2247
|
*/
|
|
2248
|
-
export const closePeriod = <ThrowOnError extends boolean = false>(options: Options<ClosePeriodData, ThrowOnError>) => (options.client ?? client).post<ClosePeriodResponses, ClosePeriodErrors, ThrowOnError>({
|
|
2248
|
+
export const closePeriod = <ThrowOnError extends boolean = false>(options: Options<ClosePeriodData, ThrowOnError>): RequestResult<ClosePeriodResponses, ClosePeriodErrors, ThrowOnError> => (options.client ?? client).post<ClosePeriodResponses, ClosePeriodErrors, ThrowOnError>({
|
|
2249
2249
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2250
2250
|
url: '/extensions/roboledger/{graph_id}/operations/close-period',
|
|
2251
2251
|
...options,
|
|
@@ -2262,7 +2262,7 @@ export const closePeriod = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2262
2262
|
*
|
|
2263
2263
|
* **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.
|
|
2264
2264
|
*/
|
|
2265
|
-
export const reopenPeriod = <ThrowOnError extends boolean = false>(options: Options<ReopenPeriodData, ThrowOnError>) => (options.client ?? client).post<ReopenPeriodResponses, ReopenPeriodErrors, ThrowOnError>({
|
|
2265
|
+
export const reopenPeriod = <ThrowOnError extends boolean = false>(options: Options<ReopenPeriodData, ThrowOnError>): RequestResult<ReopenPeriodResponses, ReopenPeriodErrors, ThrowOnError> => (options.client ?? client).post<ReopenPeriodResponses, ReopenPeriodErrors, ThrowOnError>({
|
|
2266
2266
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2267
2267
|
url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
|
|
2268
2268
|
...options,
|
|
@@ -2279,7 +2279,7 @@ export const reopenPeriod = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2279
2279
|
*
|
|
2280
2280
|
* **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.
|
|
2281
2281
|
*/
|
|
2282
|
-
export const backfillPlanHistory = <ThrowOnError extends boolean = false>(options: Options<BackfillPlanHistoryData, ThrowOnError>) => (options.client ?? client).post<BackfillPlanHistoryResponses, BackfillPlanHistoryErrors, ThrowOnError>({
|
|
2282
|
+
export const backfillPlanHistory = <ThrowOnError extends boolean = false>(options: Options<BackfillPlanHistoryData, ThrowOnError>): RequestResult<BackfillPlanHistoryResponses, BackfillPlanHistoryErrors, ThrowOnError> => (options.client ?? client).post<BackfillPlanHistoryResponses, BackfillPlanHistoryErrors, ThrowOnError>({
|
|
2283
2283
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2284
2284
|
url: '/extensions/roboledger/{graph_id}/operations/backfill-plan-history',
|
|
2285
2285
|
...options,
|
|
@@ -2296,7 +2296,7 @@ export const backfillPlanHistory = <ThrowOnError extends boolean = false>(option
|
|
|
2296
2296
|
*
|
|
2297
2297
|
* **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.
|
|
2298
2298
|
*/
|
|
2299
|
-
export const createReport = <ThrowOnError extends boolean = false>(options: Options<CreateReportData, ThrowOnError>) => (options.client ?? client).post<CreateReportResponses, CreateReportErrors, ThrowOnError>({
|
|
2299
|
+
export const createReport = <ThrowOnError extends boolean = false>(options: Options<CreateReportData, ThrowOnError>): RequestResult<CreateReportResponses, CreateReportErrors, ThrowOnError> => (options.client ?? client).post<CreateReportResponses, CreateReportErrors, ThrowOnError>({
|
|
2300
2300
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2301
2301
|
url: '/extensions/roboledger/{graph_id}/operations/create-report',
|
|
2302
2302
|
...options,
|
|
@@ -2313,7 +2313,7 @@ export const createReport = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2313
2313
|
*
|
|
2314
2314
|
* **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.
|
|
2315
2315
|
*/
|
|
2316
|
-
export const regenerateReport = <ThrowOnError extends boolean = false>(options: Options<RegenerateReportData, ThrowOnError>) => (options.client ?? client).post<RegenerateReportResponses, RegenerateReportErrors, ThrowOnError>({
|
|
2316
|
+
export const regenerateReport = <ThrowOnError extends boolean = false>(options: Options<RegenerateReportData, ThrowOnError>): RequestResult<RegenerateReportResponses, RegenerateReportErrors, ThrowOnError> => (options.client ?? client).post<RegenerateReportResponses, RegenerateReportErrors, ThrowOnError>({
|
|
2317
2317
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2318
2318
|
url: '/extensions/roboledger/{graph_id}/operations/regenerate-report',
|
|
2319
2319
|
...options,
|
|
@@ -2330,7 +2330,7 @@ export const regenerateReport = <ThrowOnError extends boolean = false>(options:
|
|
|
2330
2330
|
*
|
|
2331
2331
|
* **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.
|
|
2332
2332
|
*/
|
|
2333
|
-
export const deleteReport = <ThrowOnError extends boolean = false>(options: Options<DeleteReportData, ThrowOnError>) => (options.client ?? client).post<DeleteReportResponses, DeleteReportErrors, ThrowOnError>({
|
|
2333
|
+
export const deleteReport = <ThrowOnError extends boolean = false>(options: Options<DeleteReportData, ThrowOnError>): RequestResult<DeleteReportResponses, DeleteReportErrors, ThrowOnError> => (options.client ?? client).post<DeleteReportResponses, DeleteReportErrors, ThrowOnError>({
|
|
2334
2334
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2335
2335
|
url: '/extensions/roboledger/{graph_id}/operations/delete-report',
|
|
2336
2336
|
...options,
|
|
@@ -2347,7 +2347,7 @@ export const deleteReport = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2347
2347
|
*
|
|
2348
2348
|
* **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.
|
|
2349
2349
|
*/
|
|
2350
|
-
export const shareReport = <ThrowOnError extends boolean = false>(options: Options<ShareReportData, ThrowOnError>) => (options.client ?? client).post<ShareReportResponses, ShareReportErrors, ThrowOnError>({
|
|
2350
|
+
export const shareReport = <ThrowOnError extends boolean = false>(options: Options<ShareReportData, ThrowOnError>): RequestResult<ShareReportResponses, ShareReportErrors, ThrowOnError> => (options.client ?? client).post<ShareReportResponses, ShareReportErrors, ThrowOnError>({
|
|
2351
2351
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2352
2352
|
url: '/extensions/roboledger/{graph_id}/operations/share-report',
|
|
2353
2353
|
...options,
|
|
@@ -2364,7 +2364,7 @@ export const shareReport = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2364
2364
|
*
|
|
2365
2365
|
* **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.
|
|
2366
2366
|
*/
|
|
2367
|
-
export const revokeReportShare = <ThrowOnError extends boolean = false>(options: Options<RevokeReportShareData, ThrowOnError>) => (options.client ?? client).post<RevokeReportShareResponses, RevokeReportShareErrors, ThrowOnError>({
|
|
2367
|
+
export const revokeReportShare = <ThrowOnError extends boolean = false>(options: Options<RevokeReportShareData, ThrowOnError>): RequestResult<RevokeReportShareResponses, RevokeReportShareErrors, ThrowOnError> => (options.client ?? client).post<RevokeReportShareResponses, RevokeReportShareErrors, ThrowOnError>({
|
|
2368
2368
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2369
2369
|
url: '/extensions/roboledger/{graph_id}/operations/revoke-report-share',
|
|
2370
2370
|
...options,
|
|
@@ -2381,7 +2381,7 @@ export const revokeReportShare = <ThrowOnError extends boolean = false>(options:
|
|
|
2381
2381
|
*
|
|
2382
2382
|
* **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.
|
|
2383
2383
|
*/
|
|
2384
|
-
export const fileReport = <ThrowOnError extends boolean = false>(options: Options<FileReportData, ThrowOnError>) => (options.client ?? client).post<FileReportResponses, FileReportErrors, ThrowOnError>({
|
|
2384
|
+
export const fileReport = <ThrowOnError extends boolean = false>(options: Options<FileReportData, ThrowOnError>): RequestResult<FileReportResponses, FileReportErrors, ThrowOnError> => (options.client ?? client).post<FileReportResponses, FileReportErrors, ThrowOnError>({
|
|
2385
2385
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2386
2386
|
url: '/extensions/roboledger/{graph_id}/operations/file-report',
|
|
2387
2387
|
...options,
|
|
@@ -2398,7 +2398,7 @@ export const fileReport = <ThrowOnError extends boolean = false>(options: Option
|
|
|
2398
2398
|
*
|
|
2399
2399
|
* **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.
|
|
2400
2400
|
*/
|
|
2401
|
-
export const transitionFilingStatus = <ThrowOnError extends boolean = false>(options: Options<TransitionFilingStatusData, ThrowOnError>) => (options.client ?? client).post<TransitionFilingStatusResponses, TransitionFilingStatusErrors, ThrowOnError>({
|
|
2401
|
+
export const transitionFilingStatus = <ThrowOnError extends boolean = false>(options: Options<TransitionFilingStatusData, ThrowOnError>): RequestResult<TransitionFilingStatusResponses, TransitionFilingStatusErrors, ThrowOnError> => (options.client ?? client).post<TransitionFilingStatusResponses, TransitionFilingStatusErrors, ThrowOnError>({
|
|
2402
2402
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2403
2403
|
url: '/extensions/roboledger/{graph_id}/operations/transition-filing-status',
|
|
2404
2404
|
...options,
|
|
@@ -2415,7 +2415,7 @@ export const transitionFilingStatus = <ThrowOnError extends boolean = false>(opt
|
|
|
2415
2415
|
*
|
|
2416
2416
|
* **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.
|
|
2417
2417
|
*/
|
|
2418
|
-
export const createPublishList = <ThrowOnError extends boolean = false>(options: Options<CreatePublishListData, ThrowOnError>) => (options.client ?? client).post<CreatePublishListResponses, CreatePublishListErrors, ThrowOnError>({
|
|
2418
|
+
export const createPublishList = <ThrowOnError extends boolean = false>(options: Options<CreatePublishListData, ThrowOnError>): RequestResult<CreatePublishListResponses, CreatePublishListErrors, ThrowOnError> => (options.client ?? client).post<CreatePublishListResponses, CreatePublishListErrors, ThrowOnError>({
|
|
2419
2419
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2420
2420
|
url: '/extensions/roboledger/{graph_id}/operations/create-publish-list',
|
|
2421
2421
|
...options,
|
|
@@ -2432,7 +2432,7 @@ export const createPublishList = <ThrowOnError extends boolean = false>(options:
|
|
|
2432
2432
|
*
|
|
2433
2433
|
* **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.
|
|
2434
2434
|
*/
|
|
2435
|
-
export const updatePublishList = <ThrowOnError extends boolean = false>(options: Options<UpdatePublishListData, ThrowOnError>) => (options.client ?? client).post<UpdatePublishListResponses, UpdatePublishListErrors, ThrowOnError>({
|
|
2435
|
+
export const updatePublishList = <ThrowOnError extends boolean = false>(options: Options<UpdatePublishListData, ThrowOnError>): RequestResult<UpdatePublishListResponses, UpdatePublishListErrors, ThrowOnError> => (options.client ?? client).post<UpdatePublishListResponses, UpdatePublishListErrors, ThrowOnError>({
|
|
2436
2436
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2437
2437
|
url: '/extensions/roboledger/{graph_id}/operations/update-publish-list',
|
|
2438
2438
|
...options,
|
|
@@ -2449,7 +2449,7 @@ export const updatePublishList = <ThrowOnError extends boolean = false>(options:
|
|
|
2449
2449
|
*
|
|
2450
2450
|
* **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.
|
|
2451
2451
|
*/
|
|
2452
|
-
export const deletePublishList = <ThrowOnError extends boolean = false>(options: Options<DeletePublishListData, ThrowOnError>) => (options.client ?? client).post<DeletePublishListResponses, DeletePublishListErrors, ThrowOnError>({
|
|
2452
|
+
export const deletePublishList = <ThrowOnError extends boolean = false>(options: Options<DeletePublishListData, ThrowOnError>): RequestResult<DeletePublishListResponses, DeletePublishListErrors, ThrowOnError> => (options.client ?? client).post<DeletePublishListResponses, DeletePublishListErrors, ThrowOnError>({
|
|
2453
2453
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2454
2454
|
url: '/extensions/roboledger/{graph_id}/operations/delete-publish-list',
|
|
2455
2455
|
...options,
|
|
@@ -2466,7 +2466,7 @@ export const deletePublishList = <ThrowOnError extends boolean = false>(options:
|
|
|
2466
2466
|
*
|
|
2467
2467
|
* **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.
|
|
2468
2468
|
*/
|
|
2469
|
-
export const addPublishListMembers = <ThrowOnError extends boolean = false>(options: Options<AddPublishListMembersData, ThrowOnError>) => (options.client ?? client).post<AddPublishListMembersResponses, AddPublishListMembersErrors, ThrowOnError>({
|
|
2469
|
+
export const addPublishListMembers = <ThrowOnError extends boolean = false>(options: Options<AddPublishListMembersData, ThrowOnError>): RequestResult<AddPublishListMembersResponses, AddPublishListMembersErrors, ThrowOnError> => (options.client ?? client).post<AddPublishListMembersResponses, AddPublishListMembersErrors, ThrowOnError>({
|
|
2470
2470
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2471
2471
|
url: '/extensions/roboledger/{graph_id}/operations/add-publish-list-members',
|
|
2472
2472
|
...options,
|
|
@@ -2483,7 +2483,7 @@ export const addPublishListMembers = <ThrowOnError extends boolean = false>(opti
|
|
|
2483
2483
|
*
|
|
2484
2484
|
* **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.
|
|
2485
2485
|
*/
|
|
2486
|
-
export const removePublishListMember = <ThrowOnError extends boolean = false>(options: Options<RemovePublishListMemberData, ThrowOnError>) => (options.client ?? client).post<RemovePublishListMemberResponses, RemovePublishListMemberErrors, ThrowOnError>({
|
|
2486
|
+
export const removePublishListMember = <ThrowOnError extends boolean = false>(options: Options<RemovePublishListMemberData, ThrowOnError>): RequestResult<RemovePublishListMemberResponses, RemovePublishListMemberErrors, ThrowOnError> => (options.client ?? client).post<RemovePublishListMemberResponses, RemovePublishListMemberErrors, ThrowOnError>({
|
|
2487
2487
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2488
2488
|
url: '/extensions/roboledger/{graph_id}/operations/remove-publish-list-member',
|
|
2489
2489
|
...options,
|
|
@@ -2500,7 +2500,7 @@ export const removePublishListMember = <ThrowOnError extends boolean = false>(op
|
|
|
2500
2500
|
*
|
|
2501
2501
|
* **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.
|
|
2502
2502
|
*/
|
|
2503
|
-
export const blockSourceGraph = <ThrowOnError extends boolean = false>(options: Options<BlockSourceGraphData, ThrowOnError>) => (options.client ?? client).post<BlockSourceGraphResponses, BlockSourceGraphErrors, ThrowOnError>({
|
|
2503
|
+
export const blockSourceGraph = <ThrowOnError extends boolean = false>(options: Options<BlockSourceGraphData, ThrowOnError>): RequestResult<BlockSourceGraphResponses, BlockSourceGraphErrors, ThrowOnError> => (options.client ?? client).post<BlockSourceGraphResponses, BlockSourceGraphErrors, ThrowOnError>({
|
|
2504
2504
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2505
2505
|
url: '/extensions/roboledger/{graph_id}/operations/block-source-graph',
|
|
2506
2506
|
...options,
|
|
@@ -2517,7 +2517,7 @@ export const blockSourceGraph = <ThrowOnError extends boolean = false>(options:
|
|
|
2517
2517
|
*
|
|
2518
2518
|
* **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.
|
|
2519
2519
|
*/
|
|
2520
|
-
export const unblockSourceGraph = <ThrowOnError extends boolean = false>(options: Options<UnblockSourceGraphData, ThrowOnError>) => (options.client ?? client).post<UnblockSourceGraphResponses, UnblockSourceGraphErrors, ThrowOnError>({
|
|
2520
|
+
export const unblockSourceGraph = <ThrowOnError extends boolean = false>(options: Options<UnblockSourceGraphData, ThrowOnError>): RequestResult<UnblockSourceGraphResponses, UnblockSourceGraphErrors, ThrowOnError> => (options.client ?? client).post<UnblockSourceGraphResponses, UnblockSourceGraphErrors, ThrowOnError>({
|
|
2521
2521
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2522
2522
|
url: '/extensions/roboledger/{graph_id}/operations/unblock-source-graph',
|
|
2523
2523
|
...options,
|
|
@@ -2534,7 +2534,7 @@ export const unblockSourceGraph = <ThrowOnError extends boolean = false>(options
|
|
|
2534
2534
|
*
|
|
2535
2535
|
* **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.
|
|
2536
2536
|
*/
|
|
2537
|
-
export const liveFinancialStatement = <ThrowOnError extends boolean = false>(options: Options<LiveFinancialStatementData, ThrowOnError>) => (options.client ?? client).post<LiveFinancialStatementResponses, LiveFinancialStatementErrors, ThrowOnError>({
|
|
2537
|
+
export const liveFinancialStatement = <ThrowOnError extends boolean = false>(options: Options<LiveFinancialStatementData, ThrowOnError>): RequestResult<LiveFinancialStatementResponses, LiveFinancialStatementErrors, ThrowOnError> => (options.client ?? client).post<LiveFinancialStatementResponses, LiveFinancialStatementErrors, ThrowOnError>({
|
|
2538
2538
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2539
2539
|
url: '/extensions/roboledger/{graph_id}/operations/live-financial-statement',
|
|
2540
2540
|
...options,
|
|
@@ -2551,7 +2551,7 @@ export const liveFinancialStatement = <ThrowOnError extends boolean = false>(opt
|
|
|
2551
2551
|
*
|
|
2552
2552
|
* **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.
|
|
2553
2553
|
*/
|
|
2554
|
-
export const buildFactGrid = <ThrowOnError extends boolean = false>(options: Options<BuildFactGridData, ThrowOnError>) => (options.client ?? client).post<BuildFactGridResponses, BuildFactGridErrors, ThrowOnError>({
|
|
2554
|
+
export const buildFactGrid = <ThrowOnError extends boolean = false>(options: Options<BuildFactGridData, ThrowOnError>): RequestResult<BuildFactGridResponses, BuildFactGridErrors, ThrowOnError> => (options.client ?? client).post<BuildFactGridResponses, BuildFactGridErrors, ThrowOnError>({
|
|
2555
2555
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2556
2556
|
url: '/extensions/roboledger/{graph_id}/operations/build-fact-grid',
|
|
2557
2557
|
...options,
|
|
@@ -2568,7 +2568,7 @@ export const buildFactGrid = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2568
2568
|
*
|
|
2569
2569
|
* **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.
|
|
2570
2570
|
*/
|
|
2571
|
-
export const financialStatementAnalysis = <ThrowOnError extends boolean = false>(options: Options<FinancialStatementAnalysisData, ThrowOnError>) => (options.client ?? client).post<FinancialStatementAnalysisResponses, FinancialStatementAnalysisErrors, ThrowOnError>({
|
|
2571
|
+
export const financialStatementAnalysis = <ThrowOnError extends boolean = false>(options: Options<FinancialStatementAnalysisData, ThrowOnError>): RequestResult<FinancialStatementAnalysisResponses, FinancialStatementAnalysisErrors, ThrowOnError> => (options.client ?? client).post<FinancialStatementAnalysisResponses, FinancialStatementAnalysisErrors, ThrowOnError>({
|
|
2572
2572
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2573
2573
|
url: '/extensions/roboledger/{graph_id}/operations/financial-statement-analysis',
|
|
2574
2574
|
...options,
|
|
@@ -2585,7 +2585,7 @@ export const financialStatementAnalysis = <ThrowOnError extends boolean = false>
|
|
|
2585
2585
|
*
|
|
2586
2586
|
* **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.
|
|
2587
2587
|
*/
|
|
2588
|
-
export const createPortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<CreatePortfolioBlockData, ThrowOnError>) => (options.client ?? client).post<CreatePortfolioBlockResponses, CreatePortfolioBlockErrors, ThrowOnError>({
|
|
2588
|
+
export const createPortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<CreatePortfolioBlockData, ThrowOnError>): RequestResult<CreatePortfolioBlockResponses, CreatePortfolioBlockErrors, ThrowOnError> => (options.client ?? client).post<CreatePortfolioBlockResponses, CreatePortfolioBlockErrors, ThrowOnError>({
|
|
2589
2589
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2590
2590
|
url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio-block',
|
|
2591
2591
|
...options,
|
|
@@ -2602,7 +2602,7 @@ export const createPortfolioBlock = <ThrowOnError extends boolean = false>(optio
|
|
|
2602
2602
|
*
|
|
2603
2603
|
* **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.
|
|
2604
2604
|
*/
|
|
2605
|
-
export const updatePortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<UpdatePortfolioBlockData, ThrowOnError>) => (options.client ?? client).post<UpdatePortfolioBlockResponses, UpdatePortfolioBlockErrors, ThrowOnError>({
|
|
2605
|
+
export const updatePortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<UpdatePortfolioBlockData, ThrowOnError>): RequestResult<UpdatePortfolioBlockResponses, UpdatePortfolioBlockErrors, ThrowOnError> => (options.client ?? client).post<UpdatePortfolioBlockResponses, UpdatePortfolioBlockErrors, ThrowOnError>({
|
|
2606
2606
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2607
2607
|
url: '/extensions/roboinvestor/{graph_id}/operations/update-portfolio-block',
|
|
2608
2608
|
...options,
|
|
@@ -2619,7 +2619,7 @@ export const updatePortfolioBlock = <ThrowOnError extends boolean = false>(optio
|
|
|
2619
2619
|
*
|
|
2620
2620
|
* **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.
|
|
2621
2621
|
*/
|
|
2622
|
-
export const deletePortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<DeletePortfolioBlockData, ThrowOnError>) => (options.client ?? client).post<DeletePortfolioBlockResponses, DeletePortfolioBlockErrors, ThrowOnError>({
|
|
2622
|
+
export const deletePortfolioBlock = <ThrowOnError extends boolean = false>(options: Options<DeletePortfolioBlockData, ThrowOnError>): RequestResult<DeletePortfolioBlockResponses, DeletePortfolioBlockErrors, ThrowOnError> => (options.client ?? client).post<DeletePortfolioBlockResponses, DeletePortfolioBlockErrors, ThrowOnError>({
|
|
2623
2623
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2624
2624
|
url: '/extensions/roboinvestor/{graph_id}/operations/delete-portfolio-block',
|
|
2625
2625
|
...options,
|
|
@@ -2636,7 +2636,7 @@ export const deletePortfolioBlock = <ThrowOnError extends boolean = false>(optio
|
|
|
2636
2636
|
*
|
|
2637
2637
|
* **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.
|
|
2638
2638
|
*/
|
|
2639
|
-
export const createSecurity = <ThrowOnError extends boolean = false>(options: Options<CreateSecurityData, ThrowOnError>) => (options.client ?? client).post<CreateSecurityResponses, CreateSecurityErrors, ThrowOnError>({
|
|
2639
|
+
export const createSecurity = <ThrowOnError extends boolean = false>(options: Options<CreateSecurityData, ThrowOnError>): RequestResult<CreateSecurityResponses, CreateSecurityErrors, ThrowOnError> => (options.client ?? client).post<CreateSecurityResponses, CreateSecurityErrors, ThrowOnError>({
|
|
2640
2640
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2641
2641
|
url: '/extensions/roboinvestor/{graph_id}/operations/create-security',
|
|
2642
2642
|
...options,
|
|
@@ -2653,7 +2653,7 @@ export const createSecurity = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2653
2653
|
*
|
|
2654
2654
|
* **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.
|
|
2655
2655
|
*/
|
|
2656
|
-
export const updateSecurity = <ThrowOnError extends boolean = false>(options: Options<UpdateSecurityData, ThrowOnError>) => (options.client ?? client).post<UpdateSecurityResponses, UpdateSecurityErrors, ThrowOnError>({
|
|
2656
|
+
export const updateSecurity = <ThrowOnError extends boolean = false>(options: Options<UpdateSecurityData, ThrowOnError>): RequestResult<UpdateSecurityResponses, UpdateSecurityErrors, ThrowOnError> => (options.client ?? client).post<UpdateSecurityResponses, UpdateSecurityErrors, ThrowOnError>({
|
|
2657
2657
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2658
2658
|
url: '/extensions/roboinvestor/{graph_id}/operations/update-security',
|
|
2659
2659
|
...options,
|
|
@@ -2670,7 +2670,7 @@ export const updateSecurity = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2670
2670
|
*
|
|
2671
2671
|
* **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.
|
|
2672
2672
|
*/
|
|
2673
|
-
export const deleteSecurity = <ThrowOnError extends boolean = false>(options: Options<DeleteSecurityData, ThrowOnError>) => (options.client ?? client).post<DeleteSecurityResponses, DeleteSecurityErrors, ThrowOnError>({
|
|
2673
|
+
export const deleteSecurity = <ThrowOnError extends boolean = false>(options: Options<DeleteSecurityData, ThrowOnError>): RequestResult<DeleteSecurityResponses, DeleteSecurityErrors, ThrowOnError> => (options.client ?? client).post<DeleteSecurityResponses, DeleteSecurityErrors, ThrowOnError>({
|
|
2674
2674
|
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2675
2675
|
url: '/extensions/roboinvestor/{graph_id}/operations/delete-security',
|
|
2676
2676
|
...options,
|