@knapsack/core 4.99.2 → 4.99.3--canary.7934.3832233.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ks-urls.d.ts CHANGED
@@ -1,49 +1,37 @@
1
- export interface KsUrlsInput {
2
- readonly dbUrl: string | undefined;
3
- readonly apiUrl: string | undefined;
4
- readonly apiUrlPathPrefix?: string | undefined;
5
- /**
6
- * Origin serving uploaded files (S3/CDN). Defaults to prod file storage,
7
- * so local/preview envs must set this to avoid touching prod uploads.
8
- */
9
- readonly fileStorageUrl?: string | undefined;
10
- }
11
- export interface KsUrls {
1
+ export declare function getKsUrls({ dbUrl, apiUrl, apiUrlPathPrefix, }: {
2
+ dbUrl: string | undefined;
3
+ apiUrl: string | undefined;
4
+ apiUrlPathPrefix?: string | undefined;
5
+ }): {
12
6
  /**
13
7
  * Base URL for Knapsack DB (Hasura)
14
8
  * @default 'https://db.knapsack.cloud'
15
9
  */
16
- readonly dbOrigin: string;
10
+ dbOrigin: string;
17
11
  /**
18
12
  * App DB GraphQL endpoint for connecting to Hasura GraphQL.
19
13
  * @default 'https://db.knapsack.cloud/v1/graphql'
20
14
  */
21
- readonly dbGqlEndpoint: `${string}/graphql`;
15
+ dbGqlEndpoint: `${string}/graphql`;
22
16
  /**
23
17
  * App DB GraphQL WebSocket endpoint for connecting to Hasura GraphQL.
24
18
  * @default 'wss://db.knapsack.cloud/v1/graphql'
25
19
  */
26
- readonly dbGqlWsEndpoint: `ws${'s' | ''}:${string}/graphql`;
20
+ dbGqlWsEndpoint: `ws${"s" | ""}:${string}/graphql`;
27
21
  /**
28
22
  * App API GraphQL endpoint for connecting to Api Server GraphQL.
29
23
  * @default 'https://api.knapsack.cloud/graphql'
30
24
  */
31
- readonly apiGqlEndpoint: `${string}/graphql`;
25
+ apiGqlEndpoint: `${string}/graphql`;
32
26
  /**
33
27
  * Base URL for Knapsack API
34
28
  * @default 'https://api.knapsack.cloud'
35
29
  */
36
- readonly apiOrigin: string;
30
+ apiOrigin: string;
37
31
  /**
38
32
  * Root endpoint for Knapsack API
39
33
  * @default 'https://api.knapsack.cloud'
40
34
  */
41
- readonly apiRootEndpoint: string;
42
- /**
43
- * Base URL for Knapsack file storage (uploaded files served from S3/CDN)
44
- * @default 'https://fcdn.knapsack.cloud'
45
- */
46
- readonly fileStorageOrigin: string;
47
- }
48
- export declare function getKsUrls({ dbUrl, apiUrl, apiUrlPathPrefix, fileStorageUrl, }: KsUrlsInput): KsUrls;
35
+ apiRootEndpoint: string;
36
+ };
49
37
  //# sourceMappingURL=ks-urls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ks-urls.d.ts","sourceRoot":"","sources":["../src/ks-urls.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,GAAG,MAAM,UAAU,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,eAAe,EAAE,KAAK,GAAG,GAAG,EAAE,IAAI,MAAM,UAAU,CAAC;IAC5D;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,GAAG,MAAM,UAAU,CAAC;IAC7C;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,cAAc,GACf,EAAE,WAAW,GAAG,MAAM,CAwCtB"}
1
+ {"version":3,"file":"ks-urls.d.ts","sourceRoot":"","sources":["../src/ks-urls.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAM,EACN,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;IA2BG;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;qBAE6B,KAAK,GAAG,GAAG,EAAE,IAAI,MAAM,UAAU;IACjE;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;EAGN"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/core",
3
3
  "description": "The core of Knapsack",
4
- "version": "4.99.2",
4
+ "version": "4.99.3--canary.7934.3832233.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -30,15 +30,15 @@
30
30
  },
31
31
  "author": "Knapsack (https://www.knapsack.cloud)",
32
32
  "dependencies": {
33
- "@knapsack/utils": "4.99.2",
33
+ "@knapsack/utils": "4.99.3--canary.7934.3832233.0",
34
34
  "superstruct": "^0.16.7",
35
35
  "url-join": "^4.0.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@knapsack/eslint-config-starter": "4.99.2",
39
- "@knapsack/hasura-gql-client": "4.99.2",
40
- "@knapsack/types": "4.99.2",
41
- "@knapsack/typescript-config-starter": "4.99.2",
38
+ "@knapsack/eslint-config-starter": "4.99.3--canary.7934.3832233.0",
39
+ "@knapsack/hasura-gql-client": "4.99.3--canary.7934.3832233.0",
40
+ "@knapsack/types": "4.99.3--canary.7934.3832233.0",
41
+ "@knapsack/typescript-config-starter": "4.99.3--canary.7934.3832233.0",
42
42
  "@types/node": "^24.13.2",
43
43
  "@types/url-join": "^4.0.3",
44
44
  "eslint": "^9.20.0",
@@ -55,5 +55,5 @@
55
55
  "directory": "libs/core",
56
56
  "type": "git"
57
57
  },
58
- "gitHead": "395ca91c4748a86a1d740d76506320e88f03c9ab"
58
+ "gitHead": "38322333afd26da82c9fbc3acf3e9e4466423473"
59
59
  }