shoal-web-sdk 1.0.23 → 1.0.25
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 +29 -1
- package/dist/sdk/@tanstack/react-query.gen.js +19 -1
- package/dist/sdk/sdk.gen.d.ts +5 -1
- package/dist/sdk/sdk.gen.js +16 -1
- package/dist/sdk/types.gen.d.ts +60 -11
- package/dist/sdk/zod.gen.d.ts +48 -26
- package/dist/sdk/zod.gen.js +22 -7
- package/dist/tanstack-codegen/generated/generated.d.ts +4 -1
- package/dist/tanstack-codegen/generated/generated.js +22 -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, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetPublicInviteData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData } from '../types.gen';
|
|
3
|
+
import type { CheckSubdomainUniquenessData, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetGraphOverviewData, GetNodeEnvironmentVariablesData, GetProjectOverviewData, GetPublicInviteData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -1279,6 +1279,34 @@ export declare const requestSignedDownloadUrlOptions: (options: Options<RequestS
|
|
|
1279
1279
|
[dataTagErrorSymbol]: Error;
|
|
1280
1280
|
};
|
|
1281
1281
|
};
|
|
1282
|
+
export declare const getNodeEnvironmentVariablesQueryKey: (options: Options<GetNodeEnvironmentVariablesData>) => [Pick<Options<GetNodeEnvironmentVariablesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1283
|
+
_id: string;
|
|
1284
|
+
_infinite?: boolean;
|
|
1285
|
+
tags?: ReadonlyArray<string>;
|
|
1286
|
+
}];
|
|
1287
|
+
/**
|
|
1288
|
+
* Returns a list of environment variables attached to the node.
|
|
1289
|
+
*/
|
|
1290
|
+
export declare const getNodeEnvironmentVariablesOptions: (options: Options<GetNodeEnvironmentVariablesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").EnvironmentVariables, Error, import("../types.gen").EnvironmentVariables, [Pick<Options<GetNodeEnvironmentVariablesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1291
|
+
_id: string;
|
|
1292
|
+
_infinite?: boolean;
|
|
1293
|
+
tags?: ReadonlyArray<string>;
|
|
1294
|
+
}]>, "queryFn"> & {
|
|
1295
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").EnvironmentVariables, [Pick<Options<GetNodeEnvironmentVariablesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1296
|
+
_id: string;
|
|
1297
|
+
_infinite?: boolean;
|
|
1298
|
+
tags?: ReadonlyArray<string>;
|
|
1299
|
+
}], never> | undefined;
|
|
1300
|
+
} & {
|
|
1301
|
+
queryKey: [Pick<Options<GetNodeEnvironmentVariablesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1302
|
+
_id: string;
|
|
1303
|
+
_infinite?: boolean;
|
|
1304
|
+
tags?: ReadonlyArray<string>;
|
|
1305
|
+
}] & {
|
|
1306
|
+
[dataTagSymbol]: import("../types.gen").EnvironmentVariables;
|
|
1307
|
+
[dataTagErrorSymbol]: Error;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1282
1310
|
/**
|
|
1283
1311
|
* Request a signed upload URL to upload source code zip files.
|
|
1284
1312
|
*/
|
|
@@ -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, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getGraphOverview, getProjectOverview, getPublicInvite, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints } from '../sdk.gen';
|
|
4
|
+
import { checkSubdomainUniqueness, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getGraphOverview, getNodeEnvironmentVariables, getProjectOverview, getPublicInvite, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints } 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) {
|
|
@@ -1350,6 +1350,24 @@ export const requestSignedDownloadUrlOptions = (options) => {
|
|
|
1350
1350
|
queryKey: requestSignedDownloadUrlQueryKey(options)
|
|
1351
1351
|
});
|
|
1352
1352
|
};
|
|
1353
|
+
export const getNodeEnvironmentVariablesQueryKey = (options) => createQueryKey('getNodeEnvironmentVariables', options);
|
|
1354
|
+
/**
|
|
1355
|
+
* Returns a list of environment variables attached to the node.
|
|
1356
|
+
*/
|
|
1357
|
+
export const getNodeEnvironmentVariablesOptions = (options) => {
|
|
1358
|
+
return queryOptions({
|
|
1359
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1360
|
+
const { data } = await getNodeEnvironmentVariables({
|
|
1361
|
+
...options,
|
|
1362
|
+
...queryKey[0],
|
|
1363
|
+
signal,
|
|
1364
|
+
throwOnError: true
|
|
1365
|
+
});
|
|
1366
|
+
return data;
|
|
1367
|
+
},
|
|
1368
|
+
queryKey: getNodeEnvironmentVariablesQueryKey(options)
|
|
1369
|
+
});
|
|
1370
|
+
};
|
|
1353
1371
|
/**
|
|
1354
1372
|
* Request a signed upload URL to upload source code zip files.
|
|
1355
1373
|
*/
|
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, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNeonConnectionUriData, FetchNeonConnectionUriErrors, FetchNeonConnectionUriResponses, FetchNeonOrganizationsData, FetchNeonOrganizationsErrors, FetchNeonOrganizationsResponses, FetchNeonRegionsData, FetchNeonRegionsErrors, FetchNeonRegionsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesM2mData, GetEnvironmentVariablesM2mErrors, GetEnvironmentVariablesM2mResponses, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, 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, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, 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, ViewBlueprintsResponses } from './types.gen';
|
|
2
|
+
import type { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNeonConnectionUriData, FetchNeonConnectionUriErrors, FetchNeonConnectionUriResponses, FetchNeonOrganizationsData, FetchNeonOrganizationsErrors, FetchNeonOrganizationsResponses, FetchNeonRegionsData, FetchNeonRegionsErrors, FetchNeonRegionsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesM2mData, GetEnvironmentVariablesM2mErrors, GetEnvironmentVariablesM2mResponses, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetNodeEnvironmentVariablesData, GetNodeEnvironmentVariablesErrors, GetNodeEnvironmentVariablesResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, 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, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, 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, 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
|
|
@@ -252,6 +252,10 @@ export declare const deployVersion: <ThrowOnError extends boolean = false>(optio
|
|
|
252
252
|
* Request a signed download URL to download source code zip files.
|
|
253
253
|
*/
|
|
254
254
|
export declare const requestSignedDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<RequestSignedDownloadUrlData, ThrowOnError>) => import("./client").RequestResult<RequestSignedDownloadUrlResponses, RequestSignedDownloadUrlErrors, ThrowOnError, "fields">;
|
|
255
|
+
/**
|
|
256
|
+
* Returns a list of environment variables attached to the node.
|
|
257
|
+
*/
|
|
258
|
+
export declare const getNodeEnvironmentVariables: <ThrowOnError extends boolean = false>(options: Options<GetNodeEnvironmentVariablesData, ThrowOnError>) => import("./client").RequestResult<GetNodeEnvironmentVariablesResponses, GetNodeEnvironmentVariablesErrors, ThrowOnError, "fields">;
|
|
255
259
|
/**
|
|
256
260
|
* Request a signed upload URL to upload source code zip files.
|
|
257
261
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -23,7 +23,7 @@ export const getEnvironmentVariablesM2M = (options) => {
|
|
|
23
23
|
type: 'http'
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
|
-
url: '/m2m/environment/{
|
|
26
|
+
url: '/m2m/environment/{environmentUUID}/variables',
|
|
27
27
|
...options
|
|
28
28
|
});
|
|
29
29
|
};
|
|
@@ -971,6 +971,21 @@ export const requestSignedDownloadUrl = (options) => {
|
|
|
971
971
|
...options
|
|
972
972
|
});
|
|
973
973
|
};
|
|
974
|
+
/**
|
|
975
|
+
* Returns a list of environment variables attached to the node.
|
|
976
|
+
*/
|
|
977
|
+
export const getNodeEnvironmentVariables = (options) => {
|
|
978
|
+
return (options.client ?? client).get({
|
|
979
|
+
security: [
|
|
980
|
+
{
|
|
981
|
+
scheme: 'bearer',
|
|
982
|
+
type: 'http'
|
|
983
|
+
}
|
|
984
|
+
],
|
|
985
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/variables',
|
|
986
|
+
...options
|
|
987
|
+
});
|
|
988
|
+
};
|
|
974
989
|
/**
|
|
975
990
|
* Request a signed upload URL to upload source code zip files.
|
|
976
991
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -464,9 +464,7 @@ export type ContainerNodeProps = {
|
|
|
464
464
|
language?: string;
|
|
465
465
|
framework?: string;
|
|
466
466
|
runtimeVersion?: string;
|
|
467
|
-
env?:
|
|
468
|
-
[key: string]: string;
|
|
469
|
-
};
|
|
467
|
+
env?: Array<string>;
|
|
470
468
|
};
|
|
471
469
|
export type Region = 'europe-west2';
|
|
472
470
|
export type Cpu = '1' | '2';
|
|
@@ -507,9 +505,7 @@ export type FunctionNodeProps = {
|
|
|
507
505
|
entryPoint: string;
|
|
508
506
|
uri?: string;
|
|
509
507
|
installationId?: string;
|
|
510
|
-
env?:
|
|
511
|
-
[key: string]: string;
|
|
512
|
-
};
|
|
508
|
+
env?: Array<string>;
|
|
513
509
|
};
|
|
514
510
|
export type QueueNodeProps = {
|
|
515
511
|
foobar?: string;
|
|
@@ -689,7 +685,7 @@ export type InviteUuid = string;
|
|
|
689
685
|
/**
|
|
690
686
|
* The environment UUID.
|
|
691
687
|
*/
|
|
692
|
-
export type
|
|
688
|
+
export type EnvironmentUuid = string;
|
|
693
689
|
/**
|
|
694
690
|
* The node UUID.
|
|
695
691
|
*/
|
|
@@ -845,14 +841,14 @@ export type GetServiceHealthResponses = {
|
|
|
845
841
|
export type GetServiceHealthResponse = GetServiceHealthResponses[keyof GetServiceHealthResponses];
|
|
846
842
|
export type GetEnvironmentVariablesM2mData = {
|
|
847
843
|
body?: never;
|
|
848
|
-
path
|
|
849
|
-
query: {
|
|
844
|
+
path: {
|
|
850
845
|
/**
|
|
851
846
|
* The environment UUID.
|
|
852
847
|
*/
|
|
853
|
-
|
|
848
|
+
environmentUUID: string;
|
|
854
849
|
};
|
|
855
|
-
|
|
850
|
+
query?: never;
|
|
851
|
+
url: '/m2m/environment/{environmentUUID}/variables';
|
|
856
852
|
};
|
|
857
853
|
export type GetEnvironmentVariablesM2mErrors = {
|
|
858
854
|
/**
|
|
@@ -3405,6 +3401,59 @@ export type RequestSignedDownloadUrlResponses = {
|
|
|
3405
3401
|
200: SignedUrlDownloadResponse;
|
|
3406
3402
|
};
|
|
3407
3403
|
export type RequestSignedDownloadUrlResponse = RequestSignedDownloadUrlResponses[keyof RequestSignedDownloadUrlResponses];
|
|
3404
|
+
export type GetNodeEnvironmentVariablesData = {
|
|
3405
|
+
body?: never;
|
|
3406
|
+
path: {
|
|
3407
|
+
/**
|
|
3408
|
+
* The space handle. This must be globally unique.
|
|
3409
|
+
*/
|
|
3410
|
+
spaceHandle: string;
|
|
3411
|
+
/**
|
|
3412
|
+
* A project name. This must be unique to a space.
|
|
3413
|
+
*/
|
|
3414
|
+
projectHandle: string;
|
|
3415
|
+
/**
|
|
3416
|
+
* An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
|
|
3417
|
+
*/
|
|
3418
|
+
environmentHandle: string;
|
|
3419
|
+
/**
|
|
3420
|
+
* A version number with in an environment.
|
|
3421
|
+
*/
|
|
3422
|
+
version: string;
|
|
3423
|
+
/**
|
|
3424
|
+
* The node ID this source ZIP is associated with.
|
|
3425
|
+
*/
|
|
3426
|
+
nodeUUID: string;
|
|
3427
|
+
};
|
|
3428
|
+
query?: never;
|
|
3429
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/variables';
|
|
3430
|
+
};
|
|
3431
|
+
export type GetNodeEnvironmentVariablesErrors = {
|
|
3432
|
+
/**
|
|
3433
|
+
* Invalid request parameters.
|
|
3434
|
+
*/
|
|
3435
|
+
400: ErrorResponse;
|
|
3436
|
+
/**
|
|
3437
|
+
* Unauthorised user.
|
|
3438
|
+
*/
|
|
3439
|
+
401: ErrorResponse;
|
|
3440
|
+
/**
|
|
3441
|
+
* Invalid credentials.
|
|
3442
|
+
*/
|
|
3443
|
+
403: ErrorResponse;
|
|
3444
|
+
/**
|
|
3445
|
+
* Unexpected error.
|
|
3446
|
+
*/
|
|
3447
|
+
500: ErrorResponse;
|
|
3448
|
+
};
|
|
3449
|
+
export type GetNodeEnvironmentVariablesError = GetNodeEnvironmentVariablesErrors[keyof GetNodeEnvironmentVariablesErrors];
|
|
3450
|
+
export type GetNodeEnvironmentVariablesResponses = {
|
|
3451
|
+
/**
|
|
3452
|
+
* A list of environment variables
|
|
3453
|
+
*/
|
|
3454
|
+
200: EnvironmentVariables;
|
|
3455
|
+
};
|
|
3456
|
+
export type GetNodeEnvironmentVariablesResponse = GetNodeEnvironmentVariablesResponses[keyof GetNodeEnvironmentVariablesResponses];
|
|
3408
3457
|
export type RequestSignedUploadUrlData = {
|
|
3409
3458
|
body?: never;
|
|
3410
3459
|
path: {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -657,7 +657,7 @@ export declare const zContainerNodeProps: z.ZodObject<{
|
|
|
657
657
|
language: z.ZodOptional<z.ZodString>;
|
|
658
658
|
framework: z.ZodOptional<z.ZodString>;
|
|
659
659
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
660
|
-
env: z.ZodOptional<z.
|
|
660
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
661
661
|
}, z.core.$strip>;
|
|
662
662
|
export declare const zCronJobNodeProps: z.ZodObject<{
|
|
663
663
|
cronTab: z.ZodOptional<z.ZodString>;
|
|
@@ -703,7 +703,7 @@ export declare const zFunctionNodeProps: z.ZodObject<{
|
|
|
703
703
|
entryPoint: z.ZodString;
|
|
704
704
|
uri: z.ZodOptional<z.ZodString>;
|
|
705
705
|
installationId: z.ZodOptional<z.ZodString>;
|
|
706
|
-
env: z.ZodOptional<z.
|
|
706
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
707
707
|
}, z.core.$strip>;
|
|
708
708
|
export declare const zQueueNodeProps: z.ZodObject<{
|
|
709
709
|
foobar: z.ZodOptional<z.ZodString>;
|
|
@@ -801,7 +801,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
801
801
|
language: z.ZodOptional<z.ZodString>;
|
|
802
802
|
framework: z.ZodOptional<z.ZodString>;
|
|
803
803
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
804
|
-
env: z.ZodOptional<z.
|
|
804
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
805
805
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
806
806
|
typ: z.ZodLiteral<"cronjob">;
|
|
807
807
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -835,7 +835,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
835
835
|
entryPoint: z.ZodString;
|
|
836
836
|
uri: z.ZodOptional<z.ZodString>;
|
|
837
837
|
installationId: z.ZodOptional<z.ZodString>;
|
|
838
|
-
env: z.ZodOptional<z.
|
|
838
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
839
839
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
840
840
|
typ: z.ZodLiteral<"neondb">;
|
|
841
841
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -971,7 +971,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
971
971
|
language: z.ZodOptional<z.ZodString>;
|
|
972
972
|
framework: z.ZodOptional<z.ZodString>;
|
|
973
973
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
974
|
-
env: z.ZodOptional<z.
|
|
974
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
975
975
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
976
976
|
typ: z.ZodLiteral<"cronjob">;
|
|
977
977
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1005,7 +1005,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
1005
1005
|
entryPoint: z.ZodString;
|
|
1006
1006
|
uri: z.ZodOptional<z.ZodString>;
|
|
1007
1007
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1008
|
-
env: z.ZodOptional<z.
|
|
1008
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1009
1009
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1010
1010
|
typ: z.ZodLiteral<"neondb">;
|
|
1011
1011
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1144,7 +1144,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1144
1144
|
language: z.ZodOptional<z.ZodString>;
|
|
1145
1145
|
framework: z.ZodOptional<z.ZodString>;
|
|
1146
1146
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1147
|
-
env: z.ZodOptional<z.
|
|
1147
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1148
1148
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1149
1149
|
typ: z.ZodLiteral<"cronjob">;
|
|
1150
1150
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1178,7 +1178,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1178
1178
|
entryPoint: z.ZodString;
|
|
1179
1179
|
uri: z.ZodOptional<z.ZodString>;
|
|
1180
1180
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1181
|
-
env: z.ZodOptional<z.
|
|
1181
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1182
1182
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1183
1183
|
typ: z.ZodLiteral<"neondb">;
|
|
1184
1184
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1442,7 +1442,7 @@ export declare const zInviteUuid: z.ZodUUID;
|
|
|
1442
1442
|
/**
|
|
1443
1443
|
* The environment UUID.
|
|
1444
1444
|
*/
|
|
1445
|
-
export declare const
|
|
1445
|
+
export declare const zEnvironmentUuid: z.ZodUUID;
|
|
1446
1446
|
/**
|
|
1447
1447
|
* The node UUID.
|
|
1448
1448
|
*/
|
|
@@ -1617,10 +1617,10 @@ export declare const zGetServiceHealthResponse: z.ZodObject<{
|
|
|
1617
1617
|
}, z.core.$strip>;
|
|
1618
1618
|
export declare const zGetEnvironmentVariablesM2mData: z.ZodObject<{
|
|
1619
1619
|
body: z.ZodOptional<z.ZodNever>;
|
|
1620
|
-
path: z.
|
|
1621
|
-
|
|
1622
|
-
environment: z.ZodUUID;
|
|
1620
|
+
path: z.ZodObject<{
|
|
1621
|
+
environmentUUID: z.ZodUUID;
|
|
1623
1622
|
}, z.core.$strip>;
|
|
1623
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
1624
1624
|
}, z.core.$strip>;
|
|
1625
1625
|
/**
|
|
1626
1626
|
* The environment variables.
|
|
@@ -1784,7 +1784,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1784
1784
|
language: z.ZodOptional<z.ZodString>;
|
|
1785
1785
|
framework: z.ZodOptional<z.ZodString>;
|
|
1786
1786
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1787
|
-
env: z.ZodOptional<z.
|
|
1787
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1788
1788
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1789
1789
|
typ: z.ZodLiteral<"cronjob">;
|
|
1790
1790
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1818,7 +1818,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1818
1818
|
entryPoint: z.ZodString;
|
|
1819
1819
|
uri: z.ZodOptional<z.ZodString>;
|
|
1820
1820
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1821
|
-
env: z.ZodOptional<z.
|
|
1821
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1822
1822
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1823
1823
|
typ: z.ZodLiteral<"neondb">;
|
|
1824
1824
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1956,7 +1956,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1956
1956
|
language: z.ZodOptional<z.ZodString>;
|
|
1957
1957
|
framework: z.ZodOptional<z.ZodString>;
|
|
1958
1958
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1959
|
-
env: z.ZodOptional<z.
|
|
1959
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1960
1960
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1961
1961
|
typ: z.ZodLiteral<"cronjob">;
|
|
1962
1962
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1990,7 +1990,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1990
1990
|
entryPoint: z.ZodString;
|
|
1991
1991
|
uri: z.ZodOptional<z.ZodString>;
|
|
1992
1992
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1993
|
-
env: z.ZodOptional<z.
|
|
1993
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1994
1994
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1995
1995
|
typ: z.ZodLiteral<"neondb">;
|
|
1996
1996
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2145,7 +2145,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2145
2145
|
language: z.ZodOptional<z.ZodString>;
|
|
2146
2146
|
framework: z.ZodOptional<z.ZodString>;
|
|
2147
2147
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2148
|
-
env: z.ZodOptional<z.
|
|
2148
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2149
2149
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2150
2150
|
typ: z.ZodLiteral<"cronjob">;
|
|
2151
2151
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2179,7 +2179,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2179
2179
|
entryPoint: z.ZodString;
|
|
2180
2180
|
uri: z.ZodOptional<z.ZodString>;
|
|
2181
2181
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2182
|
-
env: z.ZodOptional<z.
|
|
2182
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2183
2183
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2184
2184
|
typ: z.ZodLiteral<"neondb">;
|
|
2185
2185
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2315,7 +2315,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2315
2315
|
language: z.ZodOptional<z.ZodString>;
|
|
2316
2316
|
framework: z.ZodOptional<z.ZodString>;
|
|
2317
2317
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2318
|
-
env: z.ZodOptional<z.
|
|
2318
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2319
2319
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2320
2320
|
typ: z.ZodLiteral<"cronjob">;
|
|
2321
2321
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2349,7 +2349,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2349
2349
|
entryPoint: z.ZodString;
|
|
2350
2350
|
uri: z.ZodOptional<z.ZodString>;
|
|
2351
2351
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2352
|
-
env: z.ZodOptional<z.
|
|
2352
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2353
2353
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2354
2354
|
typ: z.ZodLiteral<"neondb">;
|
|
2355
2355
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2797,7 +2797,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2797
2797
|
language: z.ZodOptional<z.ZodString>;
|
|
2798
2798
|
framework: z.ZodOptional<z.ZodString>;
|
|
2799
2799
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2800
|
-
env: z.ZodOptional<z.
|
|
2800
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2801
2801
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2802
2802
|
typ: z.ZodLiteral<"cronjob">;
|
|
2803
2803
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2831,7 +2831,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2831
2831
|
entryPoint: z.ZodString;
|
|
2832
2832
|
uri: z.ZodOptional<z.ZodString>;
|
|
2833
2833
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2834
|
-
env: z.ZodOptional<z.
|
|
2834
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2835
2835
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2836
2836
|
typ: z.ZodLiteral<"neondb">;
|
|
2837
2837
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3705,7 +3705,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3705
3705
|
language: z.ZodOptional<z.ZodString>;
|
|
3706
3706
|
framework: z.ZodOptional<z.ZodString>;
|
|
3707
3707
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
3708
|
-
env: z.ZodOptional<z.
|
|
3708
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3709
3709
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3710
3710
|
typ: z.ZodLiteral<"cronjob">;
|
|
3711
3711
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3739,7 +3739,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3739
3739
|
entryPoint: z.ZodString;
|
|
3740
3740
|
uri: z.ZodOptional<z.ZodString>;
|
|
3741
3741
|
installationId: z.ZodOptional<z.ZodString>;
|
|
3742
|
-
env: z.ZodOptional<z.
|
|
3742
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3743
3743
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3744
3744
|
typ: z.ZodLiteral<"neondb">;
|
|
3745
3745
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3877,7 +3877,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3877
3877
|
language: z.ZodOptional<z.ZodString>;
|
|
3878
3878
|
framework: z.ZodOptional<z.ZodString>;
|
|
3879
3879
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
3880
|
-
env: z.ZodOptional<z.
|
|
3880
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3881
3881
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3882
3882
|
typ: z.ZodLiteral<"cronjob">;
|
|
3883
3883
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3911,7 +3911,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3911
3911
|
entryPoint: z.ZodString;
|
|
3912
3912
|
uri: z.ZodOptional<z.ZodString>;
|
|
3913
3913
|
installationId: z.ZodOptional<z.ZodString>;
|
|
3914
|
-
env: z.ZodOptional<z.
|
|
3914
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3915
3915
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3916
3916
|
typ: z.ZodLiteral<"neondb">;
|
|
3917
3917
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4001,6 +4001,28 @@ export declare const zRequestSignedDownloadUrlData: z.ZodObject<{
|
|
|
4001
4001
|
export declare const zRequestSignedDownloadUrlResponse: z.ZodObject<{
|
|
4002
4002
|
signedUrl: z.ZodString;
|
|
4003
4003
|
}, z.core.$strip>;
|
|
4004
|
+
export declare const zGetNodeEnvironmentVariablesData: z.ZodObject<{
|
|
4005
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4006
|
+
path: z.ZodObject<{
|
|
4007
|
+
spaceHandle: z.ZodString;
|
|
4008
|
+
projectHandle: z.ZodString;
|
|
4009
|
+
environmentHandle: z.ZodString;
|
|
4010
|
+
version: z.ZodString;
|
|
4011
|
+
nodeUUID: z.ZodUUID;
|
|
4012
|
+
}, z.core.$strip>;
|
|
4013
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
4014
|
+
}, z.core.$strip>;
|
|
4015
|
+
/**
|
|
4016
|
+
* A list of environment variables
|
|
4017
|
+
*/
|
|
4018
|
+
export declare const zGetNodeEnvironmentVariablesResponse: z.ZodObject<{
|
|
4019
|
+
vars: z.ZodArray<z.ZodObject<{
|
|
4020
|
+
key: z.ZodString;
|
|
4021
|
+
value: z.ZodString;
|
|
4022
|
+
isExported: z.ZodBoolean;
|
|
4023
|
+
isOutput: z.ZodBoolean;
|
|
4024
|
+
}, z.core.$strip>>;
|
|
4025
|
+
}, z.core.$strip>;
|
|
4004
4026
|
export declare const zRequestSignedUploadUrlData: z.ZodObject<{
|
|
4005
4027
|
body: z.ZodOptional<z.ZodNever>;
|
|
4006
4028
|
path: z.ZodObject<{
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -440,7 +440,7 @@ export const zContainerNodeProps = z.object({
|
|
|
440
440
|
language: z.optional(z.string()),
|
|
441
441
|
framework: z.optional(z.string()),
|
|
442
442
|
runtimeVersion: z.optional(z.string()),
|
|
443
|
-
env: z.optional(z.
|
|
443
|
+
env: z.optional(z.array(z.string()))
|
|
444
444
|
});
|
|
445
445
|
export const zCronJobNodeProps = z.object({
|
|
446
446
|
cronTab: z.optional(z.string())
|
|
@@ -477,7 +477,7 @@ export const zFunctionNodeProps = z.object({
|
|
|
477
477
|
entryPoint: z.string(),
|
|
478
478
|
uri: z.optional(z.string()),
|
|
479
479
|
installationId: z.optional(z.string()),
|
|
480
|
-
env: z.optional(z.
|
|
480
|
+
env: z.optional(z.array(z.string()))
|
|
481
481
|
});
|
|
482
482
|
export const zQueueNodeProps = z.object({
|
|
483
483
|
foobar: z.optional(z.string())
|
|
@@ -673,7 +673,7 @@ export const zInviteUuid = z.uuid();
|
|
|
673
673
|
/**
|
|
674
674
|
* The environment UUID.
|
|
675
675
|
*/
|
|
676
|
-
export const
|
|
676
|
+
export const zEnvironmentUuid = z.uuid();
|
|
677
677
|
/**
|
|
678
678
|
* The node UUID.
|
|
679
679
|
*/
|
|
@@ -830,10 +830,10 @@ export const zGetServiceHealthData = z.object({
|
|
|
830
830
|
export const zGetServiceHealthResponse = zHealthResponse;
|
|
831
831
|
export const zGetEnvironmentVariablesM2mData = z.object({
|
|
832
832
|
body: z.optional(z.never()),
|
|
833
|
-
path: z.
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
833
|
+
path: z.object({
|
|
834
|
+
environmentUUID: z.uuid()
|
|
835
|
+
}),
|
|
836
|
+
query: z.optional(z.never())
|
|
837
837
|
});
|
|
838
838
|
/**
|
|
839
839
|
* The environment variables.
|
|
@@ -1515,6 +1515,21 @@ export const zRequestSignedDownloadUrlData = z.object({
|
|
|
1515
1515
|
* A successfully generated signed url.
|
|
1516
1516
|
*/
|
|
1517
1517
|
export const zRequestSignedDownloadUrlResponse = zSignedUrlDownloadResponse;
|
|
1518
|
+
export const zGetNodeEnvironmentVariablesData = z.object({
|
|
1519
|
+
body: z.optional(z.never()),
|
|
1520
|
+
path: z.object({
|
|
1521
|
+
spaceHandle: z.string(),
|
|
1522
|
+
projectHandle: z.string(),
|
|
1523
|
+
environmentHandle: z.string(),
|
|
1524
|
+
version: z.string(),
|
|
1525
|
+
nodeUUID: z.uuid()
|
|
1526
|
+
}),
|
|
1527
|
+
query: z.optional(z.never())
|
|
1528
|
+
});
|
|
1529
|
+
/**
|
|
1530
|
+
* A list of environment variables
|
|
1531
|
+
*/
|
|
1532
|
+
export const zGetNodeEnvironmentVariablesResponse = zEnvironmentVariables;
|
|
1518
1533
|
export const zRequestSignedUploadUrlData = z.object({
|
|
1519
1534
|
body: z.optional(z.never()),
|
|
1520
1535
|
path: z.object({
|
|
@@ -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, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNeonConnectionUriData, ListUserSpacesData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, 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, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNeonConnectionUriData, ListUserSpacesData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, 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
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").HealthResponse | undefined, Error>;
|
|
@@ -313,6 +313,9 @@ export declare const useDeployVersion: (config?: {
|
|
|
313
313
|
export declare const useRequestSignedDownloadUrl: (options: Omit<RequestSignedDownloadUrlData, "url"> & {
|
|
314
314
|
enabled?: boolean;
|
|
315
315
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SignedUrlDownloadResponse | undefined, Error>;
|
|
316
|
+
export declare const useGetNodeEnvironmentVariables: (options: Omit<GetNodeEnvironmentVariablesData, "url"> & {
|
|
317
|
+
enabled?: boolean;
|
|
318
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").EnvironmentVariables | undefined, Error>;
|
|
316
319
|
export declare const useRequestSignedUploadUrl: (config?: {
|
|
317
320
|
onSuccess?: (data: GetSuccessResponse<RequestSignedUploadUrlResponses>, headers: Headers) => void;
|
|
318
321
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
3
3
|
import { isPromise } from "../util";
|
|
4
4
|
import { useToken } from "../../provider/token-provider";
|
|
5
|
-
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchNeonConnectionUri, listUserSpaces, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, requestSignedUploadUrl, checkSubdomainUniqueness, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
|
|
5
|
+
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchNeonConnectionUri, listUserSpaces, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, 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 };
|
|
@@ -1170,6 +1170,27 @@ export const useRequestSignedDownloadUrl = (options) => {
|
|
|
1170
1170
|
staleTime: 600000
|
|
1171
1171
|
});
|
|
1172
1172
|
};
|
|
1173
|
+
export const useGetNodeEnvironmentVariables = (options) => {
|
|
1174
|
+
const token = useToken();
|
|
1175
|
+
let { enabled, ...rest } = options || { enabled: true };
|
|
1176
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/variables" };
|
|
1177
|
+
const funcer = async () => {
|
|
1178
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
1179
|
+
if (isPromise(token) && !token)
|
|
1180
|
+
return;
|
|
1181
|
+
const res = await getNodeEnvironmentVariables({ ...opts, ...rest, auth });
|
|
1182
|
+
return res.data;
|
|
1183
|
+
};
|
|
1184
|
+
if (!token)
|
|
1185
|
+
enabled = false;
|
|
1186
|
+
return useQuery({
|
|
1187
|
+
queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", options?.path?.nodeUUID, "variables", options.query ?? {}],
|
|
1188
|
+
queryFn: funcer,
|
|
1189
|
+
enabled,
|
|
1190
|
+
retry: false,
|
|
1191
|
+
staleTime: 600000
|
|
1192
|
+
});
|
|
1193
|
+
};
|
|
1173
1194
|
export const useRequestSignedUploadUrl = (config) => {
|
|
1174
1195
|
const token = useToken();
|
|
1175
1196
|
const queryClient = useQueryClient();
|