Skip to content

Commit

Permalink
add back read
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpascual committed Sep 23, 2024
1 parent c426a0d commit 12db2ca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
8 changes: 7 additions & 1 deletion packages/backend-output-schemas/src/storage/v1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { z } from 'zod';

const storageAccessActionEnum = z.enum(['get', 'list', 'write', 'delete']);
const storageAccessActionEnum = z.enum([
'read',
'get',
'list',
'write',
'delete',
]);

const pathSchema = z.record(
z.string(),
Expand Down
4 changes: 2 additions & 2 deletions packages/client-config/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type AmazonPinpointChannels_2 = 'IN_APP_MESSAGING' | 'FCM' | 'APNS' | 'EMAIL' |
type AmazonPinpointChannels_3 = 'IN_APP_MESSAGING' | 'FCM' | 'APNS' | 'EMAIL' | 'SMS';

// @public (undocumented)
type AmplifyStorageAccessActions = 'get' | 'list' | 'write' | 'delete';
type AmplifyStorageAccessActions = 'read' | 'get' | 'list' | 'write' | 'delete';

// @public
interface AmplifyStorageAccessRule {
Expand Down Expand Up @@ -473,7 +473,7 @@ export type CustomClientConfig = {
export const DEFAULT_CLIENT_CONFIG_VERSION: ClientConfigVersion;

// @public
export const generateClientConfig: <T extends "0" | "1" | "1.1" | "1.2">(backendIdentifier: DeployedBackendIdentifier, version: T, awsClientProvider?: AWSClientProvider<{
export const generateClientConfig: <T extends "1.2" | "1.1" | "1" | "0">(backendIdentifier: DeployedBackendIdentifier, version: T, awsClientProvider?: AWSClientProvider<{
getS3Client: S3Client;
getAmplifyClient: AmplifyClient;
getCloudFormationClient: CloudFormationClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ export type AmazonPinpointChannels =
| 'APNS'
| 'EMAIL'
| 'SMS';
export type AmplifyStorageAccessActions = 'get' | 'list' | 'write' | 'delete';
export type AmplifyStorageAccessActions =
| 'read'
| 'get'
| 'list'
| 'write'
| 'delete';

/**
* Config format for Amplify Gen 2 client libraries to communicate with backend services.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"$defs": {
"amplify_storage_access_actions": {
"type": "string",
"enum": ["get", "list", "write", "delete"]
"enum": ["read", "get", "list", "write", "delete"]
},
"amplify_storage_access_rule": {
"type": "object",
Expand Down

0 comments on commit 12db2ca

Please sign in to comment.