shoal-web-sdk 0.0.179 → 1.0.1

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.
@@ -418,7 +418,22 @@ export type DatabaseNodeProps = {
418
418
  space?: number;
419
419
  };
420
420
  export type FunctionNodeProps = {
421
- cpus?: number;
421
+ region: Region;
422
+ language: string;
423
+ runtimeVersion: string;
424
+ serviceName?: string;
425
+ cpu: Cpu;
426
+ memory: Memory;
427
+ concurrency?: number;
428
+ timeoutSeconds?: number;
429
+ minInstances?: number;
430
+ maxInstances?: number;
431
+ entryPoint?: string;
432
+ uri?: string;
433
+ installationId?: string;
434
+ env?: {
435
+ [key: string]: string;
436
+ };
422
437
  };
423
438
  export type QueueNodeProps = {
424
439
  foobar?: string;
@@ -565,7 +565,29 @@ export declare const zDatabaseNodeProps: z.ZodObject<{
565
565
  space: z.ZodOptional<z.ZodInt>;
566
566
  }, z.core.$strip>;
567
567
  export declare const zFunctionNodeProps: z.ZodObject<{
568
- cpus: z.ZodOptional<z.ZodInt>;
568
+ region: z.ZodEnum<{
569
+ "europe-west2": "europe-west2";
570
+ }>;
571
+ language: z.ZodString;
572
+ runtimeVersion: z.ZodString;
573
+ serviceName: z.ZodOptional<z.ZodString>;
574
+ cpu: z.ZodEnum<{
575
+ 1: "1";
576
+ 2: "2";
577
+ }>;
578
+ memory: z.ZodEnum<{
579
+ "512Mi": "512Mi";
580
+ "1Gi": "1Gi";
581
+ "2Gi": "2Gi";
582
+ }>;
583
+ concurrency: z.ZodOptional<z.ZodInt>;
584
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
585
+ minInstances: z.ZodOptional<z.ZodInt>;
586
+ maxInstances: z.ZodOptional<z.ZodInt>;
587
+ entryPoint: z.ZodOptional<z.ZodString>;
588
+ uri: z.ZodOptional<z.ZodString>;
589
+ installationId: z.ZodOptional<z.ZodString>;
590
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
569
591
  }, z.core.$strip>;
570
592
  export declare const zQueueNodeProps: z.ZodObject<{
571
593
  foobar: z.ZodOptional<z.ZodString>;
@@ -663,7 +685,29 @@ export declare const zNode: z.ZodObject<{
663
685
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
664
686
  typ: z.ZodLiteral<"function">;
665
687
  }, z.core.$strip>, z.ZodObject<{
666
- cpus: z.ZodOptional<z.ZodInt>;
688
+ region: z.ZodEnum<{
689
+ "europe-west2": "europe-west2";
690
+ }>;
691
+ language: z.ZodString;
692
+ runtimeVersion: z.ZodString;
693
+ serviceName: z.ZodOptional<z.ZodString>;
694
+ cpu: z.ZodEnum<{
695
+ 1: "1";
696
+ 2: "2";
697
+ }>;
698
+ memory: z.ZodEnum<{
699
+ "512Mi": "512Mi";
700
+ "1Gi": "1Gi";
701
+ "2Gi": "2Gi";
702
+ }>;
703
+ concurrency: z.ZodOptional<z.ZodInt>;
704
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
705
+ minInstances: z.ZodOptional<z.ZodInt>;
706
+ maxInstances: z.ZodOptional<z.ZodInt>;
707
+ entryPoint: z.ZodOptional<z.ZodString>;
708
+ uri: z.ZodOptional<z.ZodString>;
709
+ installationId: z.ZodOptional<z.ZodString>;
710
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
667
711
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
668
712
  typ: z.ZodLiteral<"queue">;
669
713
  }, z.core.$strip>, z.ZodObject<{
@@ -783,7 +827,29 @@ export declare const zNodes: z.ZodObject<{
783
827
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
784
828
  typ: z.ZodLiteral<"function">;
785
829
  }, z.core.$strip>, z.ZodObject<{
786
- cpus: z.ZodOptional<z.ZodInt>;
830
+ region: z.ZodEnum<{
831
+ "europe-west2": "europe-west2";
832
+ }>;
833
+ language: z.ZodString;
834
+ runtimeVersion: z.ZodString;
835
+ serviceName: z.ZodOptional<z.ZodString>;
836
+ cpu: z.ZodEnum<{
837
+ 1: "1";
838
+ 2: "2";
839
+ }>;
840
+ memory: z.ZodEnum<{
841
+ "512Mi": "512Mi";
842
+ "1Gi": "1Gi";
843
+ "2Gi": "2Gi";
844
+ }>;
845
+ concurrency: z.ZodOptional<z.ZodInt>;
846
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
847
+ minInstances: z.ZodOptional<z.ZodInt>;
848
+ maxInstances: z.ZodOptional<z.ZodInt>;
849
+ entryPoint: z.ZodOptional<z.ZodString>;
850
+ uri: z.ZodOptional<z.ZodString>;
851
+ installationId: z.ZodOptional<z.ZodString>;
852
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
787
853
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
788
854
  typ: z.ZodLiteral<"queue">;
789
855
  }, z.core.$strip>, z.ZodObject<{
@@ -906,7 +972,29 @@ export declare const zGraph: z.ZodObject<{
906
972
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
907
973
  typ: z.ZodLiteral<"function">;
908
974
  }, z.core.$strip>, z.ZodObject<{
909
- cpus: z.ZodOptional<z.ZodInt>;
975
+ region: z.ZodEnum<{
976
+ "europe-west2": "europe-west2";
977
+ }>;
978
+ language: z.ZodString;
979
+ runtimeVersion: z.ZodString;
980
+ serviceName: z.ZodOptional<z.ZodString>;
981
+ cpu: z.ZodEnum<{
982
+ 1: "1";
983
+ 2: "2";
984
+ }>;
985
+ memory: z.ZodEnum<{
986
+ "512Mi": "512Mi";
987
+ "1Gi": "1Gi";
988
+ "2Gi": "2Gi";
989
+ }>;
990
+ concurrency: z.ZodOptional<z.ZodInt>;
991
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
992
+ minInstances: z.ZodOptional<z.ZodInt>;
993
+ maxInstances: z.ZodOptional<z.ZodInt>;
994
+ entryPoint: z.ZodOptional<z.ZodString>;
995
+ uri: z.ZodOptional<z.ZodString>;
996
+ installationId: z.ZodOptional<z.ZodString>;
997
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
910
998
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
911
999
  typ: z.ZodLiteral<"queue">;
912
1000
  }, z.core.$strip>, z.ZodObject<{
@@ -1406,7 +1494,29 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
1406
1494
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1407
1495
  typ: z.ZodLiteral<"function">;
1408
1496
  }, z.core.$strip>, z.ZodObject<{
1409
- cpus: z.ZodOptional<z.ZodInt>;
1497
+ region: z.ZodEnum<{
1498
+ "europe-west2": "europe-west2";
1499
+ }>;
1500
+ language: z.ZodString;
1501
+ runtimeVersion: z.ZodString;
1502
+ serviceName: z.ZodOptional<z.ZodString>;
1503
+ cpu: z.ZodEnum<{
1504
+ 1: "1";
1505
+ 2: "2";
1506
+ }>;
1507
+ memory: z.ZodEnum<{
1508
+ "512Mi": "512Mi";
1509
+ "1Gi": "1Gi";
1510
+ "2Gi": "2Gi";
1511
+ }>;
1512
+ concurrency: z.ZodOptional<z.ZodInt>;
1513
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
1514
+ minInstances: z.ZodOptional<z.ZodInt>;
1515
+ maxInstances: z.ZodOptional<z.ZodInt>;
1516
+ entryPoint: z.ZodOptional<z.ZodString>;
1517
+ uri: z.ZodOptional<z.ZodString>;
1518
+ installationId: z.ZodOptional<z.ZodString>;
1519
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1410
1520
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1411
1521
  typ: z.ZodLiteral<"queue">;
1412
1522
  }, z.core.$strip>, z.ZodObject<{
@@ -1528,7 +1638,29 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
1528
1638
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1529
1639
  typ: z.ZodLiteral<"function">;
1530
1640
  }, z.core.$strip>, z.ZodObject<{
1531
- cpus: z.ZodOptional<z.ZodInt>;
1641
+ region: z.ZodEnum<{
1642
+ "europe-west2": "europe-west2";
1643
+ }>;
1644
+ language: z.ZodString;
1645
+ runtimeVersion: z.ZodString;
1646
+ serviceName: z.ZodOptional<z.ZodString>;
1647
+ cpu: z.ZodEnum<{
1648
+ 1: "1";
1649
+ 2: "2";
1650
+ }>;
1651
+ memory: z.ZodEnum<{
1652
+ "512Mi": "512Mi";
1653
+ "1Gi": "1Gi";
1654
+ "2Gi": "2Gi";
1655
+ }>;
1656
+ concurrency: z.ZodOptional<z.ZodInt>;
1657
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
1658
+ minInstances: z.ZodOptional<z.ZodInt>;
1659
+ maxInstances: z.ZodOptional<z.ZodInt>;
1660
+ entryPoint: z.ZodOptional<z.ZodString>;
1661
+ uri: z.ZodOptional<z.ZodString>;
1662
+ installationId: z.ZodOptional<z.ZodString>;
1663
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1532
1664
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1533
1665
  typ: z.ZodLiteral<"queue">;
1534
1666
  }, z.core.$strip>, z.ZodObject<{
@@ -1667,7 +1799,29 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
1667
1799
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1668
1800
  typ: z.ZodLiteral<"function">;
1669
1801
  }, z.core.$strip>, z.ZodObject<{
1670
- cpus: z.ZodOptional<z.ZodInt>;
1802
+ region: z.ZodEnum<{
1803
+ "europe-west2": "europe-west2";
1804
+ }>;
1805
+ language: z.ZodString;
1806
+ runtimeVersion: z.ZodString;
1807
+ serviceName: z.ZodOptional<z.ZodString>;
1808
+ cpu: z.ZodEnum<{
1809
+ 1: "1";
1810
+ 2: "2";
1811
+ }>;
1812
+ memory: z.ZodEnum<{
1813
+ "512Mi": "512Mi";
1814
+ "1Gi": "1Gi";
1815
+ "2Gi": "2Gi";
1816
+ }>;
1817
+ concurrency: z.ZodOptional<z.ZodInt>;
1818
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
1819
+ minInstances: z.ZodOptional<z.ZodInt>;
1820
+ maxInstances: z.ZodOptional<z.ZodInt>;
1821
+ entryPoint: z.ZodOptional<z.ZodString>;
1822
+ uri: z.ZodOptional<z.ZodString>;
1823
+ installationId: z.ZodOptional<z.ZodString>;
1824
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1671
1825
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1672
1826
  typ: z.ZodLiteral<"queue">;
1673
1827
  }, z.core.$strip>, z.ZodObject<{
@@ -1787,7 +1941,29 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
1787
1941
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1788
1942
  typ: z.ZodLiteral<"function">;
1789
1943
  }, z.core.$strip>, z.ZodObject<{
1790
- cpus: z.ZodOptional<z.ZodInt>;
1944
+ region: z.ZodEnum<{
1945
+ "europe-west2": "europe-west2";
1946
+ }>;
1947
+ language: z.ZodString;
1948
+ runtimeVersion: z.ZodString;
1949
+ serviceName: z.ZodOptional<z.ZodString>;
1950
+ cpu: z.ZodEnum<{
1951
+ 1: "1";
1952
+ 2: "2";
1953
+ }>;
1954
+ memory: z.ZodEnum<{
1955
+ "512Mi": "512Mi";
1956
+ "1Gi": "1Gi";
1957
+ "2Gi": "2Gi";
1958
+ }>;
1959
+ concurrency: z.ZodOptional<z.ZodInt>;
1960
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
1961
+ minInstances: z.ZodOptional<z.ZodInt>;
1962
+ maxInstances: z.ZodOptional<z.ZodInt>;
1963
+ entryPoint: z.ZodOptional<z.ZodString>;
1964
+ uri: z.ZodOptional<z.ZodString>;
1965
+ installationId: z.ZodOptional<z.ZodString>;
1966
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1791
1967
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1792
1968
  typ: z.ZodLiteral<"queue">;
1793
1969
  }, z.core.$strip>, z.ZodObject<{
@@ -2709,7 +2885,29 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
2709
2885
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2710
2886
  typ: z.ZodLiteral<"function">;
2711
2887
  }, z.core.$strip>, z.ZodObject<{
2712
- cpus: z.ZodOptional<z.ZodInt>;
2888
+ region: z.ZodEnum<{
2889
+ "europe-west2": "europe-west2";
2890
+ }>;
2891
+ language: z.ZodString;
2892
+ runtimeVersion: z.ZodString;
2893
+ serviceName: z.ZodOptional<z.ZodString>;
2894
+ cpu: z.ZodEnum<{
2895
+ 1: "1";
2896
+ 2: "2";
2897
+ }>;
2898
+ memory: z.ZodEnum<{
2899
+ "512Mi": "512Mi";
2900
+ "1Gi": "1Gi";
2901
+ "2Gi": "2Gi";
2902
+ }>;
2903
+ concurrency: z.ZodOptional<z.ZodInt>;
2904
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
2905
+ minInstances: z.ZodOptional<z.ZodInt>;
2906
+ maxInstances: z.ZodOptional<z.ZodInt>;
2907
+ entryPoint: z.ZodOptional<z.ZodString>;
2908
+ uri: z.ZodOptional<z.ZodString>;
2909
+ installationId: z.ZodOptional<z.ZodString>;
2910
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2713
2911
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2714
2912
  typ: z.ZodLiteral<"queue">;
2715
2913
  }, z.core.$strip>, z.ZodObject<{
@@ -2831,7 +3029,29 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
2831
3029
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2832
3030
  typ: z.ZodLiteral<"function">;
2833
3031
  }, z.core.$strip>, z.ZodObject<{
2834
- cpus: z.ZodOptional<z.ZodInt>;
3032
+ region: z.ZodEnum<{
3033
+ "europe-west2": "europe-west2";
3034
+ }>;
3035
+ language: z.ZodString;
3036
+ runtimeVersion: z.ZodString;
3037
+ serviceName: z.ZodOptional<z.ZodString>;
3038
+ cpu: z.ZodEnum<{
3039
+ 1: "1";
3040
+ 2: "2";
3041
+ }>;
3042
+ memory: z.ZodEnum<{
3043
+ "512Mi": "512Mi";
3044
+ "1Gi": "1Gi";
3045
+ "2Gi": "2Gi";
3046
+ }>;
3047
+ concurrency: z.ZodOptional<z.ZodInt>;
3048
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
3049
+ minInstances: z.ZodOptional<z.ZodInt>;
3050
+ maxInstances: z.ZodOptional<z.ZodInt>;
3051
+ entryPoint: z.ZodOptional<z.ZodString>;
3052
+ uri: z.ZodOptional<z.ZodString>;
3053
+ installationId: z.ZodOptional<z.ZodString>;
3054
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2835
3055
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2836
3056
  typ: z.ZodLiteral<"queue">;
2837
3057
  }, z.core.$strip>, z.ZodObject<{
@@ -387,7 +387,20 @@ export const zDatabaseNodeProps = z.object({
387
387
  space: z.optional(z.int())
388
388
  });
389
389
  export const zFunctionNodeProps = z.object({
390
- cpus: z.optional(z.int())
390
+ region: zRegion,
391
+ language: z.string(),
392
+ runtimeVersion: z.string(),
393
+ serviceName: z.optional(z.string()),
394
+ cpu: zCpu,
395
+ memory: zMemory,
396
+ concurrency: z.optional(z.int()),
397
+ timeoutSeconds: z.optional(z.int()),
398
+ minInstances: z.optional(z.int()),
399
+ maxInstances: z.optional(z.int()),
400
+ entryPoint: z.optional(z.string()),
401
+ uri: z.optional(z.string()),
402
+ installationId: z.optional(z.string()),
403
+ env: z.optional(z.record(z.string(), z.string()))
391
404
  });
392
405
  export const zQueueNodeProps = z.object({
393
406
  foobar: z.optional(z.string())
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
- "name": "shoal-web-sdk",
3
- "version": "0.0.179",
4
- "main": "index.js",
5
- "scripts": {
6
- "build-hooks": "npx tsx tanstack-codegen/generator.ts",
7
- "build-sdk": "npx openapi-ts",
8
- "build-ts": "tsc",
9
- "build": "npm run build-sdk && npm run build-hooks && npm run build-ts && npm run remove-tanstack && npm run patch-sdk",
10
- "remove-tanstack": "rimraf sdk/@tanstack",
11
- "patch-sdk": "npx tsx sdk-patch.ts"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/shoal-platform/shoal-web-sdk.git"
16
- },
17
- "keywords": [],
18
- "author": "",
19
- "license": "ISC",
20
- "bugs": {
21
- "url": "https://github.com/shoal-platform/shoal-web-sdk/issues"
22
- },
23
- "homepage": "https://github.com/shoal-platform/shoal-web-sdk#readme",
24
- "description": "",
25
- "devDependencies": {
26
- "@hey-api/openapi-ts": "0.86.11",
27
- "@types/node": "^24.10.10",
28
- "rimraf": "^6.1.3",
29
- "typescript": "^5.0.0"
30
- },
31
- "dependencies": {
32
- "@kinde-oss/kinde-auth-nextjs": "^2.11.0",
33
- "@tanstack/react-query": "^5.90.7",
34
- "@types/react": "^19.2.10",
35
- "react": "^19.2.4",
36
- "zod": "^4.3.6"
37
- },
38
- "files": [
39
- "dist/**/*"
40
- ],
41
- "exports": {
42
- "./sdk/*": "./dist/sdk/*",
43
- "./hooks": "./dist/tanstack-codegen/generated/generated.js",
44
- "./provider": "./dist/provider/token-provider.js"
45
- },
46
- "type": "module"
2
+ "name": "shoal-web-sdk",
3
+ "version": "1.0.1",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "build-hooks": "npx tsx tanstack-codegen/generator.ts",
7
+ "build-sdk": "npx openapi-ts",
8
+ "build-ts": "tsc",
9
+ "build": "npm run build-sdk && npm run build-hooks && npm run build-ts && npm run remove-tanstack && npm run patch-sdk",
10
+ "remove-tanstack": "rimraf sdk/@tanstack",
11
+ "patch-sdk": "npx tsx sdk-patch.ts"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/shoal-platform/shoal-web-sdk.git"
16
+ },
17
+ "keywords": [],
18
+ "author": "",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://github.com/shoal-platform/shoal-web-sdk/issues"
22
+ },
23
+ "homepage": "https://github.com/shoal-platform/shoal-web-sdk#readme",
24
+ "description": "",
25
+ "devDependencies": {
26
+ "@hey-api/openapi-ts": "0.86.11",
27
+ "@types/node": "^24.10.10",
28
+ "rimraf": "^6.1.3",
29
+ "typescript": "^5.0.0"
30
+ },
31
+ "dependencies": {
32
+ "@kinde-oss/kinde-auth-nextjs": "^2.11.0",
33
+ "@tanstack/react-query": "^5.90.7",
34
+ "@types/react": "^19.2.10",
35
+ "react": "^19.2.4",
36
+ "zod": "^4.3.6"
37
+ },
38
+ "files": [
39
+ "dist/**/*"
40
+ ],
41
+ "exports": {
42
+ "./sdk/*": "./dist/sdk/*",
43
+ "./hooks": "./dist/tanstack-codegen/generated/generated.js",
44
+ "./provider": "./dist/provider/token-provider.js"
45
+ },
46
+ "type": "module"
47
47
  }