@protobase/config 0.107.0 → 0.107.2

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/config.d.ts CHANGED
@@ -110,6 +110,12 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
110
110
  * refused with `authenticate.organizations` alone.
111
111
  */
112
112
  userTables?: boolean;
113
+ /**
114
+ * `'none'` says the app has no resources on purpose, such as an app that only signs people in: `protobase doctor`
115
+ * then accepts a config with none, and refuses one that exports any. Unset, doctor refuses an app with none, which
116
+ * has usually lost them by mistake.
117
+ */
118
+ resources?: 'none';
113
119
  };
114
120
  /**
115
121
  * Which command reads the config: `dev`, `build`, `serve` (also a worker and the serve runtime's `create-admin`), or `tool`, any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.107.0",
3
+ "version": "0.107.2",
4
4
  "description": "defineConfig and the types of a Protobase project's protobase.config.ts, and the JSON Schema of protobase.config.json.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,6 +31,6 @@
31
31
  "access": "public"
32
32
  },
33
33
  "peerDependencies": {
34
- "@protobase/server": "0.107.0"
34
+ "@protobase/server": "0.107.2"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -1234,6 +1234,17 @@
1234
1234
  "$ref": "#/definitions/EnvValue"
1235
1235
  }
1236
1236
  ]
1237
+ },
1238
+ "resources": {
1239
+ "description": "`'none'` says the app has no resources on purpose, such as an app that only signs people in: `protobase doctor`\nthen accepts a config with none, and refuses one that exports any. Unset, doctor refuses an app with none, which\nhas usually lost them by mistake.",
1240
+ "anyOf": [
1241
+ {
1242
+ "const": "none"
1243
+ },
1244
+ {
1245
+ "$ref": "#/definitions/EnvValue"
1246
+ }
1247
+ ]
1237
1248
  }
1238
1249
  },
1239
1250
  "additionalProperties": false,
@@ -3146,6 +3157,20 @@
3146
3157
  "$ref": "#/definitions/EnvValue"
3147
3158
  }
3148
3159
  ]
3160
+ },
3161
+ "subject": {
3162
+ "description": "What an ID token's `sub` names: `user`, the person's id here, the same for every client and sign-in; or `grant`, an\nid of the client's grant, new on each fresh sign-in at the provider and kept across its refresh tokens and token\nexchanges, never the person's id, so each sign-in of a phone app is a device of its own to the apps that take its\ntokens. Default `user`.",
3163
+ "anyOf": [
3164
+ {
3165
+ "enum": [
3166
+ "user",
3167
+ "grant"
3168
+ ]
3169
+ },
3170
+ {
3171
+ "$ref": "#/definitions/EnvValue"
3172
+ }
3173
+ ]
3149
3174
  }
3150
3175
  },
3151
3176
  "additionalProperties": false