shoal-web-sdk 1.0.6 → 1.0.8

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.
@@ -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, 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, 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';
4
4
  export type QueryKey<TOptions extends Options> = [
5
5
  Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
6
6
  _id: string;
@@ -1018,6 +1018,34 @@ export declare const updateGraphStateMutation: (options?: Partial<Options<Update
1018
1018
  * Trigger a deployment for a version inside an environment.
1019
1019
  */
1020
1020
  export declare const deployVersionMutation: (options?: Partial<Options<DeployVersionData>>) => UseMutationOptions<unknown, DeployVersionError, Options<DeployVersionData>>;
1021
+ export declare const requestSignedDownloadUrlQueryKey: (options: Options<RequestSignedDownloadUrlData>) => [Pick<Options<RequestSignedDownloadUrlData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1022
+ _id: string;
1023
+ _infinite?: boolean;
1024
+ tags?: ReadonlyArray<string>;
1025
+ }];
1026
+ /**
1027
+ * Request a signed download URL to download source code zip files.
1028
+ */
1029
+ export declare const requestSignedDownloadUrlOptions: (options: Options<RequestSignedDownloadUrlData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").SignedUrlDownloadResponse, Error, import("../types.gen").SignedUrlDownloadResponse, [Pick<Options<RequestSignedDownloadUrlData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1030
+ _id: string;
1031
+ _infinite?: boolean;
1032
+ tags?: ReadonlyArray<string>;
1033
+ }]>, "queryFn"> & {
1034
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").SignedUrlDownloadResponse, [Pick<Options<RequestSignedDownloadUrlData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1035
+ _id: string;
1036
+ _infinite?: boolean;
1037
+ tags?: ReadonlyArray<string>;
1038
+ }], never> | undefined;
1039
+ } & {
1040
+ queryKey: [Pick<Options<RequestSignedDownloadUrlData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1041
+ _id: string;
1042
+ _infinite?: boolean;
1043
+ tags?: ReadonlyArray<string>;
1044
+ }] & {
1045
+ [dataTagSymbol]: import("../types.gen").SignedUrlDownloadResponse;
1046
+ [dataTagErrorSymbol]: Error;
1047
+ };
1048
+ };
1021
1049
  /**
1022
1050
  * Request a signed upload URL to upload source code zip files.
1023
1051
  */
@@ -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, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateDeploymentStatusM2M, updateEnvironmentVariable, updateGraphM2M, updateGraphState, updateNodeM2M, updateUsername, updateUserProfile } from '../sdk.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';
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) {
@@ -1118,6 +1118,24 @@ export const deployVersionMutation = (options) => {
1118
1118
  };
1119
1119
  return mutationOptions;
1120
1120
  };
1121
+ export const requestSignedDownloadUrlQueryKey = (options) => createQueryKey('requestSignedDownloadUrl', options);
1122
+ /**
1123
+ * Request a signed download URL to download source code zip files.
1124
+ */
1125
+ export const requestSignedDownloadUrlOptions = (options) => {
1126
+ return queryOptions({
1127
+ queryFn: async ({ queryKey, signal }) => {
1128
+ const { data } = await requestSignedDownloadUrl({
1129
+ ...options,
1130
+ ...queryKey[0],
1131
+ signal,
1132
+ throwOnError: true
1133
+ });
1134
+ return data;
1135
+ },
1136
+ queryKey: requestSignedDownloadUrlQueryKey(options)
1137
+ });
1138
+ };
1121
1139
  /**
1122
1140
  * Request a signed upload URL to upload source code zip files.
1123
1141
  */
@@ -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, 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, 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';
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
@@ -207,6 +207,10 @@ export declare const updateGraphState: <ThrowOnError extends boolean = false>(op
207
207
  * Trigger a deployment for a version inside an environment.
208
208
  */
209
209
  export declare const deployVersion: <ThrowOnError extends boolean = false>(options: Options<DeployVersionData, ThrowOnError>) => import("./client").RequestResult<DeployVersionResponses, DeployVersionErrors, ThrowOnError, "fields">;
210
+ /**
211
+ * Request a signed download URL to download source code zip files.
212
+ */
213
+ export declare const requestSignedDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<RequestSignedDownloadUrlData, ThrowOnError>) => import("./client").RequestResult<RequestSignedDownloadUrlResponses, RequestSignedDownloadUrlErrors, ThrowOnError, "fields">;
210
214
  /**
211
215
  * Request a signed upload URL to upload source code zip files.
212
216
  */
@@ -804,6 +804,21 @@ export const deployVersion = (options) => {
804
804
  ...options
805
805
  });
806
806
  };
807
+ /**
808
+ * Request a signed download URL to download source code zip files.
809
+ */
810
+ export const requestSignedDownloadUrl = (options) => {
811
+ return (options.client ?? client).get({
812
+ security: [
813
+ {
814
+ scheme: 'bearer',
815
+ type: 'http'
816
+ }
817
+ ],
818
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-download-url/{fileNameUUID}',
819
+ ...options
820
+ });
821
+ };
807
822
  /**
808
823
  * Request a signed upload URL to upload source code zip files.
809
824
  */
@@ -447,6 +447,9 @@ export type ProxyNodeProps = {
447
447
  export type VmNodeProps = {
448
448
  os?: string;
449
449
  };
450
+ export type SignedUrlDownloadResponse = {
451
+ signedUrl: string;
452
+ };
450
453
  export type SignedUrlUploadResponse = {
451
454
  signedUrl: string;
452
455
  expiration: string;
@@ -607,6 +610,10 @@ export type EnvironmentId = string;
607
610
  * The node UUID.
608
611
  */
609
612
  export type NodeId = string;
613
+ /**
614
+ * An uploaded file name.
615
+ */
616
+ export type UploadedFileNameUuid = string;
610
617
  /**
611
618
  * A version UUID.
612
619
  */
@@ -671,6 +678,10 @@ export type KeyCodeRef = string;
671
678
  * Optional callback URL override for the connected app flow. Ignored when an empty string is provided.
672
679
  */
673
680
  export type OverrideCallbackUrl = string;
681
+ /**
682
+ * The uuid file name of an exisiting source code upload
683
+ */
684
+ export type ExistingFileUuid = string;
674
685
  /**
675
686
  * Identity ID to delete.
676
687
  */
@@ -2725,7 +2736,7 @@ export type DeployVersionResponses = {
2725
2736
  */
2726
2737
  202: unknown;
2727
2738
  };
2728
- export type RequestSignedUploadUrlData = {
2739
+ export type RequestSignedDownloadUrlData = {
2729
2740
  body?: never;
2730
2741
  path: {
2731
2742
  /**
@@ -2744,8 +2755,66 @@ export type RequestSignedUploadUrlData = {
2744
2755
  * A version number with in an environment.
2745
2756
  */
2746
2757
  version: string;
2758
+ /**
2759
+ * An uploaded file name.
2760
+ */
2761
+ fileNameUUID: string;
2747
2762
  };
2748
2763
  query?: never;
2764
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-download-url/{fileNameUUID}';
2765
+ };
2766
+ export type RequestSignedDownloadUrlErrors = {
2767
+ /**
2768
+ * Invalid request parameters.
2769
+ */
2770
+ 400: ErrorResponse;
2771
+ /**
2772
+ * Unauthorised user.
2773
+ */
2774
+ 401: ErrorResponse;
2775
+ /**
2776
+ * Invalid credentials.
2777
+ */
2778
+ 403: ErrorResponse;
2779
+ /**
2780
+ * Unexpected error.
2781
+ */
2782
+ 500: ErrorResponse;
2783
+ };
2784
+ export type RequestSignedDownloadUrlError = RequestSignedDownloadUrlErrors[keyof RequestSignedDownloadUrlErrors];
2785
+ export type RequestSignedDownloadUrlResponses = {
2786
+ /**
2787
+ * A successfully generated signed url.
2788
+ */
2789
+ 200: SignedUrlDownloadResponse;
2790
+ };
2791
+ export type RequestSignedDownloadUrlResponse = RequestSignedDownloadUrlResponses[keyof RequestSignedDownloadUrlResponses];
2792
+ export type RequestSignedUploadUrlData = {
2793
+ body?: never;
2794
+ path: {
2795
+ /**
2796
+ * The space handle. This must be globally unique.
2797
+ */
2798
+ spaceHandle: string;
2799
+ /**
2800
+ * A project name. This must be unique to a space.
2801
+ */
2802
+ projectHandle: string;
2803
+ /**
2804
+ * An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
2805
+ */
2806
+ environmentHandle: string;
2807
+ /**
2808
+ * A version number with in an environment.
2809
+ */
2810
+ version: string;
2811
+ };
2812
+ query?: {
2813
+ /**
2814
+ * The uuid file name of an exisiting source code upload
2815
+ */
2816
+ existing?: string;
2817
+ };
2749
2818
  url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url';
2750
2819
  };
2751
2820
  export type RequestSignedUploadUrlErrors = {
@@ -1039,6 +1039,9 @@ export declare const zGraph: z.ZodObject<{
1039
1039
  }, z.core.$strip>>]>>;
1040
1040
  }, z.core.$strip>>;
1041
1041
  }, z.core.$strip>;
1042
+ export declare const zSignedUrlDownloadResponse: z.ZodObject<{
1043
+ signedUrl: z.ZodString;
1044
+ }, z.core.$strip>;
1042
1045
  export declare const zSignedUrlUploadResponse: z.ZodObject<{
1043
1046
  signedUrl: z.ZodString;
1044
1047
  expiration: z.ZodISODateTime;
@@ -1242,6 +1245,10 @@ export declare const zEnvironmentId: z.ZodUUID;
1242
1245
  * The node UUID.
1243
1246
  */
1244
1247
  export declare const zNodeId: z.ZodUUID;
1248
+ /**
1249
+ * An uploaded file name.
1250
+ */
1251
+ export declare const zUploadedFileNameUuid: z.ZodUUID;
1245
1252
  /**
1246
1253
  * A version UUID.
1247
1254
  */
@@ -1322,6 +1329,10 @@ export declare const zKeyCodeRef: z.ZodString;
1322
1329
  * Optional callback URL override for the connected app flow. Ignored when an empty string is provided.
1323
1330
  */
1324
1331
  export declare const zOverrideCallbackUrl: z.ZodString;
1332
+ /**
1333
+ * The uuid file name of an exisiting source code upload
1334
+ */
1335
+ export declare const zExistingFileUuid: z.ZodUUID;
1325
1336
  /**
1326
1337
  * Identity ID to delete.
1327
1338
  */
@@ -3138,16 +3149,35 @@ export declare const zDeployVersionData: z.ZodObject<{
3138
3149
  'If-Match': z.ZodString;
3139
3150
  }, z.core.$strip>;
3140
3151
  }, z.core.$strip>;
3141
- export declare const zRequestSignedUploadUrlData: z.ZodObject<{
3152
+ export declare const zRequestSignedDownloadUrlData: z.ZodObject<{
3142
3153
  body: z.ZodOptional<z.ZodNever>;
3143
3154
  path: z.ZodObject<{
3144
3155
  spaceHandle: z.ZodString;
3145
3156
  projectHandle: z.ZodString;
3146
3157
  environmentHandle: z.ZodString;
3147
3158
  version: z.ZodString;
3159
+ fileNameUUID: z.ZodUUID;
3148
3160
  }, z.core.$strip>;
3149
3161
  query: z.ZodOptional<z.ZodNever>;
3150
3162
  }, z.core.$strip>;
3163
+ /**
3164
+ * A successfully generated signed url.
3165
+ */
3166
+ export declare const zRequestSignedDownloadUrlResponse: z.ZodObject<{
3167
+ signedUrl: z.ZodString;
3168
+ }, z.core.$strip>;
3169
+ export declare const zRequestSignedUploadUrlData: z.ZodObject<{
3170
+ body: z.ZodOptional<z.ZodNever>;
3171
+ path: z.ZodObject<{
3172
+ spaceHandle: z.ZodString;
3173
+ projectHandle: z.ZodString;
3174
+ environmentHandle: z.ZodString;
3175
+ version: z.ZodString;
3176
+ }, z.core.$strip>;
3177
+ query: z.ZodOptional<z.ZodObject<{
3178
+ existing: z.ZodOptional<z.ZodUUID>;
3179
+ }, z.core.$strip>>;
3180
+ }, z.core.$strip>;
3151
3181
  /**
3152
3182
  * A successfully generated signed url.
3153
3183
  */
@@ -1,6 +1,6 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { z } from 'zod';
3
- export const zPlainString = z.string().regex(/^[a-zA-Z0-9 -']+$/);
3
+ export const zPlainString = z.string().regex(/^[-a-zA-Z0-9 ']+$/);
4
4
  export const zEnvironmentVariable = z.object({
5
5
  key: z.string(),
6
6
  value: z.string()
@@ -465,6 +465,9 @@ export const zGraph = z.object({
465
465
  version: z.int(),
466
466
  nodes: z.array(zNode)
467
467
  });
468
+ export const zSignedUrlDownloadResponse = z.object({
469
+ signedUrl: z.string()
470
+ });
468
471
  export const zSignedUrlUploadResponse = z.object({
469
472
  signedUrl: z.string(),
470
473
  expiration: z.iso.datetime(),
@@ -587,6 +590,10 @@ export const zEnvironmentId = z.uuid();
587
590
  * The node UUID.
588
591
  */
589
592
  export const zNodeId = z.uuid();
593
+ /**
594
+ * An uploaded file name.
595
+ */
596
+ export const zUploadedFileNameUuid = z.uuid();
590
597
  /**
591
598
  * A version UUID.
592
599
  */
@@ -651,6 +658,10 @@ export const zKeyCodeRef = z.string();
651
658
  * Optional callback URL override for the connected app flow. Ignored when an empty string is provided.
652
659
  */
653
660
  export const zOverrideCallbackUrl = z.string();
661
+ /**
662
+ * The uuid file name of an exisiting source code upload
663
+ */
664
+ export const zExistingFileUuid = z.uuid();
654
665
  /**
655
666
  * Identity ID to delete.
656
667
  */
@@ -1207,6 +1218,21 @@ export const zDeployVersionData = z.object({
1207
1218
  'If-Match': z.string()
1208
1219
  })
1209
1220
  });
1221
+ export const zRequestSignedDownloadUrlData = z.object({
1222
+ body: z.optional(z.never()),
1223
+ path: z.object({
1224
+ spaceHandle: z.string(),
1225
+ projectHandle: z.string(),
1226
+ environmentHandle: z.string(),
1227
+ version: z.string(),
1228
+ fileNameUUID: z.uuid()
1229
+ }),
1230
+ query: z.optional(z.never())
1231
+ });
1232
+ /**
1233
+ * A successfully generated signed url.
1234
+ */
1235
+ export const zRequestSignedDownloadUrlResponse = zSignedUrlDownloadResponse;
1210
1236
  export const zRequestSignedUploadUrlData = z.object({
1211
1237
  body: z.optional(z.never()),
1212
1238
  path: z.object({
@@ -1215,7 +1241,9 @@ export const zRequestSignedUploadUrlData = z.object({
1215
1241
  environmentHandle: z.string(),
1216
1242
  version: z.string()
1217
1243
  }),
1218
- query: z.optional(z.never())
1244
+ query: z.optional(z.object({
1245
+ existing: z.optional(z.uuid())
1246
+ }))
1219
1247
  });
1220
1248
  /**
1221
1249
  * A successfully generated signed url.
@@ -1,6 +1,6 @@
1
1
  import { useMutation } from "@tanstack/react-query";
2
2
  import { GetSuccessResponse } from "../util";
3
- import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, GetVersionData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } from "../../sdk/types.gen";
3
+ import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, GetVersionData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } from "../../sdk/types.gen";
4
4
  export declare const useGetServiceHealth: (options?: Omit<GetServiceHealthData, "url"> & {
5
5
  enabled?: boolean;
6
6
  }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").HealthResponse | undefined, Error>;
@@ -260,6 +260,9 @@ export declare const useDeployVersion: (config?: {
260
260
  data: unknown;
261
261
  headers: Headers;
262
262
  }, unknown, Omit<DeployVersionData, "url">, unknown>;
263
+ export declare const useRequestSignedDownloadUrl: (options: Omit<RequestSignedDownloadUrlData, "url"> & {
264
+ enabled?: boolean;
265
+ }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").SignedUrlDownloadResponse | undefined, Error>;
263
266
  export declare const useRequestSignedUploadUrl: (config?: {
264
267
  onSuccess?: (data: GetSuccessResponse<RequestSignedUploadUrlResponses>, headers: Headers) => void;
265
268
  onError?: Parameters<typeof useMutation>["0"]["onError"];
@@ -2,7 +2,7 @@
2
2
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { isPromise } from "../util";
4
4
  import { useToken } from "../../provider/token-provider";
5
- import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, createFeatureRequest, recordOnboardingAnalytics, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, getVersion, getGraphOverview, updateGraphState, deployVersion, requestSignedUploadUrl, checkSubdomainUniqueness, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
5
+ import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, createFeatureRequest, recordOnboardingAnalytics, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, getVersion, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, requestSignedUploadUrl, checkSubdomainUniqueness, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
6
6
  export const useGetServiceHealth = (options) => {
7
7
  const token = useToken();
8
8
  let { enabled, ...rest } = options || { enabled: true };
@@ -965,6 +965,27 @@ export const useDeployVersion = (config) => {
965
965
  retry: config?.retry
966
966
  });
967
967
  };
968
+ export const useRequestSignedDownloadUrl = (options) => {
969
+ const token = useToken();
970
+ let { enabled, ...rest } = options || { enabled: true };
971
+ const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-download-url/{fileNameUUID}" };
972
+ const funcer = async () => {
973
+ const auth = isPromise(token) ? (await token) || "" : token || "";
974
+ if (isPromise(token) && !token)
975
+ return;
976
+ const res = await requestSignedDownloadUrl({ ...opts, ...rest, auth });
977
+ return res.data;
978
+ };
979
+ if (!token)
980
+ enabled = false;
981
+ return useQuery({
982
+ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", "signed-download-url", options?.path?.fileNameUUID, options.query ?? {}],
983
+ queryFn: funcer,
984
+ enabled,
985
+ retry: false,
986
+ staleTime: 600000
987
+ });
988
+ };
968
989
  export const useRequestSignedUploadUrl = (config) => {
969
990
  const token = useToken();
970
991
  const queryClient = useQueryClient();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",