@interfere/attio 0.1.3 → 0.2.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/README.md +123 -53
- package/dist/commonjs/funcs/files-delete-v2-files-file-id.d.ts +22 -0
- package/dist/commonjs/funcs/files-delete-v2-files-file-id.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-delete-v2-files-file-id.js +128 -0
- package/dist/commonjs/funcs/files-delete-v2-files-file-id.js.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id-download.d.ts +21 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id-download.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id-download.js +124 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id-download.js.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id.d.ts +22 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id.js +128 -0
- package/dist/commonjs/funcs/files-get-v2-files-file-id.js.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files.d.ts +21 -0
- package/dist/commonjs/funcs/files-get-v2-files.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-get-v2-files.js +127 -0
- package/dist/commonjs/funcs/files-get-v2-files.js.map +1 -0
- package/dist/commonjs/funcs/files-post-v2-files-upload.d.ts +21 -0
- package/dist/commonjs/funcs/files-post-v2-files-upload.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-post-v2-files-upload.js +148 -0
- package/dist/commonjs/funcs/files-post-v2-files-upload.js.map +1 -0
- package/dist/commonjs/funcs/files-post-v2-files.d.ts +21 -0
- package/dist/commonjs/funcs/files-post-v2-files.d.ts.map +1 -0
- package/dist/commonjs/funcs/files-post-v2-files.js +119 -0
- package/dist/commonjs/funcs/files-post-v2-files.js.map +1 -0
- package/dist/commonjs/funcs/notes-create.d.ts +1 -1
- package/dist/commonjs/funcs/notes-create.d.ts.map +1 -1
- package/dist/commonjs/funcs/notes-create.js +2 -2
- package/dist/commonjs/funcs/notes-create.js.map +1 -1
- package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.d.ts +19 -0
- package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.d.ts.map +1 -0
- package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.js +106 -0
- package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.js.map +1 -0
- package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.d.ts +19 -0
- package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.d.ts.map +1 -0
- package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.js +106 -0
- package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.js.map +1 -0
- package/dist/commonjs/funcs/scim-schemas-list.d.ts +1 -1
- package/dist/commonjs/funcs/scim-schemas-list.js +1 -1
- package/dist/commonjs/funcs/scim-users-get-scimv2-users.d.ts +19 -0
- package/dist/commonjs/funcs/scim-users-get-scimv2-users.d.ts.map +1 -0
- package/dist/commonjs/funcs/scim-users-get-scimv2-users.js +106 -0
- package/dist/commonjs/funcs/scim-users-get-scimv2-users.js.map +1 -0
- package/dist/commonjs/funcs/scim-users-post-scimv2-users.d.ts +19 -0
- package/dist/commonjs/funcs/scim-users-post-scimv2-users.d.ts.map +1 -0
- package/dist/commonjs/funcs/scim-users-post-scimv2-users.js +106 -0
- package/dist/commonjs/funcs/scim-users-post-scimv2-users.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/connected-file.d.ts +107 -0
- package/dist/commonjs/models/connected-file.d.ts.map +1 -0
- package/dist/commonjs/models/connected-file.js +120 -0
- package/dist/commonjs/models/connected-file.js.map +1 -0
- package/dist/commonjs/models/connected-folder.d.ts +107 -0
- package/dist/commonjs/models/connected-folder.d.ts.map +1 -0
- package/dist/commonjs/models/connected-folder.js +120 -0
- package/dist/commonjs/models/connected-folder.js.map +1 -0
- package/dist/commonjs/models/errors/get-v2-files-file-id.d.ts +29 -0
- package/dist/commonjs/models/errors/get-v2-files-file-id.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-v2-files-file-id.js +78 -0
- package/dist/commonjs/models/errors/get-v2-files-file-id.js.map +1 -0
- package/dist/commonjs/models/errors/get-v2-objects-object.d.ts +25 -0
- package/dist/commonjs/models/errors/get-v2-objects-object.d.ts.map +1 -1
- package/dist/commonjs/models/errors/get-v2-objects-object.js +34 -1
- package/dist/commonjs/models/errors/get-v2-objects-object.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/file.d.ts +127 -0
- package/dist/commonjs/models/file.d.ts.map +1 -0
- package/dist/commonjs/models/file.js +132 -0
- package/dist/commonjs/models/file.js.map +1 -0
- package/dist/commonjs/models/folder.d.ts +107 -0
- package/dist/commonjs/models/folder.d.ts.map +1 -0
- package/dist/commonjs/models/folder.js +119 -0
- package/dist/commonjs/models/folder.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/get-scim-v2-groups.d.ts +17 -0
- package/dist/commonjs/models/operations/get-scim-v2-groups.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-scim-v2-groups.js +60 -0
- package/dist/commonjs/models/operations/get-scim-v2-groups.js.map +1 -0
- package/dist/commonjs/models/operations/get-scim-v2-users.d.ts +17 -0
- package/dist/commonjs/models/operations/get-scim-v2-users.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-scim-v2-users.js +60 -0
- package/dist/commonjs/models/operations/get-scim-v2-users.js.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id-download.d.ts +21 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id-download.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id-download.js +61 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id-download.js.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id.d.ts +169 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id.js +187 -0
- package/dist/commonjs/models/operations/get-v2-files-file-id.js.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files.d.ts +70 -0
- package/dist/commonjs/models/operations/get-v2-files.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-v2-files.js +114 -0
- package/dist/commonjs/models/operations/get-v2-files.js.map +1 -0
- package/dist/commonjs/models/operations/get-v2-self.d.ts +1 -1
- package/dist/commonjs/models/operations/get-v2-self.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-v2-self.js +1 -1
- package/dist/commonjs/models/operations/get-v2-self.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +10 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +10 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts +45 -1
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js +34 -3
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js.map +1 -1
- package/dist/commonjs/models/operations/post-scim-v2-groups.d.ts +33 -0
- package/dist/commonjs/models/operations/post-scim-v2-groups.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-scim-v2-groups.js +80 -0
- package/dist/commonjs/models/operations/post-scim-v2-groups.js.map +1 -0
- package/dist/commonjs/models/operations/post-scim-v2-users.d.ts +51 -0
- package/dist/commonjs/models/operations/post-scim-v2-users.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-scim-v2-users.js +97 -0
- package/dist/commonjs/models/operations/post-scim-v2-users.js.map +1 -0
- package/dist/commonjs/models/operations/post-v2-files-upload.d.ts +54 -0
- package/dist/commonjs/models/operations/post-v2-files-upload.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-v2-files-upload.js +84 -0
- package/dist/commonjs/models/operations/post-v2-files-upload.js.map +1 -0
- package/dist/commonjs/models/operations/post-v2-files.d.ts +165 -0
- package/dist/commonjs/models/operations/post-v2-files.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-v2-files.js +159 -0
- package/dist/commonjs/models/operations/post-v2-files.js.map +1 -0
- package/dist/commonjs/models/operations/{post-v2-tasks-data.d.ts → post-v2-tasks-assignee-workspace-member.d.ts} +13 -45
- package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{post-v2-tasks-data.js → post-v2-tasks-assignee-workspace-member.js} +16 -40
- package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.js.map +1 -0
- package/dist/commonjs/sdk/files.d.ts +71 -0
- package/dist/commonjs/sdk/files.d.ts.map +1 -0
- package/dist/commonjs/sdk/files.js +96 -0
- package/dist/commonjs/sdk/files.js.map +1 -0
- package/dist/commonjs/sdk/scim-groups.d.ts +23 -0
- package/dist/commonjs/sdk/scim-groups.d.ts.map +1 -0
- package/dist/commonjs/sdk/scim-groups.js +36 -0
- package/dist/commonjs/sdk/scim-groups.js.map +1 -0
- package/dist/commonjs/sdk/scim-schemas.d.ts +1 -1
- package/dist/commonjs/sdk/scim-schemas.js +1 -1
- package/dist/commonjs/sdk/scim-users.d.ts +23 -0
- package/dist/commonjs/sdk/scim-users.d.ts.map +1 -0
- package/dist/commonjs/sdk/scim-users.js +36 -0
- package/dist/commonjs/sdk/scim-users.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +9 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +12 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/files-delete-v2-files-file-id.d.ts +22 -0
- package/dist/esm/funcs/files-delete-v2-files-file-id.d.ts.map +1 -0
- package/dist/esm/funcs/files-delete-v2-files-file-id.js +92 -0
- package/dist/esm/funcs/files-delete-v2-files-file-id.js.map +1 -0
- package/dist/esm/funcs/files-get-v2-files-file-id-download.d.ts +21 -0
- package/dist/esm/funcs/files-get-v2-files-file-id-download.d.ts.map +1 -0
- package/dist/esm/funcs/files-get-v2-files-file-id-download.js +88 -0
- package/dist/esm/funcs/files-get-v2-files-file-id-download.js.map +1 -0
- package/dist/esm/funcs/files-get-v2-files-file-id.d.ts +22 -0
- package/dist/esm/funcs/files-get-v2-files-file-id.d.ts.map +1 -0
- package/dist/esm/funcs/files-get-v2-files-file-id.js +92 -0
- package/dist/esm/funcs/files-get-v2-files-file-id.js.map +1 -0
- package/dist/esm/funcs/files-get-v2-files.d.ts +21 -0
- package/dist/esm/funcs/files-get-v2-files.d.ts.map +1 -0
- package/dist/esm/funcs/files-get-v2-files.js +91 -0
- package/dist/esm/funcs/files-get-v2-files.js.map +1 -0
- package/dist/esm/funcs/files-post-v2-files-upload.d.ts +21 -0
- package/dist/esm/funcs/files-post-v2-files-upload.d.ts.map +1 -0
- package/dist/esm/funcs/files-post-v2-files-upload.js +112 -0
- package/dist/esm/funcs/files-post-v2-files-upload.js.map +1 -0
- package/dist/esm/funcs/files-post-v2-files.d.ts +21 -0
- package/dist/esm/funcs/files-post-v2-files.d.ts.map +1 -0
- package/dist/esm/funcs/files-post-v2-files.js +83 -0
- package/dist/esm/funcs/files-post-v2-files.js.map +1 -0
- package/dist/esm/funcs/notes-create.d.ts +1 -1
- package/dist/esm/funcs/notes-create.d.ts.map +1 -1
- package/dist/esm/funcs/notes-create.js +2 -2
- package/dist/esm/funcs/notes-create.js.map +1 -1
- package/dist/esm/funcs/scim-groups-get-scimv2-groups.d.ts +19 -0
- package/dist/esm/funcs/scim-groups-get-scimv2-groups.d.ts.map +1 -0
- package/dist/esm/funcs/scim-groups-get-scimv2-groups.js +70 -0
- package/dist/esm/funcs/scim-groups-get-scimv2-groups.js.map +1 -0
- package/dist/esm/funcs/scim-groups-post-scimv2-groups.d.ts +19 -0
- package/dist/esm/funcs/scim-groups-post-scimv2-groups.d.ts.map +1 -0
- package/dist/esm/funcs/scim-groups-post-scimv2-groups.js +70 -0
- package/dist/esm/funcs/scim-groups-post-scimv2-groups.js.map +1 -0
- package/dist/esm/funcs/scim-schemas-list.d.ts +1 -1
- package/dist/esm/funcs/scim-schemas-list.js +1 -1
- package/dist/esm/funcs/scim-users-get-scimv2-users.d.ts +19 -0
- package/dist/esm/funcs/scim-users-get-scimv2-users.d.ts.map +1 -0
- package/dist/esm/funcs/scim-users-get-scimv2-users.js +70 -0
- package/dist/esm/funcs/scim-users-get-scimv2-users.js.map +1 -0
- package/dist/esm/funcs/scim-users-post-scimv2-users.d.ts +19 -0
- package/dist/esm/funcs/scim-users-post-scimv2-users.d.ts.map +1 -0
- package/dist/esm/funcs/scim-users-post-scimv2-users.js +70 -0
- package/dist/esm/funcs/scim-users-post-scimv2-users.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/connected-file.d.ts +107 -0
- package/dist/esm/models/connected-file.d.ts.map +1 -0
- package/dist/esm/models/connected-file.js +81 -0
- package/dist/esm/models/connected-file.js.map +1 -0
- package/dist/esm/models/connected-folder.d.ts +107 -0
- package/dist/esm/models/connected-folder.d.ts.map +1 -0
- package/dist/esm/models/connected-folder.js +81 -0
- package/dist/esm/models/connected-folder.js.map +1 -0
- package/dist/esm/models/errors/get-v2-files-file-id.d.ts +29 -0
- package/dist/esm/models/errors/get-v2-files-file-id.d.ts.map +1 -0
- package/dist/esm/models/errors/get-v2-files-file-id.js +41 -0
- package/dist/esm/models/errors/get-v2-files-file-id.js.map +1 -0
- package/dist/esm/models/errors/get-v2-objects-object.d.ts +25 -0
- package/dist/esm/models/errors/get-v2-objects-object.d.ts.map +1 -1
- package/dist/esm/models/errors/get-v2-objects-object.js +32 -0
- package/dist/esm/models/errors/get-v2-objects-object.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/file.d.ts +127 -0
- package/dist/esm/models/file.d.ts.map +1 -0
- package/dist/esm/models/file.js +93 -0
- package/dist/esm/models/file.js.map +1 -0
- package/dist/esm/models/folder.d.ts +107 -0
- package/dist/esm/models/folder.d.ts.map +1 -0
- package/dist/esm/models/folder.js +80 -0
- package/dist/esm/models/folder.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/get-scim-v2-groups.d.ts +17 -0
- package/dist/esm/models/operations/get-scim-v2-groups.d.ts.map +1 -0
- package/dist/esm/models/operations/get-scim-v2-groups.js +23 -0
- package/dist/esm/models/operations/get-scim-v2-groups.js.map +1 -0
- package/dist/esm/models/operations/get-scim-v2-users.d.ts +17 -0
- package/dist/esm/models/operations/get-scim-v2-users.d.ts.map +1 -0
- package/dist/esm/models/operations/get-scim-v2-users.js +23 -0
- package/dist/esm/models/operations/get-scim-v2-users.js.map +1 -0
- package/dist/esm/models/operations/get-v2-files-file-id-download.d.ts +21 -0
- package/dist/esm/models/operations/get-v2-files-file-id-download.d.ts.map +1 -0
- package/dist/esm/models/operations/get-v2-files-file-id-download.js +23 -0
- package/dist/esm/models/operations/get-v2-files-file-id-download.js.map +1 -0
- package/dist/esm/models/operations/get-v2-files-file-id.d.ts +169 -0
- package/dist/esm/models/operations/get-v2-files-file-id.d.ts.map +1 -0
- package/dist/esm/models/operations/get-v2-files-file-id.js +143 -0
- package/dist/esm/models/operations/get-v2-files-file-id.js.map +1 -0
- package/dist/esm/models/operations/get-v2-files.d.ts +70 -0
- package/dist/esm/models/operations/get-v2-files.d.ts.map +1 -0
- package/dist/esm/models/operations/get-v2-files.js +74 -0
- package/dist/esm/models/operations/get-v2-files.js.map +1 -0
- package/dist/esm/models/operations/get-v2-self.d.ts +1 -1
- package/dist/esm/models/operations/get-v2-self.d.ts.map +1 -1
- package/dist/esm/models/operations/get-v2-self.js +1 -1
- package/dist/esm/models/operations/get-v2-self.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +10 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +10 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts +45 -1
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -1
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js +31 -2
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js.map +1 -1
- package/dist/esm/models/operations/post-scim-v2-groups.d.ts +33 -0
- package/dist/esm/models/operations/post-scim-v2-groups.d.ts.map +1 -0
- package/dist/esm/models/operations/post-scim-v2-groups.js +41 -0
- package/dist/esm/models/operations/post-scim-v2-groups.js.map +1 -0
- package/dist/esm/models/operations/post-scim-v2-users.d.ts +51 -0
- package/dist/esm/models/operations/post-scim-v2-users.d.ts.map +1 -0
- package/dist/esm/models/operations/post-scim-v2-users.js +56 -0
- package/dist/esm/models/operations/post-scim-v2-users.js.map +1 -0
- package/dist/esm/models/operations/post-v2-files-upload.d.ts +54 -0
- package/dist/esm/models/operations/post-v2-files-upload.d.ts.map +1 -0
- package/dist/esm/models/operations/post-v2-files-upload.js +45 -0
- package/dist/esm/models/operations/post-v2-files-upload.js.map +1 -0
- package/dist/esm/models/operations/post-v2-files.d.ts +165 -0
- package/dist/esm/models/operations/post-v2-files.d.ts.map +1 -0
- package/dist/esm/models/operations/post-v2-files.js +117 -0
- package/dist/esm/models/operations/post-v2-files.js.map +1 -0
- package/dist/esm/models/operations/{post-v2-tasks-data.d.ts → post-v2-tasks-assignee-workspace-member.d.ts} +13 -45
- package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
- package/dist/esm/models/operations/{post-v2-tasks-data.js → post-v2-tasks-assignee-workspace-member.js} +11 -33
- package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.js.map +1 -0
- package/dist/esm/sdk/files.d.ts +71 -0
- package/dist/esm/sdk/files.d.ts.map +1 -0
- package/dist/esm/sdk/files.js +92 -0
- package/dist/esm/sdk/files.js.map +1 -0
- package/dist/esm/sdk/scim-groups.d.ts +23 -0
- package/dist/esm/sdk/scim-groups.d.ts.map +1 -0
- package/dist/esm/sdk/scim-groups.js +32 -0
- package/dist/esm/sdk/scim-groups.js.map +1 -0
- package/dist/esm/sdk/scim-schemas.d.ts +1 -1
- package/dist/esm/sdk/scim-schemas.js +1 -1
- package/dist/esm/sdk/scim-users.d.ts +23 -0
- package/dist/esm/sdk/scim-users.d.ts.map +1 -0
- package/dist/esm/sdk/scim-users.js +32 -0
- package/dist/esm/sdk/scim-users.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +9 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +12 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/files-delete-v2-files-file-id.ts +181 -0
- package/src/funcs/files-get-v2-files-file-id-download.ts +172 -0
- package/src/funcs/files-get-v2-files-file-id.ts +181 -0
- package/src/funcs/files-get-v2-files.ts +174 -0
- package/src/funcs/files-post-v2-files-upload.ts +206 -0
- package/src/funcs/files-post-v2-files.ts +165 -0
- package/src/funcs/notes-create.ts +5 -1
- package/src/funcs/scim-groups-get-scimv2-groups.ts +144 -0
- package/src/funcs/scim-groups-post-scimv2-groups.ts +144 -0
- package/src/funcs/scim-schemas-list.ts +1 -1
- package/src/funcs/scim-users-get-scimv2-users.ts +144 -0
- package/src/funcs/scim-users-post-scimv2-users.ts +144 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/connected-file.ts +208 -0
- package/src/models/connected-folder.ts +208 -0
- package/src/models/errors/get-v2-files-file-id.ts +70 -0
- package/src/models/errors/get-v2-objects-object.ts +61 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/file.ts +224 -0
- package/src/models/folder.ts +197 -0
- package/src/models/index.ts +4 -0
- package/src/models/operations/get-scim-v2-groups.ts +50 -0
- package/src/models/operations/get-scim-v2-users.ts +50 -0
- package/src/models/operations/get-v2-files-file-id-download.ts +64 -0
- package/src/models/operations/get-v2-files-file-id.ts +404 -0
- package/src/models/operations/get-v2-files.ts +195 -0
- package/src/models/operations/get-v2-self.ts +2 -2
- package/src/models/operations/index.ts +10 -1
- package/src/models/operations/patch-v2-tasks-task-id-response.ts +111 -5
- package/src/models/operations/post-scim-v2-groups.ts +99 -0
- package/src/models/operations/post-scim-v2-users.ts +141 -0
- package/src/models/operations/post-v2-files-upload.ts +117 -0
- package/src/models/operations/post-v2-files.ts +336 -0
- package/src/models/operations/{post-v2-tasks-data.ts → post-v2-tasks-assignee-workspace-member.ts} +24 -103
- package/src/sdk/files.ts +141 -0
- package/src/sdk/scim-groups.ts +45 -0
- package/src/sdk/scim-schemas.ts +1 -1
- package/src/sdk/scim-users.ts +45 -0
- package/src/sdk/sdk.ts +18 -0
- package/dist/commonjs/models/operations/post-v2-tasks-data.d.ts.map +0 -1
- package/dist/commonjs/models/operations/post-v2-tasks-data.js.map +0 -1
- package/dist/esm/models/operations/post-v2-tasks-data.d.ts.map +0 -1
- package/dist/esm/models/operations/post-v2-tasks-data.js.map +0 -1
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as discriminatedUnionTypes from "../../types/discriminated-union.js";
|
|
9
|
+
import { discriminatedUnion } from "../../types/discriminated-union.js";
|
|
10
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
+
import * as models from "../index.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The external storage provider.
|
|
17
|
+
*/
|
|
18
|
+
export const PostV2FilesStorageProvider2 = {
|
|
19
|
+
Dropbox: "dropbox",
|
|
20
|
+
Box: "box",
|
|
21
|
+
GoogleDrive: "google-drive",
|
|
22
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
23
|
+
} as const;
|
|
24
|
+
/**
|
|
25
|
+
* The external storage provider.
|
|
26
|
+
*/
|
|
27
|
+
export type PostV2FilesStorageProvider2 = ClosedEnum<
|
|
28
|
+
typeof PostV2FilesStorageProvider2
|
|
29
|
+
>;
|
|
30
|
+
|
|
31
|
+
export type ConnectedFile = {
|
|
32
|
+
/**
|
|
33
|
+
* The object slug or ID.
|
|
34
|
+
*/
|
|
35
|
+
object: string;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the record to create the file entry on.
|
|
38
|
+
*/
|
|
39
|
+
recordId: string;
|
|
40
|
+
/**
|
|
41
|
+
* The external storage provider.
|
|
42
|
+
*/
|
|
43
|
+
storageProvider: PostV2FilesStorageProvider2;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the file or folder in the external storage provider.
|
|
46
|
+
*/
|
|
47
|
+
externalProviderFileId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Microsoft drive ID. Only used when `storage_provider` is `microsoft-onedrive`.
|
|
50
|
+
*/
|
|
51
|
+
microsoftDriveId?: string | null | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a connected file entry.
|
|
54
|
+
*/
|
|
55
|
+
fileType: "connected-file";
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The external storage provider.
|
|
60
|
+
*/
|
|
61
|
+
export const PostV2FilesStorageProvider1 = {
|
|
62
|
+
Dropbox: "dropbox",
|
|
63
|
+
Box: "box",
|
|
64
|
+
GoogleDrive: "google-drive",
|
|
65
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
66
|
+
} as const;
|
|
67
|
+
/**
|
|
68
|
+
* The external storage provider.
|
|
69
|
+
*/
|
|
70
|
+
export type PostV2FilesStorageProvider1 = ClosedEnum<
|
|
71
|
+
typeof PostV2FilesStorageProvider1
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
export type ConnectedFolder = {
|
|
75
|
+
/**
|
|
76
|
+
* The object slug or ID.
|
|
77
|
+
*/
|
|
78
|
+
object: string;
|
|
79
|
+
/**
|
|
80
|
+
* The ID of the record to create the file entry on.
|
|
81
|
+
*/
|
|
82
|
+
recordId: string;
|
|
83
|
+
/**
|
|
84
|
+
* The external storage provider.
|
|
85
|
+
*/
|
|
86
|
+
storageProvider: PostV2FilesStorageProvider1;
|
|
87
|
+
/**
|
|
88
|
+
* The ID of the file or folder in the external storage provider.
|
|
89
|
+
*/
|
|
90
|
+
externalProviderFileId: string;
|
|
91
|
+
/**
|
|
92
|
+
* Microsoft drive ID. Only used when `storage_provider` is `microsoft-onedrive`.
|
|
93
|
+
*/
|
|
94
|
+
microsoftDriveId?: string | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Creates a connected folder entry.
|
|
97
|
+
*/
|
|
98
|
+
fileType: "connected-folder";
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type PostV2FilesFolder = {
|
|
102
|
+
/**
|
|
103
|
+
* The object slug or ID.
|
|
104
|
+
*/
|
|
105
|
+
object: string;
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the record to create the file entry on.
|
|
108
|
+
*/
|
|
109
|
+
recordId: string;
|
|
110
|
+
/**
|
|
111
|
+
* Creates a native Attio folder entry.
|
|
112
|
+
*/
|
|
113
|
+
fileType: "folder";
|
|
114
|
+
/**
|
|
115
|
+
* The folder name.
|
|
116
|
+
*/
|
|
117
|
+
name: string;
|
|
118
|
+
/**
|
|
119
|
+
* Optional parent folder ID. Omit to create a top-level folder.
|
|
120
|
+
*/
|
|
121
|
+
parentFolderId?: string | undefined;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type PostV2FilesRequest =
|
|
125
|
+
| PostV2FilesFolder
|
|
126
|
+
| ConnectedFolder
|
|
127
|
+
| ConnectedFile;
|
|
128
|
+
|
|
129
|
+
export type PostV2FilesData =
|
|
130
|
+
| models.Folder
|
|
131
|
+
| models.ConnectedFile
|
|
132
|
+
| models.ConnectedFolder
|
|
133
|
+
| discriminatedUnionTypes.Unknown<"fileType">;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Success
|
|
137
|
+
*/
|
|
138
|
+
export type PostV2FilesResponse = {
|
|
139
|
+
data:
|
|
140
|
+
| models.Folder
|
|
141
|
+
| models.ConnectedFile
|
|
142
|
+
| models.ConnectedFolder
|
|
143
|
+
| discriminatedUnionTypes.Unknown<"fileType">;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const PostV2FilesStorageProvider2$outboundSchema: z.ZodMiniEnum<
|
|
148
|
+
typeof PostV2FilesStorageProvider2
|
|
149
|
+
> = z.enum(PostV2FilesStorageProvider2);
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export type ConnectedFile$Outbound = {
|
|
153
|
+
object: string;
|
|
154
|
+
record_id: string;
|
|
155
|
+
storage_provider: string;
|
|
156
|
+
external_provider_file_id: string;
|
|
157
|
+
microsoft_drive_id?: string | null | undefined;
|
|
158
|
+
file_type: "connected-file";
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const ConnectedFile$outboundSchema: z.ZodMiniType<
|
|
163
|
+
ConnectedFile$Outbound,
|
|
164
|
+
ConnectedFile
|
|
165
|
+
> = z.pipe(
|
|
166
|
+
z.object({
|
|
167
|
+
object: z.string(),
|
|
168
|
+
recordId: z.string(),
|
|
169
|
+
storageProvider: PostV2FilesStorageProvider2$outboundSchema,
|
|
170
|
+
externalProviderFileId: z.string(),
|
|
171
|
+
microsoftDriveId: z.optional(z.nullable(z.string())),
|
|
172
|
+
fileType: z.literal("connected-file"),
|
|
173
|
+
}),
|
|
174
|
+
z.transform((v) => {
|
|
175
|
+
return remap$(v, {
|
|
176
|
+
recordId: "record_id",
|
|
177
|
+
storageProvider: "storage_provider",
|
|
178
|
+
externalProviderFileId: "external_provider_file_id",
|
|
179
|
+
microsoftDriveId: "microsoft_drive_id",
|
|
180
|
+
fileType: "file_type",
|
|
181
|
+
});
|
|
182
|
+
}),
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
export function connectedFileToJSON(connectedFile: ConnectedFile): string {
|
|
186
|
+
return JSON.stringify(ConnectedFile$outboundSchema.parse(connectedFile));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const PostV2FilesStorageProvider1$outboundSchema: z.ZodMiniEnum<
|
|
191
|
+
typeof PostV2FilesStorageProvider1
|
|
192
|
+
> = z.enum(PostV2FilesStorageProvider1);
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type ConnectedFolder$Outbound = {
|
|
196
|
+
object: string;
|
|
197
|
+
record_id: string;
|
|
198
|
+
storage_provider: string;
|
|
199
|
+
external_provider_file_id: string;
|
|
200
|
+
microsoft_drive_id?: string | null | undefined;
|
|
201
|
+
file_type: "connected-folder";
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const ConnectedFolder$outboundSchema: z.ZodMiniType<
|
|
206
|
+
ConnectedFolder$Outbound,
|
|
207
|
+
ConnectedFolder
|
|
208
|
+
> = z.pipe(
|
|
209
|
+
z.object({
|
|
210
|
+
object: z.string(),
|
|
211
|
+
recordId: z.string(),
|
|
212
|
+
storageProvider: PostV2FilesStorageProvider1$outboundSchema,
|
|
213
|
+
externalProviderFileId: z.string(),
|
|
214
|
+
microsoftDriveId: z.optional(z.nullable(z.string())),
|
|
215
|
+
fileType: z.literal("connected-folder"),
|
|
216
|
+
}),
|
|
217
|
+
z.transform((v) => {
|
|
218
|
+
return remap$(v, {
|
|
219
|
+
recordId: "record_id",
|
|
220
|
+
storageProvider: "storage_provider",
|
|
221
|
+
externalProviderFileId: "external_provider_file_id",
|
|
222
|
+
microsoftDriveId: "microsoft_drive_id",
|
|
223
|
+
fileType: "file_type",
|
|
224
|
+
});
|
|
225
|
+
}),
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
export function connectedFolderToJSON(
|
|
229
|
+
connectedFolder: ConnectedFolder,
|
|
230
|
+
): string {
|
|
231
|
+
return JSON.stringify(ConnectedFolder$outboundSchema.parse(connectedFolder));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export type PostV2FilesFolder$Outbound = {
|
|
236
|
+
object: string;
|
|
237
|
+
record_id: string;
|
|
238
|
+
file_type: "folder";
|
|
239
|
+
name: string;
|
|
240
|
+
parent_folder_id?: string | undefined;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/** @internal */
|
|
244
|
+
export const PostV2FilesFolder$outboundSchema: z.ZodMiniType<
|
|
245
|
+
PostV2FilesFolder$Outbound,
|
|
246
|
+
PostV2FilesFolder
|
|
247
|
+
> = z.pipe(
|
|
248
|
+
z.object({
|
|
249
|
+
object: z.string(),
|
|
250
|
+
recordId: z.string(),
|
|
251
|
+
fileType: z.literal("folder"),
|
|
252
|
+
name: z.string(),
|
|
253
|
+
parentFolderId: z.optional(z.string()),
|
|
254
|
+
}),
|
|
255
|
+
z.transform((v) => {
|
|
256
|
+
return remap$(v, {
|
|
257
|
+
recordId: "record_id",
|
|
258
|
+
fileType: "file_type",
|
|
259
|
+
parentFolderId: "parent_folder_id",
|
|
260
|
+
});
|
|
261
|
+
}),
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
export function postV2FilesFolderToJSON(
|
|
265
|
+
postV2FilesFolder: PostV2FilesFolder,
|
|
266
|
+
): string {
|
|
267
|
+
return JSON.stringify(
|
|
268
|
+
PostV2FilesFolder$outboundSchema.parse(postV2FilesFolder),
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export type PostV2FilesRequest$Outbound =
|
|
274
|
+
| PostV2FilesFolder$Outbound
|
|
275
|
+
| ConnectedFolder$Outbound
|
|
276
|
+
| ConnectedFile$Outbound;
|
|
277
|
+
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const PostV2FilesRequest$outboundSchema: z.ZodMiniType<
|
|
280
|
+
PostV2FilesRequest$Outbound,
|
|
281
|
+
PostV2FilesRequest
|
|
282
|
+
> = z.union([
|
|
283
|
+
z.lazy(() => PostV2FilesFolder$outboundSchema),
|
|
284
|
+
z.lazy(() => ConnectedFolder$outboundSchema),
|
|
285
|
+
z.lazy(() => ConnectedFile$outboundSchema),
|
|
286
|
+
]);
|
|
287
|
+
|
|
288
|
+
export function postV2FilesRequestToJSON(
|
|
289
|
+
postV2FilesRequest: PostV2FilesRequest,
|
|
290
|
+
): string {
|
|
291
|
+
return JSON.stringify(
|
|
292
|
+
PostV2FilesRequest$outboundSchema.parse(postV2FilesRequest),
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** @internal */
|
|
297
|
+
export const PostV2FilesData$inboundSchema: z.ZodMiniType<
|
|
298
|
+
PostV2FilesData,
|
|
299
|
+
unknown
|
|
300
|
+
> = discriminatedUnion("file_type", {
|
|
301
|
+
folder: models.Folder$inboundSchema,
|
|
302
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
303
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
304
|
+
}, { outputPropertyName: "fileType" });
|
|
305
|
+
|
|
306
|
+
export function postV2FilesDataFromJSON(
|
|
307
|
+
jsonString: string,
|
|
308
|
+
): SafeParseResult<PostV2FilesData, SDKValidationError> {
|
|
309
|
+
return safeParse(
|
|
310
|
+
jsonString,
|
|
311
|
+
(x) => PostV2FilesData$inboundSchema.parse(JSON.parse(x)),
|
|
312
|
+
`Failed to parse 'PostV2FilesData' from JSON`,
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** @internal */
|
|
317
|
+
export const PostV2FilesResponse$inboundSchema: z.ZodMiniType<
|
|
318
|
+
PostV2FilesResponse,
|
|
319
|
+
unknown
|
|
320
|
+
> = z.object({
|
|
321
|
+
data: discriminatedUnion("file_type", {
|
|
322
|
+
folder: models.Folder$inboundSchema,
|
|
323
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
324
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
325
|
+
}, { outputPropertyName: "fileType" }),
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
export function postV2FilesResponseFromJSON(
|
|
329
|
+
jsonString: string,
|
|
330
|
+
): SafeParseResult<PostV2FilesResponse, SDKValidationError> {
|
|
331
|
+
return safeParse(
|
|
332
|
+
jsonString,
|
|
333
|
+
(x) => PostV2FilesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
334
|
+
`Failed to parse 'PostV2FilesResponse' from JSON`,
|
|
335
|
+
);
|
|
336
|
+
}
|
package/src/models/operations/{post-v2-tasks-data.ts → post-v2-tasks-assignee-workspace-member.ts}
RENAMED
|
@@ -3610,6 +3610,20 @@ export type PostV2NotesRequest = {
|
|
|
3610
3610
|
data: PostV2NotesData;
|
|
3611
3611
|
};
|
|
3612
3612
|
|
|
3613
|
+
export const RequestEntityTooLargeType = {
|
|
3614
|
+
InvalidRequestError: "invalid_request_error",
|
|
3615
|
+
} as const;
|
|
3616
|
+
export type RequestEntityTooLargeType = ClosedEnum<
|
|
3617
|
+
typeof RequestEntityTooLargeType
|
|
3618
|
+
>;
|
|
3619
|
+
|
|
3620
|
+
export const RequestEntityTooLargeCode = {
|
|
3621
|
+
ValidationType: "validation_type",
|
|
3622
|
+
} as const;
|
|
3623
|
+
export type RequestEntityTooLargeCode = ClosedEnum<
|
|
3624
|
+
typeof RequestEntityTooLargeCode
|
|
3625
|
+
>;
|
|
3626
|
+
|
|
3613
3627
|
/**
|
|
3614
3628
|
* Success
|
|
3615
3629
|
*/
|
|
@@ -3999,37 +4013,6 @@ export type PostV2TasksAssigneeWorkspaceMember = {
|
|
|
3999
4013
|
referencedActorId: string;
|
|
4000
4014
|
};
|
|
4001
4015
|
|
|
4002
|
-
export type PostV2TasksAssigneeUnion =
|
|
4003
|
-
| PostV2TasksAssigneeWorkspaceMember
|
|
4004
|
-
| PostV2TasksAssignee;
|
|
4005
|
-
|
|
4006
|
-
export type PostV2TasksData = {
|
|
4007
|
-
/**
|
|
4008
|
-
* The text content of the task, in the format specified by the `format` property. A max length of 2000 characters is enforced.
|
|
4009
|
-
*/
|
|
4010
|
-
content: string;
|
|
4011
|
-
/**
|
|
4012
|
-
* The format of the task content to be created. Rich text formatting, links and @references are not supported.
|
|
4013
|
-
*/
|
|
4014
|
-
format: PostV2TasksFormat;
|
|
4015
|
-
/**
|
|
4016
|
-
* The deadline of the task, in ISO 8601 format.
|
|
4017
|
-
*/
|
|
4018
|
-
deadlineAt: string | null;
|
|
4019
|
-
/**
|
|
4020
|
-
* Whether the task has been completed.
|
|
4021
|
-
*/
|
|
4022
|
-
isCompleted: boolean;
|
|
4023
|
-
/**
|
|
4024
|
-
* Records linked to the task. Creating record links within task content text is not possible via the API at present.
|
|
4025
|
-
*/
|
|
4026
|
-
linkedRecords: Array<PostV2TasksLinkedRecord1 | PostV2TasksLinkedRecord2>;
|
|
4027
|
-
/**
|
|
4028
|
-
* Workspace members assigned to this task.
|
|
4029
|
-
*/
|
|
4030
|
-
assignees: Array<PostV2TasksAssigneeWorkspaceMember | PostV2TasksAssignee>;
|
|
4031
|
-
};
|
|
4032
|
-
|
|
4033
4016
|
/** @internal */
|
|
4034
4017
|
export const PatchV2ObjectsObjectRecordsRecordIdCodeMissingValue$inboundSchema:
|
|
4035
4018
|
z.ZodMiniEnum<typeof PatchV2ObjectsObjectRecordsRecordIdCodeMissingValue> = z
|
|
@@ -7481,6 +7464,16 @@ export function postV2NotesRequestToJSON(
|
|
|
7481
7464
|
);
|
|
7482
7465
|
}
|
|
7483
7466
|
|
|
7467
|
+
/** @internal */
|
|
7468
|
+
export const RequestEntityTooLargeType$inboundSchema: z.ZodMiniEnum<
|
|
7469
|
+
typeof RequestEntityTooLargeType
|
|
7470
|
+
> = z.enum(RequestEntityTooLargeType);
|
|
7471
|
+
|
|
7472
|
+
/** @internal */
|
|
7473
|
+
export const RequestEntityTooLargeCode$inboundSchema: z.ZodMiniEnum<
|
|
7474
|
+
typeof RequestEntityTooLargeCode
|
|
7475
|
+
> = z.enum(RequestEntityTooLargeCode);
|
|
7476
|
+
|
|
7484
7477
|
/** @internal */
|
|
7485
7478
|
export const PostV2NotesResponse$inboundSchema: z.ZodMiniType<
|
|
7486
7479
|
PostV2NotesResponse,
|
|
@@ -7848,75 +7841,3 @@ export function postV2TasksAssigneeWorkspaceMemberToJSON(
|
|
|
7848
7841
|
),
|
|
7849
7842
|
);
|
|
7850
7843
|
}
|
|
7851
|
-
|
|
7852
|
-
/** @internal */
|
|
7853
|
-
export type PostV2TasksAssigneeUnion$Outbound =
|
|
7854
|
-
| PostV2TasksAssigneeWorkspaceMember$Outbound
|
|
7855
|
-
| PostV2TasksAssignee$Outbound;
|
|
7856
|
-
|
|
7857
|
-
/** @internal */
|
|
7858
|
-
export const PostV2TasksAssigneeUnion$outboundSchema: z.ZodMiniType<
|
|
7859
|
-
PostV2TasksAssigneeUnion$Outbound,
|
|
7860
|
-
PostV2TasksAssigneeUnion
|
|
7861
|
-
> = smartUnion([
|
|
7862
|
-
z.lazy(() => PostV2TasksAssigneeWorkspaceMember$outboundSchema),
|
|
7863
|
-
z.lazy(() => PostV2TasksAssignee$outboundSchema),
|
|
7864
|
-
]);
|
|
7865
|
-
|
|
7866
|
-
export function postV2TasksAssigneeUnionToJSON(
|
|
7867
|
-
postV2TasksAssigneeUnion: PostV2TasksAssigneeUnion,
|
|
7868
|
-
): string {
|
|
7869
|
-
return JSON.stringify(
|
|
7870
|
-
PostV2TasksAssigneeUnion$outboundSchema.parse(postV2TasksAssigneeUnion),
|
|
7871
|
-
);
|
|
7872
|
-
}
|
|
7873
|
-
|
|
7874
|
-
/** @internal */
|
|
7875
|
-
export type PostV2TasksData$Outbound = {
|
|
7876
|
-
content: string;
|
|
7877
|
-
format: string;
|
|
7878
|
-
deadline_at: string | null;
|
|
7879
|
-
is_completed: boolean;
|
|
7880
|
-
linked_records: Array<
|
|
7881
|
-
PostV2TasksLinkedRecord1$Outbound | PostV2TasksLinkedRecord2$Outbound
|
|
7882
|
-
>;
|
|
7883
|
-
assignees: Array<
|
|
7884
|
-
PostV2TasksAssigneeWorkspaceMember$Outbound | PostV2TasksAssignee$Outbound
|
|
7885
|
-
>;
|
|
7886
|
-
};
|
|
7887
|
-
|
|
7888
|
-
/** @internal */
|
|
7889
|
-
export const PostV2TasksData$outboundSchema: z.ZodMiniType<
|
|
7890
|
-
PostV2TasksData$Outbound,
|
|
7891
|
-
PostV2TasksData
|
|
7892
|
-
> = z.pipe(
|
|
7893
|
-
z.object({
|
|
7894
|
-
content: z.string(),
|
|
7895
|
-
format: PostV2TasksFormat$outboundSchema,
|
|
7896
|
-
deadlineAt: z.nullable(z.string()),
|
|
7897
|
-
isCompleted: z.boolean(),
|
|
7898
|
-
linkedRecords: z.array(smartUnion([
|
|
7899
|
-
z.lazy(() => PostV2TasksLinkedRecord1$outboundSchema),
|
|
7900
|
-
z.lazy(() => PostV2TasksLinkedRecord2$outboundSchema),
|
|
7901
|
-
])),
|
|
7902
|
-
assignees: z.array(smartUnion([
|
|
7903
|
-
z.lazy(() => PostV2TasksAssigneeWorkspaceMember$outboundSchema),
|
|
7904
|
-
z.lazy(() =>
|
|
7905
|
-
PostV2TasksAssignee$outboundSchema
|
|
7906
|
-
),
|
|
7907
|
-
])),
|
|
7908
|
-
}),
|
|
7909
|
-
z.transform((v) => {
|
|
7910
|
-
return remap$(v, {
|
|
7911
|
-
deadlineAt: "deadline_at",
|
|
7912
|
-
isCompleted: "is_completed",
|
|
7913
|
-
linkedRecords: "linked_records",
|
|
7914
|
-
});
|
|
7915
|
-
}),
|
|
7916
|
-
);
|
|
7917
|
-
|
|
7918
|
-
export function postV2TasksDataToJSON(
|
|
7919
|
-
postV2TasksData: PostV2TasksData,
|
|
7920
|
-
): string {
|
|
7921
|
-
return JSON.stringify(PostV2TasksData$outboundSchema.parse(postV2TasksData));
|
|
7922
|
-
}
|
package/src/sdk/files.ts
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { filesDeleteV2FilesFileId } from "../funcs/files-delete-v2-files-file-id.js";
|
|
6
|
+
import { filesGetV2FilesFileIdDownload } from "../funcs/files-get-v2-files-file-id-download.js";
|
|
7
|
+
import { filesGetV2FilesFileId } from "../funcs/files-get-v2-files-file-id.js";
|
|
8
|
+
import { filesGetV2Files } from "../funcs/files-get-v2-files.js";
|
|
9
|
+
import { filesPostV2FilesUpload } from "../funcs/files-post-v2-files-upload.js";
|
|
10
|
+
import { filesPostV2Files } from "../funcs/files-post-v2-files.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class Files extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List files
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Lists internal files, externally connected files and folders across the workspace. Optional query parameters may be provided to filter results by object, record, storage provider or parent folder.
|
|
21
|
+
*
|
|
22
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
23
|
+
*
|
|
24
|
+
* Required scopes: `object_configuration:read`, `record_permission:read`, `file:read`.
|
|
25
|
+
*/
|
|
26
|
+
async getV2Files(
|
|
27
|
+
request: operations.GetV2FilesRequest,
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): Promise<operations.GetV2FilesResponse> {
|
|
30
|
+
return unwrapAsync(filesGetV2Files(
|
|
31
|
+
this,
|
|
32
|
+
request,
|
|
33
|
+
options,
|
|
34
|
+
));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Create a folder
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Creates a native folder entry or a connected file/folder entry on an object record.
|
|
42
|
+
*
|
|
43
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
44
|
+
*
|
|
45
|
+
* Required scopes: `file:read-write`, `object_configuration:read`, `record_permission:read`.
|
|
46
|
+
*/
|
|
47
|
+
async postV2Files(
|
|
48
|
+
request: operations.PostV2FilesRequest,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): Promise<operations.PostV2FilesResponse> {
|
|
51
|
+
return unwrapAsync(filesPostV2Files(
|
|
52
|
+
this,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Upload a file
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* Uploads a file to native Attio storage for a record. Send multipart/form-data with a single binary field named `file` together with the body fields `object`, `record_id`, and optional `parent_folder_id`. Maximum file size is 50 MB.
|
|
63
|
+
*
|
|
64
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
65
|
+
*
|
|
66
|
+
* Required scopes: `file:read-write`, `object_configuration:read`, `record_permission:read`.
|
|
67
|
+
*/
|
|
68
|
+
async postV2FilesUpload(
|
|
69
|
+
request: operations.PostV2FilesUploadRequest,
|
|
70
|
+
options?: RequestOptions,
|
|
71
|
+
): Promise<operations.PostV2FilesUploadResponse> {
|
|
72
|
+
return unwrapAsync(filesPostV2FilesUpload(
|
|
73
|
+
this,
|
|
74
|
+
request,
|
|
75
|
+
options,
|
|
76
|
+
));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Get a file
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Get a single file entry by ID.
|
|
84
|
+
*
|
|
85
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
86
|
+
*
|
|
87
|
+
* Required scopes: `file:read`, `object_configuration:read`, `record_permission:read`.
|
|
88
|
+
*/
|
|
89
|
+
async getV2FilesFileId(
|
|
90
|
+
request: operations.GetV2FilesFileIdRequest,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): Promise<operations.GetV2FilesFileIdResponse> {
|
|
93
|
+
return unwrapAsync(filesGetV2FilesFileId(
|
|
94
|
+
this,
|
|
95
|
+
request,
|
|
96
|
+
options,
|
|
97
|
+
));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Delete a file
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* Delete a single file by ID. Deleting a folder will delete all of its descendants.
|
|
105
|
+
*
|
|
106
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
107
|
+
*
|
|
108
|
+
* Required scopes: `file:read-write`, `object_configuration:read`, `record_permission:read`.
|
|
109
|
+
*/
|
|
110
|
+
async deleteV2FilesFileId(
|
|
111
|
+
request: operations.DeleteV2FilesFileIdRequest,
|
|
112
|
+
options?: RequestOptions,
|
|
113
|
+
): Promise<operations.DeleteV2FilesFileIdResponse> {
|
|
114
|
+
return unwrapAsync(filesDeleteV2FilesFileId(
|
|
115
|
+
this,
|
|
116
|
+
request,
|
|
117
|
+
options,
|
|
118
|
+
));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Download a file
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* Downloads a file by redirecting to a signed URL.
|
|
126
|
+
*
|
|
127
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
128
|
+
*
|
|
129
|
+
* Required scopes: `object_configuration:read`, `record_permission:read`, `file:read`.
|
|
130
|
+
*/
|
|
131
|
+
async getV2FilesFileIdDownload(
|
|
132
|
+
request: operations.GetV2FilesFileIdDownloadRequest,
|
|
133
|
+
options?: RequestOptions,
|
|
134
|
+
): Promise<operations.GetV2FilesFileIdDownloadResponse> {
|
|
135
|
+
return unwrapAsync(filesGetV2FilesFileIdDownload(
|
|
136
|
+
this,
|
|
137
|
+
request,
|
|
138
|
+
options,
|
|
139
|
+
));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { scimGroupsGetSCIMV2Groups } from "../funcs/scim-groups-get-scimv2-groups.js";
|
|
6
|
+
import { scimGroupsPostSCIMV2Groups } from "../funcs/scim-groups-post-scimv2-groups.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class SCIMGroups extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* List SCIM groups
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Lists SCIM groups for the workspace.
|
|
17
|
+
*
|
|
18
|
+
* Required scopes: `scim_management:read`.
|
|
19
|
+
*/
|
|
20
|
+
async getScimV2Groups(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.GetScimV2GroupsResponse> {
|
|
23
|
+
return unwrapAsync(scimGroupsGetSCIMV2Groups(
|
|
24
|
+
this,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create SCIM group
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Creates a SCIM group for the workspace.
|
|
34
|
+
*
|
|
35
|
+
* Required scopes: `scim_management:read-write`.
|
|
36
|
+
*/
|
|
37
|
+
async postScimV2Groups(
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<operations.PostScimV2GroupsResponse> {
|
|
40
|
+
return unwrapAsync(scimGroupsPostSCIMV2Groups(
|
|
41
|
+
this,
|
|
42
|
+
options,
|
|
43
|
+
));
|
|
44
|
+
}
|
|
45
|
+
}
|
package/src/sdk/scim-schemas.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class ScimSchemas extends ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Lists the SCIM schemas supported by this service provider.
|
|
16
16
|
*
|
|
17
|
-
* Required scopes: `scim_management:read
|
|
17
|
+
* Required scopes: `scim_management:read`.
|
|
18
18
|
*/
|
|
19
19
|
async list(
|
|
20
20
|
options?: RequestOptions,
|