@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.
- package/dist/index.d.ts +9 -1
- 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):
|
|
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