@seliseblocks/client 0.1.3 → 0.1.5

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.
@@ -54,11 +54,11 @@ export class BlocksDataClient {
54
54
  };
55
55
  files = {
56
56
  /**
57
- * What: reads one file record through `GET /data/v4/Files/GetFile`.
57
+ * What: reads one file record through the current file download operation.
58
58
  * Why: frontend views need file metadata or a downloadable reference by file id.
59
59
  * How: pass `fileId` and optional Data file configuration/version fields.
60
60
  */
61
- get: (fileId, options = {}) => this.http.request(`${DATA_API}/Files/GetFile`, {
61
+ get: (fileId, options = {}) => this.http.request(`${DATA_API}/files/get-file`, {
62
62
  query: {
63
63
  ConfigurationName: options.configurationName,
64
64
  FileId: fileId,
@@ -66,27 +66,27 @@ export class BlocksDataClient {
66
66
  }
67
67
  }),
68
68
  /**
69
- * What: batch-reads files through `POST /data/v4/Files/GetFiles`.
69
+ * What: batch-reads file metadata and download URLs.
70
70
  * Why: pages with many attachments should avoid one request per file.
71
71
  * How: pass the file-list payload exactly as Data expects; the SDK does not inject project fields.
72
72
  */
73
- getMany: (request) => this.http.request(`${DATA_API}/Files/GetFiles`, {
73
+ getMany: (request) => this.http.request(`${DATA_API}/files/get-files`, {
74
74
  body: normalizeFileListRequest(request)
75
75
  }),
76
76
  /**
77
- * What: lists file records and metadata through `POST /data/v4/Files/GetFilesInfo`.
77
+ * What: lists file records and metadata.
78
78
  * Why: storage browsers and attachment managers need paged file metadata before downloading content.
79
79
  * How: pass paging, sort, and filter fields; the SDK sends your request without any `projectKey`.
80
80
  */
81
- info: (request) => this.http.request(`${DATA_API}/Files/GetFilesInfo`, {
81
+ info: (request) => this.http.request(`${DATA_API}/files/get-files-info`, {
82
82
  body: withoutProjectKey(request)
83
83
  }),
84
84
  /**
85
- * What: requests an upload URL through `POST /data/v4/Files/GetPreSignedUrlForUpload`.
85
+ * What: creates file/version metadata and requests a pre-signed upload URL.
86
86
  * Why: browser apps should upload binary content through the URL issued by Blocks Data.
87
- * How: pass file metadata such as `name`, `contentType`, `configurationName`, and optional DMS fields.
87
+ * How: pass file metadata plus a parent directory id or module default.
88
88
  */
89
- presignedUploadUrl: (request) => this.http.request(`${DATA_API}/Files/GetPreSignedUrlForUpload`, {
89
+ presignedUploadUrl: (request) => this.http.request(`${DATA_API}/files/get-pre-signed-url-for-upload`, {
90
90
  body: normalizeUploadRequest(request)
91
91
  }),
92
92
  /**
@@ -107,71 +107,102 @@ export class BlocksDataClient {
107
107
  });
108
108
  },
109
109
  /**
110
- * What: uploads a file through `POST /data/v4/Files/UploadFileToLocalStorage`.
110
+ * What: creates a file/version and uploads its bytes to local storage.
111
111
  * Why: local-storage deployments need multipart upload through Blocks Data instead of a pre-signed cloud URL.
112
112
  * How: pass a `Blob`/`File` and metadata; the SDK builds `FormData` and does not add `projectKey`.
113
113
  */
114
- uploadToLocalStorage: (request) => this.http.request(`${DATA_API}/Files/UploadFileToLocalStorage`, {
114
+ uploadToLocalStorage: (request) => this.http.request(`${DATA_API}/files/upload-file-to-local-storage`, {
115
115
  body: toLocalStorageFormData(request),
116
116
  headers: {}
117
117
  }),
118
118
  /**
119
- * What: deletes a file through `POST /data/v4/Files/DeleteFile`.
119
+ * What: moves a file to trash or permanently deletes it.
120
120
  * Why: storage UIs need to remove files when permissions and Data rules allow it.
121
- * How: pass `fileId` and optional `configurationName`; the SDK sends no project key.
121
+ * How: pass `fileId` and an explicit `permanent` choice; false moves to trash.
122
122
  */
123
- delete: (request) => this.http.request(`${DATA_API}/Files/DeleteFile`, {
123
+ delete: (request) => this.http.request(`${DATA_API}/files/delete-file`, {
124
124
  body: withoutProjectKey(request)
125
125
  }),
126
126
  /**
127
- * What: updates file additional properties through `POST /data/v4/Files/UpdateFileAdditionalInfo`.
127
+ * What: updates file additional properties.
128
128
  * Why: apps often need to attach searchable metadata such as agent status or business references to a file.
129
129
  * How: pass `itemId` and `additionalProperties`; the SDK forwards the request as-is except for not adding project fields.
130
130
  */
131
- updateAdditionalInfo: (request) => this.http.request(`${DATA_API}/Files/UpdateFileAdditionalInfo`, {
131
+ updateAdditionalInfo: (request) => this.http.request(`${DATA_API}/files/update-file-additional-info`, {
132
132
  body: withoutProjectKey(request)
133
133
  }),
134
- /**
135
- * What: reads DMS file/folder entries through `POST /data/v4/Files/GetDmsFileAndFolder`.
136
- * Why: document-management views need combined folder and file listings.
137
- * How: pass Data's DMS listing payload exactly as your app builds it.
138
- */
139
- listFolder: (request) => this.http.request(`${DATA_API}/Files/GetDmsFileAndFolder`, {
140
- body: withoutProjectKey(request)
134
+ versions: (request) => this.http.request(`${DATA_API}/files/get-file-versions`, {
135
+ query: request
136
+ }),
137
+ createVersion: (request) => this.http.request(`${DATA_API}/files/create-file-version`, {
138
+ body: request
139
+ }),
140
+ copy: (request) => this.http.request(`${DATA_API}/files/copy-file`, {
141
+ body: request
142
+ }),
143
+ move: (request) => this.http.request(`${DATA_API}/files/move-file`, {
144
+ body: request
145
+ }),
146
+ rename: (request) => this.http.request(`${DATA_API}/files/rename-file`, {
147
+ body: request
141
148
  })
142
149
  };
143
- dms = {
144
- /**
145
- * What: lists DMS files and folders through `POST /data/v4/Files/GetDmsFileAndFolder`.
146
- * Why: document-management screens need folder contents, search, skip/take paging, and file entries together.
147
- * How: pass DMS listing fields such as `parentId`, `configurationName`, `searchKey`, `skip`, and `take`.
148
- */
149
- list: (request) => this.http.request(`${DATA_API}/Files/GetDmsFileAndFolder`, {
150
- body: withoutProjectKey(request)
150
+ directories = {
151
+ create: (request) => this.http.request(`${DATA_API}/directory/create-directory`, {
152
+ body: request
151
153
  }),
152
- /**
153
- * What: registers uploaded files in DMS through `POST /data/v4/Files/UploadFile`.
154
- * Why: after binary upload, DMS needs artifact metadata so files appear in document folders.
155
- * How: pass the `upload` array with file storage ids and metadata returned from the upload flow.
156
- */
157
- uploadFiles: (request) => this.http.request(`${DATA_API}/Files/UploadFile`, {
158
- body: withoutProjectKey(request)
154
+ get: (directoryId) => this.http.request(`${DATA_API}/directory/get-directory`, {
155
+ query: { directoryId }
159
156
  }),
160
- /**
161
- * What: creates a DMS folder through `POST /data/v4/Files/CreateFolder`.
162
- * Why: document-management UIs need to create folder hierarchy for uploaded files.
163
- * How: pass folder metadata such as `artifactName`, `parentId`, and optional `configurationName`.
164
- */
165
- createFolder: (request) => this.http.request(`${DATA_API}/Files/CreateFolder`, {
166
- body: withoutProjectKey(request)
157
+ update: (request) => this.http.request(`${DATA_API}/directory/update-directory`, {
158
+ body: request
167
159
  }),
168
- /**
169
- * What: deletes a DMS folder through `POST /data/v4/Files/DeleteFolder`.
170
- * Why: document-management UIs need to remove empty or allowed folders.
171
- * How: pass `folderId` and optional `configurationName`; the SDK sends no project key.
172
- */
173
- deleteFolder: (request) => this.http.request(`${DATA_API}/Files/DeleteFolder`, {
174
- body: withoutProjectKey(request)
160
+ delete: (request) => this.http.request(`${DATA_API}/directory/delete-directory`, {
161
+ body: request
162
+ }),
163
+ move: (request) => this.http.request(`${DATA_API}/directory/move-directory`, {
164
+ body: request
165
+ })
166
+ };
167
+ objects = {
168
+ list: (request = {}) => this.http.request(`${DATA_API}/objects/get-objects`, {
169
+ query: request
170
+ }),
171
+ search: (request) => this.http.request(`${DATA_API}/objects/search-objects`, {
172
+ query: request
173
+ }),
174
+ trash: (request = {}) => this.http.request(`${DATA_API}/objects/get-trash`, {
175
+ query: request
176
+ }),
177
+ shared: (request = {}) => this.http.request(`${DATA_API}/objects/get-shared-objects`, {
178
+ query: request
179
+ }),
180
+ restore: (request) => this.http.request(`${DATA_API}/objects/restore-from-trash`, {
181
+ body: request
182
+ }),
183
+ deleteFromTrash: (request) => this.http.request(`${DATA_API}/objects/delete-from-trash`, {
184
+ body: request
185
+ }),
186
+ accessPolicies: (resourceId) => this.http.request(`${DATA_API}/objects/get-access-policies`, {
187
+ query: { resourceId }
188
+ }),
189
+ grantAccess: (request) => this.http.request(`${DATA_API}/objects/grant-access`, {
190
+ body: request
191
+ }),
192
+ updateAccess: (request) => this.http.request(`${DATA_API}/objects/update-access-policy`, {
193
+ body: request
194
+ }),
195
+ revokeAccess: (request) => this.http.request(`${DATA_API}/objects/revoke-access-policy`, {
196
+ body: request
197
+ }),
198
+ resolveAccess: (resourceId) => this.http.request(`${DATA_API}/objects/resolve-access`, {
199
+ query: { resourceId }
200
+ }),
201
+ toggleInheritance: (request) => this.http.request(`${DATA_API}/objects/toggle-inheritance`, {
202
+ body: request
203
+ }),
204
+ share: (request) => this.http.request(`${DATA_API}/objects/share-object`, {
205
+ body: request
175
206
  })
176
207
  };
177
208
  validations = {
@@ -258,13 +289,13 @@ export class BlocksDataClient {
258
289
  */
259
290
  create: (payload) => this.graphql({
260
291
  operationName: createField,
261
- query: `mutation ${createField}($input: ${schemaName}InsertInput!) {
262
- ${createField}(input: $input) {
263
- acknowledged
264
- itemId
265
- message
266
- totalImpactedData
267
- }
292
+ query: `mutation ${createField}($input: ${schemaName}InsertInput!) {
293
+ ${createField}(input: $input) {
294
+ acknowledged
295
+ itemId
296
+ message
297
+ totalImpactedData
298
+ }
268
299
  }`,
269
300
  variables: { input: payload }
270
301
  }),
@@ -275,13 +306,13 @@ export class BlocksDataClient {
275
306
  */
276
307
  delete: (itemId, deleteOptions = {}) => this.graphql({
277
308
  operationName: deleteField,
278
- query: `mutation ${deleteField}($filter: String, $input: ${schemaName}DeleteInput!) {
279
- ${deleteField}(filter: $filter, input: $input) {
280
- acknowledged
281
- itemId
282
- message
283
- totalImpactedData
284
- }
309
+ query: `mutation ${deleteField}($filter: String, $input: ${schemaName}DeleteInput!) {
310
+ ${deleteField}(filter: $filter, input: $input) {
311
+ acknowledged
312
+ itemId
313
+ message
314
+ totalImpactedData
315
+ }
285
316
  }`,
286
317
  variables: {
287
318
  filter: itemIdFilter(itemId),
@@ -323,13 +354,13 @@ export class BlocksDataClient {
323
354
  */
324
355
  update: (itemId, payload) => this.graphql({
325
356
  operationName: updateField,
326
- query: `mutation ${updateField}($filter: String, $input: ${schemaName}UpdateInput!) {
327
- ${updateField}(filter: $filter, input: $input) {
328
- acknowledged
329
- itemId
330
- message
331
- totalImpactedData
332
- }
357
+ query: `mutation ${updateField}($filter: String, $input: ${schemaName}UpdateInput!) {
358
+ ${updateField}(filter: $filter, input: $input) {
359
+ acknowledged
360
+ itemId
361
+ message
362
+ totalImpactedData
363
+ }
333
364
  }`,
334
365
  variables: {
335
366
  filter: itemIdFilter(itemId),
@@ -441,18 +472,18 @@ function dynamicQueryInput(options) {
441
472
  };
442
473
  }
443
474
  function collectionListQuery(fieldName, selection) {
444
- return `query ${fieldName}($input: DynamicQueryInput) {
445
- ${fieldName}(input: $input) {
446
- items {
447
- ${indent(selection, 6)}
448
- }
449
- totalCount
450
- pageNo
451
- pageSize
452
- totalPages
453
- hasNextPage
454
- hasPreviousPage
455
- }
475
+ return `query ${fieldName}($input: DynamicQueryInput) {
476
+ ${fieldName}(input: $input) {
477
+ items {
478
+ ${indent(selection, 6)}
479
+ }
480
+ totalCount
481
+ pageNo
482
+ pageSize
483
+ totalPages
484
+ hasNextPage
485
+ hasPreviousPage
486
+ }
456
487
  }`;
457
488
  }
458
489
  function selectionFor(fields) {
@@ -101,10 +101,7 @@ export type BlocksFileDeleteRequest = Record<string, unknown> & {
101
101
  configurationName?: string;
102
102
  eventQueueName?: string;
103
103
  fileId: string;
104
- };
105
- export type BlocksFolderDeleteRequest = Record<string, unknown> & {
106
- configurationName?: string;
107
- folderId: string;
104
+ permanent: boolean;
108
105
  };
109
106
  export type BlocksFileUpdateAdditionalInfoRequest = Record<string, unknown> & {
110
107
  additionalProperties?: Record<string, string>;
@@ -127,38 +124,132 @@ export type BlocksUploadToUrlRequest = {
127
124
  headers?: HeadersInit;
128
125
  url: string;
129
126
  };
130
- export type BlocksDmsListRequest = Record<string, unknown> & {
131
- configurationName?: string;
132
- moduleName?: string;
133
- parentId?: string;
134
- searchKey?: string;
135
- skip?: number;
136
- take?: number;
137
- };
138
- export type BlocksDmsMetaDataValue = {
139
- type: string;
140
- value: string;
141
- };
142
- export type BlocksDmsUploadItem = Record<string, unknown> & {
143
- artifactName?: string;
127
+ export type BlocksStorageObjectType = "directory" | "file";
128
+ export type BlocksStorageResourceType = "Directory" | "File";
129
+ export type BlocksStoragePrincipalType = "User" | "Role" | "Everyone" | "Organization";
130
+ export type BlocksStoragePermission = "View" | "Download" | "Edit" | "Delete" | "Manage" | "Owner";
131
+ export type BlocksStorageEffect = "Allow" | "Deny";
132
+ export type BlocksStoragePermissionFlags = {
133
+ canDelete: boolean;
134
+ canDownload: boolean;
135
+ canEdit: boolean;
136
+ canManage: boolean;
137
+ canOwner: boolean;
138
+ canView: boolean;
139
+ };
140
+ export type BlocksStorageObject = {
141
+ childDirectoryCount?: number;
142
+ childFileCount?: number;
143
+ contentType?: string;
144
+ createdBy?: string;
145
+ createdDate: string;
146
+ currentVersion?: number;
147
+ extension?: string;
148
+ isDefault: boolean;
149
+ itemId: string;
150
+ lastUpdatedDate: string;
151
+ name: string;
152
+ parentDirectoryId?: string;
153
+ permissions: BlocksStoragePermissionFlags;
154
+ sizeInBytes: number;
155
+ type: BlocksStorageObjectType;
156
+ };
157
+ export type BlocksStorageObjectsResponse = {
158
+ hasMore: boolean;
159
+ items: BlocksStorageObject[];
160
+ nextCursor?: string;
161
+ totalChildCount: number;
162
+ };
163
+ export type BlocksStorageObjectListRequest = {
164
+ cursor?: string;
165
+ limit?: number;
166
+ moduleName?: number;
167
+ parentDirectoryId?: string;
168
+ search?: string;
169
+ type?: BlocksStorageObjectType;
170
+ };
171
+ export type BlocksStorageObjectSearchRequest = {
172
+ cursor?: string;
173
+ directoryId?: string;
174
+ limit?: number;
175
+ query: string;
176
+ type?: BlocksStorageObjectType;
177
+ };
178
+ export type BlocksStorageObjectPageRequest = {
179
+ cursor?: string;
180
+ limit?: number;
181
+ type?: BlocksStorageObjectType;
182
+ };
183
+ export type BlocksDirectoryCreateRequest = {
184
+ allowedFileExtensions?: string[];
144
185
  configurationName?: string;
145
186
  description?: string;
146
- fileStorageId: string;
147
- metaData?: Record<string, BlocksDmsMetaDataValue>;
148
- organizationId?: string;
149
- parentId?: string;
150
- tags?: string[];
187
+ moduleName?: number;
188
+ name: string;
189
+ parentDirectoryId?: string;
190
+ };
191
+ export type BlocksDirectoryUpdateRequest = {
192
+ description?: string;
193
+ directoryId: string;
194
+ name?: string;
195
+ };
196
+ export type BlocksDirectoryDeleteRequest = {
197
+ directoryId: string;
198
+ permanent: boolean;
199
+ };
200
+ export type BlocksDirectoryMoveRequest = {
201
+ directoryId: string;
202
+ targetDirectoryId?: string;
151
203
  };
152
- export type BlocksDmsUploadRequest = Record<string, unknown> & {
153
- upload: BlocksDmsUploadItem[];
204
+ export type BlocksFileVersionsRequest = {
205
+ cursor?: string;
206
+ fileId: string;
207
+ limit?: number;
154
208
  };
155
- export type BlocksDmsCreateFolderRequest = Record<string, unknown> & {
156
- artifactName: string;
209
+ export type BlocksFileCreateVersionRequest = {
157
210
  configurationName?: string;
158
- description?: string;
159
- fileStorageId?: string;
160
- metaData?: Record<string, BlocksDmsMetaDataValue>;
161
- organizationId?: string;
162
- parentId?: string;
163
- tags?: string[];
211
+ fileId: string;
212
+ };
213
+ export type BlocksFileCopyRequest = {
214
+ copyAccessPolicies?: boolean;
215
+ fileId: string;
216
+ targetDirectoryId: string;
217
+ };
218
+ export type BlocksFileMoveRequest = {
219
+ fileId: string;
220
+ targetDirectoryId: string;
221
+ };
222
+ export type BlocksFileRenameRequest = {
223
+ fileId: string;
224
+ name: string;
225
+ };
226
+ export type BlocksStorageResourceRequest = {
227
+ resourceId: string;
228
+ };
229
+ export type BlocksStorageAccessPolicyRequest = {
230
+ effect?: BlocksStorageEffect;
231
+ expiresAt?: string;
232
+ permission: BlocksStoragePermission;
233
+ policyItemId?: string;
234
+ principalId?: string;
235
+ principalType: BlocksStoragePrincipalType;
236
+ priority?: number;
237
+ resourceId: string;
238
+ resourceType: BlocksStorageResourceType;
239
+ };
240
+ export type BlocksStorageRevokeAccessRequest = {
241
+ policyItemId: string;
242
+ resourceId: string;
243
+ };
244
+ export type BlocksStorageToggleInheritanceRequest = {
245
+ inheritsParentAccess: boolean;
246
+ resourceId: string;
247
+ };
248
+ export type BlocksStorageShareRequest = {
249
+ expiresAt?: string;
250
+ permission: BlocksStoragePermission;
251
+ principalId?: string;
252
+ principalType: BlocksStoragePrincipalType;
253
+ resourceId: string;
254
+ resourceType: BlocksStorageResourceType;
164
255
  };
@@ -53,4 +53,6 @@ export type BlocksGetRoleResponse = BlocksQueryResponse<BlocksRole>;
53
53
  export type BlocksGetRolesResponse = BlocksQueryListResponse<BlocksRole>;
54
54
  export type BlocksGetOrganizationResponse = BlocksQueryResponse<BlocksOrganization>;
55
55
  export type BlocksGetOrganizationsResponse = BlocksQueryListResponse<BlocksOrganization>;
56
- export type BlocksGetMyOrganizationsResponse = BlocksQueryResponse<BlocksOrganization[]>;
56
+ export type BlocksGetMyOrganizationsResponse = BlocksBaseResponse & {
57
+ organizations?: BlocksOrganization[];
58
+ };
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { BlocksNotifierClient } from "./notifier/notifier-client.js";
11
11
  export type { BlocksAuthPassThroughResponse, BlocksAuthResponse, BlocksClientCredentialsRequest, BlocksAuthLoginRequest, BlocksIdpCallbackRequest, BlocksIdpInitiateRequest, BlocksIdpInitiateResponse, BlocksLoginOption, BlocksLogoutRequest, BlocksOidcRefreshRequest, BlocksOidcUserInfo, BlocksRefreshRequest, BlocksSocialLoginRequest, BlocksSwitchOrganizationRequest } from "./auth/auth-client.js";
12
12
  export type { BlocksRequestOptions } from "./types.js";
13
13
  export type { BlocksBaseResponse, BlocksGetMyOrganizationsResponse, BlocksGetOrganizationResponse, BlocksGetOrganizationsResponse, BlocksGetPermissionResponse, BlocksGetPermissionsResponse, BlocksGetRoleResponse, BlocksGetRolesResponse, BlocksGetUserResponse, BlocksGetUsersResponse, BlocksIamListRequest, BlocksMeResponse, BlocksOrganization, BlocksPermission, BlocksQueryListResponse, BlocksQueryResponse, BlocksRole, BlocksUser } from "./iam/types.js";
14
- export type { BlocksDataCollection, BlocksDataListOptions, BlocksDmsCreateFolderRequest, BlocksDmsListRequest, BlocksDmsMetaDataValue, BlocksDmsUploadItem, BlocksDmsUploadRequest, BlocksFileDeleteRequest, BlocksFileGetOptions, BlocksFileInfoListRequest, BlocksFileListRequest, BlocksFileUpdateAdditionalInfoRequest, BlocksFileUploadRequest, BlocksFolderDeleteRequest, BlocksGraphqlRequest, BlocksLocalStorageUploadRequest, BlocksPagedResult, BlocksRegexGenerateRequest, BlocksSchemaFieldValidationOptions, BlocksSchemaListOptions, BlocksSchemaValidationListOptions, BlocksUploadToUrlRequest } from "./data/types.js";
14
+ export type { BlocksDataCollection, BlocksDataListOptions, BlocksDirectoryCreateRequest, BlocksDirectoryDeleteRequest, BlocksDirectoryMoveRequest, BlocksDirectoryUpdateRequest, BlocksFileCopyRequest, BlocksFileCreateVersionRequest, BlocksFileDeleteRequest, BlocksFileGetOptions, BlocksFileInfoListRequest, BlocksFileListRequest, BlocksFileMoveRequest, BlocksFileRenameRequest, BlocksFileUpdateAdditionalInfoRequest, BlocksFileUploadRequest, BlocksFileVersionsRequest, BlocksGraphqlRequest, BlocksLocalStorageUploadRequest, BlocksPagedResult, BlocksRegexGenerateRequest, BlocksSchemaFieldValidationOptions, BlocksSchemaListOptions, BlocksSchemaValidationListOptions, BlocksStorageAccessPolicyRequest, BlocksStorageEffect, BlocksStorageObject, BlocksStorageObjectListRequest, BlocksStorageObjectPageRequest, BlocksStorageObjectSearchRequest, BlocksStorageObjectsResponse, BlocksStorageObjectType, BlocksStoragePermission, BlocksStoragePermissionFlags, BlocksStoragePrincipalType, BlocksStorageResourceRequest, BlocksStorageResourceType, BlocksStorageRevokeAccessRequest, BlocksStorageShareRequest, BlocksStorageToggleInheritanceRequest, BlocksUploadToUrlRequest } from "./data/types.js";
15
15
  export type { BlocksLocalizationDictionary, BlocksLocalizationKey, BlocksLocalizationKeyResource, BlocksLocalizationKeysByNamesRequest, BlocksLocalizationKeysByNamesResponse, BlocksLocalizationLanguage, BlocksLocalizationModule, BlocksLocalizationTranslationOptions } from "./localization/types.js";
16
16
  export type { BlocksMfaBackupCodeUseRequest, BlocksMfaConfig, BlocksMfaConfigSaveRequest, BlocksMfaGenerateRequest, BlocksMfaPassThroughResponse, BlocksMfaResendRequest, BlocksMfaSetMethodRequest, BlocksMfaVerifyRequest, BlocksMfaVerifyTotpSetupRequest } from "./mfa/types.js";
17
17
  export type { BlocksMailPassThroughResponse, BlocksSendMailRequest, BlocksSendMailToAnyRequest } from "./mail/types.js";
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "@seliseblocks/client",
3
- "version": "0.1.3",
4
- "description": "Framework-neutral TypeScript client SDK for SELISE Blocks frontend applications.",
5
- "license": "MIT",
6
- "type": "module",
7
- "keywords": [
8
- "selise",
9
- "blocks",
10
- "sdk",
11
- "typescript",
12
- "frontend"
13
- ],
14
- "main": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
20
- },
21
- "./package.json": "./package.json"
22
- },
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "sideEffects": false,
27
- "files": [
28
- "dist",
29
- "README.md",
30
- "AI_USAGE_GUIDE.md",
31
- "LICENSE"
32
- ],
33
- "scripts": {
34
- "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
35
- "build": "npm run clean && tsc -p tsconfig.json",
36
- "lint": "tsc -p tsconfig.json --noEmit",
37
- "test": "npm run build && node --test test/*.test.mjs",
38
- "prepack": "npm run build",
39
- "prepublishOnly": "npm test"
40
- },
41
- "engines": {
42
- "node": ">=20"
43
- },
44
- "devDependencies": {
45
- "@types/node": "^22.0.0",
46
- "typescript": "^5.5.0"
47
- }
48
- }
1
+ {
2
+ "name": "@seliseblocks/client",
3
+ "version": "0.1.5",
4
+ "description": "Framework-neutral TypeScript client SDK for SELISE Blocks frontend applications.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "keywords": [
8
+ "selise",
9
+ "blocks",
10
+ "sdk",
11
+ "typescript",
12
+ "frontend"
13
+ ],
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "sideEffects": false,
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "AI_USAGE_GUIDE.md",
31
+ "LICENSE"
32
+ ],
33
+ "scripts": {
34
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
35
+ "build": "npm run clean && tsc -p tsconfig.json",
36
+ "lint": "tsc -p tsconfig.json --noEmit",
37
+ "test": "npm run build && node --test test/*.test.mjs",
38
+ "prepack": "npm run build",
39
+ "prepublishOnly": "npm test"
40
+ },
41
+ "engines": {
42
+ "node": ">=20"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^22.0.0",
46
+ "typescript": "^5.5.0"
47
+ }
48
+ }