shoal-web-sdk 1.0.20 → 1.0.22
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 +26 -1
- package/dist/sdk/@tanstack/react-query.gen.js +16 -1
- package/dist/sdk/sdk.gen.d.ts +2 -1
- package/dist/sdk/sdk.gen.js +12 -0
- package/dist/sdk/types.gen.d.ts +50 -2
- package/dist/sdk/zod.gen.d.ts +141 -0
- package/dist/sdk/zod.gen.js +27 -3
- 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, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, 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, 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';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -36,6 +36,31 @@ export declare const getServiceHealthOptions: (options?: Options<GetServiceHealt
|
|
|
36
36
|
[dataTagErrorSymbol]: Error;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
export declare const getEnvironmentVariablesM2mQueryKey: (options: Options<GetEnvironmentVariablesM2mData>) => [Pick<Options<GetEnvironmentVariablesM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
40
|
+
_id: string;
|
|
41
|
+
_infinite?: boolean;
|
|
42
|
+
tags?: ReadonlyArray<string>;
|
|
43
|
+
}];
|
|
44
|
+
export declare const getEnvironmentVariablesM2mOptions: (options: Options<GetEnvironmentVariablesM2mData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").EnvironmentVariables, Error, import("../types.gen").EnvironmentVariables, [Pick<Options<GetEnvironmentVariablesM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
45
|
+
_id: string;
|
|
46
|
+
_infinite?: boolean;
|
|
47
|
+
tags?: ReadonlyArray<string>;
|
|
48
|
+
}]>, "queryFn"> & {
|
|
49
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").EnvironmentVariables, [Pick<Options<GetEnvironmentVariablesM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
50
|
+
_id: string;
|
|
51
|
+
_infinite?: boolean;
|
|
52
|
+
tags?: ReadonlyArray<string>;
|
|
53
|
+
}], never> | undefined;
|
|
54
|
+
} & {
|
|
55
|
+
queryKey: [Pick<Options<GetEnvironmentVariablesM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
56
|
+
_id: string;
|
|
57
|
+
_infinite?: boolean;
|
|
58
|
+
tags?: ReadonlyArray<string>;
|
|
59
|
+
}] & {
|
|
60
|
+
[dataTagSymbol]: import("../types.gen").EnvironmentVariables;
|
|
61
|
+
[dataTagErrorSymbol]: Error;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
39
64
|
export declare const getVersionM2mQueryKey: (options: Options<GetVersionM2mData>) => [Pick<Options<GetVersionM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
40
65
|
_id: string;
|
|
41
66
|
_infinite?: boolean;
|
|
@@ -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, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, 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, 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';
|
|
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) {
|
|
@@ -44,6 +44,21 @@ export const getServiceHealthOptions = (options) => {
|
|
|
44
44
|
queryKey: getServiceHealthQueryKey(options)
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
export const getEnvironmentVariablesM2mQueryKey = (options) => createQueryKey('getEnvironmentVariablesM2M', options);
|
|
48
|
+
export const getEnvironmentVariablesM2mOptions = (options) => {
|
|
49
|
+
return queryOptions({
|
|
50
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
51
|
+
const { data } = await getEnvironmentVariablesM2M({
|
|
52
|
+
...options,
|
|
53
|
+
...queryKey[0],
|
|
54
|
+
signal,
|
|
55
|
+
throwOnError: true
|
|
56
|
+
});
|
|
57
|
+
return data;
|
|
58
|
+
},
|
|
59
|
+
queryKey: getEnvironmentVariablesM2mQueryKey(options)
|
|
60
|
+
});
|
|
61
|
+
};
|
|
47
62
|
export const getVersionM2mQueryKey = (options) => createQueryKey('getVersionM2M', options);
|
|
48
63
|
export const getVersionM2mOptions = (options) => {
|
|
49
64
|
return queryOptions({
|
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, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, 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, 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';
|
|
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
|
|
@@ -17,6 +17,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
17
17
|
* Get service health.
|
|
18
18
|
*/
|
|
19
19
|
export declare const getServiceHealth: <ThrowOnError extends boolean = false>(options?: Options<GetServiceHealthData, ThrowOnError>) => import("./client").RequestResult<GetServiceHealthResponses, unknown, ThrowOnError, "fields">;
|
|
20
|
+
export declare const getEnvironmentVariablesM2M: <ThrowOnError extends boolean = false>(options: Options<GetEnvironmentVariablesM2mData, ThrowOnError>) => import("./client").RequestResult<GetEnvironmentVariablesM2mResponses, GetEnvironmentVariablesM2mErrors, ThrowOnError, "fields">;
|
|
20
21
|
export declare const getVersionM2M: <ThrowOnError extends boolean = false>(options: Options<GetVersionM2mData, ThrowOnError>) => import("./client").RequestResult<GetVersionM2mResponses, GetVersionM2mErrors, ThrowOnError, "fields">;
|
|
21
22
|
export declare const updateDeploymentStatusM2M: <ThrowOnError extends boolean = false>(options: Options<UpdateDeploymentStatusM2mData, ThrowOnError>) => import("./client").RequestResult<UpdateDeploymentStatusM2mResponses, UpdateDeploymentStatusM2mErrors, ThrowOnError, "fields">;
|
|
22
23
|
/**
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -15,6 +15,18 @@ export const getServiceHealth = (options) => {
|
|
|
15
15
|
...options
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
+
export const getEnvironmentVariablesM2M = (options) => {
|
|
19
|
+
return (options.client ?? client).get({
|
|
20
|
+
security: [
|
|
21
|
+
{
|
|
22
|
+
scheme: 'bearer',
|
|
23
|
+
type: 'http'
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
url: '/m2m/environment/{environment}/variables',
|
|
27
|
+
...options
|
|
28
|
+
});
|
|
29
|
+
};
|
|
18
30
|
export const getVersionM2M = (options) => {
|
|
19
31
|
return (options.client ?? client).get({
|
|
20
32
|
security: [
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -5,9 +5,15 @@ export type PlainString = string;
|
|
|
5
5
|
export type EnvironmentVariables = {
|
|
6
6
|
vars: Array<EnvironmentVariable>;
|
|
7
7
|
};
|
|
8
|
+
export type OutputEnvironmentVariable = {
|
|
9
|
+
environmentVariableKey: string;
|
|
10
|
+
outputValueReference: string;
|
|
11
|
+
};
|
|
8
12
|
export type EnvironmentVariable = {
|
|
9
13
|
key: string;
|
|
10
14
|
value: string;
|
|
15
|
+
isExported: boolean;
|
|
16
|
+
isOutput: boolean;
|
|
11
17
|
};
|
|
12
18
|
export type UpdateBlueprint = {
|
|
13
19
|
name?: string;
|
|
@@ -359,7 +365,9 @@ export type Edge = {
|
|
|
359
365
|
typ: 'network';
|
|
360
366
|
} & NetworkEdgeProps) | ({
|
|
361
367
|
typ: 'route';
|
|
362
|
-
} & RouteEdgeProps)
|
|
368
|
+
} & RouteEdgeProps) | ({
|
|
369
|
+
typ: 'output';
|
|
370
|
+
} & OutputEdgeProps);
|
|
363
371
|
};
|
|
364
372
|
export type NetworkEdgeProps = {
|
|
365
373
|
a?: string;
|
|
@@ -367,6 +375,9 @@ export type NetworkEdgeProps = {
|
|
|
367
375
|
export type RouteEdgeProps = {
|
|
368
376
|
path?: string;
|
|
369
377
|
};
|
|
378
|
+
export type OutputEdgeProps = {
|
|
379
|
+
outputs: Array<OutputEnvironmentVariable>;
|
|
380
|
+
};
|
|
370
381
|
export type Node = {
|
|
371
382
|
id: string;
|
|
372
383
|
name?: PlainString;
|
|
@@ -401,7 +412,7 @@ export type Node = {
|
|
|
401
412
|
typ: 'scheduler';
|
|
402
413
|
} & SchedulerNodeProps);
|
|
403
414
|
};
|
|
404
|
-
export type EdgeType = 'network' | 'route';
|
|
415
|
+
export type EdgeType = 'network' | 'route' | 'output';
|
|
405
416
|
export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'neondb' | 'queue' | 'proxy' | 'vm' | 'scheduler';
|
|
406
417
|
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
407
418
|
export type CommentNodeProps = {
|
|
@@ -788,6 +799,43 @@ export type GetServiceHealthResponses = {
|
|
|
788
799
|
200: HealthResponse;
|
|
789
800
|
};
|
|
790
801
|
export type GetServiceHealthResponse = GetServiceHealthResponses[keyof GetServiceHealthResponses];
|
|
802
|
+
export type GetEnvironmentVariablesM2mData = {
|
|
803
|
+
body?: never;
|
|
804
|
+
path?: never;
|
|
805
|
+
query: {
|
|
806
|
+
/**
|
|
807
|
+
* The environment UUID.
|
|
808
|
+
*/
|
|
809
|
+
environment: string;
|
|
810
|
+
};
|
|
811
|
+
url: '/m2m/environment/{environment}/variables';
|
|
812
|
+
};
|
|
813
|
+
export type GetEnvironmentVariablesM2mErrors = {
|
|
814
|
+
/**
|
|
815
|
+
* Unauthorised user.
|
|
816
|
+
*/
|
|
817
|
+
401: ErrorResponse;
|
|
818
|
+
/**
|
|
819
|
+
* Invalid credentials.
|
|
820
|
+
*/
|
|
821
|
+
403: ErrorResponse;
|
|
822
|
+
/**
|
|
823
|
+
* Related content not found.
|
|
824
|
+
*/
|
|
825
|
+
404: ErrorResponse;
|
|
826
|
+
/**
|
|
827
|
+
* Unexpected error.
|
|
828
|
+
*/
|
|
829
|
+
500: ErrorResponse;
|
|
830
|
+
};
|
|
831
|
+
export type GetEnvironmentVariablesM2mError = GetEnvironmentVariablesM2mErrors[keyof GetEnvironmentVariablesM2mErrors];
|
|
832
|
+
export type GetEnvironmentVariablesM2mResponses = {
|
|
833
|
+
/**
|
|
834
|
+
* The environment variables.
|
|
835
|
+
*/
|
|
836
|
+
200: EnvironmentVariables;
|
|
837
|
+
};
|
|
838
|
+
export type GetEnvironmentVariablesM2mResponse = GetEnvironmentVariablesM2mResponses[keyof GetEnvironmentVariablesM2mResponses];
|
|
791
839
|
export type GetVersionM2mData = {
|
|
792
840
|
body?: never;
|
|
793
841
|
path: {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const zPlainString: z.ZodString;
|
|
3
|
+
export declare const zOutputEnvironmentVariable: z.ZodObject<{
|
|
4
|
+
environmentVariableKey: z.ZodString;
|
|
5
|
+
outputValueReference: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
3
7
|
export declare const zEnvironmentVariable: z.ZodObject<{
|
|
4
8
|
key: z.ZodString;
|
|
5
9
|
value: z.ZodString;
|
|
10
|
+
isExported: z.ZodBoolean;
|
|
11
|
+
isOutput: z.ZodBoolean;
|
|
6
12
|
}, z.core.$strip>;
|
|
7
13
|
export declare const zEnvironmentVariables: z.ZodObject<{
|
|
8
14
|
vars: z.ZodArray<z.ZodObject<{
|
|
9
15
|
key: z.ZodString;
|
|
10
16
|
value: z.ZodString;
|
|
17
|
+
isExported: z.ZodBoolean;
|
|
18
|
+
isOutput: z.ZodBoolean;
|
|
11
19
|
}, z.core.$strip>>;
|
|
12
20
|
}, z.core.$strip>;
|
|
13
21
|
export declare const zUpdateBlueprint: z.ZodObject<{
|
|
@@ -36,6 +44,8 @@ export declare const zBlueprint: z.ZodObject<{
|
|
|
36
44
|
exported: z.ZodArray<z.ZodObject<{
|
|
37
45
|
key: z.ZodString;
|
|
38
46
|
value: z.ZodString;
|
|
47
|
+
isExported: z.ZodBoolean;
|
|
48
|
+
isOutput: z.ZodBoolean;
|
|
39
49
|
}, z.core.$strip>>;
|
|
40
50
|
}, z.core.$strip>;
|
|
41
51
|
export declare const zPlatformTier: z.ZodEnum<{
|
|
@@ -115,6 +125,8 @@ export declare const zPaginatedBlueprints: z.ZodIntersection<z.ZodObject<{
|
|
|
115
125
|
exported: z.ZodArray<z.ZodObject<{
|
|
116
126
|
key: z.ZodString;
|
|
117
127
|
value: z.ZodString;
|
|
128
|
+
isExported: z.ZodBoolean;
|
|
129
|
+
isOutput: z.ZodBoolean;
|
|
118
130
|
}, z.core.$strip>>;
|
|
119
131
|
}, z.core.$strip>>;
|
|
120
132
|
}, z.core.$strip>>;
|
|
@@ -501,9 +513,16 @@ export declare const zNetworkEdgeProps: z.ZodObject<{
|
|
|
501
513
|
export declare const zRouteEdgeProps: z.ZodObject<{
|
|
502
514
|
path: z.ZodOptional<z.ZodString>;
|
|
503
515
|
}, z.core.$strip>;
|
|
516
|
+
export declare const zOutputEdgeProps: z.ZodObject<{
|
|
517
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
518
|
+
environmentVariableKey: z.ZodString;
|
|
519
|
+
outputValueReference: z.ZodString;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
}, z.core.$strip>;
|
|
504
522
|
export declare const zEdgeType: z.ZodEnum<{
|
|
505
523
|
network: "network";
|
|
506
524
|
route: "route";
|
|
525
|
+
output: "output";
|
|
507
526
|
}>;
|
|
508
527
|
export declare const zEdge: z.ZodObject<{
|
|
509
528
|
id: z.ZodUUID;
|
|
@@ -512,6 +531,7 @@ export declare const zEdge: z.ZodObject<{
|
|
|
512
531
|
typ: z.ZodEnum<{
|
|
513
532
|
network: "network";
|
|
514
533
|
route: "route";
|
|
534
|
+
output: "output";
|
|
515
535
|
}>;
|
|
516
536
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
517
537
|
typ: z.ZodLiteral<"network">;
|
|
@@ -521,6 +541,13 @@ export declare const zEdge: z.ZodObject<{
|
|
|
521
541
|
typ: z.ZodLiteral<"route">;
|
|
522
542
|
}, z.core.$strip>, z.ZodObject<{
|
|
523
543
|
path: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
545
|
+
typ: z.ZodLiteral<"output">;
|
|
546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
548
|
+
environmentVariableKey: z.ZodString;
|
|
549
|
+
outputValueReference: z.ZodString;
|
|
550
|
+
}, z.core.$strip>>;
|
|
524
551
|
}, z.core.$strip>>]>>;
|
|
525
552
|
}, z.core.$strip>;
|
|
526
553
|
export declare const zNodeType: z.ZodEnum<{
|
|
@@ -686,6 +713,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
686
713
|
typ: z.ZodEnum<{
|
|
687
714
|
network: "network";
|
|
688
715
|
route: "route";
|
|
716
|
+
output: "output";
|
|
689
717
|
}>;
|
|
690
718
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
691
719
|
typ: z.ZodLiteral<"network">;
|
|
@@ -695,6 +723,13 @@ export declare const zNode: z.ZodObject<{
|
|
|
695
723
|
typ: z.ZodLiteral<"route">;
|
|
696
724
|
}, z.core.$strip>, z.ZodObject<{
|
|
697
725
|
path: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
727
|
+
typ: z.ZodLiteral<"output">;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
730
|
+
environmentVariableKey: z.ZodString;
|
|
731
|
+
outputValueReference: z.ZodString;
|
|
732
|
+
}, z.core.$strip>>;
|
|
698
733
|
}, z.core.$strip>>]>>;
|
|
699
734
|
}, z.core.$strip>>>;
|
|
700
735
|
typ: z.ZodEnum<{
|
|
@@ -848,6 +883,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
848
883
|
typ: z.ZodEnum<{
|
|
849
884
|
network: "network";
|
|
850
885
|
route: "route";
|
|
886
|
+
output: "output";
|
|
851
887
|
}>;
|
|
852
888
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
853
889
|
typ: z.ZodLiteral<"network">;
|
|
@@ -857,6 +893,13 @@ export declare const zNodes: z.ZodObject<{
|
|
|
857
893
|
typ: z.ZodLiteral<"route">;
|
|
858
894
|
}, z.core.$strip>, z.ZodObject<{
|
|
859
895
|
path: z.ZodOptional<z.ZodString>;
|
|
896
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
897
|
+
typ: z.ZodLiteral<"output">;
|
|
898
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
899
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
900
|
+
environmentVariableKey: z.ZodString;
|
|
901
|
+
outputValueReference: z.ZodString;
|
|
902
|
+
}, z.core.$strip>>;
|
|
860
903
|
}, z.core.$strip>>]>>;
|
|
861
904
|
}, z.core.$strip>>>;
|
|
862
905
|
typ: z.ZodEnum<{
|
|
@@ -1013,6 +1056,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1013
1056
|
typ: z.ZodEnum<{
|
|
1014
1057
|
network: "network";
|
|
1015
1058
|
route: "route";
|
|
1059
|
+
output: "output";
|
|
1016
1060
|
}>;
|
|
1017
1061
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1018
1062
|
typ: z.ZodLiteral<"network">;
|
|
@@ -1022,6 +1066,13 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1022
1066
|
typ: z.ZodLiteral<"route">;
|
|
1023
1067
|
}, z.core.$strip>, z.ZodObject<{
|
|
1024
1068
|
path: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1070
|
+
typ: z.ZodLiteral<"output">;
|
|
1071
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1072
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
1073
|
+
environmentVariableKey: z.ZodString;
|
|
1074
|
+
outputValueReference: z.ZodString;
|
|
1075
|
+
}, z.core.$strip>>;
|
|
1025
1076
|
}, z.core.$strip>>]>>;
|
|
1026
1077
|
}, z.core.$strip>>>;
|
|
1027
1078
|
typ: z.ZodEnum<{
|
|
@@ -1520,6 +1571,24 @@ export declare const zGetServiceHealthData: z.ZodObject<{
|
|
|
1520
1571
|
export declare const zGetServiceHealthResponse: z.ZodObject<{
|
|
1521
1572
|
status: z.ZodString;
|
|
1522
1573
|
}, z.core.$strip>;
|
|
1574
|
+
export declare const zGetEnvironmentVariablesM2mData: z.ZodObject<{
|
|
1575
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
1576
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
1577
|
+
query: z.ZodObject<{
|
|
1578
|
+
environment: z.ZodUUID;
|
|
1579
|
+
}, z.core.$strip>;
|
|
1580
|
+
}, z.core.$strip>;
|
|
1581
|
+
/**
|
|
1582
|
+
* The environment variables.
|
|
1583
|
+
*/
|
|
1584
|
+
export declare const zGetEnvironmentVariablesM2mResponse: z.ZodObject<{
|
|
1585
|
+
vars: z.ZodArray<z.ZodObject<{
|
|
1586
|
+
key: z.ZodString;
|
|
1587
|
+
value: z.ZodString;
|
|
1588
|
+
isExported: z.ZodBoolean;
|
|
1589
|
+
isOutput: z.ZodBoolean;
|
|
1590
|
+
}, z.core.$strip>>;
|
|
1591
|
+
}, z.core.$strip>;
|
|
1523
1592
|
export declare const zGetVersionM2mData: z.ZodObject<{
|
|
1524
1593
|
body: z.ZodOptional<z.ZodNever>;
|
|
1525
1594
|
path: z.ZodObject<{
|
|
@@ -1599,6 +1668,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1599
1668
|
typ: z.ZodEnum<{
|
|
1600
1669
|
network: "network";
|
|
1601
1670
|
route: "route";
|
|
1671
|
+
output: "output";
|
|
1602
1672
|
}>;
|
|
1603
1673
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1604
1674
|
typ: z.ZodLiteral<"network">;
|
|
@@ -1608,6 +1678,13 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1608
1678
|
typ: z.ZodLiteral<"route">;
|
|
1609
1679
|
}, z.core.$strip>, z.ZodObject<{
|
|
1610
1680
|
path: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1682
|
+
typ: z.ZodLiteral<"output">;
|
|
1683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1684
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
1685
|
+
environmentVariableKey: z.ZodString;
|
|
1686
|
+
outputValueReference: z.ZodString;
|
|
1687
|
+
}, z.core.$strip>>;
|
|
1611
1688
|
}, z.core.$strip>>]>>;
|
|
1612
1689
|
}, z.core.$strip>>>;
|
|
1613
1690
|
typ: z.ZodEnum<{
|
|
@@ -1763,6 +1840,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1763
1840
|
typ: z.ZodEnum<{
|
|
1764
1841
|
network: "network";
|
|
1765
1842
|
route: "route";
|
|
1843
|
+
output: "output";
|
|
1766
1844
|
}>;
|
|
1767
1845
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1768
1846
|
typ: z.ZodLiteral<"network">;
|
|
@@ -1772,6 +1850,13 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1772
1850
|
typ: z.ZodLiteral<"route">;
|
|
1773
1851
|
}, z.core.$strip>, z.ZodObject<{
|
|
1774
1852
|
path: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1854
|
+
typ: z.ZodLiteral<"output">;
|
|
1855
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1856
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
1857
|
+
environmentVariableKey: z.ZodString;
|
|
1858
|
+
outputValueReference: z.ZodString;
|
|
1859
|
+
}, z.core.$strip>>;
|
|
1775
1860
|
}, z.core.$strip>>]>>;
|
|
1776
1861
|
}, z.core.$strip>>>;
|
|
1777
1862
|
typ: z.ZodEnum<{
|
|
@@ -1944,6 +2029,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
1944
2029
|
typ: z.ZodEnum<{
|
|
1945
2030
|
network: "network";
|
|
1946
2031
|
route: "route";
|
|
2032
|
+
output: "output";
|
|
1947
2033
|
}>;
|
|
1948
2034
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1949
2035
|
typ: z.ZodLiteral<"network">;
|
|
@@ -1953,6 +2039,13 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
1953
2039
|
typ: z.ZodLiteral<"route">;
|
|
1954
2040
|
}, z.core.$strip>, z.ZodObject<{
|
|
1955
2041
|
path: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2043
|
+
typ: z.ZodLiteral<"output">;
|
|
2044
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2045
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2046
|
+
environmentVariableKey: z.ZodString;
|
|
2047
|
+
outputValueReference: z.ZodString;
|
|
2048
|
+
}, z.core.$strip>>;
|
|
1956
2049
|
}, z.core.$strip>>]>>;
|
|
1957
2050
|
}, z.core.$strip>>>;
|
|
1958
2051
|
typ: z.ZodEnum<{
|
|
@@ -2106,6 +2199,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2106
2199
|
typ: z.ZodEnum<{
|
|
2107
2200
|
network: "network";
|
|
2108
2201
|
route: "route";
|
|
2202
|
+
output: "output";
|
|
2109
2203
|
}>;
|
|
2110
2204
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2111
2205
|
typ: z.ZodLiteral<"network">;
|
|
@@ -2115,6 +2209,13 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2115
2209
|
typ: z.ZodLiteral<"route">;
|
|
2116
2210
|
}, z.core.$strip>, z.ZodObject<{
|
|
2117
2211
|
path: z.ZodOptional<z.ZodString>;
|
|
2212
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2213
|
+
typ: z.ZodLiteral<"output">;
|
|
2214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2215
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2216
|
+
environmentVariableKey: z.ZodString;
|
|
2217
|
+
outputValueReference: z.ZodString;
|
|
2218
|
+
}, z.core.$strip>>;
|
|
2118
2219
|
}, z.core.$strip>>]>>;
|
|
2119
2220
|
}, z.core.$strip>>>;
|
|
2120
2221
|
typ: z.ZodEnum<{
|
|
@@ -2523,6 +2624,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2523
2624
|
typ: z.ZodEnum<{
|
|
2524
2625
|
network: "network";
|
|
2525
2626
|
route: "route";
|
|
2627
|
+
output: "output";
|
|
2526
2628
|
}>;
|
|
2527
2629
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2528
2630
|
typ: z.ZodLiteral<"network">;
|
|
@@ -2532,6 +2634,13 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2532
2634
|
typ: z.ZodLiteral<"route">;
|
|
2533
2635
|
}, z.core.$strip>, z.ZodObject<{
|
|
2534
2636
|
path: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2638
|
+
typ: z.ZodLiteral<"output">;
|
|
2639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2640
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2641
|
+
environmentVariableKey: z.ZodString;
|
|
2642
|
+
outputValueReference: z.ZodString;
|
|
2643
|
+
}, z.core.$strip>>;
|
|
2535
2644
|
}, z.core.$strip>>]>>;
|
|
2536
2645
|
}, z.core.$strip>>>;
|
|
2537
2646
|
typ: z.ZodEnum<{
|
|
@@ -2705,6 +2814,8 @@ export declare const zViewBlueprintsResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
2705
2814
|
exported: z.ZodArray<z.ZodObject<{
|
|
2706
2815
|
key: z.ZodString;
|
|
2707
2816
|
value: z.ZodString;
|
|
2817
|
+
isExported: z.ZodBoolean;
|
|
2818
|
+
isOutput: z.ZodBoolean;
|
|
2708
2819
|
}, z.core.$strip>>;
|
|
2709
2820
|
}, z.core.$strip>>;
|
|
2710
2821
|
}, z.core.$strip>>;
|
|
@@ -2732,6 +2843,8 @@ export declare const zGetBlueprintResponse: z.ZodObject<{
|
|
|
2732
2843
|
exported: z.ZodArray<z.ZodObject<{
|
|
2733
2844
|
key: z.ZodString;
|
|
2734
2845
|
value: z.ZodString;
|
|
2846
|
+
isExported: z.ZodBoolean;
|
|
2847
|
+
isOutput: z.ZodBoolean;
|
|
2735
2848
|
}, z.core.$strip>>;
|
|
2736
2849
|
}, z.core.$strip>;
|
|
2737
2850
|
export declare const zCreateSpaceData: z.ZodObject<{
|
|
@@ -3201,6 +3314,8 @@ export declare const zDeleteEnvironmentVariableResponse: z.ZodObject<{
|
|
|
3201
3314
|
vars: z.ZodArray<z.ZodObject<{
|
|
3202
3315
|
key: z.ZodString;
|
|
3203
3316
|
value: z.ZodString;
|
|
3317
|
+
isExported: z.ZodBoolean;
|
|
3318
|
+
isOutput: z.ZodBoolean;
|
|
3204
3319
|
}, z.core.$strip>>;
|
|
3205
3320
|
}, z.core.$strip>;
|
|
3206
3321
|
export declare const zGetEnvironmentVariablesData: z.ZodObject<{
|
|
@@ -3219,12 +3334,16 @@ export declare const zGetEnvironmentVariablesResponse: z.ZodObject<{
|
|
|
3219
3334
|
vars: z.ZodArray<z.ZodObject<{
|
|
3220
3335
|
key: z.ZodString;
|
|
3221
3336
|
value: z.ZodString;
|
|
3337
|
+
isExported: z.ZodBoolean;
|
|
3338
|
+
isOutput: z.ZodBoolean;
|
|
3222
3339
|
}, z.core.$strip>>;
|
|
3223
3340
|
}, z.core.$strip>;
|
|
3224
3341
|
export declare const zUpdateEnvironmentVariableData: z.ZodObject<{
|
|
3225
3342
|
body: z.ZodObject<{
|
|
3226
3343
|
key: z.ZodString;
|
|
3227
3344
|
value: z.ZodString;
|
|
3345
|
+
isExported: z.ZodBoolean;
|
|
3346
|
+
isOutput: z.ZodBoolean;
|
|
3228
3347
|
}, z.core.$strip>;
|
|
3229
3348
|
path: z.ZodObject<{
|
|
3230
3349
|
spaceHandle: z.ZodString;
|
|
@@ -3238,6 +3357,8 @@ export declare const zCreateEnvironmentVariableData: z.ZodObject<{
|
|
|
3238
3357
|
body: z.ZodObject<{
|
|
3239
3358
|
key: z.ZodString;
|
|
3240
3359
|
value: z.ZodString;
|
|
3360
|
+
isExported: z.ZodBoolean;
|
|
3361
|
+
isOutput: z.ZodBoolean;
|
|
3241
3362
|
}, z.core.$strip>;
|
|
3242
3363
|
path: z.ZodObject<{
|
|
3243
3364
|
spaceHandle: z.ZodString;
|
|
@@ -3293,6 +3414,8 @@ export declare const zUpdateBlueprintResponse: z.ZodObject<{
|
|
|
3293
3414
|
exported: z.ZodArray<z.ZodObject<{
|
|
3294
3415
|
key: z.ZodString;
|
|
3295
3416
|
value: z.ZodString;
|
|
3417
|
+
isExported: z.ZodBoolean;
|
|
3418
|
+
isOutput: z.ZodBoolean;
|
|
3296
3419
|
}, z.core.$strip>>;
|
|
3297
3420
|
}, z.core.$strip>;
|
|
3298
3421
|
export declare const zCreateBlueprintData: z.ZodObject<{
|
|
@@ -3326,6 +3449,8 @@ export declare const zCreateBlueprintResponse: z.ZodObject<{
|
|
|
3326
3449
|
exported: z.ZodArray<z.ZodObject<{
|
|
3327
3450
|
key: z.ZodString;
|
|
3328
3451
|
value: z.ZodString;
|
|
3452
|
+
isExported: z.ZodBoolean;
|
|
3453
|
+
isOutput: z.ZodBoolean;
|
|
3329
3454
|
}, z.core.$strip>>;
|
|
3330
3455
|
}, z.core.$strip>;
|
|
3331
3456
|
export declare const zGetVersionData: z.ZodObject<{
|
|
@@ -3407,6 +3532,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3407
3532
|
typ: z.ZodEnum<{
|
|
3408
3533
|
network: "network";
|
|
3409
3534
|
route: "route";
|
|
3535
|
+
output: "output";
|
|
3410
3536
|
}>;
|
|
3411
3537
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3412
3538
|
typ: z.ZodLiteral<"network">;
|
|
@@ -3416,6 +3542,13 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3416
3542
|
typ: z.ZodLiteral<"route">;
|
|
3417
3543
|
}, z.core.$strip>, z.ZodObject<{
|
|
3418
3544
|
path: z.ZodOptional<z.ZodString>;
|
|
3545
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3546
|
+
typ: z.ZodLiteral<"output">;
|
|
3547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3548
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
3549
|
+
environmentVariableKey: z.ZodString;
|
|
3550
|
+
outputValueReference: z.ZodString;
|
|
3551
|
+
}, z.core.$strip>>;
|
|
3419
3552
|
}, z.core.$strip>>]>>;
|
|
3420
3553
|
}, z.core.$strip>>>;
|
|
3421
3554
|
typ: z.ZodEnum<{
|
|
@@ -3571,6 +3704,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3571
3704
|
typ: z.ZodEnum<{
|
|
3572
3705
|
network: "network";
|
|
3573
3706
|
route: "route";
|
|
3707
|
+
output: "output";
|
|
3574
3708
|
}>;
|
|
3575
3709
|
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3576
3710
|
typ: z.ZodLiteral<"network">;
|
|
@@ -3580,6 +3714,13 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3580
3714
|
typ: z.ZodLiteral<"route">;
|
|
3581
3715
|
}, z.core.$strip>, z.ZodObject<{
|
|
3582
3716
|
path: z.ZodOptional<z.ZodString>;
|
|
3717
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3718
|
+
typ: z.ZodLiteral<"output">;
|
|
3719
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3720
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
3721
|
+
environmentVariableKey: z.ZodString;
|
|
3722
|
+
outputValueReference: z.ZodString;
|
|
3723
|
+
}, z.core.$strip>>;
|
|
3583
3724
|
}, z.core.$strip>>]>>;
|
|
3584
3725
|
}, z.core.$strip>>>;
|
|
3585
3726
|
typ: z.ZodEnum<{
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export const zPlainString = z.string().regex(/^[-a-zA-Z0-9 ']+$/);
|
|
4
|
+
export const zOutputEnvironmentVariable = z.object({
|
|
5
|
+
environmentVariableKey: z.string(),
|
|
6
|
+
outputValueReference: z.string()
|
|
7
|
+
});
|
|
4
8
|
export const zEnvironmentVariable = z.object({
|
|
5
9
|
key: z.string(),
|
|
6
|
-
value: z.string()
|
|
10
|
+
value: z.string(),
|
|
11
|
+
isExported: z.boolean(),
|
|
12
|
+
isOutput: z.boolean()
|
|
7
13
|
});
|
|
8
14
|
export const zEnvironmentVariables = z.object({
|
|
9
15
|
vars: z.array(zEnvironmentVariable)
|
|
@@ -323,9 +329,13 @@ export const zNetworkEdgeProps = z.object({
|
|
|
323
329
|
export const zRouteEdgeProps = z.object({
|
|
324
330
|
path: z.optional(z.string())
|
|
325
331
|
});
|
|
332
|
+
export const zOutputEdgeProps = z.object({
|
|
333
|
+
outputs: z.array(zOutputEnvironmentVariable)
|
|
334
|
+
});
|
|
326
335
|
export const zEdgeType = z.enum([
|
|
327
336
|
'network',
|
|
328
|
-
'route'
|
|
337
|
+
'route',
|
|
338
|
+
'output'
|
|
329
339
|
]);
|
|
330
340
|
export const zEdge = z.object({
|
|
331
341
|
id: z.uuid(),
|
|
@@ -338,7 +348,10 @@ export const zEdge = z.object({
|
|
|
338
348
|
}).and(zNetworkEdgeProps),
|
|
339
349
|
z.object({
|
|
340
350
|
typ: z.literal('route')
|
|
341
|
-
}).and(zRouteEdgeProps)
|
|
351
|
+
}).and(zRouteEdgeProps),
|
|
352
|
+
z.object({
|
|
353
|
+
typ: z.literal('output')
|
|
354
|
+
}).and(zOutputEdgeProps)
|
|
342
355
|
]))
|
|
343
356
|
});
|
|
344
357
|
export const zNodeType = z.enum([
|
|
@@ -771,6 +784,17 @@ export const zGetServiceHealthData = z.object({
|
|
|
771
784
|
* Service is healthy!
|
|
772
785
|
*/
|
|
773
786
|
export const zGetServiceHealthResponse = zHealthResponse;
|
|
787
|
+
export const zGetEnvironmentVariablesM2mData = z.object({
|
|
788
|
+
body: z.optional(z.never()),
|
|
789
|
+
path: z.optional(z.never()),
|
|
790
|
+
query: z.object({
|
|
791
|
+
environment: z.uuid()
|
|
792
|
+
})
|
|
793
|
+
});
|
|
794
|
+
/**
|
|
795
|
+
* The environment variables.
|
|
796
|
+
*/
|
|
797
|
+
export const zGetEnvironmentVariablesM2mResponse = zEnvironmentVariables;
|
|
774
798
|
export const zGetVersionM2mData = z.object({
|
|
775
799
|
body: z.optional(z.never()),
|
|
776
800
|
path: z.object({
|