@23blocks/block-files 3.2.0 → 3.3.0

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.esm.js CHANGED
@@ -925,6 +925,128 @@ function createDelegationsService(transport, _config) {
925
925
  };
926
926
  }
927
927
 
928
+ function parseAccessLevel(value) {
929
+ const level = parseString(value);
930
+ if (level === 'read' || level === 'write' || level === 'admin') {
931
+ return level;
932
+ }
933
+ return 'read';
934
+ }
935
+ const fileAccessMapper = {
936
+ type: 'FileAccess',
937
+ map: (resource)=>({
938
+ id: resource.id,
939
+ uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
940
+ createdAt: parseDate(resource.attributes['created_at']) || new Date(),
941
+ updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
942
+ fileUniqueId: parseString(resource.attributes['file_unique_id']) || '',
943
+ granteeUniqueId: parseString(resource.attributes['grantee_unique_id']) || '',
944
+ granteeType: parseString(resource.attributes['grantee_type']) || '',
945
+ accessLevel: parseAccessLevel(resource.attributes['access_level']),
946
+ grantedByUniqueId: parseString(resource.attributes['granted_by_unique_id']) || '',
947
+ expiresAt: parseDate(resource.attributes['expires_at']),
948
+ accessedAt: parseDate(resource.attributes['accessed_at']),
949
+ accessCount: parseNumber(resource.attributes['access_count']),
950
+ status: parseStatus(resource.attributes['status']),
951
+ enabled: parseBoolean(resource.attributes['enabled']),
952
+ payload: resource.attributes['payload']
953
+ })
954
+ };
955
+
956
+ function createFileAccessService(transport, _config) {
957
+ return {
958
+ async list (params) {
959
+ const queryParams = {};
960
+ if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
961
+ if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
962
+ if (params == null ? void 0 : params.fileUniqueId) queryParams['file_unique_id'] = params.fileUniqueId;
963
+ if (params == null ? void 0 : params.granteeUniqueId) queryParams['grantee_unique_id'] = params.granteeUniqueId;
964
+ if (params == null ? void 0 : params.granteeType) queryParams['grantee_type'] = params.granteeType;
965
+ if (params == null ? void 0 : params.accessLevel) queryParams['access_level'] = params.accessLevel;
966
+ if (params == null ? void 0 : params.status) queryParams['status'] = params.status;
967
+ if (params == null ? void 0 : params.sortBy) queryParams['sort'] = params.sortOrder === 'desc' ? `-${params.sortBy}` : params.sortBy;
968
+ const response = await transport.get('/file_accesses', {
969
+ params: queryParams
970
+ });
971
+ return decodePageResult(response, fileAccessMapper);
972
+ },
973
+ async get (uniqueId) {
974
+ const response = await transport.get(`/file_accesses/${uniqueId}`);
975
+ return decodeOne(response, fileAccessMapper);
976
+ },
977
+ async grant (data) {
978
+ const response = await transport.post('/file_accesses', {
979
+ file_access: {
980
+ file_unique_id: data.fileUniqueId,
981
+ grantee_unique_id: data.granteeUniqueId,
982
+ grantee_type: data.granteeType,
983
+ access_level: data.accessLevel,
984
+ expires_at: data.expiresAt,
985
+ payload: data.payload
986
+ }
987
+ });
988
+ return decodeOne(response, fileAccessMapper);
989
+ },
990
+ async update (uniqueId, data) {
991
+ const response = await transport.put(`/file_accesses/${uniqueId}`, {
992
+ file_access: {
993
+ access_level: data.accessLevel,
994
+ expires_at: data.expiresAt,
995
+ enabled: data.enabled,
996
+ status: data.status,
997
+ payload: data.payload
998
+ }
999
+ });
1000
+ return decodeOne(response, fileAccessMapper);
1001
+ },
1002
+ async revoke (uniqueId) {
1003
+ await transport.delete(`/file_accesses/${uniqueId}`);
1004
+ },
1005
+ async listByFile (fileUniqueId, params) {
1006
+ const queryParams = {
1007
+ file_unique_id: fileUniqueId
1008
+ };
1009
+ if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
1010
+ if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
1011
+ if (params == null ? void 0 : params.accessLevel) queryParams['access_level'] = params.accessLevel;
1012
+ if (params == null ? void 0 : params.status) queryParams['status'] = params.status;
1013
+ if (params == null ? void 0 : params.sortBy) queryParams['sort'] = params.sortOrder === 'desc' ? `-${params.sortBy}` : params.sortBy;
1014
+ const response = await transport.get('/file_accesses', {
1015
+ params: queryParams
1016
+ });
1017
+ return decodePageResult(response, fileAccessMapper);
1018
+ },
1019
+ async listByGrantee (granteeUniqueId, granteeType, params) {
1020
+ const queryParams = {
1021
+ grantee_unique_id: granteeUniqueId,
1022
+ grantee_type: granteeType
1023
+ };
1024
+ if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
1025
+ if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
1026
+ if (params == null ? void 0 : params.accessLevel) queryParams['access_level'] = params.accessLevel;
1027
+ if (params == null ? void 0 : params.status) queryParams['status'] = params.status;
1028
+ if (params == null ? void 0 : params.sortBy) queryParams['sort'] = params.sortOrder === 'desc' ? `-${params.sortBy}` : params.sortBy;
1029
+ const response = await transport.get('/file_accesses', {
1030
+ params: queryParams
1031
+ });
1032
+ return decodePageResult(response, fileAccessMapper);
1033
+ },
1034
+ async checkAccess (fileUniqueId, granteeUniqueId) {
1035
+ try {
1036
+ const response = await transport.get('/file_accesses/check', {
1037
+ params: {
1038
+ file_unique_id: fileUniqueId,
1039
+ grantee_unique_id: granteeUniqueId
1040
+ }
1041
+ });
1042
+ return decodeOne(response, fileAccessMapper);
1043
+ } catch (e) {
1044
+ return null;
1045
+ }
1046
+ }
1047
+ };
1048
+ }
1049
+
928
1050
  function createFilesBlock(transport, config) {
929
1051
  return {
930
1052
  storageFiles: createStorageFilesService(transport),
@@ -933,7 +1055,8 @@ function createFilesBlock(transport, config) {
933
1055
  userFiles: createUserFilesService(transport),
934
1056
  fileCategories: createFileCategoriesService(transport),
935
1057
  fileTags: createFileTagsService(transport),
936
- delegations: createDelegationsService(transport)
1058
+ delegations: createDelegationsService(transport),
1059
+ fileAccess: createFileAccessService(transport)
937
1060
  };
938
1061
  }
939
1062
  const filesBlockMetadata = {
@@ -947,8 +1070,9 @@ const filesBlockMetadata = {
947
1070
  'UserFile',
948
1071
  'FileCategory',
949
1072
  'FileTag',
950
- 'FileDelegation'
1073
+ 'FileDelegation',
1074
+ 'FileAccess'
951
1075
  ]
952
1076
  };
953
1077
 
954
- export { createDelegationsService, createEntityFilesService, createFileCategoriesService, createFileSchemasService, createFileTagsService, createFilesBlock, createStorageFilesService, createUserFilesService, entityFileMapper, fileCategoryMapper, fileDelegationMapper, fileSchemaMapper, fileTagMapper, filesBlockMetadata, parseBoolean, parseDate, parseNumber, parseOptionalNumber, parseStatus, parseString, parseStringArray, storageFileMapper, userFileMapper };
1078
+ export { createDelegationsService, createEntityFilesService, createFileAccessService, createFileCategoriesService, createFileSchemasService, createFileTagsService, createFilesBlock, createStorageFilesService, createUserFilesService, entityFileMapper, fileAccessMapper, fileCategoryMapper, fileDelegationMapper, fileSchemaMapper, fileTagMapper, filesBlockMetadata, parseBoolean, parseDate, parseNumber, parseOptionalNumber, parseStatus, parseString, parseStringArray, storageFileMapper, userFileMapper };
@@ -1,5 +1,5 @@
1
1
  import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
2
- import { type StorageFilesService, type EntityFilesService, type FileSchemasService, type UserFilesService, type FileCategoriesService, type FileTagsService, type DelegationsService } from './services';
2
+ import { type StorageFilesService, type EntityFilesService, type FileSchemasService, type UserFilesService, type FileCategoriesService, type FileTagsService, type DelegationsService, type FileAccessService } from './services';
3
3
  export interface FilesBlockConfig extends BlockConfig {
4
4
  appId: string;
5
5
  tenantId?: string;
@@ -12,6 +12,7 @@ export interface FilesBlock {
12
12
  fileCategories: FileCategoriesService;
13
13
  fileTags: FileTagsService;
14
14
  delegations: DelegationsService;
15
+ fileAccess: FileAccessService;
15
16
  }
16
17
  export declare function createFilesBlock(transport: Transport, config: FilesBlockConfig): FilesBlock;
17
18
  export declare const filesBlockMetadata: BlockMetadata;
@@ -1 +1 @@
1
- {"version":3,"file":"files.block.d.ts","sourceRoot":"","sources":["../../../src/lib/files.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAQL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,mBAAmB,CAAC;IAClC,WAAW,EAAE,kBAAkB,CAAC;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,cAAc,EAAE,qBAAqB,CAAC;IACtC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,gBAAgB,GACvB,UAAU,CAUZ;AAED,eAAO,MAAM,kBAAkB,EAAE,aAahC,CAAC"}
1
+ {"version":3,"file":"files.block.d.ts","sourceRoot":"","sources":["../../../src/lib/files.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EASL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,mBAAmB,CAAC;IAClC,WAAW,EAAE,kBAAkB,CAAC;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,cAAc,EAAE,qBAAqB,CAAC;IACtC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,kBAAkB,CAAC;IAChC,UAAU,EAAE,iBAAiB,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,gBAAgB,GACvB,UAAU,CAWZ;AAED,eAAO,MAAM,kBAAkB,EAAE,aAchC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ResourceMapper } from '@23blocks/jsonapi-codec';
2
+ import type { FileAccess } from '../types/file-access';
3
+ export declare const fileAccessMapper: ResourceMapper<FileAccess>;
4
+ //# sourceMappingURL=file-access.mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-access.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/file-access.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAWvD,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,UAAU,CAoBvD,CAAC"}
@@ -5,5 +5,6 @@ export * from './user-file.mapper';
5
5
  export * from './file-category.mapper';
6
6
  export * from './file-tag.mapper';
7
7
  export * from './delegation.mapper';
8
+ export * from './file-access.mapper';
8
9
  export * from './utils';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Transport, PageResult } from '@23blocks/contracts';
2
+ import type { FileAccess, CreateFileAccessRequest, UpdateFileAccessRequest, ListFileAccessParams } from '../types/file-access';
3
+ export interface FileAccessService {
4
+ list(params?: ListFileAccessParams): Promise<PageResult<FileAccess>>;
5
+ get(uniqueId: string): Promise<FileAccess>;
6
+ grant(data: CreateFileAccessRequest): Promise<FileAccess>;
7
+ update(uniqueId: string, data: UpdateFileAccessRequest): Promise<FileAccess>;
8
+ revoke(uniqueId: string): Promise<void>;
9
+ listByFile(fileUniqueId: string, params?: ListFileAccessParams): Promise<PageResult<FileAccess>>;
10
+ listByGrantee(granteeUniqueId: string, granteeType: string, params?: ListFileAccessParams): Promise<PageResult<FileAccess>>;
11
+ checkAccess(fileUniqueId: string, granteeUniqueId: string): Promise<FileAccess | null>;
12
+ }
13
+ export declare function createFileAccessService(transport: Transport, _config: {
14
+ appId: string;
15
+ }): FileAccessService;
16
+ //# sourceMappingURL=file-access.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-access.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/file-access.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACrE,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,KAAK,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1D,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACjG,aAAa,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IAC5H,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;CACxF;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAgG3G"}
@@ -5,4 +5,5 @@ export * from './user-files.service';
5
5
  export * from './file-categories.service';
6
6
  export * from './file-tags.service';
7
7
  export * from './delegations.service';
8
+ export * from './file-access.service';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { IdentityCore, EntityStatus } from '@23blocks/contracts';
2
+ export interface FileAccess extends IdentityCore {
3
+ fileUniqueId: string;
4
+ granteeUniqueId: string;
5
+ granteeType: string;
6
+ accessLevel: 'read' | 'write' | 'admin';
7
+ grantedByUniqueId: string;
8
+ expiresAt?: Date;
9
+ accessedAt?: Date;
10
+ accessCount: number;
11
+ status: EntityStatus;
12
+ enabled: boolean;
13
+ payload?: Record<string, unknown>;
14
+ }
15
+ export interface CreateFileAccessRequest {
16
+ fileUniqueId: string;
17
+ granteeUniqueId: string;
18
+ granteeType: string;
19
+ accessLevel?: 'read' | 'write' | 'admin';
20
+ expiresAt?: string;
21
+ payload?: Record<string, unknown>;
22
+ }
23
+ export interface UpdateFileAccessRequest {
24
+ accessLevel?: 'read' | 'write' | 'admin';
25
+ expiresAt?: string;
26
+ enabled?: boolean;
27
+ status?: EntityStatus;
28
+ payload?: Record<string, unknown>;
29
+ }
30
+ export interface ListFileAccessParams {
31
+ page?: number;
32
+ perPage?: number;
33
+ fileUniqueId?: string;
34
+ granteeUniqueId?: string;
35
+ granteeType?: string;
36
+ accessLevel?: 'read' | 'write' | 'admin';
37
+ status?: EntityStatus;
38
+ sortBy?: string;
39
+ sortOrder?: 'asc' | 'desc';
40
+ }
41
+ //# sourceMappingURL=file-access.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-access.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/file-access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B"}
@@ -5,4 +5,5 @@ export * from './user-file';
5
5
  export * from './file-category';
6
6
  export * from './file-tag';
7
7
  export * from './delegation';
8
+ export * from './file-access';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-files",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Files block for 23blocks SDK - storage, upload, download, file management",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",