shoal-web-sdk 1.0.36 → 1.0.38
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 +81 -1
- package/dist/sdk/@tanstack/react-query.gen.js +94 -31
- package/dist/sdk/sdk.gen.d.ts +9 -1
- package/dist/sdk/sdk.gen.js +30 -0
- package/dist/sdk/types.gen.d.ts +94 -3
- package/dist/sdk/zod.gen.d.ts +449 -28
- package/dist/sdk/zod.gen.js +59 -4
- package/dist/tanstack-codegen/generated/generated.d.ts +7 -1
- package/dist/tanstack-codegen/generated/generated.js +43 -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, CreateNeonBranchData, CreateNeonBranchError, CreateNeonBranchResponse, CreateNeonDatabaseData, CreateNeonDatabaseError, CreateNeonDatabaseResponse, CreateNeonProjectData, CreateNeonProjectError, CreateNeonProjectM2mData, CreateNeonProjectM2mError, CreateNeonProjectM2mResponse, CreateNeonProjectResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretM2mData, CreateSecretM2mError, CreateSecretM2mResponse, CreateSecretResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeleteNeonDatabaseData, DeleteNeonDatabaseError, DeleteNeonDatabaseResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetGraphOverviewData, GetNodeEnvironmentVariablesData, GetProjectOverviewData, GetPublicInviteData, GetSecretValueData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListNeonBranchesData, ListNeonDatabasesData, ListNeonProjectsData, 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, CreateNeonBranchData, CreateNeonBranchError, CreateNeonBranchResponse, CreateNeonDatabaseData, CreateNeonDatabaseError, CreateNeonDatabaseResponse, CreateNeonProjectData, CreateNeonProjectError, CreateNeonProjectM2mData, CreateNeonProjectM2mError, CreateNeonProjectM2mResponse, CreateNeonProjectResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretM2mData, CreateSecretM2mError, CreateSecretM2mResponse, CreateSecretResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeleteNeonDatabaseData, DeleteNeonDatabaseError, DeleteNeonDatabaseResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNeonConnectionUriData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetBlueprintM2mData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVariablesM2mData, GetEnvironmentVersionsData, GetGraphOverviewData, GetNodeEnvironmentVariablesData, GetProjectOverviewData, GetPublicInviteData, GetSecretValueData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListNeonBranchesData, ListNeonDatabasesData, ListNeonProjectsData, 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, ViewBlueprintsM2mData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -151,10 +151,90 @@ export declare const fetchNodeM2mOptions: (options: Options<FetchNodeM2mData>) =
|
|
|
151
151
|
* Update a node by id with its props for M2M.
|
|
152
152
|
*/
|
|
153
153
|
export declare const updateNodeM2mMutation: (options?: Partial<Options<UpdateNodeM2mData>>) => UseMutationOptions<unknown, UpdateNodeM2mError, Options<UpdateNodeM2mData>>;
|
|
154
|
+
export declare const viewBlueprintsM2mQueryKey: (options?: Options<ViewBlueprintsM2mData>) => [Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
155
|
+
_id: string;
|
|
156
|
+
_infinite?: boolean;
|
|
157
|
+
tags?: ReadonlyArray<string>;
|
|
158
|
+
}];
|
|
159
|
+
/**
|
|
160
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
161
|
+
*/
|
|
162
|
+
export declare const viewBlueprintsM2mOptions: (options?: Options<ViewBlueprintsM2mData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaginatedBlueprintSummaries, Error, import("../types.gen").PaginatedBlueprintSummaries, [Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
163
|
+
_id: string;
|
|
164
|
+
_infinite?: boolean;
|
|
165
|
+
tags?: ReadonlyArray<string>;
|
|
166
|
+
}]>, "queryFn"> & {
|
|
167
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").PaginatedBlueprintSummaries, [Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
168
|
+
_id: string;
|
|
169
|
+
_infinite?: boolean;
|
|
170
|
+
tags?: ReadonlyArray<string>;
|
|
171
|
+
}], never> | undefined;
|
|
172
|
+
} & {
|
|
173
|
+
queryKey: [Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
174
|
+
_id: string;
|
|
175
|
+
_infinite?: boolean;
|
|
176
|
+
tags?: ReadonlyArray<string>;
|
|
177
|
+
}] & {
|
|
178
|
+
[dataTagSymbol]: import("../types.gen").PaginatedBlueprintSummaries;
|
|
179
|
+
[dataTagErrorSymbol]: Error;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export declare const viewBlueprintsM2mInfiniteQueryKey: (options?: Options<ViewBlueprintsM2mData>) => QueryKey<Options<ViewBlueprintsM2mData>>;
|
|
183
|
+
/**
|
|
184
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
185
|
+
*/
|
|
186
|
+
export declare const viewBlueprintsM2mInfiniteOptions: (options?: Options<ViewBlueprintsM2mData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<import("../types.gen").PaginatedBlueprintSummaries, Error, InfiniteData<import("../types.gen").PaginatedBlueprintSummaries, unknown>, QueryKey<Options<ViewBlueprintsM2mData>>, number | Pick<Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
187
|
+
_id: string;
|
|
188
|
+
_infinite?: boolean;
|
|
189
|
+
tags?: ReadonlyArray<string>;
|
|
190
|
+
}, "query" | "body" | "headers" | "path">> & {
|
|
191
|
+
initialData: InfiniteData<import("../types.gen").PaginatedBlueprintSummaries, number | Pick<Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
192
|
+
_id: string;
|
|
193
|
+
_infinite?: boolean;
|
|
194
|
+
tags?: ReadonlyArray<string>;
|
|
195
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<import("../types.gen").PaginatedBlueprintSummaries, number | Pick<Pick<Options<ViewBlueprintsM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
196
|
+
_id: string;
|
|
197
|
+
_infinite?: boolean;
|
|
198
|
+
tags?: ReadonlyArray<string>;
|
|
199
|
+
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
200
|
+
} & {
|
|
201
|
+
queryKey: QueryKey<Options<ViewBlueprintsM2mData>> & {
|
|
202
|
+
[dataTagSymbol]: InfiniteData<import("../types.gen").PaginatedBlueprintSummaries, unknown>;
|
|
203
|
+
[dataTagErrorSymbol]: Error;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
154
206
|
/**
|
|
155
207
|
* Save a reference to a GCP secret that has already been created in Secret Manager.
|
|
156
208
|
*/
|
|
157
209
|
export declare const createSecretM2mMutation: (options?: Partial<Options<CreateSecretM2mData>>) => UseMutationOptions<CreateSecretM2mResponse, CreateSecretM2mError, Options<CreateSecretM2mData>>;
|
|
210
|
+
export declare const getBlueprintM2mQueryKey: (options: Options<GetBlueprintM2mData>) => [Pick<Options<GetBlueprintM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
211
|
+
_id: string;
|
|
212
|
+
_infinite?: boolean;
|
|
213
|
+
tags?: ReadonlyArray<string>;
|
|
214
|
+
}];
|
|
215
|
+
/**
|
|
216
|
+
* Retrieve a blueprint record with its full long description for M2M.
|
|
217
|
+
*/
|
|
218
|
+
export declare const getBlueprintM2mOptions: (options: Options<GetBlueprintM2mData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BlueprintDetail, Error, import("../types.gen").BlueprintDetail, [Pick<Options<GetBlueprintM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
219
|
+
_id: string;
|
|
220
|
+
_infinite?: boolean;
|
|
221
|
+
tags?: ReadonlyArray<string>;
|
|
222
|
+
}]>, "queryFn"> & {
|
|
223
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BlueprintDetail, [Pick<Options<GetBlueprintM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
224
|
+
_id: string;
|
|
225
|
+
_infinite?: boolean;
|
|
226
|
+
tags?: ReadonlyArray<string>;
|
|
227
|
+
}], never> | undefined;
|
|
228
|
+
} & {
|
|
229
|
+
queryKey: [Pick<Options<GetBlueprintM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
230
|
+
_id: string;
|
|
231
|
+
_infinite?: boolean;
|
|
232
|
+
tags?: ReadonlyArray<string>;
|
|
233
|
+
}] & {
|
|
234
|
+
[dataTagSymbol]: import("../types.gen").BlueprintDetail;
|
|
235
|
+
[dataTagErrorSymbol]: Error;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
158
238
|
/**
|
|
159
239
|
* Create a new Neon project for M2M.
|
|
160
240
|
*/
|
|
@@ -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, createNeonBranch, createNeonDatabase, createNeonProject, createNeonProjectM2M, createProject, createSecret, createSecretM2M, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deleteNeonDatabase, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getGraphOverview, getNodeEnvironmentVariables, getProjectOverview, getPublicInvite, getSecretValue, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listNeonBranches, listNeonDatabases, listNeonProjects, 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, createNeonBranch, createNeonDatabase, createNeonProject, createNeonProjectM2M, createProject, createSecret, createSecretM2M, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deleteNeonDatabase, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNeonConnectionUri, fetchNeonOrganizations, fetchNeonRegions, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getBlueprintM2M, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVariablesM2M, getEnvironmentVersions, getGraphOverview, getNodeEnvironmentVariables, getProjectOverview, getPublicInvite, getSecretValue, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listNeonBranches, listNeonDatabases, listNeonProjects, 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, viewBlueprintsM2M } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
6
|
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
7
|
if (infinite) {
|
|
@@ -155,6 +155,81 @@ export const updateNodeM2mMutation = (options) => {
|
|
|
155
155
|
};
|
|
156
156
|
return mutationOptions;
|
|
157
157
|
};
|
|
158
|
+
export const viewBlueprintsM2mQueryKey = (options) => createQueryKey('viewBlueprintsM2M', options);
|
|
159
|
+
/**
|
|
160
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
161
|
+
*/
|
|
162
|
+
export const viewBlueprintsM2mOptions = (options) => {
|
|
163
|
+
return queryOptions({
|
|
164
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
165
|
+
const { data } = await viewBlueprintsM2M({
|
|
166
|
+
...options,
|
|
167
|
+
...queryKey[0],
|
|
168
|
+
signal,
|
|
169
|
+
throwOnError: true
|
|
170
|
+
});
|
|
171
|
+
return data;
|
|
172
|
+
},
|
|
173
|
+
queryKey: viewBlueprintsM2mQueryKey(options)
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const createInfiniteParams = (queryKey, page) => {
|
|
177
|
+
const params = {
|
|
178
|
+
...queryKey[0]
|
|
179
|
+
};
|
|
180
|
+
if (page.body) {
|
|
181
|
+
params.body = {
|
|
182
|
+
...queryKey[0].body,
|
|
183
|
+
...page.body
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
if (page.headers) {
|
|
187
|
+
params.headers = {
|
|
188
|
+
...queryKey[0].headers,
|
|
189
|
+
...page.headers
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
if (page.path) {
|
|
193
|
+
params.path = {
|
|
194
|
+
...queryKey[0].path,
|
|
195
|
+
...page.path
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
if (page.query) {
|
|
199
|
+
params.query = {
|
|
200
|
+
...queryKey[0].query,
|
|
201
|
+
...page.query
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
return params;
|
|
205
|
+
};
|
|
206
|
+
export const viewBlueprintsM2mInfiniteQueryKey = (options) => createQueryKey('viewBlueprintsM2M', options, true);
|
|
207
|
+
/**
|
|
208
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
209
|
+
*/
|
|
210
|
+
export const viewBlueprintsM2mInfiniteOptions = (options) => {
|
|
211
|
+
return infiniteQueryOptions(
|
|
212
|
+
// @ts-ignore
|
|
213
|
+
{
|
|
214
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
215
|
+
// @ts-ignore
|
|
216
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
217
|
+
query: {
|
|
218
|
+
page: pageParam
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
const params = createInfiniteParams(queryKey, page);
|
|
222
|
+
const { data } = await viewBlueprintsM2M({
|
|
223
|
+
...options,
|
|
224
|
+
...params,
|
|
225
|
+
signal,
|
|
226
|
+
throwOnError: true
|
|
227
|
+
});
|
|
228
|
+
return data;
|
|
229
|
+
},
|
|
230
|
+
queryKey: viewBlueprintsM2mInfiniteQueryKey(options)
|
|
231
|
+
});
|
|
232
|
+
};
|
|
158
233
|
/**
|
|
159
234
|
* Save a reference to a GCP secret that has already been created in Secret Manager.
|
|
160
235
|
*/
|
|
@@ -171,6 +246,24 @@ export const createSecretM2mMutation = (options) => {
|
|
|
171
246
|
};
|
|
172
247
|
return mutationOptions;
|
|
173
248
|
};
|
|
249
|
+
export const getBlueprintM2mQueryKey = (options) => createQueryKey('getBlueprintM2M', options);
|
|
250
|
+
/**
|
|
251
|
+
* Retrieve a blueprint record with its full long description for M2M.
|
|
252
|
+
*/
|
|
253
|
+
export const getBlueprintM2mOptions = (options) => {
|
|
254
|
+
return queryOptions({
|
|
255
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
256
|
+
const { data } = await getBlueprintM2M({
|
|
257
|
+
...options,
|
|
258
|
+
...queryKey[0],
|
|
259
|
+
signal,
|
|
260
|
+
throwOnError: true
|
|
261
|
+
});
|
|
262
|
+
return data;
|
|
263
|
+
},
|
|
264
|
+
queryKey: getBlueprintM2mQueryKey(options)
|
|
265
|
+
});
|
|
266
|
+
};
|
|
174
267
|
/**
|
|
175
268
|
* Create a new Neon project for M2M.
|
|
176
269
|
*/
|
|
@@ -355,36 +448,6 @@ export const listInstallationRepositoriesOptions = (options) => {
|
|
|
355
448
|
queryKey: listInstallationRepositoriesQueryKey(options)
|
|
356
449
|
});
|
|
357
450
|
};
|
|
358
|
-
const createInfiniteParams = (queryKey, page) => {
|
|
359
|
-
const params = {
|
|
360
|
-
...queryKey[0]
|
|
361
|
-
};
|
|
362
|
-
if (page.body) {
|
|
363
|
-
params.body = {
|
|
364
|
-
...queryKey[0].body,
|
|
365
|
-
...page.body
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
if (page.headers) {
|
|
369
|
-
params.headers = {
|
|
370
|
-
...queryKey[0].headers,
|
|
371
|
-
...page.headers
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
if (page.path) {
|
|
375
|
-
params.path = {
|
|
376
|
-
...queryKey[0].path,
|
|
377
|
-
...page.path
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
if (page.query) {
|
|
381
|
-
params.query = {
|
|
382
|
-
...queryKey[0].query,
|
|
383
|
-
...page.query
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
return params;
|
|
387
|
-
};
|
|
388
451
|
export const listInstallationRepositoriesInfiniteQueryKey = (options) => createQueryKey('listInstallationRepositories', options, true);
|
|
389
452
|
/**
|
|
390
453
|
* List repositories accessible to a GitHub App installation.
|
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, CreateNeonBranchData, CreateNeonBranchErrors, CreateNeonBranchResponses, CreateNeonDatabaseData, CreateNeonDatabaseErrors, CreateNeonDatabaseResponses, CreateNeonProjectData, CreateNeonProjectErrors, CreateNeonProjectM2mData, CreateNeonProjectM2mErrors, CreateNeonProjectM2mResponses, CreateNeonProjectResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSecretData, CreateSecretErrors, CreateSecretM2mData, CreateSecretM2mErrors, CreateSecretM2mResponses, CreateSecretResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeleteNeonDatabaseData, DeleteNeonDatabaseErrors, DeleteNeonDatabaseResponses, 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, GetSecretValueData, GetSecretValueErrors, GetSecretValueResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListNeonBranchesData, ListNeonBranchesErrors, ListNeonBranchesResponses, ListNeonDatabasesData, ListNeonDatabasesErrors, ListNeonDatabasesResponses, ListNeonProjectsData, ListNeonProjectsErrors, ListNeonProjectsResponses, 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, CreateNeonBranchData, CreateNeonBranchErrors, CreateNeonBranchResponses, CreateNeonDatabaseData, CreateNeonDatabaseErrors, CreateNeonDatabaseResponses, CreateNeonProjectData, CreateNeonProjectErrors, CreateNeonProjectM2mData, CreateNeonProjectM2mErrors, CreateNeonProjectM2mResponses, CreateNeonProjectResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSecretData, CreateSecretErrors, CreateSecretM2mData, CreateSecretM2mErrors, CreateSecretM2mResponses, CreateSecretResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeleteNeonDatabaseData, DeleteNeonDatabaseErrors, DeleteNeonDatabaseResponses, 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, GetBlueprintM2mData, GetBlueprintM2mErrors, GetBlueprintM2mResponses, 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, GetSecretValueData, GetSecretValueErrors, GetSecretValueResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListNeonBranchesData, ListNeonBranchesErrors, ListNeonBranchesResponses, ListNeonDatabasesData, ListNeonDatabasesErrors, ListNeonDatabasesResponses, ListNeonProjectsData, ListNeonProjectsErrors, ListNeonProjectsResponses, 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, ViewBlueprintsM2mData, ViewBlueprintsM2mErrors, ViewBlueprintsM2mResponses, ViewBlueprintsResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -36,10 +36,18 @@ export declare const fetchNodeM2M: <ThrowOnError extends boolean = false>(option
|
|
|
36
36
|
* Update a node by id with its props for M2M.
|
|
37
37
|
*/
|
|
38
38
|
export declare const updateNodeM2M: <ThrowOnError extends boolean = false>(options: Options<UpdateNodeM2mData, ThrowOnError>) => import("./client").RequestResult<UpdateNodeM2mResponses, UpdateNodeM2mErrors, ThrowOnError, "fields">;
|
|
39
|
+
/**
|
|
40
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
41
|
+
*/
|
|
42
|
+
export declare const viewBlueprintsM2M: <ThrowOnError extends boolean = false>(options?: Options<ViewBlueprintsM2mData, ThrowOnError>) => import("./client").RequestResult<ViewBlueprintsM2mResponses, ViewBlueprintsM2mErrors, ThrowOnError, "fields">;
|
|
39
43
|
/**
|
|
40
44
|
* Save a reference to a GCP secret that has already been created in Secret Manager.
|
|
41
45
|
*/
|
|
42
46
|
export declare const createSecretM2M: <ThrowOnError extends boolean = false>(options: Options<CreateSecretM2mData, ThrowOnError>) => import("./client").RequestResult<CreateSecretM2mResponses, CreateSecretM2mErrors, ThrowOnError, "fields">;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve a blueprint record with its full long description for M2M.
|
|
49
|
+
*/
|
|
50
|
+
export declare const getBlueprintM2M: <ThrowOnError extends boolean = false>(options: Options<GetBlueprintM2mData, ThrowOnError>) => import("./client").RequestResult<GetBlueprintM2mResponses, GetBlueprintM2mErrors, ThrowOnError, "fields">;
|
|
43
51
|
/**
|
|
44
52
|
* Create a new Neon project for M2M.
|
|
45
53
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -123,6 +123,21 @@ export const updateNodeM2M = (options) => {
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* View all blueprints for M2M. Returns name and short description only (no long description).
|
|
128
|
+
*/
|
|
129
|
+
export const viewBlueprintsM2M = (options) => {
|
|
130
|
+
return (options?.client ?? client).get({
|
|
131
|
+
security: [
|
|
132
|
+
{
|
|
133
|
+
scheme: 'bearer',
|
|
134
|
+
type: 'http'
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
url: '/m2m/blueprints/view',
|
|
138
|
+
...options
|
|
139
|
+
});
|
|
140
|
+
};
|
|
126
141
|
/**
|
|
127
142
|
* Save a reference to a GCP secret that has already been created in Secret Manager.
|
|
128
143
|
*/
|
|
@@ -142,6 +157,21 @@ export const createSecretM2M = (options) => {
|
|
|
142
157
|
}
|
|
143
158
|
});
|
|
144
159
|
};
|
|
160
|
+
/**
|
|
161
|
+
* Retrieve a blueprint record with its full long description for M2M.
|
|
162
|
+
*/
|
|
163
|
+
export const getBlueprintM2M = (options) => {
|
|
164
|
+
return (options.client ?? client).get({
|
|
165
|
+
security: [
|
|
166
|
+
{
|
|
167
|
+
scheme: 'bearer',
|
|
168
|
+
type: 'http'
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
url: '/m2m/blueprints/{blueprint}',
|
|
172
|
+
...options
|
|
173
|
+
});
|
|
174
|
+
};
|
|
145
175
|
/**
|
|
146
176
|
* Create a new Neon project for M2M.
|
|
147
177
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export type EnvironmentVariable = {
|
|
|
9
9
|
key: string;
|
|
10
10
|
value: string;
|
|
11
11
|
isExported: boolean;
|
|
12
|
-
isOutput: boolean;
|
|
13
12
|
};
|
|
14
13
|
export type UpdateBlueprint = {
|
|
15
14
|
name?: string;
|
|
@@ -109,8 +108,35 @@ export type Pagination = {
|
|
|
109
108
|
limit: number;
|
|
110
109
|
total: number;
|
|
111
110
|
};
|
|
111
|
+
export type BlueprintListItem = {
|
|
112
|
+
id: string;
|
|
113
|
+
environment: string;
|
|
114
|
+
ref: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
author: string;
|
|
118
|
+
updatedBy: string;
|
|
119
|
+
name: string;
|
|
120
|
+
shortDescription: string;
|
|
121
|
+
exported: Array<EnvironmentVariable>;
|
|
122
|
+
};
|
|
112
123
|
export type PaginatedBlueprints = Pagination & {
|
|
113
|
-
blueprints: Array<
|
|
124
|
+
blueprints: Array<BlueprintListItem>;
|
|
125
|
+
};
|
|
126
|
+
export type BlueprintSummary = {
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
shortDescription: string;
|
|
130
|
+
};
|
|
131
|
+
export type PaginatedBlueprintSummaries = Pagination & {
|
|
132
|
+
blueprints: Array<BlueprintSummary>;
|
|
133
|
+
};
|
|
134
|
+
export type BlueprintDetail = {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
shortDescription: string;
|
|
138
|
+
description: string;
|
|
139
|
+
graph: Graph;
|
|
114
140
|
};
|
|
115
141
|
export type PaginatedInvites = Pagination & {
|
|
116
142
|
invites: Array<Invite>;
|
|
@@ -418,7 +444,8 @@ export type RouteEdgeProps = {
|
|
|
418
444
|
path?: string;
|
|
419
445
|
};
|
|
420
446
|
export type OutputEdgeProps = {
|
|
421
|
-
|
|
447
|
+
output_key: string;
|
|
448
|
+
local_env_var_key: string;
|
|
422
449
|
};
|
|
423
450
|
export type Node = {
|
|
424
451
|
id: string;
|
|
@@ -1214,6 +1241,42 @@ export type UpdateNodeM2mResponses = {
|
|
|
1214
1241
|
*/
|
|
1215
1242
|
202: unknown;
|
|
1216
1243
|
};
|
|
1244
|
+
export type ViewBlueprintsM2mData = {
|
|
1245
|
+
body?: never;
|
|
1246
|
+
path?: never;
|
|
1247
|
+
query?: {
|
|
1248
|
+
/**
|
|
1249
|
+
* Page size (max 100).
|
|
1250
|
+
*/
|
|
1251
|
+
limit?: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* Page number (1-based).
|
|
1254
|
+
*/
|
|
1255
|
+
page?: number;
|
|
1256
|
+
/**
|
|
1257
|
+
* Search value for a searchable field on an endpoint.
|
|
1258
|
+
*/
|
|
1259
|
+
search?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* The order results will appear in.
|
|
1262
|
+
*/
|
|
1263
|
+
order?: 'asc' | 'desc';
|
|
1264
|
+
};
|
|
1265
|
+
url: '/m2m/blueprints/view';
|
|
1266
|
+
};
|
|
1267
|
+
export type ViewBlueprintsM2mErrors = {
|
|
1268
|
+
/**
|
|
1269
|
+
* Bad request.
|
|
1270
|
+
*/
|
|
1271
|
+
400: unknown;
|
|
1272
|
+
};
|
|
1273
|
+
export type ViewBlueprintsM2mResponses = {
|
|
1274
|
+
/**
|
|
1275
|
+
* Paginated blueprint summaries.
|
|
1276
|
+
*/
|
|
1277
|
+
200: PaginatedBlueprintSummaries;
|
|
1278
|
+
};
|
|
1279
|
+
export type ViewBlueprintsM2mResponse = ViewBlueprintsM2mResponses[keyof ViewBlueprintsM2mResponses];
|
|
1217
1280
|
export type CreateSecretM2mData = {
|
|
1218
1281
|
body: CreateSecret;
|
|
1219
1282
|
path: {
|
|
@@ -1255,6 +1318,30 @@ export type CreateSecretM2mResponses = {
|
|
|
1255
1318
|
201: Secret;
|
|
1256
1319
|
};
|
|
1257
1320
|
export type CreateSecretM2mResponse = CreateSecretM2mResponses[keyof CreateSecretM2mResponses];
|
|
1321
|
+
export type GetBlueprintM2mData = {
|
|
1322
|
+
body?: never;
|
|
1323
|
+
path: {
|
|
1324
|
+
/**
|
|
1325
|
+
* Blueprint UUID.
|
|
1326
|
+
*/
|
|
1327
|
+
blueprint: string;
|
|
1328
|
+
};
|
|
1329
|
+
query?: never;
|
|
1330
|
+
url: '/m2m/blueprints/{blueprint}';
|
|
1331
|
+
};
|
|
1332
|
+
export type GetBlueprintM2mErrors = {
|
|
1333
|
+
/**
|
|
1334
|
+
* Bad request.
|
|
1335
|
+
*/
|
|
1336
|
+
400: unknown;
|
|
1337
|
+
};
|
|
1338
|
+
export type GetBlueprintM2mResponses = {
|
|
1339
|
+
/**
|
|
1340
|
+
* The blueprint with its full long description.
|
|
1341
|
+
*/
|
|
1342
|
+
200: BlueprintDetail;
|
|
1343
|
+
};
|
|
1344
|
+
export type GetBlueprintM2mResponse = GetBlueprintM2mResponses[keyof GetBlueprintM2mResponses];
|
|
1258
1345
|
export type CreateNeonProjectM2mData = {
|
|
1259
1346
|
body: CreateNeonProject;
|
|
1260
1347
|
headers: {
|
|
@@ -1285,6 +1372,10 @@ export type CreateNeonProjectM2mErrors = {
|
|
|
1285
1372
|
* Invalid credentials or missing Neon API key.
|
|
1286
1373
|
*/
|
|
1287
1374
|
403: ErrorResponse;
|
|
1375
|
+
/**
|
|
1376
|
+
* Related content not found.
|
|
1377
|
+
*/
|
|
1378
|
+
404: ErrorResponse;
|
|
1288
1379
|
/**
|
|
1289
1380
|
* Unexpected error.
|
|
1290
1381
|
*/
|