shoal-web-sdk 0.0.82 → 0.0.84

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, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSpaceData, CreateSpaceError, CreateSpaceResponse, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, FetchGraphData, FetchKindeOrganisationBillingAgreementsData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetGraphOverviewData, GetProjectOverviewData, GetServiceHealthData, GetSpaceOverviewData, GetUserIdentitiesData, GetUserProfileData, LeaveSpaceData, LeaveSpaceError, ListInstallationBranchesData, ListInstallationRepositoriesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RequestAccountPasswordResetData, RequestAccountPasswordResetError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateGraphStateData, UpdateGraphStateError } from '../types.gen';
3
+ import type { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSpaceData, CreateSpaceError, CreateSpaceResponse, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetGraphOverviewData, GetProjectOverviewData, GetServiceHealthData, GetSpaceOverviewData, GetUserIdentitiesData, GetUserProfileData, LeaveSpaceData, LeaveSpaceError, ListInstallationBranchesData, ListInstallationRepositoriesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RequestAccountPasswordResetData, RequestAccountPasswordResetError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateGraphStateData, UpdateGraphStateError } from '../types.gen';
4
4
  export type QueryKey<TOptions extends Options> = [
5
5
  Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
6
6
  _id: string;
@@ -36,7 +36,7 @@ export declare const getServiceHealthOptions: (options?: Options<GetServiceHealt
36
36
  [dataTagErrorSymbol]: Error;
37
37
  };
38
38
  };
39
- export declare const fetchGraphQueryKey: (options: Options<FetchGraphData>) => [Pick<Options<FetchGraphData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
39
+ export declare const fetchGraphM2mQueryKey: (options: Options<FetchGraphM2mData>) => [Pick<Options<FetchGraphM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
40
40
  _id: string;
41
41
  _infinite?: boolean;
42
42
  tags?: ReadonlyArray<string>;
@@ -44,18 +44,18 @@ export declare const fetchGraphQueryKey: (options: Options<FetchGraphData>) => [
44
44
  /**
45
45
  * Fetch a graph by version ID for M2M
46
46
  */
47
- export declare const fetchGraphOptions: (options: Options<FetchGraphData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Graph, Error, import("../types.gen").Graph, [Pick<Options<FetchGraphData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
47
+ export declare const fetchGraphM2mOptions: (options: Options<FetchGraphM2mData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Graph, Error, import("../types.gen").Graph, [Pick<Options<FetchGraphM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
48
48
  _id: string;
49
49
  _infinite?: boolean;
50
50
  tags?: ReadonlyArray<string>;
51
51
  }]>, "queryFn"> & {
52
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Graph, [Pick<Options<FetchGraphData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
52
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Graph, [Pick<Options<FetchGraphM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
53
53
  _id: string;
54
54
  _infinite?: boolean;
55
55
  tags?: ReadonlyArray<string>;
56
56
  }], never> | undefined;
57
57
  } & {
58
- queryKey: [Pick<Options<FetchGraphData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
58
+ queryKey: [Pick<Options<FetchGraphM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
59
59
  _id: string;
60
60
  _infinite?: boolean;
61
61
  tags?: ReadonlyArray<string>;
@@ -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 { createEnvironment, createProject, createSpace, deleteAccountIdentity, fetchGraph, fetchKindeOrganisationBillingAgreements, getConnectedAppUrl, getEnvironmentOverview, getGraphOverview, getProjectOverview, getServiceHealth, getSpaceOverview, getUserIdentities, getUserProfile, leaveSpace, listInstallationBranches, listInstallationRepositories, listSpaceMembers, listUserInstallations, listUserSpaces, requestAccountPasswordReset, updateConnectedAppToken, updateGraphState } from '../sdk.gen';
4
+ import { createEnvironment, createProject, createSpace, deleteAccountIdentity, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, getConnectedAppUrl, getEnvironmentOverview, getGraphOverview, getProjectOverview, getServiceHealth, getSpaceOverview, getUserIdentities, getUserProfile, leaveSpace, listInstallationBranches, listInstallationRepositories, listSpaceMembers, listUserInstallations, listUserSpaces, requestAccountPasswordReset, updateConnectedAppToken, updateGraphState } 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) {
@@ -44,14 +44,14 @@ export const getServiceHealthOptions = (options) => {
44
44
  queryKey: getServiceHealthQueryKey(options)
45
45
  });
46
46
  };
47
- export const fetchGraphQueryKey = (options) => createQueryKey('fetchGraph', options);
47
+ export const fetchGraphM2mQueryKey = (options) => createQueryKey('fetchGraphM2M', options);
48
48
  /**
49
49
  * Fetch a graph by version ID for M2M
50
50
  */
51
- export const fetchGraphOptions = (options) => {
51
+ export const fetchGraphM2mOptions = (options) => {
52
52
  return queryOptions({
53
53
  queryFn: async ({ queryKey, signal }) => {
54
- const { data } = await fetchGraph({
54
+ const { data } = await fetchGraphM2M({
55
55
  ...options,
56
56
  ...queryKey[0],
57
57
  signal,
@@ -59,7 +59,7 @@ export const fetchGraphOptions = (options) => {
59
59
  });
60
60
  return data;
61
61
  },
62
- queryKey: fetchGraphQueryKey(options)
62
+ queryKey: fetchGraphM2mQueryKey(options)
63
63
  });
64
64
  };
65
65
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, FetchGraphData, FetchGraphErrors, FetchGraphResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses } from './types.gen';
2
+ import type { CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses } 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
@@ -20,7 +20,7 @@ export declare const getServiceHealth: <ThrowOnError extends boolean = false>(op
20
20
  /**
21
21
  * Fetch a graph by version ID for M2M
22
22
  */
23
- export declare const fetchGraph: <ThrowOnError extends boolean = false>(options: Options<FetchGraphData, ThrowOnError>) => import("./client").RequestResult<FetchGraphResponses, FetchGraphErrors, ThrowOnError, "fields">;
23
+ export declare const fetchGraphM2M: <ThrowOnError extends boolean = false>(options: Options<FetchGraphM2mData, ThrowOnError>) => import("./client").RequestResult<FetchGraphM2mResponses, FetchGraphM2mErrors, ThrowOnError, "fields">;
24
24
  /**
25
25
  * This will submit a password reset request requiring the user to reset their password on next sign in.
26
26
  */
@@ -18,7 +18,7 @@ export const getServiceHealth = (options) => {
18
18
  /**
19
19
  * Fetch a graph by version ID for M2M
20
20
  */
21
- export const fetchGraph = (options) => {
21
+ export const fetchGraphM2M = (options) => {
22
22
  return (options.client ?? client).get({
23
23
  security: [
24
24
  {
@@ -263,7 +263,12 @@ export type ContainerNodeProps = {
263
263
  minInstances?: number;
264
264
  concurrency?: number;
265
265
  allowUnauthenticated?: boolean;
266
+ sourceType?: SourceType;
267
+ gitAccount?: string;
268
+ gitRepo?: string;
269
+ gitBranch?: string;
266
270
  };
271
+ export type SourceType = 'GITHUB' | 'FLAT_FILE' | 'DOCKER_IMAGE';
267
272
  export type Region = 'africa-south1' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'europe-north1' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4';
268
273
  export type Memory = '128Mi' | '256Mi' | '512Mi' | '1Gi' | '2Gi' | '4Gi' | '8Gi' | '16Gi' | '32Gi';
269
274
  export type Cpu = '1' | '2' | '4' | '6' | '8';
@@ -359,7 +364,7 @@ export type GetServiceHealthResponses = {
359
364
  200: HealthResponse;
360
365
  };
361
366
  export type GetServiceHealthResponse = GetServiceHealthResponses[keyof GetServiceHealthResponses];
362
- export type FetchGraphData = {
367
+ export type FetchGraphM2mData = {
363
368
  body?: never;
364
369
  path: {
365
370
  versionId: string;
@@ -367,7 +372,7 @@ export type FetchGraphData = {
367
372
  query?: never;
368
373
  url: '/auth/m2m/graph/{versionId}';
369
374
  };
370
- export type FetchGraphErrors = {
375
+ export type FetchGraphM2mErrors = {
371
376
  /**
372
377
  * Unauthorised user.
373
378
  */
@@ -381,14 +386,14 @@ export type FetchGraphErrors = {
381
386
  */
382
387
  404: ErrorResponse;
383
388
  };
384
- export type FetchGraphError = FetchGraphErrors[keyof FetchGraphErrors];
385
- export type FetchGraphResponses = {
389
+ export type FetchGraphM2mError = FetchGraphM2mErrors[keyof FetchGraphM2mErrors];
390
+ export type FetchGraphM2mResponses = {
386
391
  /**
387
392
  * Graph fetched successfully.
388
393
  */
389
394
  200: Graph;
390
395
  };
391
- export type FetchGraphResponse = FetchGraphResponses[keyof FetchGraphResponses];
396
+ export type FetchGraphM2mResponse = FetchGraphM2mResponses[keyof FetchGraphM2mResponses];
392
397
  export type RequestAccountPasswordResetData = {
393
398
  body?: never;
394
399
  path?: never;
@@ -340,6 +340,11 @@ export declare const zCommentNodeProps: z.ZodObject<{
340
340
  export declare const zCacheNodeProps: z.ZodObject<{
341
341
  size: z.ZodOptional<z.ZodInt>;
342
342
  }, z.core.$strip>;
343
+ export declare const zSourceType: z.ZodEnum<{
344
+ GITHUB: "GITHUB";
345
+ FLAT_FILE: "FLAT_FILE";
346
+ DOCKER_IMAGE: "DOCKER_IMAGE";
347
+ }>;
343
348
  export declare const zRegion: z.ZodEnum<{
344
349
  "africa-south1": "africa-south1";
345
350
  "asia-east1": "asia-east1";
@@ -452,6 +457,14 @@ export declare const zContainerNodeProps: z.ZodObject<{
452
457
  minInstances: z.ZodOptional<z.ZodInt>;
453
458
  concurrency: z.ZodOptional<z.ZodInt>;
454
459
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
460
+ sourceType: z.ZodOptional<z.ZodEnum<{
461
+ GITHUB: "GITHUB";
462
+ FLAT_FILE: "FLAT_FILE";
463
+ DOCKER_IMAGE: "DOCKER_IMAGE";
464
+ }>>;
465
+ gitAccount: z.ZodOptional<z.ZodString>;
466
+ gitRepo: z.ZodOptional<z.ZodString>;
467
+ gitBranch: z.ZodOptional<z.ZodString>;
455
468
  }, z.core.$strip>;
456
469
  export declare const zCronJobNodeProps: z.ZodObject<{
457
470
  cronTab: z.ZodOptional<z.ZodString>;
@@ -565,6 +578,14 @@ export declare const zNode: z.ZodObject<{
565
578
  minInstances: z.ZodOptional<z.ZodInt>;
566
579
  concurrency: z.ZodOptional<z.ZodInt>;
567
580
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
581
+ sourceType: z.ZodOptional<z.ZodEnum<{
582
+ GITHUB: "GITHUB";
583
+ FLAT_FILE: "FLAT_FILE";
584
+ DOCKER_IMAGE: "DOCKER_IMAGE";
585
+ }>>;
586
+ gitAccount: z.ZodOptional<z.ZodString>;
587
+ gitRepo: z.ZodOptional<z.ZodString>;
588
+ gitBranch: z.ZodOptional<z.ZodString>;
568
589
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
569
590
  typ: z.ZodLiteral<"cronjob">;
570
591
  }, z.core.$strip>, z.ZodObject<{
@@ -686,6 +707,14 @@ export declare const zNodes: z.ZodObject<{
686
707
  minInstances: z.ZodOptional<z.ZodInt>;
687
708
  concurrency: z.ZodOptional<z.ZodInt>;
688
709
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
710
+ sourceType: z.ZodOptional<z.ZodEnum<{
711
+ GITHUB: "GITHUB";
712
+ FLAT_FILE: "FLAT_FILE";
713
+ DOCKER_IMAGE: "DOCKER_IMAGE";
714
+ }>>;
715
+ gitAccount: z.ZodOptional<z.ZodString>;
716
+ gitRepo: z.ZodOptional<z.ZodString>;
717
+ gitBranch: z.ZodOptional<z.ZodString>;
689
718
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
690
719
  typ: z.ZodLiteral<"cronjob">;
691
720
  }, z.core.$strip>, z.ZodObject<{
@@ -809,6 +838,14 @@ export declare const zGraph: z.ZodObject<{
809
838
  minInstances: z.ZodOptional<z.ZodInt>;
810
839
  concurrency: z.ZodOptional<z.ZodInt>;
811
840
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
841
+ sourceType: z.ZodOptional<z.ZodEnum<{
842
+ GITHUB: "GITHUB";
843
+ FLAT_FILE: "FLAT_FILE";
844
+ DOCKER_IMAGE: "DOCKER_IMAGE";
845
+ }>>;
846
+ gitAccount: z.ZodOptional<z.ZodString>;
847
+ gitRepo: z.ZodOptional<z.ZodString>;
848
+ gitBranch: z.ZodOptional<z.ZodString>;
812
849
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
813
850
  typ: z.ZodLiteral<"cronjob">;
814
851
  }, z.core.$strip>, z.ZodObject<{
@@ -909,7 +946,7 @@ export declare const zGetServiceHealthData: z.ZodObject<{
909
946
  export declare const zGetServiceHealthResponse: z.ZodObject<{
910
947
  status: z.ZodString;
911
948
  }, z.core.$strip>;
912
- export declare const zFetchGraphData: z.ZodObject<{
949
+ export declare const zFetchGraphM2mData: z.ZodObject<{
913
950
  body: z.ZodOptional<z.ZodNever>;
914
951
  path: z.ZodObject<{
915
952
  versionId: z.ZodUUID;
@@ -919,7 +956,7 @@ export declare const zFetchGraphData: z.ZodObject<{
919
956
  /**
920
957
  * Graph fetched successfully.
921
958
  */
922
- export declare const zFetchGraphResponse: z.ZodObject<{
959
+ export declare const zFetchGraphM2mResponse: z.ZodObject<{
923
960
  versionUUID: z.ZodUUID;
924
961
  nodes: z.ZodArray<z.ZodObject<{
925
962
  id: z.ZodUUID;
@@ -1015,6 +1052,14 @@ export declare const zFetchGraphResponse: z.ZodObject<{
1015
1052
  minInstances: z.ZodOptional<z.ZodInt>;
1016
1053
  concurrency: z.ZodOptional<z.ZodInt>;
1017
1054
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
1055
+ sourceType: z.ZodOptional<z.ZodEnum<{
1056
+ GITHUB: "GITHUB";
1057
+ FLAT_FILE: "FLAT_FILE";
1058
+ DOCKER_IMAGE: "DOCKER_IMAGE";
1059
+ }>>;
1060
+ gitAccount: z.ZodOptional<z.ZodString>;
1061
+ gitRepo: z.ZodOptional<z.ZodString>;
1062
+ gitBranch: z.ZodOptional<z.ZodString>;
1018
1063
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1019
1064
  typ: z.ZodLiteral<"cronjob">;
1020
1065
  }, z.core.$strip>, z.ZodObject<{
@@ -1550,6 +1595,14 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
1550
1595
  minInstances: z.ZodOptional<z.ZodInt>;
1551
1596
  concurrency: z.ZodOptional<z.ZodInt>;
1552
1597
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
1598
+ sourceType: z.ZodOptional<z.ZodEnum<{
1599
+ GITHUB: "GITHUB";
1600
+ FLAT_FILE: "FLAT_FILE";
1601
+ DOCKER_IMAGE: "DOCKER_IMAGE";
1602
+ }>>;
1603
+ gitAccount: z.ZodOptional<z.ZodString>;
1604
+ gitRepo: z.ZodOptional<z.ZodString>;
1605
+ gitBranch: z.ZodOptional<z.ZodString>;
1553
1606
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1554
1607
  typ: z.ZodLiteral<"cronjob">;
1555
1608
  }, z.core.$strip>, z.ZodObject<{
@@ -1673,6 +1726,14 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
1673
1726
  minInstances: z.ZodOptional<z.ZodInt>;
1674
1727
  concurrency: z.ZodOptional<z.ZodInt>;
1675
1728
  allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
1729
+ sourceType: z.ZodOptional<z.ZodEnum<{
1730
+ GITHUB: "GITHUB";
1731
+ FLAT_FILE: "FLAT_FILE";
1732
+ DOCKER_IMAGE: "DOCKER_IMAGE";
1733
+ }>>;
1734
+ gitAccount: z.ZodOptional<z.ZodString>;
1735
+ gitRepo: z.ZodOptional<z.ZodString>;
1736
+ gitBranch: z.ZodOptional<z.ZodString>;
1676
1737
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1677
1738
  typ: z.ZodLiteral<"cronjob">;
1678
1739
  }, z.core.$strip>, z.ZodObject<{
@@ -226,6 +226,11 @@ export const zCommentNodeProps = z.object({
226
226
  export const zCacheNodeProps = z.object({
227
227
  size: z.optional(z.int())
228
228
  });
229
+ export const zSourceType = z.enum([
230
+ 'GITHUB',
231
+ 'FLAT_FILE',
232
+ 'DOCKER_IMAGE'
233
+ ]);
229
234
  export const zRegion = z.enum([
230
235
  'africa-south1',
231
236
  'asia-east1',
@@ -289,7 +294,11 @@ export const zContainerNodeProps = z.object({
289
294
  maxInstances: z.optional(z.int()),
290
295
  minInstances: z.optional(z.int()),
291
296
  concurrency: z.optional(z.int()),
292
- allowUnauthenticated: z.optional(z.boolean())
297
+ allowUnauthenticated: z.optional(z.boolean()),
298
+ sourceType: z.optional(zSourceType),
299
+ gitAccount: z.optional(z.string()),
300
+ gitRepo: z.optional(z.string()),
301
+ gitBranch: z.optional(z.string())
293
302
  });
294
303
  export const zCronJobNodeProps = z.object({
295
304
  cronTab: z.optional(z.string())
@@ -427,7 +436,7 @@ export const zGetServiceHealthData = z.object({
427
436
  * Service is healthy!
428
437
  */
429
438
  export const zGetServiceHealthResponse = zHealthResponse;
430
- export const zFetchGraphData = z.object({
439
+ export const zFetchGraphM2mData = z.object({
431
440
  body: z.optional(z.never()),
432
441
  path: z.object({
433
442
  versionId: z.uuid()
@@ -437,7 +446,7 @@ export const zFetchGraphData = z.object({
437
446
  /**
438
447
  * Graph fetched successfully.
439
448
  */
440
- export const zFetchGraphResponse = zGraph;
449
+ export const zFetchGraphM2mResponse = zGraph;
441
450
  export const zRequestAccountPasswordResetData = z.object({
442
451
  body: z.optional(z.never()),
443
452
  path: z.optional(z.never()),
@@ -1,10 +1,10 @@
1
1
  import { useMutation } from "@tanstack/react-query";
2
2
  import { GetSuccessResponse } from "../util";
3
- import { GetServiceHealthData, FetchGraphData, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, GetUserProfileData, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, CreateSpaceData, CreateSpaceResponses, GetSpaceOverviewData, FetchKindeOrganisationBillingAgreementsData, ListSpaceMembersData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses } from "../../sdk/types.gen";
3
+ import { GetServiceHealthData, FetchGraphM2mData, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, GetUserProfileData, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, CreateSpaceData, CreateSpaceResponses, GetSpaceOverviewData, FetchKindeOrganisationBillingAgreementsData, ListSpaceMembersData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses } 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>;
7
- export declare const useFetchGraph: (options: Omit<FetchGraphData, "url"> & {
7
+ export declare const useFetchGraphM2M: (options: Omit<FetchGraphM2mData, "url"> & {
8
8
  enabled?: boolean;
9
9
  }) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").Graph | undefined, Error>;
10
10
  export declare const useRequestAccountPasswordReset: (config?: {
@@ -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, fetchGraph, requestAccountPasswordReset, getUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, createSpace, getSpaceOverview, fetchKindeOrganisationBillingAgreements, listSpaceMembers, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getGraphOverview, updateGraphState } from "../../sdk/sdk.gen";
5
+ import { getServiceHealth, fetchGraphM2M, requestAccountPasswordReset, getUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, createSpace, getSpaceOverview, fetchKindeOrganisationBillingAgreements, listSpaceMembers, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getGraphOverview, updateGraphState } from "../../sdk/sdk.gen";
6
6
  export const useGetServiceHealth = (options) => {
7
7
  const token = useToken();
8
8
  let { enabled, ...rest } = options || { enabled: true };
@@ -24,7 +24,7 @@ export const useGetServiceHealth = (options) => {
24
24
  staleTime: 600000
25
25
  });
26
26
  };
27
- export const useFetchGraph = (options) => {
27
+ export const useFetchGraphM2M = (options) => {
28
28
  const token = useToken();
29
29
  let { enabled, ...rest } = options || { enabled: true };
30
30
  const opts = { throwOnError: true, url: "/auth/m2m/graph/{versionId}" };
@@ -32,7 +32,7 @@ export const useFetchGraph = (options) => {
32
32
  const auth = isPromise(token) ? (await token) || "" : token || "";
33
33
  if (isPromise(token) && !token)
34
34
  return;
35
- const res = await fetchGraph({ ...opts, ...rest, auth });
35
+ const res = await fetchGraphM2M({ ...opts, ...rest, auth });
36
36
  return res.data;
37
37
  };
38
38
  if (!token)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",