shoal-web-sdk 0.0.144 → 0.0.145

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 { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, 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, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, 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, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateNodeM2mResponse, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, VersionStatusData } from '../types.gen';
3
+ import type { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateEnvironmentVariableData, CreateEnvironmentVariableError, 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, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetSpaceStatsData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, 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, UpdateEnvironmentVariableData, UpdateEnvironmentVariableError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateNodeM2mData, UpdateNodeM2mError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, VersionStatusData } from '../types.gen';
4
4
  export type QueryKey<TOptions extends Options> = [
5
5
  Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
6
6
  _id: string;
@@ -99,7 +99,7 @@ export declare const fetchNodeM2mOptions: (options: Options<FetchNodeM2mData>) =
99
99
  /**
100
100
  * Update a node by id with its props for M2M.
101
101
  */
102
- export declare const updateNodeM2mMutation: (options?: Partial<Options<UpdateNodeM2mData>>) => UseMutationOptions<UpdateNodeM2mResponse, UpdateNodeM2mError, Options<UpdateNodeM2mData>>;
102
+ export declare const updateNodeM2mMutation: (options?: Partial<Options<UpdateNodeM2mData>>) => UseMutationOptions<unknown, UpdateNodeM2mError, Options<UpdateNodeM2mData>>;
103
103
  /**
104
104
  * This will submit a password reset request requiring the user to reset their password on next sign in.
105
105
  */
@@ -806,11 +806,10 @@ export type UpdateNodeM2mErrors = {
806
806
  export type UpdateNodeM2mError = UpdateNodeM2mErrors[keyof UpdateNodeM2mErrors];
807
807
  export type UpdateNodeM2mResponses = {
808
808
  /**
809
- * Node fetched successfully.
809
+ * Node updated successfully.
810
810
  */
811
- 200: Node;
811
+ 202: unknown;
812
812
  };
813
- export type UpdateNodeM2mResponse = UpdateNodeM2mResponses[keyof UpdateNodeM2mResponses];
814
813
  export type RequestAccountPasswordResetData = {
815
814
  body?: never;
816
815
  path?: never;
@@ -1692,127 +1692,6 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
1692
1692
  }, z.core.$strip>;
1693
1693
  query: z.ZodOptional<z.ZodNever>;
1694
1694
  }, z.core.$strip>;
1695
- /**
1696
- * Node fetched successfully.
1697
- */
1698
- export declare const zUpdateNodeM2mResponse: z.ZodObject<{
1699
- id: z.ZodUUID;
1700
- name: z.ZodOptional<z.ZodString>;
1701
- description: z.ZodOptional<z.ZodString>;
1702
- x: z.ZodNumber;
1703
- y: z.ZodNumber;
1704
- width: z.ZodInt;
1705
- height: z.ZodInt;
1706
- edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1707
- id: z.ZodUUID;
1708
- src: z.ZodUUID;
1709
- dst: z.ZodUUID;
1710
- typ: z.ZodEnum<{
1711
- network: "network";
1712
- route: "route";
1713
- }>;
1714
- props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1715
- typ: z.ZodLiteral<"network">;
1716
- }, z.core.$strip>, z.ZodObject<{
1717
- a: z.ZodOptional<z.ZodString>;
1718
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1719
- typ: z.ZodLiteral<"route">;
1720
- }, z.core.$strip>, z.ZodObject<{
1721
- path: z.ZodOptional<z.ZodString>;
1722
- }, z.core.$strip>>]>>;
1723
- }, z.core.$strip>>>;
1724
- typ: z.ZodEnum<{
1725
- function: "function";
1726
- cache: "cache";
1727
- comment: "comment";
1728
- container: "container";
1729
- cronjob: "cronjob";
1730
- database: "database";
1731
- queue: "queue";
1732
- proxy: "proxy";
1733
- vm: "vm";
1734
- scheduler: "scheduler";
1735
- }>;
1736
- props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
1737
- typ: z.ZodLiteral<"comment">;
1738
- }, z.core.$strip>, z.ZodObject<{
1739
- comment: z.ZodOptional<z.ZodString>;
1740
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1741
- typ: z.ZodLiteral<"cache">;
1742
- }, z.core.$strip>, z.ZodObject<{
1743
- size: z.ZodOptional<z.ZodInt>;
1744
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1745
- typ: z.ZodLiteral<"container">;
1746
- }, z.core.$strip>, z.ZodObject<{
1747
- region: z.ZodEnum<{
1748
- "europe-west2": "europe-west2";
1749
- }>;
1750
- port: z.ZodInt;
1751
- cpu: z.ZodEnum<{
1752
- 1: "1";
1753
- 2: "2";
1754
- }>;
1755
- memory: z.ZodEnum<{
1756
- "512Mi": "512Mi";
1757
- "1Gi": "1Gi";
1758
- "2Gi": "2Gi";
1759
- }>;
1760
- ingress: z.ZodEnum<{
1761
- INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
1762
- INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
1763
- INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
1764
- }>;
1765
- timeoutSeconds: z.ZodOptional<z.ZodInt>;
1766
- maxInstances: z.ZodOptional<z.ZodInt>;
1767
- minInstances: z.ZodOptional<z.ZodInt>;
1768
- concurrency: z.ZodOptional<z.ZodInt>;
1769
- allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
1770
- uri: z.ZodOptional<z.ZodString>;
1771
- installationId: z.ZodOptional<z.ZodString>;
1772
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1773
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1774
- typ: z.ZodLiteral<"cronjob">;
1775
- }, z.core.$strip>, z.ZodObject<{
1776
- cronTab: z.ZodOptional<z.ZodString>;
1777
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1778
- typ: z.ZodLiteral<"database">;
1779
- }, z.core.$strip>, z.ZodObject<{
1780
- space: z.ZodOptional<z.ZodInt>;
1781
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1782
- typ: z.ZodLiteral<"function">;
1783
- }, z.core.$strip>, z.ZodObject<{
1784
- cpus: z.ZodOptional<z.ZodInt>;
1785
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1786
- typ: z.ZodLiteral<"queue">;
1787
- }, z.core.$strip>, z.ZodObject<{
1788
- foobar: z.ZodOptional<z.ZodString>;
1789
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1790
- typ: z.ZodLiteral<"proxy">;
1791
- }, z.core.$strip>, z.ZodObject<{
1792
- subdomain: z.ZodOptional<z.ZodString>;
1793
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1794
- typ: z.ZodLiteral<"vm">;
1795
- }, z.core.$strip>, z.ZodObject<{
1796
- os: z.ZodOptional<z.ZodString>;
1797
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1798
- typ: z.ZodLiteral<"scheduler">;
1799
- }, z.core.$strip>, z.ZodObject<{
1800
- expression: z.ZodString;
1801
- timezone: z.ZodString;
1802
- requestMethod: z.ZodEnum<{
1803
- DELETE: "DELETE";
1804
- GET: "GET";
1805
- HEAD: "HEAD";
1806
- OPTIONS: "OPTIONS";
1807
- PATCH: "PATCH";
1808
- POST: "POST";
1809
- PUT: "PUT";
1810
- }>;
1811
- requestPayload: z.ZodOptional<z.ZodString>;
1812
- requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1813
- paused: z.ZodBoolean;
1814
- }, z.core.$strip>>]>>;
1815
- }, z.core.$strip>;
1816
1695
  export declare const zRequestAccountPasswordResetData: z.ZodObject<{
1817
1696
  body: z.ZodOptional<z.ZodNever>;
1818
1697
  path: z.ZodOptional<z.ZodNever>;
@@ -673,10 +673,6 @@ export const zUpdateNodeM2mData = z.object({
673
673
  }),
674
674
  query: z.optional(z.never())
675
675
  });
676
- /**
677
- * Node fetched successfully.
678
- */
679
- export const zUpdateNodeM2mResponse = zNode;
680
676
  export const zRequestAccountPasswordResetData = z.object({
681
677
  body: z.optional(z.never()),
682
678
  path: z.optional(z.never()),
@@ -19,7 +19,7 @@ export declare const useUpdateNodeM2M: (config?: {
19
19
  onSuccess?: (data: GetSuccessResponse<UpdateNodeM2mResponses>) => void;
20
20
  onError?: Parameters<typeof useMutation>["0"]["onError"];
21
21
  retry?: boolean;
22
- }) => import("@tanstack/react-query").UseMutationResult<import("../../sdk/types.gen").Node | undefined, unknown, Omit<UpdateNodeM2mData, "url">, unknown>;
22
+ }) => import("@tanstack/react-query").UseMutationResult<unknown, unknown, Omit<UpdateNodeM2mData, "url">, unknown>;
23
23
  export declare const useRequestAccountPasswordReset: (config?: {
24
24
  onSuccess?: (data: GetSuccessResponse<RequestAccountPasswordResetResponses>) => void;
25
25
  onError?: Parameters<typeof useMutation>["0"]["onError"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.144",
3
+ "version": "0.0.145",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",