shoal-web-sdk 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/@tanstack/react-query.gen.d.ts +5 -1
- package/dist/sdk/@tanstack/react-query.gen.js +17 -1
- package/dist/sdk/sdk.gen.d.ts +5 -1
- package/dist/sdk/sdk.gen.js +23 -0
- package/dist/sdk/types.gen.d.ts +85 -0
- package/dist/sdk/zod.gen.d.ts +65 -0
- package/dist/sdk/zod.gen.js +25 -1
- package/dist/tanstack-codegen/generated/generated.d.ts +9 -1
- package/dist/tanstack-codegen/generated/generated.js +20 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InfiniteData, type UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import { type Options } from '../sdk.gen';
|
|
3
|
-
import type { CheckSubdomainUniquenessData, CloneEnvironmentData, CloneEnvironmentError, CloneEnvironmentResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse2, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateNeonBranchData, CreateNeonBranchError, CreateNeonBranchResponse, CreateNeonDatabaseData, CreateNeonDatabaseError, CreateNeonDatabaseResponse, CreateNeonProjectData, CreateNeonProjectError, CreateNeonProjectM2mData, CreateNeonProjectM2mError, CreateNeonProjectM2mResponse, CreateNeonProjectResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretM2mData, CreateSecretM2mError, CreateSecretM2mResponse, CreateSecretResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentData, DeleteEnvironmentError, DeleteEnvironmentM2mData, DeleteEnvironmentM2mError, DeleteEnvironmentM2mResponse, DeleteEnvironmentResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeleteNeonDatabaseData, DeleteNeonDatabaseError, DeleteNeonDatabaseResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchMongoOrganizationsData, FetchMongoOrganizationTierData, FetchMongoRegionsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetApiKeysData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetBlueprintM2mData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetFeatureFlagsData, GetGraphOverviewData, GetNodeEnvironmentVariablesData, GetProjectEnvironmentsData, GetProjectOverviewData, GetPublicInviteData, GetSecretValueData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListMongoClustersData, ListMongoProjectsData, ListNeonBranchesData, ListNeonDatabasesData, ListNeonProjectsData, ListNeonRolesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, LookupApiKeyData, PingNodeData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeApiKeyData, RevokeApiKeyError, RevokeApiKeyResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetEnvironmentGcpProjectIdData, SetEnvironmentGcpProjectIdError, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData, ViewBlueprintsM2mData } from '../types.gen';
|
|
3
|
+
import type { CheckSubdomainUniquenessData, CloneEnvironmentData, CloneEnvironmentError, CloneEnvironmentResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse2, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateNeonBranchData, CreateNeonBranchError, CreateNeonBranchResponse, CreateNeonDatabaseData, CreateNeonDatabaseError, CreateNeonDatabaseResponse, CreateNeonProjectData, CreateNeonProjectError, CreateNeonProjectM2mData, CreateNeonProjectM2mError, CreateNeonProjectM2mResponse, CreateNeonProjectResponse, CreateNodeCredentialData, CreateNodeCredentialError, CreateNodeCredentialResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretM2mData, CreateSecretM2mError, CreateSecretM2mResponse, CreateSecretResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentData, DeleteEnvironmentError, DeleteEnvironmentM2mData, DeleteEnvironmentM2mError, DeleteEnvironmentM2mResponse, DeleteEnvironmentResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeleteNeonDatabaseData, DeleteNeonDatabaseError, DeleteNeonDatabaseResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchMongoOrganizationsData, FetchMongoOrganizationTierData, FetchMongoRegionsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetApiKeysData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetBlueprintM2mData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetFeatureFlagsData, GetGraphOverviewData, GetNodeEnvironmentVariablesData, GetProjectEnvironmentsData, GetProjectOverviewData, GetPublicInviteData, GetSecretValueData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListMongoClustersData, ListMongoProjectsData, ListNeonBranchesData, ListNeonDatabasesData, ListNeonProjectsData, ListNeonRolesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, LookupApiKeyData, PingNodeData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeApiKeyData, RevokeApiKeyError, RevokeApiKeyResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetEnvironmentGcpProjectIdData, SetEnvironmentGcpProjectIdError, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData, ViewBlueprintsM2mData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -1933,6 +1933,10 @@ export declare const pingNodeOptions: (options: Options<PingNodeData>) => import
|
|
|
1933
1933
|
[dataTagErrorSymbol]: Error;
|
|
1934
1934
|
};
|
|
1935
1935
|
};
|
|
1936
|
+
/**
|
|
1937
|
+
* Generate a service account key file scoped to a node's own resources, for local development against them.
|
|
1938
|
+
*/
|
|
1939
|
+
export declare const createNodeCredentialMutation: (options?: Partial<Options<CreateNodeCredentialData>>) => UseMutationOptions<CreateNodeCredentialResponse, CreateNodeCredentialError, Options<CreateNodeCredentialData>>;
|
|
1936
1940
|
/**
|
|
1937
1941
|
* Record a cloud usage event for a space (M2M only).
|
|
1938
1942
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
3
|
import { client } from '../client.gen';
|
|
4
|
-
import { checkSubdomainUniqueness, cloneEnvironment, createApiKey, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createNeonBranch, createNeonDatabase, createNeonProject, createNeonProjectM2M, createProject, createSecret, createSecretM2M, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironment, deleteEnvironmentM2M, deleteEnvironmentVariable, deleteNeonDatabase, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchMongoOrganizations, fetchMongoOrganizationTier, fetchMongoRegions, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getApiKeys, getBillingPlan, getBillingUsage, getBlueprint, getBlueprintM2M, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getFeatureFlags, getGraphOverview, getNodeEnvironmentVariables, getProjectEnvironments, getProjectOverview, getPublicInvite, getSecretValue, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listMongoClusters, listMongoProjects, listNeonBranches, listNeonDatabases, listNeonProjects, listNeonRoles, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, lookupApiKey, pingNode, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeApiKey, revokeSpaceInvite, setDefaultPaymentMethod, setEnvironmentGcpProjectId, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints, viewBlueprintsM2M } from '../sdk.gen';
|
|
4
|
+
import { checkSubdomainUniqueness, cloneEnvironment, createApiKey, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createNeonBranch, createNeonDatabase, createNeonProject, createNeonProjectM2M, createNodeCredential, createProject, createSecret, createSecretM2M, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironment, deleteEnvironmentM2M, deleteEnvironmentVariable, deleteNeonDatabase, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchMongoOrganizations, fetchMongoOrganizationTier, fetchMongoRegions, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getApiKeys, getBillingPlan, getBillingUsage, getBlueprint, getBlueprintM2M, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getFeatureFlags, getGraphOverview, getNodeEnvironmentVariables, getProjectEnvironments, getProjectOverview, getPublicInvite, getSecretValue, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listMongoClusters, listMongoProjects, listNeonBranches, listNeonDatabases, listNeonProjects, listNeonRoles, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, lookupApiKey, pingNode, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeApiKey, revokeSpaceInvite, setDefaultPaymentMethod, setEnvironmentGcpProjectId, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints, viewBlueprintsM2M } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
6
|
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
7
|
if (infinite) {
|
|
@@ -1991,6 +1991,22 @@ export const pingNodeOptions = (options) => {
|
|
|
1991
1991
|
queryKey: pingNodeQueryKey(options)
|
|
1992
1992
|
});
|
|
1993
1993
|
};
|
|
1994
|
+
/**
|
|
1995
|
+
* Generate a service account key file scoped to a node's own resources, for local development against them.
|
|
1996
|
+
*/
|
|
1997
|
+
export const createNodeCredentialMutation = (options) => {
|
|
1998
|
+
const mutationOptions = {
|
|
1999
|
+
mutationFn: async (fnOptions) => {
|
|
2000
|
+
const { data } = await createNodeCredential({
|
|
2001
|
+
...options,
|
|
2002
|
+
...fnOptions,
|
|
2003
|
+
throwOnError: true
|
|
2004
|
+
});
|
|
2005
|
+
return data;
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
return mutationOptions;
|
|
2009
|
+
};
|
|
1994
2010
|
/**
|
|
1995
2011
|
* Record a cloud usage event for a space (M2M only).
|
|
1996
2012
|
*/
|
package/dist/sdk/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
-
import type { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CloneEnvironmentData, CloneEnvironmentErrors, CloneEnvironmentResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateNeonBranchData, CreateNeonBranchErrors, CreateNeonBranchResponses, CreateNeonDatabaseData, CreateNeonDatabaseErrors, CreateNeonDatabaseResponses, CreateNeonProjectData, CreateNeonProjectErrors, CreateNeonProjectM2mData, CreateNeonProjectM2mErrors, CreateNeonProjectM2mResponses, CreateNeonProjectResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSecretData, CreateSecretErrors, CreateSecretM2mData, CreateSecretM2mErrors, CreateSecretM2mResponses, CreateSecretResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentData, DeleteEnvironmentErrors, DeleteEnvironmentM2mData, DeleteEnvironmentM2mErrors, DeleteEnvironmentM2mResponses, DeleteEnvironmentResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeleteNeonDatabaseData, DeleteNeonDatabaseErrors, DeleteNeonDatabaseResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchMongoOrganizationsData, FetchMongoOrganizationsErrors, FetchMongoOrganizationsResponses, FetchMongoOrganizationTierData, FetchMongoOrganizationTierErrors, FetchMongoOrganizationTierResponses, FetchMongoRegionsData, FetchMongoRegionsErrors, FetchMongoRegionsResponses, FetchNeonConnectionUriData, FetchNeonConnectionUriErrors, FetchNeonConnectionUriResponses, FetchNeonOrganizationsData, FetchNeonOrganizationsErrors, FetchNeonOrganizationsResponses, FetchNeonRegionsData, FetchNeonRegionsErrors, FetchNeonRegionsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetApiKeysData, GetApiKeysErrors, GetApiKeysResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintM2mData, GetBlueprintM2mErrors, GetBlueprintM2mResponses, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesM2mData, GetEnvironmentVariablesM2mErrors, GetEnvironmentVariablesM2mResponses, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetFeatureFlagsData, GetFeatureFlagsErrors, GetFeatureFlagsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetNodeEnvironmentVariablesData, GetNodeEnvironmentVariablesErrors, GetNodeEnvironmentVariablesResponses, GetProjectEnvironmentsData, GetProjectEnvironmentsErrors, GetProjectEnvironmentsResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, GetSecretValueData, GetSecretValueErrors, GetSecretValueResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListMongoClustersData, ListMongoClustersErrors, ListMongoClustersResponses, ListMongoProjectsData, ListMongoProjectsErrors, ListMongoProjectsResponses, ListNeonBranchesData, ListNeonBranchesErrors, ListNeonBranchesResponses, ListNeonDatabasesData, ListNeonDatabasesErrors, ListNeonDatabasesResponses, ListNeonProjectsData, ListNeonProjectsErrors, ListNeonProjectsResponses, ListNeonRolesData, ListNeonRolesErrors, ListNeonRolesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, LookupApiKeyData, LookupApiKeyErrors, LookupApiKeyResponses, PingNodeData, PingNodeErrors, PingNodeResponses, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeApiKeyData, RevokeApiKeyErrors, RevokeApiKeyResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, SetEnvironmentGcpProjectIdData, SetEnvironmentGcpProjectIdErrors, SetEnvironmentGcpProjectIdResponses, SetSpacePropertyData, SetSpacePropertyErrors, SetSpacePropertyResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateBlueprintData, UpdateBlueprintErrors, UpdateBlueprintResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mErrors, UpdateDeploymentStatusM2mResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateNodeM2mData, UpdateNodeM2mErrors, UpdateNodeM2mResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, ViewBlueprintsData, ViewBlueprintsErrors, ViewBlueprintsM2mData, ViewBlueprintsM2mErrors, ViewBlueprintsM2mResponses, ViewBlueprintsResponses } from './types.gen';
|
|
2
|
+
import type { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CloneEnvironmentData, CloneEnvironmentErrors, CloneEnvironmentResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateNeonBranchData, CreateNeonBranchErrors, CreateNeonBranchResponses, CreateNeonDatabaseData, CreateNeonDatabaseErrors, CreateNeonDatabaseResponses, CreateNeonProjectData, CreateNeonProjectErrors, CreateNeonProjectM2mData, CreateNeonProjectM2mErrors, CreateNeonProjectM2mResponses, CreateNeonProjectResponses, CreateNodeCredentialData, CreateNodeCredentialErrors, CreateNodeCredentialResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSecretData, CreateSecretErrors, CreateSecretM2mData, CreateSecretM2mErrors, CreateSecretM2mResponses, CreateSecretResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentData, DeleteEnvironmentErrors, DeleteEnvironmentM2mData, DeleteEnvironmentM2mErrors, DeleteEnvironmentM2mResponses, DeleteEnvironmentResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeleteNeonDatabaseData, DeleteNeonDatabaseErrors, DeleteNeonDatabaseResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchMongoOrganizationsData, FetchMongoOrganizationsErrors, FetchMongoOrganizationsResponses, FetchMongoOrganizationTierData, FetchMongoOrganizationTierErrors, FetchMongoOrganizationTierResponses, FetchMongoRegionsData, FetchMongoRegionsErrors, FetchMongoRegionsResponses, FetchNeonConnectionUriData, FetchNeonConnectionUriErrors, FetchNeonConnectionUriResponses, FetchNeonOrganizationsData, FetchNeonOrganizationsErrors, FetchNeonOrganizationsResponses, FetchNeonRegionsData, FetchNeonRegionsErrors, FetchNeonRegionsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetApiKeysData, GetApiKeysErrors, GetApiKeysResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintM2mData, GetBlueprintM2mErrors, GetBlueprintM2mResponses, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesM2mData, GetEnvironmentVariablesM2mErrors, GetEnvironmentVariablesM2mResponses, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetFeatureFlagsData, GetFeatureFlagsErrors, GetFeatureFlagsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetNodeEnvironmentVariablesData, GetNodeEnvironmentVariablesErrors, GetNodeEnvironmentVariablesResponses, GetProjectEnvironmentsData, GetProjectEnvironmentsErrors, GetProjectEnvironmentsResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, GetSecretValueData, GetSecretValueErrors, GetSecretValueResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListMongoClustersData, ListMongoClustersErrors, ListMongoClustersResponses, ListMongoProjectsData, ListMongoProjectsErrors, ListMongoProjectsResponses, ListNeonBranchesData, ListNeonBranchesErrors, ListNeonBranchesResponses, ListNeonDatabasesData, ListNeonDatabasesErrors, ListNeonDatabasesResponses, ListNeonProjectsData, ListNeonProjectsErrors, ListNeonProjectsResponses, ListNeonRolesData, ListNeonRolesErrors, ListNeonRolesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, LookupApiKeyData, LookupApiKeyErrors, LookupApiKeyResponses, PingNodeData, PingNodeErrors, PingNodeResponses, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeApiKeyData, RevokeApiKeyErrors, RevokeApiKeyResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, SetEnvironmentGcpProjectIdData, SetEnvironmentGcpProjectIdErrors, SetEnvironmentGcpProjectIdResponses, SetSpacePropertyData, SetSpacePropertyErrors, SetSpacePropertyResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateBlueprintData, UpdateBlueprintErrors, UpdateBlueprintResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mErrors, UpdateDeploymentStatusM2mResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateNodeM2mData, UpdateNodeM2mErrors, UpdateNodeM2mResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, ViewBlueprintsData, ViewBlueprintsErrors, ViewBlueprintsM2mData, ViewBlueprintsM2mErrors, ViewBlueprintsM2mResponses, ViewBlueprintsResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -378,6 +378,10 @@ export declare const checkSubdomainUniqueness: <ThrowOnError extends boolean = f
|
|
|
378
378
|
* Ping check a node's underlying provider resource depending on its type (e.g. Neon database, Mongo Atlas cluster).
|
|
379
379
|
*/
|
|
380
380
|
export declare const pingNode: <ThrowOnError extends boolean = false>(options: Options<PingNodeData, ThrowOnError>) => import("./client").RequestResult<PingNodeResponses, PingNodeErrors, ThrowOnError, "fields">;
|
|
381
|
+
/**
|
|
382
|
+
* Generate a service account key file scoped to a node's own resources, for local development against them.
|
|
383
|
+
*/
|
|
384
|
+
export declare const createNodeCredential: <ThrowOnError extends boolean = false>(options: Options<CreateNodeCredentialData, ThrowOnError>) => import("./client").RequestResult<CreateNodeCredentialResponses, CreateNodeCredentialErrors, ThrowOnError, "fields">;
|
|
381
385
|
/**
|
|
382
386
|
* Record a cloud usage event for a space (M2M only).
|
|
383
387
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -1860,6 +1860,29 @@ export const pingNode = (options) => {
|
|
|
1860
1860
|
...options
|
|
1861
1861
|
});
|
|
1862
1862
|
};
|
|
1863
|
+
/**
|
|
1864
|
+
* Generate a service account key file scoped to a node's own resources, for local development against them.
|
|
1865
|
+
*/
|
|
1866
|
+
export const createNodeCredential = (options) => {
|
|
1867
|
+
return (options.client ?? client).post({
|
|
1868
|
+
security: [
|
|
1869
|
+
{
|
|
1870
|
+
scheme: 'bearer',
|
|
1871
|
+
type: 'http'
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
name: 'X-Api-Key',
|
|
1875
|
+
type: 'apiKey'
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/credentials',
|
|
1879
|
+
...options,
|
|
1880
|
+
headers: {
|
|
1881
|
+
'Content-Type': 'application/json',
|
|
1882
|
+
...options.headers
|
|
1883
|
+
}
|
|
1884
|
+
});
|
|
1885
|
+
};
|
|
1863
1886
|
/**
|
|
1864
1887
|
* Record a cloud usage event for a space (M2M only).
|
|
1865
1888
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -752,6 +752,18 @@ export type NodePingResponse = {
|
|
|
752
752
|
*/
|
|
753
753
|
message?: string;
|
|
754
754
|
};
|
|
755
|
+
export type NodeCredentialRequest = {
|
|
756
|
+
/**
|
|
757
|
+
* How long the generated key stays valid, in hours. Defaults to 24 and is capped at 720 (30 days).
|
|
758
|
+
*/
|
|
759
|
+
ttlHours?: number;
|
|
760
|
+
};
|
|
761
|
+
export type NodeCredential = {
|
|
762
|
+
/**
|
|
763
|
+
* The service account key file contents. Returned once on creation and never stored, so it cannot be fetched again.
|
|
764
|
+
*/
|
|
765
|
+
credentialsJson: string;
|
|
766
|
+
};
|
|
755
767
|
export type FunctionNodeProps = {
|
|
756
768
|
region: Region;
|
|
757
769
|
language: string;
|
|
@@ -773,6 +785,14 @@ export type QueueNodeProps = {
|
|
|
773
785
|
* Minimum duration to retain unacknowledged messages on the topic, as a GCP duration string (e.g. "604800s"). Omitted/null uses the provider default.
|
|
774
786
|
*/
|
|
775
787
|
messageRetentionDuration?: string;
|
|
788
|
+
/**
|
|
789
|
+
* The provisioned GCP Pub/Sub topic id. Written back by the deployment job; null until the topic has been provisioned. Sending null leaves the stored value unchanged.
|
|
790
|
+
*/
|
|
791
|
+
topicId?: string;
|
|
792
|
+
/**
|
|
793
|
+
* Email of the service account used to authenticate with GCP Pub/Sub. Written back by the deployment job; null until provisioned. Sending null leaves the stored value unchanged.
|
|
794
|
+
*/
|
|
795
|
+
saEmail?: string;
|
|
776
796
|
subscriptions: Array<QueueSubscriptionProps>;
|
|
777
797
|
};
|
|
778
798
|
export type QueueSubscriptionProps = {
|
|
@@ -793,6 +813,10 @@ export type QueueSubscriptionProps = {
|
|
|
793
813
|
* Optional filter expression evaluated against message attributes.
|
|
794
814
|
*/
|
|
795
815
|
messageFilter?: string;
|
|
816
|
+
/**
|
|
817
|
+
* The provisioned GCP Pub/Sub subscription id. Written back by the deployment job; null until the subscription has been provisioned. Sending null leaves the stored value unchanged.
|
|
818
|
+
*/
|
|
819
|
+
subscriptionId?: string;
|
|
796
820
|
};
|
|
797
821
|
export type ProxyNodeProps = {
|
|
798
822
|
subdomain?: string;
|
|
@@ -5275,6 +5299,67 @@ export type PingNodeResponses = {
|
|
|
5275
5299
|
200: NodePingResponse;
|
|
5276
5300
|
};
|
|
5277
5301
|
export type PingNodeResponse = PingNodeResponses[keyof PingNodeResponses];
|
|
5302
|
+
export type CreateNodeCredentialData = {
|
|
5303
|
+
body?: NodeCredentialRequest;
|
|
5304
|
+
path: {
|
|
5305
|
+
/**
|
|
5306
|
+
* The space handle. This must be globally unique.
|
|
5307
|
+
*/
|
|
5308
|
+
spaceHandle: string;
|
|
5309
|
+
/**
|
|
5310
|
+
* A project name. This must be unique to a space.
|
|
5311
|
+
*/
|
|
5312
|
+
projectHandle: string;
|
|
5313
|
+
/**
|
|
5314
|
+
* An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
|
|
5315
|
+
*/
|
|
5316
|
+
environmentHandle: string;
|
|
5317
|
+
/**
|
|
5318
|
+
* A version number with in an environment.
|
|
5319
|
+
*/
|
|
5320
|
+
version: string;
|
|
5321
|
+
/**
|
|
5322
|
+
* The node ID this source ZIP is associated with.
|
|
5323
|
+
*/
|
|
5324
|
+
nodeUUID: string;
|
|
5325
|
+
};
|
|
5326
|
+
query?: never;
|
|
5327
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/credentials';
|
|
5328
|
+
};
|
|
5329
|
+
export type CreateNodeCredentialErrors = {
|
|
5330
|
+
/**
|
|
5331
|
+
* Invalid request parameters.
|
|
5332
|
+
*/
|
|
5333
|
+
400: ErrorResponse;
|
|
5334
|
+
/**
|
|
5335
|
+
* Unauthorised user.
|
|
5336
|
+
*/
|
|
5337
|
+
401: ErrorResponse;
|
|
5338
|
+
/**
|
|
5339
|
+
* Invalid credentials.
|
|
5340
|
+
*/
|
|
5341
|
+
403: ErrorResponse;
|
|
5342
|
+
/**
|
|
5343
|
+
* Node not found.
|
|
5344
|
+
*/
|
|
5345
|
+
404: ErrorResponse;
|
|
5346
|
+
/**
|
|
5347
|
+
* Node type does not support credentials, or the node has not been provisioned yet.
|
|
5348
|
+
*/
|
|
5349
|
+
422: ErrorResponse;
|
|
5350
|
+
/**
|
|
5351
|
+
* Unexpected error.
|
|
5352
|
+
*/
|
|
5353
|
+
500: ErrorResponse;
|
|
5354
|
+
};
|
|
5355
|
+
export type CreateNodeCredentialError = CreateNodeCredentialErrors[keyof CreateNodeCredentialErrors];
|
|
5356
|
+
export type CreateNodeCredentialResponses = {
|
|
5357
|
+
/**
|
|
5358
|
+
* The generated credential. The key file is returned only in this response.
|
|
5359
|
+
*/
|
|
5360
|
+
201: NodeCredential;
|
|
5361
|
+
};
|
|
5362
|
+
export type CreateNodeCredentialResponse = CreateNodeCredentialResponses[keyof CreateNodeCredentialResponses];
|
|
5278
5363
|
export type RecordCloudUsageData = {
|
|
5279
5364
|
body: RecordUsageRequest;
|
|
5280
5365
|
path?: never;
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -909,6 +909,12 @@ export declare const zNodePingResponse: z.ZodObject<{
|
|
|
909
909
|
status: z.ZodOptional<z.ZodString>;
|
|
910
910
|
message: z.ZodOptional<z.ZodString>;
|
|
911
911
|
}, z.core.$strip>;
|
|
912
|
+
export declare const zNodeCredentialRequest: z.ZodObject<{
|
|
913
|
+
ttlHours: z.ZodOptional<z.ZodInt>;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
export declare const zNodeCredential: z.ZodObject<{
|
|
916
|
+
credentialsJson: z.ZodString;
|
|
917
|
+
}, z.core.$strip>;
|
|
912
918
|
export declare const zFunctionNodeProps: z.ZodObject<{
|
|
913
919
|
region: z.ZodEnum<{
|
|
914
920
|
"europe-west2": "europe-west2";
|
|
@@ -943,9 +949,12 @@ export declare const zQueueSubscriptionProps: z.ZodObject<{
|
|
|
943
949
|
enableMessageOrdering: z.ZodBoolean;
|
|
944
950
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
945
951
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
952
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
946
953
|
}, z.core.$strip>;
|
|
947
954
|
export declare const zQueueNodeProps: z.ZodObject<{
|
|
948
955
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
956
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
957
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
949
958
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
950
959
|
name: z.ZodString;
|
|
951
960
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -955,6 +964,7 @@ export declare const zQueueNodeProps: z.ZodObject<{
|
|
|
955
964
|
enableMessageOrdering: z.ZodBoolean;
|
|
956
965
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
957
966
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
967
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
958
968
|
}, z.core.$strip>>;
|
|
959
969
|
}, z.core.$strip>;
|
|
960
970
|
export declare const zProxyNodeProps: z.ZodObject<{
|
|
@@ -1188,6 +1198,8 @@ export declare const zNode: z.ZodObject<{
|
|
|
1188
1198
|
typ: z.ZodLiteral<"queue">;
|
|
1189
1199
|
}, z.core.$strip>, z.ZodObject<{
|
|
1190
1200
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
1191
1203
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
1192
1204
|
name: z.ZodString;
|
|
1193
1205
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1197,6 +1209,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
1197
1209
|
enableMessageOrdering: z.ZodBoolean;
|
|
1198
1210
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
1199
1211
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
1200
1213
|
}, z.core.$strip>>;
|
|
1201
1214
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1202
1215
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -1430,6 +1443,8 @@ export declare const zNodes: z.ZodObject<{
|
|
|
1430
1443
|
typ: z.ZodLiteral<"queue">;
|
|
1431
1444
|
}, z.core.$strip>, z.ZodObject<{
|
|
1432
1445
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
1433
1448
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
1434
1449
|
name: z.ZodString;
|
|
1435
1450
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1439,6 +1454,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
1439
1454
|
enableMessageOrdering: z.ZodBoolean;
|
|
1440
1455
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
1441
1456
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
1442
1458
|
}, z.core.$strip>>;
|
|
1443
1459
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1444
1460
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -1675,6 +1691,8 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1675
1691
|
typ: z.ZodLiteral<"queue">;
|
|
1676
1692
|
}, z.core.$strip>, z.ZodObject<{
|
|
1677
1693
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
1678
1696
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
1679
1697
|
name: z.ZodString;
|
|
1680
1698
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1684,6 +1702,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1684
1702
|
enableMessageOrdering: z.ZodBoolean;
|
|
1685
1703
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
1686
1704
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
1687
1706
|
}, z.core.$strip>>;
|
|
1688
1707
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1689
1708
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -1925,6 +1944,8 @@ export declare const zBlueprintDetail: z.ZodObject<{
|
|
|
1925
1944
|
typ: z.ZodLiteral<"queue">;
|
|
1926
1945
|
}, z.core.$strip>, z.ZodObject<{
|
|
1927
1946
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
1947
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1948
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
1928
1949
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
1929
1950
|
name: z.ZodString;
|
|
1930
1951
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1934,6 +1955,7 @@ export declare const zBlueprintDetail: z.ZodObject<{
|
|
|
1934
1955
|
enableMessageOrdering: z.ZodBoolean;
|
|
1935
1956
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
1936
1957
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
1958
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
1937
1959
|
}, z.core.$strip>>;
|
|
1938
1960
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1939
1961
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -2813,6 +2835,8 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
2813
2835
|
typ: z.ZodLiteral<"queue">;
|
|
2814
2836
|
}, z.core.$strip>, z.ZodObject<{
|
|
2815
2837
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
2838
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
2839
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
2816
2840
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
2817
2841
|
name: z.ZodString;
|
|
2818
2842
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -2822,6 +2846,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
2822
2846
|
enableMessageOrdering: z.ZodBoolean;
|
|
2823
2847
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
2824
2848
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
2849
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
2825
2850
|
}, z.core.$strip>>;
|
|
2826
2851
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2827
2852
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -3057,6 +3082,8 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
3057
3082
|
typ: z.ZodLiteral<"queue">;
|
|
3058
3083
|
}, z.core.$strip>, z.ZodObject<{
|
|
3059
3084
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
3085
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
3086
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
3060
3087
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
3061
3088
|
name: z.ZodString;
|
|
3062
3089
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -3066,6 +3093,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
3066
3093
|
enableMessageOrdering: z.ZodBoolean;
|
|
3067
3094
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
3068
3095
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
3096
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
3069
3097
|
}, z.core.$strip>>;
|
|
3070
3098
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3071
3099
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -3318,6 +3346,8 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
3318
3346
|
typ: z.ZodLiteral<"queue">;
|
|
3319
3347
|
}, z.core.$strip>, z.ZodObject<{
|
|
3320
3348
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
3349
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
3350
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
3321
3351
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
3322
3352
|
name: z.ZodString;
|
|
3323
3353
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -3327,6 +3357,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
3327
3357
|
enableMessageOrdering: z.ZodBoolean;
|
|
3328
3358
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
3329
3359
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
3360
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
3330
3361
|
}, z.core.$strip>>;
|
|
3331
3362
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3332
3363
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -3560,6 +3591,8 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
3560
3591
|
typ: z.ZodLiteral<"queue">;
|
|
3561
3592
|
}, z.core.$strip>, z.ZodObject<{
|
|
3562
3593
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
3594
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
3595
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
3563
3596
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
3564
3597
|
name: z.ZodString;
|
|
3565
3598
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -3569,6 +3602,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
3569
3602
|
enableMessageOrdering: z.ZodBoolean;
|
|
3570
3603
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
3571
3604
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
3605
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
3572
3606
|
}, z.core.$strip>>;
|
|
3573
3607
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3574
3608
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -3871,6 +3905,8 @@ export declare const zGetBlueprintM2mResponse: z.ZodObject<{
|
|
|
3871
3905
|
typ: z.ZodLiteral<"queue">;
|
|
3872
3906
|
}, z.core.$strip>, z.ZodObject<{
|
|
3873
3907
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
3908
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
3909
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
3874
3910
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
3875
3911
|
name: z.ZodString;
|
|
3876
3912
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -3880,6 +3916,7 @@ export declare const zGetBlueprintM2mResponse: z.ZodObject<{
|
|
|
3880
3916
|
enableMessageOrdering: z.ZodBoolean;
|
|
3881
3917
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
3882
3918
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
3919
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
3883
3920
|
}, z.core.$strip>>;
|
|
3884
3921
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3885
3922
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -4776,6 +4813,8 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
4776
4813
|
typ: z.ZodLiteral<"queue">;
|
|
4777
4814
|
}, z.core.$strip>, z.ZodObject<{
|
|
4778
4815
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
4816
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
4817
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
4779
4818
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
4780
4819
|
name: z.ZodString;
|
|
4781
4820
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -4785,6 +4824,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
4785
4824
|
enableMessageOrdering: z.ZodBoolean;
|
|
4786
4825
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
4787
4826
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
4827
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
4788
4828
|
}, z.core.$strip>>;
|
|
4789
4829
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
4790
4830
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -5912,6 +5952,8 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
5912
5952
|
typ: z.ZodLiteral<"queue">;
|
|
5913
5953
|
}, z.core.$strip>, z.ZodObject<{
|
|
5914
5954
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
5955
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
5956
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
5915
5957
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
5916
5958
|
name: z.ZodString;
|
|
5917
5959
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -5921,6 +5963,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
5921
5963
|
enableMessageOrdering: z.ZodBoolean;
|
|
5922
5964
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
5923
5965
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
5966
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
5924
5967
|
}, z.core.$strip>>;
|
|
5925
5968
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5926
5969
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -6156,6 +6199,8 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
6156
6199
|
typ: z.ZodLiteral<"queue">;
|
|
6157
6200
|
}, z.core.$strip>, z.ZodObject<{
|
|
6158
6201
|
messageRetentionDuration: z.ZodOptional<z.ZodString>;
|
|
6202
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
6203
|
+
saEmail: z.ZodOptional<z.ZodString>;
|
|
6159
6204
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
6160
6205
|
name: z.ZodString;
|
|
6161
6206
|
pushEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -6165,6 +6210,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
6165
6210
|
enableMessageOrdering: z.ZodBoolean;
|
|
6166
6211
|
enableExactlyOnceDelivery: z.ZodBoolean;
|
|
6167
6212
|
messageFilter: z.ZodOptional<z.ZodString>;
|
|
6213
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
6168
6214
|
}, z.core.$strip>>;
|
|
6169
6215
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
6170
6216
|
typ: z.ZodLiteral<"proxy">;
|
|
@@ -6350,6 +6396,25 @@ export declare const zPingNodeResponse: z.ZodObject<{
|
|
|
6350
6396
|
status: z.ZodOptional<z.ZodString>;
|
|
6351
6397
|
message: z.ZodOptional<z.ZodString>;
|
|
6352
6398
|
}, z.core.$strip>;
|
|
6399
|
+
export declare const zCreateNodeCredentialData: z.ZodObject<{
|
|
6400
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
6401
|
+
ttlHours: z.ZodOptional<z.ZodInt>;
|
|
6402
|
+
}, z.core.$strip>>;
|
|
6403
|
+
path: z.ZodObject<{
|
|
6404
|
+
spaceHandle: z.ZodString;
|
|
6405
|
+
projectHandle: z.ZodString;
|
|
6406
|
+
environmentHandle: z.ZodString;
|
|
6407
|
+
version: z.ZodString;
|
|
6408
|
+
nodeUUID: z.ZodUUID;
|
|
6409
|
+
}, z.core.$strip>;
|
|
6410
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
6411
|
+
}, z.core.$strip>;
|
|
6412
|
+
/**
|
|
6413
|
+
* The generated credential. The key file is returned only in this response.
|
|
6414
|
+
*/
|
|
6415
|
+
export declare const zCreateNodeCredentialResponse: z.ZodObject<{
|
|
6416
|
+
credentialsJson: z.ZodString;
|
|
6417
|
+
}, z.core.$strip>;
|
|
6353
6418
|
export declare const zRecordCloudUsageData: z.ZodObject<{
|
|
6354
6419
|
body: z.ZodObject<{
|
|
6355
6420
|
orgCode: z.ZodString;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -659,6 +659,12 @@ export const zNodePingResponse = z.object({
|
|
|
659
659
|
status: z.optional(z.string()),
|
|
660
660
|
message: z.optional(z.string())
|
|
661
661
|
});
|
|
662
|
+
export const zNodeCredentialRequest = z.object({
|
|
663
|
+
ttlHours: z.optional(z.int())
|
|
664
|
+
});
|
|
665
|
+
export const zNodeCredential = z.object({
|
|
666
|
+
credentialsJson: z.string()
|
|
667
|
+
});
|
|
662
668
|
export const zFunctionNodeProps = z.object({
|
|
663
669
|
region: zRegion,
|
|
664
670
|
language: z.string(),
|
|
@@ -683,10 +689,13 @@ export const zQueueSubscriptionProps = z.object({
|
|
|
683
689
|
retainAckedMessages: z.boolean(),
|
|
684
690
|
enableMessageOrdering: z.boolean(),
|
|
685
691
|
enableExactlyOnceDelivery: z.boolean(),
|
|
686
|
-
messageFilter: z.optional(z.string())
|
|
692
|
+
messageFilter: z.optional(z.string()),
|
|
693
|
+
subscriptionId: z.optional(z.string())
|
|
687
694
|
});
|
|
688
695
|
export const zQueueNodeProps = z.object({
|
|
689
696
|
messageRetentionDuration: z.optional(z.string()),
|
|
697
|
+
topicId: z.optional(z.string()),
|
|
698
|
+
saEmail: z.optional(z.string()),
|
|
690
699
|
subscriptions: z.array(zQueueSubscriptionProps)
|
|
691
700
|
});
|
|
692
701
|
export const zProxyNodeProps = z.object({
|
|
@@ -2324,6 +2333,21 @@ export const zPingNodeData = z.object({
|
|
|
2324
2333
|
* The result of the ping check.
|
|
2325
2334
|
*/
|
|
2326
2335
|
export const zPingNodeResponse = zNodePingResponse;
|
|
2336
|
+
export const zCreateNodeCredentialData = z.object({
|
|
2337
|
+
body: z.optional(zNodeCredentialRequest),
|
|
2338
|
+
path: z.object({
|
|
2339
|
+
spaceHandle: z.string(),
|
|
2340
|
+
projectHandle: z.string(),
|
|
2341
|
+
environmentHandle: z.string(),
|
|
2342
|
+
version: z.string(),
|
|
2343
|
+
nodeUUID: z.uuid()
|
|
2344
|
+
}),
|
|
2345
|
+
query: z.optional(z.never())
|
|
2346
|
+
});
|
|
2347
|
+
/**
|
|
2348
|
+
* The generated credential. The key file is returned only in this response.
|
|
2349
|
+
*/
|
|
2350
|
+
export const zCreateNodeCredentialResponse = zNodeCredential;
|
|
2327
2351
|
export const zRecordCloudUsageData = z.object({
|
|
2328
2352
|
body: zRecordUsageRequest,
|
|
2329
2353
|
path: z.optional(z.never()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { GetSuccessResponse } from "../util";
|
|
3
|
-
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, LookupApiKeyData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, GetApiKeysData, CreateApiKeyData, CreateApiKeyResponses, RevokeApiKeyData, RevokeApiKeyResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, GetProjectEnvironmentsData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, DeleteEnvironmentData, DeleteEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, CloneEnvironmentData, CloneEnvironmentResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
|
|
3
|
+
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, LookupApiKeyData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, GetApiKeysData, CreateApiKeyData, CreateApiKeyResponses, RevokeApiKeyData, RevokeApiKeyResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, GetProjectEnvironmentsData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, DeleteEnvironmentData, DeleteEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, CloneEnvironmentData, CloneEnvironmentResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, CreateNodeCredentialData, CreateNodeCredentialResponses, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
|
|
4
4
|
export declare const useGetServiceHealth: (options?: Omit<GetServiceHealthData, "url"> & {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
}) => {
|
|
@@ -10870,6 +10870,14 @@ export declare const usePingNode: (options: Omit<PingNodeData, "url"> & {
|
|
|
10870
10870
|
headers: Record<string, string>;
|
|
10871
10871
|
} | undefined>;
|
|
10872
10872
|
};
|
|
10873
|
+
export declare const useCreateNodeCredential: (config?: {
|
|
10874
|
+
onSuccess?: (data: GetSuccessResponse<CreateNodeCredentialResponses>, headers: Record<string, string>) => void;
|
|
10875
|
+
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
10876
|
+
retry?: boolean;
|
|
10877
|
+
}) => import("@tanstack/react-query").UseMutationResult<{
|
|
10878
|
+
data: import("../../sdk/types.gen").NodeCredential | undefined;
|
|
10879
|
+
headers: Record<string, string>;
|
|
10880
|
+
}, unknown, Omit<CreateNodeCredentialData, "url">, unknown>;
|
|
10873
10881
|
export declare const useRecordCloudUsage: (config?: {
|
|
10874
10882
|
onSuccess?: (data: GetSuccessResponse<RecordCloudUsageResponses>, headers: Record<string, string>) => void;
|
|
10875
10883
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
3
3
|
import { isPromise, headersToObject } from "../util";
|
|
4
4
|
import { useToken } from "../../provider/token-provider";
|
|
5
|
-
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, lookupApiKey, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, getApiKeys, createApiKey, revokeApiKey, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, getProjectEnvironments, createEnvironment, createSecret, getSecretValue, deleteEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, cloneEnvironment, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
|
|
5
|
+
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, lookupApiKey, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, getApiKeys, createApiKey, revokeApiKey, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, getProjectEnvironments, createEnvironment, createSecret, getSecretValue, deleteEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, cloneEnvironment, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, createNodeCredential, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
|
|
6
6
|
export const useGetServiceHealth = (options) => {
|
|
7
7
|
const token = useToken();
|
|
8
8
|
let { enabled, ...rest } = options || { enabled: true };
|
|
@@ -1848,6 +1848,25 @@ export const usePingNode = (options) => {
|
|
|
1848
1848
|
});
|
|
1849
1849
|
return { ...query, data: query.data?.data, headers: query.data?.headers };
|
|
1850
1850
|
};
|
|
1851
|
+
export const useCreateNodeCredential = (config) => {
|
|
1852
|
+
const token = useToken();
|
|
1853
|
+
const queryClient = useQueryClient();
|
|
1854
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/credentials" };
|
|
1855
|
+
const funcer = async (options) => {
|
|
1856
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
1857
|
+
const res = await createNodeCredential({ ...opts, ...options, auth });
|
|
1858
|
+
return { data: res.data, headers: headersToObject(res.response.headers) };
|
|
1859
|
+
};
|
|
1860
|
+
return useMutation({
|
|
1861
|
+
mutationFn: funcer,
|
|
1862
|
+
onSuccess: (res, options, c, ctx) => {
|
|
1863
|
+
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", options?.path?.nodeUUID, "credentials"] });
|
|
1864
|
+
config?.onSuccess && config.onSuccess(res.data, res.headers);
|
|
1865
|
+
},
|
|
1866
|
+
onError: config?.onError,
|
|
1867
|
+
retry: config?.retry
|
|
1868
|
+
});
|
|
1869
|
+
};
|
|
1851
1870
|
export const useRecordCloudUsage = (config) => {
|
|
1852
1871
|
const token = useToken();
|
|
1853
1872
|
const queryClient = useQueryClient();
|