shoal-web-sdk 1.0.11 → 1.0.13
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 +148 -1
- package/dist/sdk/@tanstack/react-query.gen.js +171 -1
- package/dist/sdk/sdk.gen.d.ts +31 -1
- package/dist/sdk/sdk.gen.js +141 -0
- package/dist/sdk/types.gen.d.ts +461 -1
- package/dist/sdk/zod.gen.d.ts +608 -0
- package/dist/sdk/zod.gen.js +187 -0
- package/dist/tanstack-codegen/generated/generated.d.ts +47 -1
- package/dist/tanstack-codegen/generated/generated.js +138 -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, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetPublicInviteData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, UpdateBillingPlanData, UpdateBillingPlanError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError } from '../types.gen';
|
|
3
|
+
import type { CheckSubdomainUniquenessData, CreateBlueprintData, CreateBlueprintError, CreateBlueprintResponse, CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, CreateFeatureRequestData, CreateFeatureRequestError, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeleteBlueprintData, DeleteBlueprintError, DeleteBlueprintResponse, DeleteEnvironmentVariableData, DeleteEnvironmentVariableError, DeleteEnvironmentVariableResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetBlueprintData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetEnvironmentVariablesData, GetEnvironmentVersionsData, GetGraphOverviewData, GetProjectOverviewData, GetPublicInviteData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpacePropertiesData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, GetVersionData, GetVersionM2mData, ImportBlueprintData, ImportBlueprintError, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, PreviewBlueprintData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, SetSpacePropertyData, SetSpacePropertyError, UpdateBillingPlanData, UpdateBillingPlanError, UpdateBlueprintData, UpdateBlueprintError, UpdateBlueprintResponse, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mError, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, ViewBlueprintsData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -450,6 +450,105 @@ export declare const createFeatureRequestMutation: (options?: Partial<Options<Cr
|
|
|
450
450
|
* Record analytics data captured during the onboarding flow.
|
|
451
451
|
*/
|
|
452
452
|
export declare const recordOnboardingAnalyticsMutation: (options?: Partial<Options<RecordOnboardingAnalyticsData>>) => UseMutationOptions<unknown, RecordOnboardingAnalyticsError, Options<RecordOnboardingAnalyticsData>>;
|
|
453
|
+
export declare const previewBlueprintQueryKey: (options: Options<PreviewBlueprintData>) => [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
454
|
+
_id: string;
|
|
455
|
+
_infinite?: boolean;
|
|
456
|
+
tags?: ReadonlyArray<string>;
|
|
457
|
+
}];
|
|
458
|
+
export declare const previewBlueprintOptions: (options: Options<PreviewBlueprintData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Nodes, Error, import("../types.gen").Nodes, [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
459
|
+
_id: string;
|
|
460
|
+
_infinite?: boolean;
|
|
461
|
+
tags?: ReadonlyArray<string>;
|
|
462
|
+
}]>, "queryFn"> & {
|
|
463
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Nodes, [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
464
|
+
_id: string;
|
|
465
|
+
_infinite?: boolean;
|
|
466
|
+
tags?: ReadonlyArray<string>;
|
|
467
|
+
}], never> | undefined;
|
|
468
|
+
} & {
|
|
469
|
+
queryKey: [Pick<Options<PreviewBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
470
|
+
_id: string;
|
|
471
|
+
_infinite?: boolean;
|
|
472
|
+
tags?: ReadonlyArray<string>;
|
|
473
|
+
}] & {
|
|
474
|
+
[dataTagSymbol]: import("../types.gen").Nodes;
|
|
475
|
+
[dataTagErrorSymbol]: Error;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
export declare const viewBlueprintsQueryKey: (options?: Options<ViewBlueprintsData>) => [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
479
|
+
_id: string;
|
|
480
|
+
_infinite?: boolean;
|
|
481
|
+
tags?: ReadonlyArray<string>;
|
|
482
|
+
}];
|
|
483
|
+
export declare const viewBlueprintsOptions: (options?: Options<ViewBlueprintsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaginatedBlueprints, Error, import("../types.gen").PaginatedBlueprints, [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
484
|
+
_id: string;
|
|
485
|
+
_infinite?: boolean;
|
|
486
|
+
tags?: ReadonlyArray<string>;
|
|
487
|
+
}]>, "queryFn"> & {
|
|
488
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").PaginatedBlueprints, [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
489
|
+
_id: string;
|
|
490
|
+
_infinite?: boolean;
|
|
491
|
+
tags?: ReadonlyArray<string>;
|
|
492
|
+
}], never> | undefined;
|
|
493
|
+
} & {
|
|
494
|
+
queryKey: [Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
495
|
+
_id: string;
|
|
496
|
+
_infinite?: boolean;
|
|
497
|
+
tags?: ReadonlyArray<string>;
|
|
498
|
+
}] & {
|
|
499
|
+
[dataTagSymbol]: import("../types.gen").PaginatedBlueprints;
|
|
500
|
+
[dataTagErrorSymbol]: Error;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
export declare const viewBlueprintsInfiniteQueryKey: (options?: Options<ViewBlueprintsData>) => QueryKey<Options<ViewBlueprintsData>>;
|
|
504
|
+
export declare const viewBlueprintsInfiniteOptions: (options?: Options<ViewBlueprintsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<import("../types.gen").PaginatedBlueprints, import("../types.gen").ErrorResponse, InfiniteData<import("../types.gen").PaginatedBlueprints, unknown>, QueryKey<Options<ViewBlueprintsData>>, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
505
|
+
_id: string;
|
|
506
|
+
_infinite?: boolean;
|
|
507
|
+
tags?: ReadonlyArray<string>;
|
|
508
|
+
}, "query" | "body" | "headers" | "path">> & {
|
|
509
|
+
initialData: InfiniteData<import("../types.gen").PaginatedBlueprints, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
510
|
+
_id: string;
|
|
511
|
+
_infinite?: boolean;
|
|
512
|
+
tags?: ReadonlyArray<string>;
|
|
513
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<import("../types.gen").PaginatedBlueprints, number | Pick<Pick<Options<ViewBlueprintsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
514
|
+
_id: string;
|
|
515
|
+
_infinite?: boolean;
|
|
516
|
+
tags?: ReadonlyArray<string>;
|
|
517
|
+
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
518
|
+
} & {
|
|
519
|
+
queryKey: QueryKey<Options<ViewBlueprintsData>> & {
|
|
520
|
+
[dataTagSymbol]: InfiniteData<import("../types.gen").PaginatedBlueprints, unknown>;
|
|
521
|
+
[dataTagErrorSymbol]: import("../types.gen").ErrorResponse;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
export declare const getBlueprintQueryKey: (options: Options<GetBlueprintData>) => [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
525
|
+
_id: string;
|
|
526
|
+
_infinite?: boolean;
|
|
527
|
+
tags?: ReadonlyArray<string>;
|
|
528
|
+
}];
|
|
529
|
+
/**
|
|
530
|
+
* Retrieve a blueprint record.
|
|
531
|
+
*/
|
|
532
|
+
export declare const getBlueprintOptions: (options: Options<GetBlueprintData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Blueprint, Error, import("../types.gen").Blueprint, [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
533
|
+
_id: string;
|
|
534
|
+
_infinite?: boolean;
|
|
535
|
+
tags?: ReadonlyArray<string>;
|
|
536
|
+
}]>, "queryFn"> & {
|
|
537
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Blueprint, [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
538
|
+
_id: string;
|
|
539
|
+
_infinite?: boolean;
|
|
540
|
+
tags?: ReadonlyArray<string>;
|
|
541
|
+
}], never> | undefined;
|
|
542
|
+
} & {
|
|
543
|
+
queryKey: [Pick<Options<GetBlueprintData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
544
|
+
_id: string;
|
|
545
|
+
_infinite?: boolean;
|
|
546
|
+
tags?: ReadonlyArray<string>;
|
|
547
|
+
}] & {
|
|
548
|
+
[dataTagSymbol]: import("../types.gen").Blueprint;
|
|
549
|
+
[dataTagErrorSymbol]: Error;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
453
552
|
/**
|
|
454
553
|
* Create a space.
|
|
455
554
|
*/
|
|
@@ -954,6 +1053,18 @@ export declare const updateEnvironmentVariableMutation: (options?: Partial<Optio
|
|
|
954
1053
|
* Create an environment variable. These are globally unique per project environment.
|
|
955
1054
|
*/
|
|
956
1055
|
export declare const createEnvironmentVariableMutation: (options?: Partial<Options<CreateEnvironmentVariableData>>) => UseMutationOptions<unknown, CreateEnvironmentVariableError, Options<CreateEnvironmentVariableData>>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Delete a blueprint record.
|
|
1058
|
+
*/
|
|
1059
|
+
export declare const deleteBlueprintMutation: (options?: Partial<Options<DeleteBlueprintData>>) => UseMutationOptions<DeleteBlueprintResponse, DeleteBlueprintError, Options<DeleteBlueprintData>>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Update a blueprint record.
|
|
1062
|
+
*/
|
|
1063
|
+
export declare const updateBlueprintMutation: (options?: Partial<Options<UpdateBlueprintData>>) => UseMutationOptions<UpdateBlueprintResponse, UpdateBlueprintError, Options<UpdateBlueprintData>>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
1066
|
+
*/
|
|
1067
|
+
export declare const createBlueprintMutation: (options?: Partial<Options<CreateBlueprintData>>) => UseMutationOptions<CreateBlueprintResponse, CreateBlueprintError, Options<CreateBlueprintData>>;
|
|
957
1068
|
export declare const getVersionQueryKey: (options: Options<GetVersionData>) => [Pick<Options<GetVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
958
1069
|
_id: string;
|
|
959
1070
|
_infinite?: boolean;
|
|
@@ -982,6 +1093,10 @@ export declare const getVersionOptions: (options: Options<GetVersionData>) => im
|
|
|
982
1093
|
[dataTagErrorSymbol]: Error;
|
|
983
1094
|
};
|
|
984
1095
|
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
1098
|
+
*/
|
|
1099
|
+
export declare const importBlueprintMutation: (options?: Partial<Options<ImportBlueprintData>>) => UseMutationOptions<unknown, ImportBlueprintError, Options<ImportBlueprintData>>;
|
|
985
1100
|
export declare const getGraphOverviewQueryKey: (options: Options<GetGraphOverviewData>) => [Pick<Options<GetGraphOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
986
1101
|
_id: string;
|
|
987
1102
|
_infinite?: boolean;
|
|
@@ -1238,3 +1353,35 @@ export declare const listBillingInvoicesOptions: (options: Options<ListBillingIn
|
|
|
1238
1353
|
[dataTagErrorSymbol]: Error;
|
|
1239
1354
|
};
|
|
1240
1355
|
};
|
|
1356
|
+
export declare const getSpacePropertiesQueryKey: (options: Options<GetSpacePropertiesData>) => [Pick<Options<GetSpacePropertiesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1357
|
+
_id: string;
|
|
1358
|
+
_infinite?: boolean;
|
|
1359
|
+
tags?: ReadonlyArray<string>;
|
|
1360
|
+
}];
|
|
1361
|
+
/**
|
|
1362
|
+
* List all space properties for the space from Kinde.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare const getSpacePropertiesOptions: (options: Options<GetSpacePropertiesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").SpacePropertiesResponse, Error, import("../types.gen").SpacePropertiesResponse, [Pick<Options<GetSpacePropertiesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1365
|
+
_id: string;
|
|
1366
|
+
_infinite?: boolean;
|
|
1367
|
+
tags?: ReadonlyArray<string>;
|
|
1368
|
+
}]>, "queryFn"> & {
|
|
1369
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").SpacePropertiesResponse, [Pick<Options<GetSpacePropertiesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1370
|
+
_id: string;
|
|
1371
|
+
_infinite?: boolean;
|
|
1372
|
+
tags?: ReadonlyArray<string>;
|
|
1373
|
+
}], never> | undefined;
|
|
1374
|
+
} & {
|
|
1375
|
+
queryKey: [Pick<Options<GetSpacePropertiesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1376
|
+
_id: string;
|
|
1377
|
+
_infinite?: boolean;
|
|
1378
|
+
tags?: ReadonlyArray<string>;
|
|
1379
|
+
}] & {
|
|
1380
|
+
[dataTagSymbol]: import("../types.gen").SpacePropertiesResponse;
|
|
1381
|
+
[dataTagErrorSymbol]: Error;
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* Set a space property on the space in Kinde.
|
|
1386
|
+
*/
|
|
1387
|
+
export declare const setSpacePropertyMutation: (options?: Partial<Options<SetSpacePropertyData>>) => UseMutationOptions<unknown, SetSpacePropertyError, Options<SetSpacePropertyData>>;
|
|
@@ -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, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVersions, getGraphOverview, getProjectOverview, getPublicInvite, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile } from '../sdk.gen';
|
|
4
|
+
import { checkSubdomainUniqueness, createBlueprint, createEnvironment, createEnvironmentVariable, createFeatureRequest, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deleteBlueprint, deleteEnvironmentVariable, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getBlueprint, getConnectedAppUrl, getEnvironmentOverview, getEnvironmentVariables, getEnvironmentVersions, getGraphOverview, getProjectOverview, getPublicInvite, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getSpaceProperties, getSpaceStats, getUserIdentities, getUserInvites, getUserProfile, getVersion, getVersionM2M, importBlueprint, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, previewBlueprint, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedDownloadUrl, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, setSpaceProperty, updateBillingPlan, updateBlueprint, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile, viewBlueprints } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
6
|
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
7
|
if (infinite) {
|
|
@@ -532,6 +532,78 @@ export const recordOnboardingAnalyticsMutation = (options) => {
|
|
|
532
532
|
};
|
|
533
533
|
return mutationOptions;
|
|
534
534
|
};
|
|
535
|
+
export const previewBlueprintQueryKey = (options) => createQueryKey('previewBlueprint', options);
|
|
536
|
+
export const previewBlueprintOptions = (options) => {
|
|
537
|
+
return queryOptions({
|
|
538
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
539
|
+
const { data } = await previewBlueprint({
|
|
540
|
+
...options,
|
|
541
|
+
...queryKey[0],
|
|
542
|
+
signal,
|
|
543
|
+
throwOnError: true
|
|
544
|
+
});
|
|
545
|
+
return data;
|
|
546
|
+
},
|
|
547
|
+
queryKey: previewBlueprintQueryKey(options)
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
export const viewBlueprintsQueryKey = (options) => createQueryKey('viewBlueprints', options);
|
|
551
|
+
export const viewBlueprintsOptions = (options) => {
|
|
552
|
+
return queryOptions({
|
|
553
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
554
|
+
const { data } = await viewBlueprints({
|
|
555
|
+
...options,
|
|
556
|
+
...queryKey[0],
|
|
557
|
+
signal,
|
|
558
|
+
throwOnError: true
|
|
559
|
+
});
|
|
560
|
+
return data;
|
|
561
|
+
},
|
|
562
|
+
queryKey: viewBlueprintsQueryKey(options)
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
export const viewBlueprintsInfiniteQueryKey = (options) => createQueryKey('viewBlueprints', options, true);
|
|
566
|
+
export const viewBlueprintsInfiniteOptions = (options) => {
|
|
567
|
+
return infiniteQueryOptions(
|
|
568
|
+
// @ts-ignore
|
|
569
|
+
{
|
|
570
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
571
|
+
// @ts-ignore
|
|
572
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
573
|
+
query: {
|
|
574
|
+
page: pageParam
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
const params = createInfiniteParams(queryKey, page);
|
|
578
|
+
const { data } = await viewBlueprints({
|
|
579
|
+
...options,
|
|
580
|
+
...params,
|
|
581
|
+
signal,
|
|
582
|
+
throwOnError: true
|
|
583
|
+
});
|
|
584
|
+
return data;
|
|
585
|
+
},
|
|
586
|
+
queryKey: viewBlueprintsInfiniteQueryKey(options)
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
export const getBlueprintQueryKey = (options) => createQueryKey('getBlueprint', options);
|
|
590
|
+
/**
|
|
591
|
+
* Retrieve a blueprint record.
|
|
592
|
+
*/
|
|
593
|
+
export const getBlueprintOptions = (options) => {
|
|
594
|
+
return queryOptions({
|
|
595
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
596
|
+
const { data } = await getBlueprint({
|
|
597
|
+
...options,
|
|
598
|
+
...queryKey[0],
|
|
599
|
+
signal,
|
|
600
|
+
throwOnError: true
|
|
601
|
+
});
|
|
602
|
+
return data;
|
|
603
|
+
},
|
|
604
|
+
queryKey: getBlueprintQueryKey(options)
|
|
605
|
+
});
|
|
606
|
+
};
|
|
535
607
|
/**
|
|
536
608
|
* Create a space.
|
|
537
609
|
*/
|
|
@@ -1050,6 +1122,54 @@ export const createEnvironmentVariableMutation = (options) => {
|
|
|
1050
1122
|
};
|
|
1051
1123
|
return mutationOptions;
|
|
1052
1124
|
};
|
|
1125
|
+
/**
|
|
1126
|
+
* Delete a blueprint record.
|
|
1127
|
+
*/
|
|
1128
|
+
export const deleteBlueprintMutation = (options) => {
|
|
1129
|
+
const mutationOptions = {
|
|
1130
|
+
mutationFn: async (fnOptions) => {
|
|
1131
|
+
const { data } = await deleteBlueprint({
|
|
1132
|
+
...options,
|
|
1133
|
+
...fnOptions,
|
|
1134
|
+
throwOnError: true
|
|
1135
|
+
});
|
|
1136
|
+
return data;
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
return mutationOptions;
|
|
1140
|
+
};
|
|
1141
|
+
/**
|
|
1142
|
+
* Update a blueprint record.
|
|
1143
|
+
*/
|
|
1144
|
+
export const updateBlueprintMutation = (options) => {
|
|
1145
|
+
const mutationOptions = {
|
|
1146
|
+
mutationFn: async (fnOptions) => {
|
|
1147
|
+
const { data } = await updateBlueprint({
|
|
1148
|
+
...options,
|
|
1149
|
+
...fnOptions,
|
|
1150
|
+
throwOnError: true
|
|
1151
|
+
});
|
|
1152
|
+
return data;
|
|
1153
|
+
}
|
|
1154
|
+
};
|
|
1155
|
+
return mutationOptions;
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
1159
|
+
*/
|
|
1160
|
+
export const createBlueprintMutation = (options) => {
|
|
1161
|
+
const mutationOptions = {
|
|
1162
|
+
mutationFn: async (fnOptions) => {
|
|
1163
|
+
const { data } = await createBlueprint({
|
|
1164
|
+
...options,
|
|
1165
|
+
...fnOptions,
|
|
1166
|
+
throwOnError: true
|
|
1167
|
+
});
|
|
1168
|
+
return data;
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
return mutationOptions;
|
|
1172
|
+
};
|
|
1053
1173
|
export const getVersionQueryKey = (options) => createQueryKey('getVersion', options);
|
|
1054
1174
|
/**
|
|
1055
1175
|
* Get a version inside an environment.
|
|
@@ -1068,6 +1188,22 @@ export const getVersionOptions = (options) => {
|
|
|
1068
1188
|
queryKey: getVersionQueryKey(options)
|
|
1069
1189
|
});
|
|
1070
1190
|
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
1193
|
+
*/
|
|
1194
|
+
export const importBlueprintMutation = (options) => {
|
|
1195
|
+
const mutationOptions = {
|
|
1196
|
+
mutationFn: async (fnOptions) => {
|
|
1197
|
+
const { data } = await importBlueprint({
|
|
1198
|
+
...options,
|
|
1199
|
+
...fnOptions,
|
|
1200
|
+
throwOnError: true
|
|
1201
|
+
});
|
|
1202
|
+
return data;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
return mutationOptions;
|
|
1206
|
+
};
|
|
1071
1207
|
export const getGraphOverviewQueryKey = (options) => createQueryKey('getGraphOverview', options);
|
|
1072
1208
|
/**
|
|
1073
1209
|
* Get a graph for a version inside an environment.
|
|
@@ -1340,3 +1476,37 @@ export const listBillingInvoicesOptions = (options) => {
|
|
|
1340
1476
|
queryKey: listBillingInvoicesQueryKey(options)
|
|
1341
1477
|
});
|
|
1342
1478
|
};
|
|
1479
|
+
export const getSpacePropertiesQueryKey = (options) => createQueryKey('getSpaceProperties', options);
|
|
1480
|
+
/**
|
|
1481
|
+
* List all space properties for the space from Kinde.
|
|
1482
|
+
*/
|
|
1483
|
+
export const getSpacePropertiesOptions = (options) => {
|
|
1484
|
+
return queryOptions({
|
|
1485
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1486
|
+
const { data } = await getSpaceProperties({
|
|
1487
|
+
...options,
|
|
1488
|
+
...queryKey[0],
|
|
1489
|
+
signal,
|
|
1490
|
+
throwOnError: true
|
|
1491
|
+
});
|
|
1492
|
+
return data;
|
|
1493
|
+
},
|
|
1494
|
+
queryKey: getSpacePropertiesQueryKey(options)
|
|
1495
|
+
});
|
|
1496
|
+
};
|
|
1497
|
+
/**
|
|
1498
|
+
* Set a space property on the space in Kinde.
|
|
1499
|
+
*/
|
|
1500
|
+
export const setSpacePropertyMutation = (options) => {
|
|
1501
|
+
const mutationOptions = {
|
|
1502
|
+
mutationFn: async (fnOptions) => {
|
|
1503
|
+
const { data } = await setSpaceProperty({
|
|
1504
|
+
...options,
|
|
1505
|
+
...fnOptions,
|
|
1506
|
+
throwOnError: true
|
|
1507
|
+
});
|
|
1508
|
+
return data;
|
|
1509
|
+
}
|
|
1510
|
+
};
|
|
1511
|
+
return mutationOptions;
|
|
1512
|
+
};
|
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, 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, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, 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, 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, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mErrors, UpdateDeploymentStatusM2mResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateNodeM2mData, UpdateNodeM2mErrors, UpdateNodeM2mResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses } from './types.gen';
|
|
2
|
+
import type { CheckSubdomainUniquenessData, CheckSubdomainUniquenessErrors, CheckSubdomainUniquenessResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableErrors, CreateEnvironmentVariableResponses, CreateFeatureRequestData, CreateFeatureRequestErrors, CreateFeatureRequestResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteEnvironmentVariableData, DeleteEnvironmentVariableErrors, DeleteEnvironmentVariableResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetEnvironmentVariablesData, GetEnvironmentVariablesErrors, GetEnvironmentVariablesResponses, GetEnvironmentVersionsData, GetEnvironmentVersionsResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetPublicInviteData, GetPublicInviteErrors, GetPublicInviteResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetSpacePropertiesData, GetSpacePropertiesErrors, GetSpacePropertiesResponses, GetSpaceStatsData, GetSpaceStatsErrors, GetSpaceStatsResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, GetVersionData, GetVersionErrors, GetVersionM2mData, GetVersionM2mErrors, GetVersionM2mResponses, GetVersionResponses, ImportBlueprintData, ImportBlueprintErrors, ImportBlueprintResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, PreviewBlueprintData, PreviewBlueprintErrors, PreviewBlueprintResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedDownloadUrlData, RequestSignedDownloadUrlErrors, RequestSignedDownloadUrlResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, SetSpacePropertyData, SetSpacePropertyErrors, SetSpacePropertyResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateBlueprintData, UpdateBlueprintErrors, UpdateBlueprintResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateDeploymentStatusM2mData, UpdateDeploymentStatusM2mErrors, UpdateDeploymentStatusM2mResponses, UpdateEnvironmentVariableData, UpdateEnvironmentVariableErrors, UpdateEnvironmentVariableResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateNodeM2mData, UpdateNodeM2mErrors, UpdateNodeM2mResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, ViewBlueprintsData, ViewBlueprintsErrors, ViewBlueprintsResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -95,6 +95,12 @@ export declare const createFeatureRequest: <ThrowOnError extends boolean = false
|
|
|
95
95
|
* Record analytics data captured during the onboarding flow.
|
|
96
96
|
*/
|
|
97
97
|
export declare const recordOnboardingAnalytics: <ThrowOnError extends boolean = false>(options: Options<RecordOnboardingAnalyticsData, ThrowOnError>) => import("./client").RequestResult<RecordOnboardingAnalyticsResponses, RecordOnboardingAnalyticsErrors, ThrowOnError, "fields">;
|
|
98
|
+
export declare const previewBlueprint: <ThrowOnError extends boolean = false>(options: Options<PreviewBlueprintData, ThrowOnError>) => import("./client").RequestResult<PreviewBlueprintResponses, PreviewBlueprintErrors, ThrowOnError, "fields">;
|
|
99
|
+
export declare const viewBlueprints: <ThrowOnError extends boolean = false>(options?: Options<ViewBlueprintsData, ThrowOnError>) => import("./client").RequestResult<ViewBlueprintsResponses, ViewBlueprintsErrors, ThrowOnError, "fields">;
|
|
100
|
+
/**
|
|
101
|
+
* Retrieve a blueprint record.
|
|
102
|
+
*/
|
|
103
|
+
export declare const getBlueprint: <ThrowOnError extends boolean = false>(options: Options<GetBlueprintData, ThrowOnError>) => import("./client").RequestResult<GetBlueprintResponses, GetBlueprintErrors, ThrowOnError, "fields">;
|
|
98
104
|
/**
|
|
99
105
|
* Create a space.
|
|
100
106
|
*/
|
|
@@ -191,10 +197,26 @@ export declare const updateEnvironmentVariable: <ThrowOnError extends boolean =
|
|
|
191
197
|
* Create an environment variable. These are globally unique per project environment.
|
|
192
198
|
*/
|
|
193
199
|
export declare const createEnvironmentVariable: <ThrowOnError extends boolean = false>(options: Options<CreateEnvironmentVariableData, ThrowOnError>) => import("./client").RequestResult<CreateEnvironmentVariableResponses, CreateEnvironmentVariableErrors, ThrowOnError, "fields">;
|
|
200
|
+
/**
|
|
201
|
+
* Delete a blueprint record.
|
|
202
|
+
*/
|
|
203
|
+
export declare const deleteBlueprint: <ThrowOnError extends boolean = false>(options: Options<DeleteBlueprintData, ThrowOnError>) => import("./client").RequestResult<DeleteBlueprintResponses, DeleteBlueprintErrors, ThrowOnError, "fields">;
|
|
204
|
+
/**
|
|
205
|
+
* Update a blueprint record.
|
|
206
|
+
*/
|
|
207
|
+
export declare const updateBlueprint: <ThrowOnError extends boolean = false>(options: Options<UpdateBlueprintData, ThrowOnError>) => import("./client").RequestResult<UpdateBlueprintResponses, UpdateBlueprintErrors, ThrowOnError, "fields">;
|
|
208
|
+
/**
|
|
209
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
210
|
+
*/
|
|
211
|
+
export declare const createBlueprint: <ThrowOnError extends boolean = false>(options: Options<CreateBlueprintData, ThrowOnError>) => import("./client").RequestResult<CreateBlueprintResponses, CreateBlueprintErrors, ThrowOnError, "fields">;
|
|
194
212
|
/**
|
|
195
213
|
* Get a version inside an environment.
|
|
196
214
|
*/
|
|
197
215
|
export declare const getVersion: <ThrowOnError extends boolean = false>(options: Options<GetVersionData, ThrowOnError>) => import("./client").RequestResult<GetVersionResponses, GetVersionErrors, ThrowOnError, "fields">;
|
|
216
|
+
/**
|
|
217
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
218
|
+
*/
|
|
219
|
+
export declare const importBlueprint: <ThrowOnError extends boolean = false>(options: Options<ImportBlueprintData, ThrowOnError>) => import("./client").RequestResult<ImportBlueprintResponses, ImportBlueprintErrors, ThrowOnError, "fields">;
|
|
198
220
|
/**
|
|
199
221
|
* Get a graph for a version inside an environment.
|
|
200
222
|
*/
|
|
@@ -259,3 +281,11 @@ export declare const fetchBillingPrices: <ThrowOnError extends boolean = false>(
|
|
|
259
281
|
* List past invoices for the space, newest first.
|
|
260
282
|
*/
|
|
261
283
|
export declare const listBillingInvoices: <ThrowOnError extends boolean = false>(options: Options<ListBillingInvoicesData, ThrowOnError>) => import("./client").RequestResult<ListBillingInvoicesResponses, ListBillingInvoicesErrors, ThrowOnError, "fields">;
|
|
284
|
+
/**
|
|
285
|
+
* List all space properties for the space from Kinde.
|
|
286
|
+
*/
|
|
287
|
+
export declare const getSpaceProperties: <ThrowOnError extends boolean = false>(options: Options<GetSpacePropertiesData, ThrowOnError>) => import("./client").RequestResult<GetSpacePropertiesResponses, GetSpacePropertiesErrors, ThrowOnError, "fields">;
|
|
288
|
+
/**
|
|
289
|
+
* Set a space property on the space in Kinde.
|
|
290
|
+
*/
|
|
291
|
+
export declare const setSpaceProperty: <ThrowOnError extends boolean = false>(options: Options<SetSpacePropertyData, ThrowOnError>) => import("./client").RequestResult<SetSpacePropertyResponses, SetSpacePropertyErrors, ThrowOnError, "fields">;
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -356,6 +356,45 @@ export const recordOnboardingAnalytics = (options) => {
|
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
};
|
|
359
|
+
export const previewBlueprint = (options) => {
|
|
360
|
+
return (options.client ?? client).get({
|
|
361
|
+
security: [
|
|
362
|
+
{
|
|
363
|
+
scheme: 'bearer',
|
|
364
|
+
type: 'http'
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
url: '/blueprints/preview/{blueprint}',
|
|
368
|
+
...options
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
export const viewBlueprints = (options) => {
|
|
372
|
+
return (options?.client ?? client).get({
|
|
373
|
+
security: [
|
|
374
|
+
{
|
|
375
|
+
scheme: 'bearer',
|
|
376
|
+
type: 'http'
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
url: '/blueprints/view',
|
|
380
|
+
...options
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Retrieve a blueprint record.
|
|
385
|
+
*/
|
|
386
|
+
export const getBlueprint = (options) => {
|
|
387
|
+
return (options.client ?? client).get({
|
|
388
|
+
security: [
|
|
389
|
+
{
|
|
390
|
+
scheme: 'bearer',
|
|
391
|
+
type: 'http'
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
url: '/blueprints/{blueprint}',
|
|
395
|
+
...options
|
|
396
|
+
});
|
|
397
|
+
};
|
|
359
398
|
/**
|
|
360
399
|
* Create a space.
|
|
361
400
|
*/
|
|
@@ -740,6 +779,59 @@ export const createEnvironmentVariable = (options) => {
|
|
|
740
779
|
}
|
|
741
780
|
});
|
|
742
781
|
};
|
|
782
|
+
/**
|
|
783
|
+
* Delete a blueprint record.
|
|
784
|
+
*/
|
|
785
|
+
export const deleteBlueprint = (options) => {
|
|
786
|
+
return (options.client ?? client).delete({
|
|
787
|
+
security: [
|
|
788
|
+
{
|
|
789
|
+
scheme: 'bearer',
|
|
790
|
+
type: 'http'
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
794
|
+
...options
|
|
795
|
+
});
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Update a blueprint record.
|
|
799
|
+
*/
|
|
800
|
+
export const updateBlueprint = (options) => {
|
|
801
|
+
return (options.client ?? client).patch({
|
|
802
|
+
security: [
|
|
803
|
+
{
|
|
804
|
+
scheme: 'bearer',
|
|
805
|
+
type: 'http'
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}',
|
|
809
|
+
...options,
|
|
810
|
+
headers: {
|
|
811
|
+
'Content-Type': 'application/json',
|
|
812
|
+
...options.headers
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
/**
|
|
817
|
+
* Create a blueprint. A blueprint references the HEAD version of an environment.
|
|
818
|
+
*/
|
|
819
|
+
export const createBlueprint = (options) => {
|
|
820
|
+
return (options.client ?? client).post({
|
|
821
|
+
security: [
|
|
822
|
+
{
|
|
823
|
+
scheme: 'bearer',
|
|
824
|
+
type: 'http'
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/create',
|
|
828
|
+
...options,
|
|
829
|
+
headers: {
|
|
830
|
+
'Content-Type': 'application/json',
|
|
831
|
+
...options.headers
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
};
|
|
743
835
|
/**
|
|
744
836
|
* Get a version inside an environment.
|
|
745
837
|
*/
|
|
@@ -755,6 +847,21 @@ export const getVersion = (options) => {
|
|
|
755
847
|
...options
|
|
756
848
|
});
|
|
757
849
|
};
|
|
850
|
+
/**
|
|
851
|
+
* Import a blueprint into an environment. This does not overwrite existing content. Please create an environment before importing.
|
|
852
|
+
*/
|
|
853
|
+
export const importBlueprint = (options) => {
|
|
854
|
+
return (options.client ?? client).patch({
|
|
855
|
+
security: [
|
|
856
|
+
{
|
|
857
|
+
scheme: 'bearer',
|
|
858
|
+
type: 'http'
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/import',
|
|
862
|
+
...options
|
|
863
|
+
});
|
|
864
|
+
};
|
|
758
865
|
/**
|
|
759
866
|
* Get a graph for a version inside an environment.
|
|
760
867
|
*/
|
|
@@ -1007,3 +1114,37 @@ export const listBillingInvoices = (options) => {
|
|
|
1007
1114
|
...options
|
|
1008
1115
|
});
|
|
1009
1116
|
};
|
|
1117
|
+
/**
|
|
1118
|
+
* List all space properties for the space from Kinde.
|
|
1119
|
+
*/
|
|
1120
|
+
export const getSpaceProperties = (options) => {
|
|
1121
|
+
return (options.client ?? client).get({
|
|
1122
|
+
security: [
|
|
1123
|
+
{
|
|
1124
|
+
scheme: 'bearer',
|
|
1125
|
+
type: 'http'
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
url: '/auth/{spaceHandle}/properties',
|
|
1129
|
+
...options
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* Set a space property on the space in Kinde.
|
|
1134
|
+
*/
|
|
1135
|
+
export const setSpaceProperty = (options) => {
|
|
1136
|
+
return (options.client ?? client).put({
|
|
1137
|
+
security: [
|
|
1138
|
+
{
|
|
1139
|
+
scheme: 'bearer',
|
|
1140
|
+
type: 'http'
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
url: '/auth/{spaceHandle}/properties',
|
|
1144
|
+
...options,
|
|
1145
|
+
headers: {
|
|
1146
|
+
'Content-Type': 'application/json',
|
|
1147
|
+
...options.headers
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
};
|