@junobuild/config 0.0.5 → 0.0.6

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,4 +1,5 @@
1
1
  export type * from './dev/juno.dev.config';
2
+ export type * from './mainnet/authentication.config';
2
3
  export type * from './mainnet/juno.config';
3
4
  export type * from './mainnet/juno.env';
4
5
  export type * from './mainnet/satellite.config';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Configure the behavior of Internet Identity.
3
+ */
4
+ export interface AuthenticationConfigInternetIdentity {
5
+ /**
6
+ * This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain.
7
+ * For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com.
8
+ */
9
+ derivationOrigin?: string;
10
+ }
11
+ /**
12
+ * Configures the Authentication options of a Satellite.
13
+ */
14
+ export interface AuthenticationConfig {
15
+ /**
16
+ * Optional configuration of Internet Identity authentication method.
17
+ */
18
+ internetIdentity?: AuthenticationConfigInternetIdentity;
19
+ }
@@ -1,5 +1,6 @@
1
1
  import type { ENCODING_TYPE } from '../types/encoding';
2
2
  import type { Either } from '../utils/ts.utils';
3
+ import type { AuthenticationConfig } from './authentication.config';
3
4
  import type { JunoConfigMode } from './juno.env';
4
5
  import type { StorageConfig } from './storage.config';
5
6
  export interface SatelliteAssertions {
@@ -47,9 +48,14 @@ export type SatelliteConfig = Either<SatelliteId, SatelliteIds> & {
47
48
  source?: string;
48
49
  /**
49
50
  * Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.
50
- * Changes to these parameters must be applied manually afterwards using `juno config` commands.
51
+ * Changes to these parameters must be applied manually afterwards for example with the CLI using `juno config` commands.
51
52
  */
52
53
  storage?: StorageConfig;
54
+ /**
55
+ * Optional configuration parameters for the satellite, affecting the operational behavior of its Authentication.
56
+ * Changes to these parameters must be applied manually afterwards for example with the CLI using `juno config` commands.
57
+ */
58
+ authentication?: AuthenticationConfig;
53
59
  /**
54
60
  * Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.
55
61
  */
@@ -8,6 +8,7 @@ export interface Rule {
8
8
  memory: MemoryText;
9
9
  createdAt?: bigint;
10
10
  updatedAt?: bigint;
11
+ version?: bigint;
11
12
  maxSize?: number;
12
13
  maxCapacity?: number;
13
14
  mutablePermissions: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Configuration options for Juno CLI",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",