@ampless/backend 0.2.0-alpha.13 → 0.2.0-alpha.14

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -217,6 +217,14 @@ interface AmplessSchemaAuthorizationOpts {
217
217
  * `amplify/data/resource.ts`. When no Lambda function refs are
218
218
  * supplied the function returns `[]`, so the schema stays unaffected.
219
219
  *
220
+ * Return type is `any[]` (matching the rest of this module's
221
+ * intentional looseness around `@aws-amplify/data-schema`'s heavily
222
+ * generic builder types) so callers don't have to wrestle the
223
+ * generic `SchemaAuthorization<…>` parameters that change between
224
+ * minor versions. `amplify/data/resource.ts` strict-type-checks fine
225
+ * downstream because the schema itself still resolves through
226
+ * `ClientSchema<typeof schema>` correctly.
227
+ *
220
228
  * Usage:
221
229
  *
222
230
  * const schema = a.schema({
@@ -226,7 +234,7 @@ interface AmplessSchemaAuthorizationOpts {
226
234
  * mcpHandlerFunction: mcpHandler,
227
235
  * }))
228
236
  */
229
- declare function amplessSchemaAuthorization(allow: any, opts?: AmplessSchemaAuthorizationOpts): unknown[];
237
+ declare function amplessSchemaAuthorization(allow: any, opts?: AmplessSchemaAuthorizationOpts): any[];
230
238
  /**
231
239
  * Standard authorization modes for ampless. `userPool` is the default
232
240
  * (admin/editor access); the API key serves the public read endpoints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/backend",
3
- "version": "0.2.0-alpha.13",
3
+ "version": "0.2.0-alpha.14",
4
4
  "description": "Amplify Gen 2 backend factories for ampless: auth, data, storage, event processors, API key renewer",
5
5
  "license": "MIT",
6
6
  "type": "module",