shoal-web-sdk 1.0.22 → 1.0.24
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 +113 -1
- package/dist/sdk/@tanstack/react-query.gen.js +73 -1
- package/dist/sdk/sdk.gen.d.ts +17 -1
- package/dist/sdk/sdk.gen.js +60 -0
- package/dist/sdk/types.gen.d.ts +231 -6
- package/dist/sdk/zod.gen.d.ts +145 -22
- package/dist/sdk/zod.gen.js +105 -2
- package/dist/tanstack-codegen/generated/generated.d.ts +13 -1
- package/dist/tanstack-codegen/generated/generated.js +85 -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, 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;
|
|
@@ -415,6 +415,90 @@ export declare const listUserInstallationsInfiniteOptions: (options?: Options<Li
|
|
|
415
415
|
[dataTagErrorSymbol]: import("../types.gen").ErrorResponse;
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
|
+
export declare const fetchNeonOrganizationsQueryKey: (options: Options<FetchNeonOrganizationsData>) => [Pick<Options<FetchNeonOrganizationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
419
|
+
_id: string;
|
|
420
|
+
_infinite?: boolean;
|
|
421
|
+
tags?: ReadonlyArray<string>;
|
|
422
|
+
}];
|
|
423
|
+
/**
|
|
424
|
+
* List Neon organizations for the authenticated user.
|
|
425
|
+
*/
|
|
426
|
+
export declare const fetchNeonOrganizationsOptions: (options: Options<FetchNeonOrganizationsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").NeonOrganization[], Error, import("../types.gen").NeonOrganization[], [Pick<Options<FetchNeonOrganizationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
427
|
+
_id: string;
|
|
428
|
+
_infinite?: boolean;
|
|
429
|
+
tags?: ReadonlyArray<string>;
|
|
430
|
+
}]>, "queryFn"> & {
|
|
431
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").NeonOrganization[], [Pick<Options<FetchNeonOrganizationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
432
|
+
_id: string;
|
|
433
|
+
_infinite?: boolean;
|
|
434
|
+
tags?: ReadonlyArray<string>;
|
|
435
|
+
}], never> | undefined;
|
|
436
|
+
} & {
|
|
437
|
+
queryKey: [Pick<Options<FetchNeonOrganizationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
438
|
+
_id: string;
|
|
439
|
+
_infinite?: boolean;
|
|
440
|
+
tags?: ReadonlyArray<string>;
|
|
441
|
+
}] & {
|
|
442
|
+
[dataTagSymbol]: import("../types.gen").NeonOrganization[];
|
|
443
|
+
[dataTagErrorSymbol]: Error;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
export declare const fetchNeonRegionsQueryKey: (options: Options<FetchNeonRegionsData>) => [Pick<Options<FetchNeonRegionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
447
|
+
_id: string;
|
|
448
|
+
_infinite?: boolean;
|
|
449
|
+
tags?: ReadonlyArray<string>;
|
|
450
|
+
}];
|
|
451
|
+
/**
|
|
452
|
+
* List supported Neon regions.
|
|
453
|
+
*/
|
|
454
|
+
export declare const fetchNeonRegionsOptions: (options: Options<FetchNeonRegionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").NeonRegion[], Error, import("../types.gen").NeonRegion[], [Pick<Options<FetchNeonRegionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
455
|
+
_id: string;
|
|
456
|
+
_infinite?: boolean;
|
|
457
|
+
tags?: ReadonlyArray<string>;
|
|
458
|
+
}]>, "queryFn"> & {
|
|
459
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").NeonRegion[], [Pick<Options<FetchNeonRegionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
460
|
+
_id: string;
|
|
461
|
+
_infinite?: boolean;
|
|
462
|
+
tags?: ReadonlyArray<string>;
|
|
463
|
+
}], never> | undefined;
|
|
464
|
+
} & {
|
|
465
|
+
queryKey: [Pick<Options<FetchNeonRegionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
466
|
+
_id: string;
|
|
467
|
+
_infinite?: boolean;
|
|
468
|
+
tags?: ReadonlyArray<string>;
|
|
469
|
+
}] & {
|
|
470
|
+
[dataTagSymbol]: import("../types.gen").NeonRegion[];
|
|
471
|
+
[dataTagErrorSymbol]: Error;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
export declare const fetchNeonConnectionUriQueryKey: (options: Options<FetchNeonConnectionUriData>) => [Pick<Options<FetchNeonConnectionUriData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
475
|
+
_id: string;
|
|
476
|
+
_infinite?: boolean;
|
|
477
|
+
tags?: ReadonlyArray<string>;
|
|
478
|
+
}];
|
|
479
|
+
/**
|
|
480
|
+
* Retrieve a Neon database connection URI.
|
|
481
|
+
*/
|
|
482
|
+
export declare const fetchNeonConnectionUriOptions: (options: Options<FetchNeonConnectionUriData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").NeonConnectionUri, Error, import("../types.gen").NeonConnectionUri, [Pick<Options<FetchNeonConnectionUriData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
483
|
+
_id: string;
|
|
484
|
+
_infinite?: boolean;
|
|
485
|
+
tags?: ReadonlyArray<string>;
|
|
486
|
+
}]>, "queryFn"> & {
|
|
487
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").NeonConnectionUri, [Pick<Options<FetchNeonConnectionUriData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
488
|
+
_id: string;
|
|
489
|
+
_infinite?: boolean;
|
|
490
|
+
tags?: ReadonlyArray<string>;
|
|
491
|
+
}], never> | undefined;
|
|
492
|
+
} & {
|
|
493
|
+
queryKey: [Pick<Options<FetchNeonConnectionUriData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
494
|
+
_id: string;
|
|
495
|
+
_infinite?: boolean;
|
|
496
|
+
tags?: ReadonlyArray<string>;
|
|
497
|
+
}] & {
|
|
498
|
+
[dataTagSymbol]: import("../types.gen").NeonConnectionUri;
|
|
499
|
+
[dataTagErrorSymbol]: Error;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
418
502
|
export declare const listUserSpacesQueryKey: (options?: Options<ListUserSpacesData>) => [Pick<Options<ListUserSpacesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
419
503
|
_id: string;
|
|
420
504
|
_infinite?: boolean;
|
|
@@ -1195,6 +1279,34 @@ export declare const requestSignedDownloadUrlOptions: (options: Options<RequestS
|
|
|
1195
1279
|
[dataTagErrorSymbol]: Error;
|
|
1196
1280
|
};
|
|
1197
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
|
+
};
|
|
1198
1310
|
/**
|
|
1199
1311
|
* Request a signed upload URL to upload source code zip files.
|
|
1200
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, 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) {
|
|
@@ -470,6 +470,60 @@ export const listUserInstallationsInfiniteOptions = (options) => {
|
|
|
470
470
|
queryKey: listUserInstallationsInfiniteQueryKey(options)
|
|
471
471
|
});
|
|
472
472
|
};
|
|
473
|
+
export const fetchNeonOrganizationsQueryKey = (options) => createQueryKey('fetchNeonOrganizations', options);
|
|
474
|
+
/**
|
|
475
|
+
* List Neon organizations for the authenticated user.
|
|
476
|
+
*/
|
|
477
|
+
export const fetchNeonOrganizationsOptions = (options) => {
|
|
478
|
+
return queryOptions({
|
|
479
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
480
|
+
const { data } = await fetchNeonOrganizations({
|
|
481
|
+
...options,
|
|
482
|
+
...queryKey[0],
|
|
483
|
+
signal,
|
|
484
|
+
throwOnError: true
|
|
485
|
+
});
|
|
486
|
+
return data;
|
|
487
|
+
},
|
|
488
|
+
queryKey: fetchNeonOrganizationsQueryKey(options)
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
export const fetchNeonRegionsQueryKey = (options) => createQueryKey('fetchNeonRegions', options);
|
|
492
|
+
/**
|
|
493
|
+
* List supported Neon regions.
|
|
494
|
+
*/
|
|
495
|
+
export const fetchNeonRegionsOptions = (options) => {
|
|
496
|
+
return queryOptions({
|
|
497
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
498
|
+
const { data } = await fetchNeonRegions({
|
|
499
|
+
...options,
|
|
500
|
+
...queryKey[0],
|
|
501
|
+
signal,
|
|
502
|
+
throwOnError: true
|
|
503
|
+
});
|
|
504
|
+
return data;
|
|
505
|
+
},
|
|
506
|
+
queryKey: fetchNeonRegionsQueryKey(options)
|
|
507
|
+
});
|
|
508
|
+
};
|
|
509
|
+
export const fetchNeonConnectionUriQueryKey = (options) => createQueryKey('fetchNeonConnectionUri', options);
|
|
510
|
+
/**
|
|
511
|
+
* Retrieve a Neon database connection URI.
|
|
512
|
+
*/
|
|
513
|
+
export const fetchNeonConnectionUriOptions = (options) => {
|
|
514
|
+
return queryOptions({
|
|
515
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
516
|
+
const { data } = await fetchNeonConnectionUri({
|
|
517
|
+
...options,
|
|
518
|
+
...queryKey[0],
|
|
519
|
+
signal,
|
|
520
|
+
throwOnError: true
|
|
521
|
+
});
|
|
522
|
+
return data;
|
|
523
|
+
},
|
|
524
|
+
queryKey: fetchNeonConnectionUriQueryKey(options)
|
|
525
|
+
});
|
|
526
|
+
};
|
|
473
527
|
export const listUserSpacesQueryKey = (options) => createQueryKey('listUserSpaces', options);
|
|
474
528
|
/**
|
|
475
529
|
* List spaces for the authenticated user with organization details.
|
|
@@ -1296,6 +1350,24 @@ export const requestSignedDownloadUrlOptions = (options) => {
|
|
|
1296
1350
|
queryKey: requestSignedDownloadUrlQueryKey(options)
|
|
1297
1351
|
});
|
|
1298
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
|
+
};
|
|
1299
1371
|
/**
|
|
1300
1372
|
* Request a signed upload URL to upload source code zip files.
|
|
1301
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, 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
|
|
@@ -84,6 +84,18 @@ export declare const listInstallationBranches: <ThrowOnError extends boolean = f
|
|
|
84
84
|
* List GitHub App installations stored for the authenticated user.
|
|
85
85
|
*/
|
|
86
86
|
export declare const listUserInstallations: <ThrowOnError extends boolean = false>(options?: Options<ListUserInstallationsData, ThrowOnError>) => import("./client").RequestResult<ListUserInstallationsResponses, ListUserInstallationsErrors, ThrowOnError, "fields">;
|
|
87
|
+
/**
|
|
88
|
+
* List Neon organizations for the authenticated user.
|
|
89
|
+
*/
|
|
90
|
+
export declare const fetchNeonOrganizations: <ThrowOnError extends boolean = false>(options: Options<FetchNeonOrganizationsData, ThrowOnError>) => import("./client").RequestResult<FetchNeonOrganizationsResponses, FetchNeonOrganizationsErrors, ThrowOnError, "fields">;
|
|
91
|
+
/**
|
|
92
|
+
* List supported Neon regions.
|
|
93
|
+
*/
|
|
94
|
+
export declare const fetchNeonRegions: <ThrowOnError extends boolean = false>(options: Options<FetchNeonRegionsData, ThrowOnError>) => import("./client").RequestResult<FetchNeonRegionsResponses, FetchNeonRegionsErrors, ThrowOnError, "fields">;
|
|
95
|
+
/**
|
|
96
|
+
* Retrieve a Neon database connection URI.
|
|
97
|
+
*/
|
|
98
|
+
export declare const fetchNeonConnectionUri: <ThrowOnError extends boolean = false>(options: Options<FetchNeonConnectionUriData, ThrowOnError>) => import("./client").RequestResult<FetchNeonConnectionUriResponses, FetchNeonConnectionUriErrors, ThrowOnError, "fields">;
|
|
87
99
|
/**
|
|
88
100
|
* List spaces for the authenticated user with organization details.
|
|
89
101
|
*/
|
|
@@ -240,6 +252,10 @@ export declare const deployVersion: <ThrowOnError extends boolean = false>(optio
|
|
|
240
252
|
* Request a signed download URL to download source code zip files.
|
|
241
253
|
*/
|
|
242
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">;
|
|
243
259
|
/**
|
|
244
260
|
* Request a signed upload URL to upload source code zip files.
|
|
245
261
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -315,6 +315,51 @@ export const listUserInstallations = (options) => {
|
|
|
315
315
|
...options
|
|
316
316
|
});
|
|
317
317
|
};
|
|
318
|
+
/**
|
|
319
|
+
* List Neon organizations for the authenticated user.
|
|
320
|
+
*/
|
|
321
|
+
export const fetchNeonOrganizations = (options) => {
|
|
322
|
+
return (options.client ?? client).get({
|
|
323
|
+
security: [
|
|
324
|
+
{
|
|
325
|
+
scheme: 'bearer',
|
|
326
|
+
type: 'http'
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
url: '/auth/neon/organizations',
|
|
330
|
+
...options
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* List supported Neon regions.
|
|
335
|
+
*/
|
|
336
|
+
export const fetchNeonRegions = (options) => {
|
|
337
|
+
return (options.client ?? client).get({
|
|
338
|
+
security: [
|
|
339
|
+
{
|
|
340
|
+
scheme: 'bearer',
|
|
341
|
+
type: 'http'
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
url: '/auth/neon/regions',
|
|
345
|
+
...options
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Retrieve a Neon database connection URI.
|
|
350
|
+
*/
|
|
351
|
+
export const fetchNeonConnectionUri = (options) => {
|
|
352
|
+
return (options.client ?? client).get({
|
|
353
|
+
security: [
|
|
354
|
+
{
|
|
355
|
+
scheme: 'bearer',
|
|
356
|
+
type: 'http'
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
url: '/auth/neon/projects/{projectId}/connection-uri',
|
|
360
|
+
...options
|
|
361
|
+
});
|
|
362
|
+
};
|
|
318
363
|
/**
|
|
319
364
|
* List spaces for the authenticated user with organization details.
|
|
320
365
|
*/
|
|
@@ -926,6 +971,21 @@ export const requestSignedDownloadUrl = (options) => {
|
|
|
926
971
|
...options
|
|
927
972
|
});
|
|
928
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
|
+
};
|
|
929
989
|
/**
|
|
930
990
|
* Request a signed upload URL to upload source code zip files.
|
|
931
991
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -51,6 +51,22 @@ export type ErrorResponse = {
|
|
|
51
51
|
message: string;
|
|
52
52
|
internalCode: ErrorCode;
|
|
53
53
|
};
|
|
54
|
+
export type NeonOrganization = {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
handle: string;
|
|
58
|
+
plan: string;
|
|
59
|
+
};
|
|
60
|
+
export type NeonRegion = {
|
|
61
|
+
region_id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
default: boolean;
|
|
64
|
+
geo_lat: string;
|
|
65
|
+
geo_long: string;
|
|
66
|
+
};
|
|
67
|
+
export type NeonConnectionUri = {
|
|
68
|
+
uri: string;
|
|
69
|
+
};
|
|
54
70
|
export type CreateProject = {
|
|
55
71
|
name: PlainString;
|
|
56
72
|
handle: string;
|
|
@@ -448,9 +464,7 @@ export type ContainerNodeProps = {
|
|
|
448
464
|
language?: string;
|
|
449
465
|
framework?: string;
|
|
450
466
|
runtimeVersion?: string;
|
|
451
|
-
env?:
|
|
452
|
-
[key: string]: string;
|
|
453
|
-
};
|
|
467
|
+
env?: Array<string>;
|
|
454
468
|
};
|
|
455
469
|
export type Region = 'europe-west2';
|
|
456
470
|
export type Cpu = '1' | '2';
|
|
@@ -491,9 +505,7 @@ export type FunctionNodeProps = {
|
|
|
491
505
|
entryPoint: string;
|
|
492
506
|
uri?: string;
|
|
493
507
|
installationId?: string;
|
|
494
|
-
env?:
|
|
495
|
-
[key: string]: string;
|
|
496
|
-
};
|
|
508
|
+
env?: Array<string>;
|
|
497
509
|
};
|
|
498
510
|
export type QueueNodeProps = {
|
|
499
511
|
foobar?: string;
|
|
@@ -686,6 +698,34 @@ export type UploadedFileNameUuid = string;
|
|
|
686
698
|
* A version UUID.
|
|
687
699
|
*/
|
|
688
700
|
export type VersionUuid = string;
|
|
701
|
+
/**
|
|
702
|
+
* The Neon API key for authenticating with the Neon API.
|
|
703
|
+
*/
|
|
704
|
+
export type NeonApiKey = string;
|
|
705
|
+
/**
|
|
706
|
+
* The Neon project ID.
|
|
707
|
+
*/
|
|
708
|
+
export type NeonProjectId = string;
|
|
709
|
+
/**
|
|
710
|
+
* The name of the database.
|
|
711
|
+
*/
|
|
712
|
+
export type NeonDatabaseName = string;
|
|
713
|
+
/**
|
|
714
|
+
* The role (user) name for the connection.
|
|
715
|
+
*/
|
|
716
|
+
export type NeonRoleName = string;
|
|
717
|
+
/**
|
|
718
|
+
* The branch ID to connect to.
|
|
719
|
+
*/
|
|
720
|
+
export type NeonBranchId = string;
|
|
721
|
+
/**
|
|
722
|
+
* The endpoint ID to connect to.
|
|
723
|
+
*/
|
|
724
|
+
export type NeonEndpointId = string;
|
|
725
|
+
/**
|
|
726
|
+
* Whether to use a pooled connection.
|
|
727
|
+
*/
|
|
728
|
+
export type NeonPooled = boolean;
|
|
689
729
|
/**
|
|
690
730
|
* Optional version UUID to exclude from the environment versions response.
|
|
691
731
|
*/
|
|
@@ -1529,6 +1569,138 @@ export type ListUserInstallationsResponses = {
|
|
|
1529
1569
|
200: UserGithubInstallationsResponse;
|
|
1530
1570
|
};
|
|
1531
1571
|
export type ListUserInstallationsResponse = ListUserInstallationsResponses[keyof ListUserInstallationsResponses];
|
|
1572
|
+
export type FetchNeonOrganizationsData = {
|
|
1573
|
+
body?: never;
|
|
1574
|
+
headers: {
|
|
1575
|
+
/**
|
|
1576
|
+
* The Neon API key for authenticating with the Neon API.
|
|
1577
|
+
*/
|
|
1578
|
+
'x-neon-api-key': string;
|
|
1579
|
+
};
|
|
1580
|
+
path?: never;
|
|
1581
|
+
query?: never;
|
|
1582
|
+
url: '/auth/neon/organizations';
|
|
1583
|
+
};
|
|
1584
|
+
export type FetchNeonOrganizationsErrors = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Unauthorised user.
|
|
1587
|
+
*/
|
|
1588
|
+
401: ErrorResponse;
|
|
1589
|
+
/**
|
|
1590
|
+
* Invalid credentials or missing Neon API key.
|
|
1591
|
+
*/
|
|
1592
|
+
403: ErrorResponse;
|
|
1593
|
+
/**
|
|
1594
|
+
* Unexpected error.
|
|
1595
|
+
*/
|
|
1596
|
+
500: ErrorResponse;
|
|
1597
|
+
};
|
|
1598
|
+
export type FetchNeonOrganizationsError = FetchNeonOrganizationsErrors[keyof FetchNeonOrganizationsErrors];
|
|
1599
|
+
export type FetchNeonOrganizationsResponses = {
|
|
1600
|
+
/**
|
|
1601
|
+
* Organizations listed successfully.
|
|
1602
|
+
*/
|
|
1603
|
+
200: Array<NeonOrganization>;
|
|
1604
|
+
};
|
|
1605
|
+
export type FetchNeonOrganizationsResponse = FetchNeonOrganizationsResponses[keyof FetchNeonOrganizationsResponses];
|
|
1606
|
+
export type FetchNeonRegionsData = {
|
|
1607
|
+
body?: never;
|
|
1608
|
+
headers: {
|
|
1609
|
+
/**
|
|
1610
|
+
* The Neon API key for authenticating with the Neon API.
|
|
1611
|
+
*/
|
|
1612
|
+
'x-neon-api-key': string;
|
|
1613
|
+
};
|
|
1614
|
+
path?: never;
|
|
1615
|
+
query?: never;
|
|
1616
|
+
url: '/auth/neon/regions';
|
|
1617
|
+
};
|
|
1618
|
+
export type FetchNeonRegionsErrors = {
|
|
1619
|
+
/**
|
|
1620
|
+
* Unauthorised user.
|
|
1621
|
+
*/
|
|
1622
|
+
401: ErrorResponse;
|
|
1623
|
+
/**
|
|
1624
|
+
* Invalid credentials or missing Neon API key.
|
|
1625
|
+
*/
|
|
1626
|
+
403: ErrorResponse;
|
|
1627
|
+
/**
|
|
1628
|
+
* Unexpected error.
|
|
1629
|
+
*/
|
|
1630
|
+
500: ErrorResponse;
|
|
1631
|
+
};
|
|
1632
|
+
export type FetchNeonRegionsError = FetchNeonRegionsErrors[keyof FetchNeonRegionsErrors];
|
|
1633
|
+
export type FetchNeonRegionsResponses = {
|
|
1634
|
+
/**
|
|
1635
|
+
* Regions listed successfully.
|
|
1636
|
+
*/
|
|
1637
|
+
200: Array<NeonRegion>;
|
|
1638
|
+
};
|
|
1639
|
+
export type FetchNeonRegionsResponse = FetchNeonRegionsResponses[keyof FetchNeonRegionsResponses];
|
|
1640
|
+
export type FetchNeonConnectionUriData = {
|
|
1641
|
+
body?: never;
|
|
1642
|
+
headers: {
|
|
1643
|
+
/**
|
|
1644
|
+
* The Neon API key for authenticating with the Neon API.
|
|
1645
|
+
*/
|
|
1646
|
+
'x-neon-api-key': string;
|
|
1647
|
+
};
|
|
1648
|
+
path: {
|
|
1649
|
+
/**
|
|
1650
|
+
* The Neon project ID.
|
|
1651
|
+
*/
|
|
1652
|
+
projectId: string;
|
|
1653
|
+
};
|
|
1654
|
+
query: {
|
|
1655
|
+
/**
|
|
1656
|
+
* The name of the database.
|
|
1657
|
+
*/
|
|
1658
|
+
databaseName: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* The role (user) name for the connection.
|
|
1661
|
+
*/
|
|
1662
|
+
roleName: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* The branch ID to connect to.
|
|
1665
|
+
*/
|
|
1666
|
+
branchId?: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* The endpoint ID to connect to.
|
|
1669
|
+
*/
|
|
1670
|
+
endpointId?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Whether to use a pooled connection.
|
|
1673
|
+
*/
|
|
1674
|
+
pooled?: boolean;
|
|
1675
|
+
};
|
|
1676
|
+
url: '/auth/neon/projects/{projectId}/connection-uri';
|
|
1677
|
+
};
|
|
1678
|
+
export type FetchNeonConnectionUriErrors = {
|
|
1679
|
+
/**
|
|
1680
|
+
* Missing required query parameters.
|
|
1681
|
+
*/
|
|
1682
|
+
400: ErrorResponse;
|
|
1683
|
+
/**
|
|
1684
|
+
* Unauthorised user.
|
|
1685
|
+
*/
|
|
1686
|
+
401: ErrorResponse;
|
|
1687
|
+
/**
|
|
1688
|
+
* Invalid credentials or missing Neon API key.
|
|
1689
|
+
*/
|
|
1690
|
+
403: ErrorResponse;
|
|
1691
|
+
/**
|
|
1692
|
+
* Unexpected error.
|
|
1693
|
+
*/
|
|
1694
|
+
500: ErrorResponse;
|
|
1695
|
+
};
|
|
1696
|
+
export type FetchNeonConnectionUriError = FetchNeonConnectionUriErrors[keyof FetchNeonConnectionUriErrors];
|
|
1697
|
+
export type FetchNeonConnectionUriResponses = {
|
|
1698
|
+
/**
|
|
1699
|
+
* Connection URI retrieved successfully.
|
|
1700
|
+
*/
|
|
1701
|
+
200: NeonConnectionUri;
|
|
1702
|
+
};
|
|
1703
|
+
export type FetchNeonConnectionUriResponse = FetchNeonConnectionUriResponses[keyof FetchNeonConnectionUriResponses];
|
|
1532
1704
|
export type ListUserSpacesData = {
|
|
1533
1705
|
body?: never;
|
|
1534
1706
|
path?: never;
|
|
@@ -3229,6 +3401,59 @@ export type RequestSignedDownloadUrlResponses = {
|
|
|
3229
3401
|
200: SignedUrlDownloadResponse;
|
|
3230
3402
|
};
|
|
3231
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];
|
|
3232
3457
|
export type RequestSignedUploadUrlData = {
|
|
3233
3458
|
body?: never;
|
|
3234
3459
|
path: {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -96,6 +96,22 @@ export declare const zErrorResponse: z.ZodObject<{
|
|
|
96
96
|
IDENTITY_NOT_FOUND: "IDENTITY_NOT_FOUND";
|
|
97
97
|
}>;
|
|
98
98
|
}, z.core.$strip>;
|
|
99
|
+
export declare const zNeonOrganization: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
handle: z.ZodString;
|
|
103
|
+
plan: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export declare const zNeonRegion: z.ZodObject<{
|
|
106
|
+
region_id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
default: z.ZodBoolean;
|
|
109
|
+
geo_lat: z.ZodString;
|
|
110
|
+
geo_long: z.ZodString;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const zNeonConnectionUri: z.ZodObject<{
|
|
113
|
+
uri: z.ZodString;
|
|
114
|
+
}, z.core.$strip>;
|
|
99
115
|
export declare const zCreateProject: z.ZodObject<{
|
|
100
116
|
name: z.ZodString;
|
|
101
117
|
handle: z.ZodString;
|
|
@@ -641,7 +657,7 @@ export declare const zContainerNodeProps: z.ZodObject<{
|
|
|
641
657
|
language: z.ZodOptional<z.ZodString>;
|
|
642
658
|
framework: z.ZodOptional<z.ZodString>;
|
|
643
659
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
644
|
-
env: z.ZodOptional<z.
|
|
660
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
645
661
|
}, z.core.$strip>;
|
|
646
662
|
export declare const zCronJobNodeProps: z.ZodObject<{
|
|
647
663
|
cronTab: z.ZodOptional<z.ZodString>;
|
|
@@ -687,7 +703,7 @@ export declare const zFunctionNodeProps: z.ZodObject<{
|
|
|
687
703
|
entryPoint: z.ZodString;
|
|
688
704
|
uri: z.ZodOptional<z.ZodString>;
|
|
689
705
|
installationId: z.ZodOptional<z.ZodString>;
|
|
690
|
-
env: z.ZodOptional<z.
|
|
706
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
691
707
|
}, z.core.$strip>;
|
|
692
708
|
export declare const zQueueNodeProps: z.ZodObject<{
|
|
693
709
|
foobar: z.ZodOptional<z.ZodString>;
|
|
@@ -785,7 +801,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
785
801
|
language: z.ZodOptional<z.ZodString>;
|
|
786
802
|
framework: z.ZodOptional<z.ZodString>;
|
|
787
803
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
788
|
-
env: z.ZodOptional<z.
|
|
804
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
789
805
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
790
806
|
typ: z.ZodLiteral<"cronjob">;
|
|
791
807
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -819,7 +835,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
819
835
|
entryPoint: z.ZodString;
|
|
820
836
|
uri: z.ZodOptional<z.ZodString>;
|
|
821
837
|
installationId: z.ZodOptional<z.ZodString>;
|
|
822
|
-
env: z.ZodOptional<z.
|
|
838
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
823
839
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
824
840
|
typ: z.ZodLiteral<"neondb">;
|
|
825
841
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -955,7 +971,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
955
971
|
language: z.ZodOptional<z.ZodString>;
|
|
956
972
|
framework: z.ZodOptional<z.ZodString>;
|
|
957
973
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
958
|
-
env: z.ZodOptional<z.
|
|
974
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
959
975
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
960
976
|
typ: z.ZodLiteral<"cronjob">;
|
|
961
977
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -989,7 +1005,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
989
1005
|
entryPoint: z.ZodString;
|
|
990
1006
|
uri: z.ZodOptional<z.ZodString>;
|
|
991
1007
|
installationId: z.ZodOptional<z.ZodString>;
|
|
992
|
-
env: z.ZodOptional<z.
|
|
1008
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
993
1009
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
994
1010
|
typ: z.ZodLiteral<"neondb">;
|
|
995
1011
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1128,7 +1144,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1128
1144
|
language: z.ZodOptional<z.ZodString>;
|
|
1129
1145
|
framework: z.ZodOptional<z.ZodString>;
|
|
1130
1146
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1131
|
-
env: z.ZodOptional<z.
|
|
1147
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1132
1148
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1133
1149
|
typ: z.ZodLiteral<"cronjob">;
|
|
1134
1150
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1162,7 +1178,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1162
1178
|
entryPoint: z.ZodString;
|
|
1163
1179
|
uri: z.ZodOptional<z.ZodString>;
|
|
1164
1180
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
env: z.ZodOptional<z.
|
|
1181
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1166
1182
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1167
1183
|
typ: z.ZodLiteral<"neondb">;
|
|
1168
1184
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1439,6 +1455,34 @@ export declare const zUploadedFileNameUuid: z.ZodUUID;
|
|
|
1439
1455
|
* A version UUID.
|
|
1440
1456
|
*/
|
|
1441
1457
|
export declare const zVersionUuid: z.ZodUUID;
|
|
1458
|
+
/**
|
|
1459
|
+
* The Neon API key for authenticating with the Neon API.
|
|
1460
|
+
*/
|
|
1461
|
+
export declare const zNeonApiKey: z.ZodString;
|
|
1462
|
+
/**
|
|
1463
|
+
* The Neon project ID.
|
|
1464
|
+
*/
|
|
1465
|
+
export declare const zNeonProjectId: z.ZodString;
|
|
1466
|
+
/**
|
|
1467
|
+
* The name of the database.
|
|
1468
|
+
*/
|
|
1469
|
+
export declare const zNeonDatabaseName: z.ZodString;
|
|
1470
|
+
/**
|
|
1471
|
+
* The role (user) name for the connection.
|
|
1472
|
+
*/
|
|
1473
|
+
export declare const zNeonRoleName: z.ZodString;
|
|
1474
|
+
/**
|
|
1475
|
+
* The branch ID to connect to.
|
|
1476
|
+
*/
|
|
1477
|
+
export declare const zNeonBranchId: z.ZodString;
|
|
1478
|
+
/**
|
|
1479
|
+
* The endpoint ID to connect to.
|
|
1480
|
+
*/
|
|
1481
|
+
export declare const zNeonEndpointId: z.ZodString;
|
|
1482
|
+
/**
|
|
1483
|
+
* Whether to use a pooled connection.
|
|
1484
|
+
*/
|
|
1485
|
+
export declare const zNeonPooled: z.ZodBoolean;
|
|
1442
1486
|
/**
|
|
1443
1487
|
* Optional version UUID to exclude from the environment versions response.
|
|
1444
1488
|
*/
|
|
@@ -1740,7 +1784,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1740
1784
|
language: z.ZodOptional<z.ZodString>;
|
|
1741
1785
|
framework: z.ZodOptional<z.ZodString>;
|
|
1742
1786
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1743
|
-
env: z.ZodOptional<z.
|
|
1787
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1744
1788
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1745
1789
|
typ: z.ZodLiteral<"cronjob">;
|
|
1746
1790
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1774,7 +1818,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1774
1818
|
entryPoint: z.ZodString;
|
|
1775
1819
|
uri: z.ZodOptional<z.ZodString>;
|
|
1776
1820
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1777
|
-
env: z.ZodOptional<z.
|
|
1821
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1778
1822
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1779
1823
|
typ: z.ZodLiteral<"neondb">;
|
|
1780
1824
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1912,7 +1956,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1912
1956
|
language: z.ZodOptional<z.ZodString>;
|
|
1913
1957
|
framework: z.ZodOptional<z.ZodString>;
|
|
1914
1958
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
1915
|
-
env: z.ZodOptional<z.
|
|
1959
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1916
1960
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1917
1961
|
typ: z.ZodLiteral<"cronjob">;
|
|
1918
1962
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1946,7 +1990,7 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
1946
1990
|
entryPoint: z.ZodString;
|
|
1947
1991
|
uri: z.ZodOptional<z.ZodString>;
|
|
1948
1992
|
installationId: z.ZodOptional<z.ZodString>;
|
|
1949
|
-
env: z.ZodOptional<z.
|
|
1993
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1950
1994
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1951
1995
|
typ: z.ZodLiteral<"neondb">;
|
|
1952
1996
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2101,7 +2145,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2101
2145
|
language: z.ZodOptional<z.ZodString>;
|
|
2102
2146
|
framework: z.ZodOptional<z.ZodString>;
|
|
2103
2147
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2104
|
-
env: z.ZodOptional<z.
|
|
2148
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2105
2149
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2106
2150
|
typ: z.ZodLiteral<"cronjob">;
|
|
2107
2151
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2135,7 +2179,7 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2135
2179
|
entryPoint: z.ZodString;
|
|
2136
2180
|
uri: z.ZodOptional<z.ZodString>;
|
|
2137
2181
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2138
|
-
env: z.ZodOptional<z.
|
|
2182
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2139
2183
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2140
2184
|
typ: z.ZodLiteral<"neondb">;
|
|
2141
2185
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2271,7 +2315,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2271
2315
|
language: z.ZodOptional<z.ZodString>;
|
|
2272
2316
|
framework: z.ZodOptional<z.ZodString>;
|
|
2273
2317
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2274
|
-
env: z.ZodOptional<z.
|
|
2318
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2275
2319
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2276
2320
|
typ: z.ZodLiteral<"cronjob">;
|
|
2277
2321
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2305,7 +2349,7 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
2305
2349
|
entryPoint: z.ZodString;
|
|
2306
2350
|
uri: z.ZodOptional<z.ZodString>;
|
|
2307
2351
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2308
|
-
env: z.ZodOptional<z.
|
|
2352
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2309
2353
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2310
2354
|
typ: z.ZodLiteral<"neondb">;
|
|
2311
2355
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2543,6 +2587,63 @@ export declare const zListUserInstallationsResponse: z.ZodObject<{
|
|
|
2543
2587
|
}, z.core.$strip>>;
|
|
2544
2588
|
next_page: z.ZodOptional<z.ZodInt>;
|
|
2545
2589
|
}, z.core.$strip>;
|
|
2590
|
+
export declare const zFetchNeonOrganizationsData: z.ZodObject<{
|
|
2591
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
2592
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
2593
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
2594
|
+
headers: z.ZodObject<{
|
|
2595
|
+
'x-neon-api-key': z.ZodString;
|
|
2596
|
+
}, z.core.$strip>;
|
|
2597
|
+
}, z.core.$strip>;
|
|
2598
|
+
/**
|
|
2599
|
+
* Organizations listed successfully.
|
|
2600
|
+
*/
|
|
2601
|
+
export declare const zFetchNeonOrganizationsResponse: z.ZodArray<z.ZodObject<{
|
|
2602
|
+
id: z.ZodString;
|
|
2603
|
+
name: z.ZodString;
|
|
2604
|
+
handle: z.ZodString;
|
|
2605
|
+
plan: z.ZodString;
|
|
2606
|
+
}, z.core.$strip>>;
|
|
2607
|
+
export declare const zFetchNeonRegionsData: z.ZodObject<{
|
|
2608
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
2609
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
2610
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
2611
|
+
headers: z.ZodObject<{
|
|
2612
|
+
'x-neon-api-key': z.ZodString;
|
|
2613
|
+
}, z.core.$strip>;
|
|
2614
|
+
}, z.core.$strip>;
|
|
2615
|
+
/**
|
|
2616
|
+
* Regions listed successfully.
|
|
2617
|
+
*/
|
|
2618
|
+
export declare const zFetchNeonRegionsResponse: z.ZodArray<z.ZodObject<{
|
|
2619
|
+
region_id: z.ZodString;
|
|
2620
|
+
name: z.ZodString;
|
|
2621
|
+
default: z.ZodBoolean;
|
|
2622
|
+
geo_lat: z.ZodString;
|
|
2623
|
+
geo_long: z.ZodString;
|
|
2624
|
+
}, z.core.$strip>>;
|
|
2625
|
+
export declare const zFetchNeonConnectionUriData: z.ZodObject<{
|
|
2626
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
2627
|
+
path: z.ZodObject<{
|
|
2628
|
+
projectId: z.ZodString;
|
|
2629
|
+
}, z.core.$strip>;
|
|
2630
|
+
query: z.ZodObject<{
|
|
2631
|
+
databaseName: z.ZodString;
|
|
2632
|
+
roleName: z.ZodString;
|
|
2633
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
2634
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
pooled: z.ZodOptional<z.ZodBoolean>;
|
|
2636
|
+
}, z.core.$strip>;
|
|
2637
|
+
headers: z.ZodObject<{
|
|
2638
|
+
'x-neon-api-key': z.ZodString;
|
|
2639
|
+
}, z.core.$strip>;
|
|
2640
|
+
}, z.core.$strip>;
|
|
2641
|
+
/**
|
|
2642
|
+
* Connection URI retrieved successfully.
|
|
2643
|
+
*/
|
|
2644
|
+
export declare const zFetchNeonConnectionUriResponse: z.ZodObject<{
|
|
2645
|
+
uri: z.ZodString;
|
|
2646
|
+
}, z.core.$strip>;
|
|
2546
2647
|
export declare const zListUserSpacesData: z.ZodObject<{
|
|
2547
2648
|
body: z.ZodOptional<z.ZodNever>;
|
|
2548
2649
|
path: z.ZodOptional<z.ZodNever>;
|
|
@@ -2696,7 +2797,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2696
2797
|
language: z.ZodOptional<z.ZodString>;
|
|
2697
2798
|
framework: z.ZodOptional<z.ZodString>;
|
|
2698
2799
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
2699
|
-
env: z.ZodOptional<z.
|
|
2800
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2700
2801
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2701
2802
|
typ: z.ZodLiteral<"cronjob">;
|
|
2702
2803
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2730,7 +2831,7 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
2730
2831
|
entryPoint: z.ZodString;
|
|
2731
2832
|
uri: z.ZodOptional<z.ZodString>;
|
|
2732
2833
|
installationId: z.ZodOptional<z.ZodString>;
|
|
2733
|
-
env: z.ZodOptional<z.
|
|
2834
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2734
2835
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2735
2836
|
typ: z.ZodLiteral<"neondb">;
|
|
2736
2837
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3604,7 +3705,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3604
3705
|
language: z.ZodOptional<z.ZodString>;
|
|
3605
3706
|
framework: z.ZodOptional<z.ZodString>;
|
|
3606
3707
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
3607
|
-
env: z.ZodOptional<z.
|
|
3708
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3608
3709
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3609
3710
|
typ: z.ZodLiteral<"cronjob">;
|
|
3610
3711
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3638,7 +3739,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
3638
3739
|
entryPoint: z.ZodString;
|
|
3639
3740
|
uri: z.ZodOptional<z.ZodString>;
|
|
3640
3741
|
installationId: z.ZodOptional<z.ZodString>;
|
|
3641
|
-
env: z.ZodOptional<z.
|
|
3742
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3642
3743
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3643
3744
|
typ: z.ZodLiteral<"neondb">;
|
|
3644
3745
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3776,7 +3877,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3776
3877
|
language: z.ZodOptional<z.ZodString>;
|
|
3777
3878
|
framework: z.ZodOptional<z.ZodString>;
|
|
3778
3879
|
runtimeVersion: z.ZodOptional<z.ZodString>;
|
|
3779
|
-
env: z.ZodOptional<z.
|
|
3880
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3780
3881
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3781
3882
|
typ: z.ZodLiteral<"cronjob">;
|
|
3782
3883
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3810,7 +3911,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
3810
3911
|
entryPoint: z.ZodString;
|
|
3811
3912
|
uri: z.ZodOptional<z.ZodString>;
|
|
3812
3913
|
installationId: z.ZodOptional<z.ZodString>;
|
|
3813
|
-
env: z.ZodOptional<z.
|
|
3914
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3814
3915
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3815
3916
|
typ: z.ZodLiteral<"neondb">;
|
|
3816
3917
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3900,6 +4001,28 @@ export declare const zRequestSignedDownloadUrlData: z.ZodObject<{
|
|
|
3900
4001
|
export declare const zRequestSignedDownloadUrlResponse: z.ZodObject<{
|
|
3901
4002
|
signedUrl: z.ZodString;
|
|
3902
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>;
|
|
3903
4026
|
export declare const zRequestSignedUploadUrlData: z.ZodObject<{
|
|
3904
4027
|
body: z.ZodOptional<z.ZodNever>;
|
|
3905
4028
|
path: z.ZodObject<{
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -74,6 +74,22 @@ export const zErrorResponse = z.object({
|
|
|
74
74
|
message: z.string(),
|
|
75
75
|
internalCode: zErrorCode
|
|
76
76
|
});
|
|
77
|
+
export const zNeonOrganization = z.object({
|
|
78
|
+
id: z.string(),
|
|
79
|
+
name: z.string(),
|
|
80
|
+
handle: z.string(),
|
|
81
|
+
plan: z.string()
|
|
82
|
+
});
|
|
83
|
+
export const zNeonRegion = z.object({
|
|
84
|
+
region_id: z.string(),
|
|
85
|
+
name: z.string(),
|
|
86
|
+
default: z.boolean(),
|
|
87
|
+
geo_lat: z.string(),
|
|
88
|
+
geo_long: z.string()
|
|
89
|
+
});
|
|
90
|
+
export const zNeonConnectionUri = z.object({
|
|
91
|
+
uri: z.string()
|
|
92
|
+
});
|
|
77
93
|
export const zCreateProject = z.object({
|
|
78
94
|
name: zPlainString,
|
|
79
95
|
handle: z.string(),
|
|
@@ -424,7 +440,7 @@ export const zContainerNodeProps = z.object({
|
|
|
424
440
|
language: z.optional(z.string()),
|
|
425
441
|
framework: z.optional(z.string()),
|
|
426
442
|
runtimeVersion: z.optional(z.string()),
|
|
427
|
-
env: z.optional(z.
|
|
443
|
+
env: z.optional(z.array(z.string()))
|
|
428
444
|
});
|
|
429
445
|
export const zCronJobNodeProps = z.object({
|
|
430
446
|
cronTab: z.optional(z.string())
|
|
@@ -461,7 +477,7 @@ export const zFunctionNodeProps = z.object({
|
|
|
461
477
|
entryPoint: z.string(),
|
|
462
478
|
uri: z.optional(z.string()),
|
|
463
479
|
installationId: z.optional(z.string()),
|
|
464
|
-
env: z.optional(z.
|
|
480
|
+
env: z.optional(z.array(z.string()))
|
|
465
481
|
});
|
|
466
482
|
export const zQueueNodeProps = z.object({
|
|
467
483
|
foobar: z.optional(z.string())
|
|
@@ -670,6 +686,34 @@ export const zUploadedFileNameUuid = z.uuid();
|
|
|
670
686
|
* A version UUID.
|
|
671
687
|
*/
|
|
672
688
|
export const zVersionUuid = z.uuid();
|
|
689
|
+
/**
|
|
690
|
+
* The Neon API key for authenticating with the Neon API.
|
|
691
|
+
*/
|
|
692
|
+
export const zNeonApiKey = z.string();
|
|
693
|
+
/**
|
|
694
|
+
* The Neon project ID.
|
|
695
|
+
*/
|
|
696
|
+
export const zNeonProjectId = z.string();
|
|
697
|
+
/**
|
|
698
|
+
* The name of the database.
|
|
699
|
+
*/
|
|
700
|
+
export const zNeonDatabaseName = z.string();
|
|
701
|
+
/**
|
|
702
|
+
* The role (user) name for the connection.
|
|
703
|
+
*/
|
|
704
|
+
export const zNeonRoleName = z.string();
|
|
705
|
+
/**
|
|
706
|
+
* The branch ID to connect to.
|
|
707
|
+
*/
|
|
708
|
+
export const zNeonBranchId = z.string();
|
|
709
|
+
/**
|
|
710
|
+
* The endpoint ID to connect to.
|
|
711
|
+
*/
|
|
712
|
+
export const zNeonEndpointId = z.string();
|
|
713
|
+
/**
|
|
714
|
+
* Whether to use a pooled connection.
|
|
715
|
+
*/
|
|
716
|
+
export const zNeonPooled = z.boolean();
|
|
673
717
|
/**
|
|
674
718
|
* Optional version UUID to exclude from the environment versions response.
|
|
675
719
|
*/
|
|
@@ -968,6 +1012,50 @@ export const zListUserInstallationsData = z.object({
|
|
|
968
1012
|
* Installations for the authenticated user.
|
|
969
1013
|
*/
|
|
970
1014
|
export const zListUserInstallationsResponse = zUserGithubInstallationsResponse;
|
|
1015
|
+
export const zFetchNeonOrganizationsData = z.object({
|
|
1016
|
+
body: z.optional(z.never()),
|
|
1017
|
+
path: z.optional(z.never()),
|
|
1018
|
+
query: z.optional(z.never()),
|
|
1019
|
+
headers: z.object({
|
|
1020
|
+
'x-neon-api-key': z.string()
|
|
1021
|
+
})
|
|
1022
|
+
});
|
|
1023
|
+
/**
|
|
1024
|
+
* Organizations listed successfully.
|
|
1025
|
+
*/
|
|
1026
|
+
export const zFetchNeonOrganizationsResponse = z.array(zNeonOrganization);
|
|
1027
|
+
export const zFetchNeonRegionsData = z.object({
|
|
1028
|
+
body: z.optional(z.never()),
|
|
1029
|
+
path: z.optional(z.never()),
|
|
1030
|
+
query: z.optional(z.never()),
|
|
1031
|
+
headers: z.object({
|
|
1032
|
+
'x-neon-api-key': z.string()
|
|
1033
|
+
})
|
|
1034
|
+
});
|
|
1035
|
+
/**
|
|
1036
|
+
* Regions listed successfully.
|
|
1037
|
+
*/
|
|
1038
|
+
export const zFetchNeonRegionsResponse = z.array(zNeonRegion);
|
|
1039
|
+
export const zFetchNeonConnectionUriData = z.object({
|
|
1040
|
+
body: z.optional(z.never()),
|
|
1041
|
+
path: z.object({
|
|
1042
|
+
projectId: z.string()
|
|
1043
|
+
}),
|
|
1044
|
+
query: z.object({
|
|
1045
|
+
databaseName: z.string(),
|
|
1046
|
+
roleName: z.string(),
|
|
1047
|
+
branchId: z.optional(z.string()),
|
|
1048
|
+
endpointId: z.optional(z.string()),
|
|
1049
|
+
pooled: z.optional(z.boolean())
|
|
1050
|
+
}),
|
|
1051
|
+
headers: z.object({
|
|
1052
|
+
'x-neon-api-key': z.string()
|
|
1053
|
+
})
|
|
1054
|
+
});
|
|
1055
|
+
/**
|
|
1056
|
+
* Connection URI retrieved successfully.
|
|
1057
|
+
*/
|
|
1058
|
+
export const zFetchNeonConnectionUriResponse = zNeonConnectionUri;
|
|
971
1059
|
export const zListUserSpacesData = z.object({
|
|
972
1060
|
body: z.optional(z.never()),
|
|
973
1061
|
path: z.optional(z.never()),
|
|
@@ -1427,6 +1515,21 @@ export const zRequestSignedDownloadUrlData = z.object({
|
|
|
1427
1515
|
* A successfully generated signed url.
|
|
1428
1516
|
*/
|
|
1429
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;
|
|
1430
1533
|
export const zRequestSignedUploadUrlData = z.object({
|
|
1431
1534
|
body: z.optional(z.never()),
|
|
1432
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, 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>;
|
|
@@ -92,6 +92,15 @@ export declare const useListInstallationBranches: (options: Omit<ListInstallatio
|
|
|
92
92
|
export declare const useListUserInstallations: (options?: Omit<ListUserInstallationsData, "url"> & {
|
|
93
93
|
enabled?: boolean;
|
|
94
94
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").UserGithubInstallationsResponse | undefined, Error>;
|
|
95
|
+
export declare const useFetchNeonOrganizations: (options: Omit<FetchNeonOrganizationsData, "url"> & {
|
|
96
|
+
enabled?: boolean;
|
|
97
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").NeonOrganization[] | undefined, Error>;
|
|
98
|
+
export declare const useFetchNeonRegions: (options: Omit<FetchNeonRegionsData, "url"> & {
|
|
99
|
+
enabled?: boolean;
|
|
100
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").NeonRegion[] | undefined, Error>;
|
|
101
|
+
export declare const useFetchNeonConnectionUri: (options: Omit<FetchNeonConnectionUriData, "url"> & {
|
|
102
|
+
enabled?: boolean;
|
|
103
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").NeonConnectionUri | undefined, Error>;
|
|
95
104
|
export declare const useListUserSpaces: (options?: Omit<ListUserSpacesData, "url"> & {
|
|
96
105
|
enabled?: boolean;
|
|
97
106
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").UserSpacesResponse | undefined, Error>;
|
|
@@ -304,6 +313,9 @@ export declare const useDeployVersion: (config?: {
|
|
|
304
313
|
export declare const useRequestSignedDownloadUrl: (options: Omit<RequestSignedDownloadUrlData, "url"> & {
|
|
305
314
|
enabled?: boolean;
|
|
306
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>;
|
|
307
319
|
export declare const useRequestSignedUploadUrl: (config?: {
|
|
308
320
|
onSuccess?: (data: GetSuccessResponse<RequestSignedUploadUrlResponses>, headers: Headers) => void;
|
|
309
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, 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 };
|
|
@@ -344,6 +344,69 @@ export const useListUserInstallations = (options) => {
|
|
|
344
344
|
staleTime: 600000
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
|
+
export const useFetchNeonOrganizations = (options) => {
|
|
348
|
+
const token = useToken();
|
|
349
|
+
let { enabled, ...rest } = options || { enabled: true };
|
|
350
|
+
const opts = { throwOnError: true, url: "/auth/neon/organizations" };
|
|
351
|
+
const funcer = async () => {
|
|
352
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
353
|
+
if (isPromise(token) && !token)
|
|
354
|
+
return;
|
|
355
|
+
const res = await fetchNeonOrganizations({ ...opts, ...rest, auth });
|
|
356
|
+
return res.data;
|
|
357
|
+
};
|
|
358
|
+
if (!token)
|
|
359
|
+
enabled = false;
|
|
360
|
+
return useQuery({
|
|
361
|
+
queryKey: ["neon", "organizations", options.query ?? {}],
|
|
362
|
+
queryFn: funcer,
|
|
363
|
+
enabled,
|
|
364
|
+
retry: false,
|
|
365
|
+
staleTime: 600000
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
export const useFetchNeonRegions = (options) => {
|
|
369
|
+
const token = useToken();
|
|
370
|
+
let { enabled, ...rest } = options || { enabled: true };
|
|
371
|
+
const opts = { throwOnError: true, url: "/auth/neon/regions" };
|
|
372
|
+
const funcer = async () => {
|
|
373
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
374
|
+
if (isPromise(token) && !token)
|
|
375
|
+
return;
|
|
376
|
+
const res = await fetchNeonRegions({ ...opts, ...rest, auth });
|
|
377
|
+
return res.data;
|
|
378
|
+
};
|
|
379
|
+
if (!token)
|
|
380
|
+
enabled = false;
|
|
381
|
+
return useQuery({
|
|
382
|
+
queryKey: ["neon", "regions", options.query ?? {}],
|
|
383
|
+
queryFn: funcer,
|
|
384
|
+
enabled,
|
|
385
|
+
retry: false,
|
|
386
|
+
staleTime: 600000
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
export const useFetchNeonConnectionUri = (options) => {
|
|
390
|
+
const token = useToken();
|
|
391
|
+
let { enabled, ...rest } = options || { enabled: true };
|
|
392
|
+
const opts = { throwOnError: true, url: "/auth/neon/projects/{projectId}/connection-uri" };
|
|
393
|
+
const funcer = async () => {
|
|
394
|
+
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
395
|
+
if (isPromise(token) && !token)
|
|
396
|
+
return;
|
|
397
|
+
const res = await fetchNeonConnectionUri({ ...opts, ...rest, auth });
|
|
398
|
+
return res.data;
|
|
399
|
+
};
|
|
400
|
+
if (!token)
|
|
401
|
+
enabled = false;
|
|
402
|
+
return useQuery({
|
|
403
|
+
queryKey: ["neon", "projects", options?.path?.projectId, "connection-uri", options.query ?? {}],
|
|
404
|
+
queryFn: funcer,
|
|
405
|
+
enabled,
|
|
406
|
+
retry: false,
|
|
407
|
+
staleTime: 600000
|
|
408
|
+
});
|
|
409
|
+
};
|
|
347
410
|
export const useListUserSpaces = (options) => {
|
|
348
411
|
const token = useToken();
|
|
349
412
|
let { enabled, ...rest } = options || { enabled: true };
|
|
@@ -1107,6 +1170,27 @@ export const useRequestSignedDownloadUrl = (options) => {
|
|
|
1107
1170
|
staleTime: 600000
|
|
1108
1171
|
});
|
|
1109
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
|
+
};
|
|
1110
1194
|
export const useRequestSignedUploadUrl = (config) => {
|
|
1111
1195
|
const token = useToken();
|
|
1112
1196
|
const queryClient = useQueryClient();
|