@interfere/attio 0.1.2 → 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/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-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts +4402 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js +3773 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js.map +1 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts +538 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js +499 -0
- package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.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 +15 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +15 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts +3854 -0
- package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js +3221 -0
- package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js.map +1 -0
- package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts +3675 -0
- package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js +3065 -0
- package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js.map +1 -0
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts +583 -0
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js +572 -0
- package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js.map +1 -0
- 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-assignee-workspace-member.d.ts +4040 -0
- package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.js +3440 -0
- 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/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-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts +4402 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts.map +1 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js +3639 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js.map +1 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts +538 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts.map +1 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js +445 -0
- package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.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 +15 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +15 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts +3854 -0
- package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts.map +1 -0
- package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js +3085 -0
- package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js.map +1 -0
- package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts +3675 -0
- package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts.map +1 -0
- package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js +2932 -0
- package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js.map +1 -0
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts +583 -0
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -0
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js +516 -0
- package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js.map +1 -0
- 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-assignee-workspace-member.d.ts +4040 -0
- package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
- package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.js +3303 -0
- 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-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.ts +8164 -0
- package/src/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.ts +1446 -0
- package/src/models/operations/get-v2-self.ts +2 -2
- package/src/models/operations/index.ts +15 -2
- package/src/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.ts +7440 -0
- package/src/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.ts +6858 -0
- package/src/models/operations/patch-v2-tasks-task-id-response.ts +1152 -0
- 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-assignee-workspace-member.ts +7843 -0
- 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/.devcontainer/devcontainer.json +0 -45
- package/dist/commonjs/models/operations/get-v2-lists-list.d.ts +0 -8779
- package/dist/commonjs/models/operations/get-v2-lists-list.d.ts.map +0 -1
- package/dist/commonjs/models/operations/get-v2-lists-list.js +0 -7398
- package/dist/commonjs/models/operations/get-v2-lists-list.js.map +0 -1
- package/dist/commonjs/models/operations/get-v2-objects-object.d.ts +0 -8272
- package/dist/commonjs/models/operations/get-v2-objects-object.d.ts.map +0 -1
- package/dist/commonjs/models/operations/get-v2-objects-object.js +0 -6977
- package/dist/commonjs/models/operations/get-v2-objects-object.js.map +0 -1
- package/dist/esm/models/operations/get-v2-lists-list.d.ts +0 -8779
- package/dist/esm/models/operations/get-v2-lists-list.d.ts.map +0 -1
- package/dist/esm/models/operations/get-v2-lists-list.js +0 -7146
- package/dist/esm/models/operations/get-v2-lists-list.js.map +0 -1
- package/dist/esm/models/operations/get-v2-objects-object.d.ts +0 -8272
- package/dist/esm/models/operations/get-v2-objects-object.d.ts.map +0 -1
- package/dist/esm/models/operations/get-v2-objects-object.js +0 -6723
- package/dist/esm/models/operations/get-v2-objects-object.js.map +0 -1
- package/examples/node_modules/.package-lock.json +0 -174
- package/examples/node_modules/@esbuild/darwin-arm64/package.json +0 -20
- package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/examples/node_modules/@types/node/assert.d.ts +0 -1062
- package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
- package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
- package/examples/node_modules/@types/node/cluster.d.ts +0 -577
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/examples/node_modules/@types/node/console.d.ts +0 -452
- package/examples/node_modules/@types/node/constants.d.ts +0 -21
- package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
- package/examples/node_modules/@types/node/dgram.d.ts +0 -597
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/examples/node_modules/@types/node/dns.d.ts +0 -871
- package/examples/node_modules/@types/node/domain.d.ts +0 -170
- package/examples/node_modules/@types/node/events.d.ts +0 -977
- package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/examples/node_modules/@types/node/fs.d.ts +0 -4375
- package/examples/node_modules/@types/node/globals.d.ts +0 -172
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/examples/node_modules/@types/node/http.d.ts +0 -2049
- package/examples/node_modules/@types/node/http2.d.ts +0 -2631
- package/examples/node_modules/@types/node/https.d.ts +0 -578
- package/examples/node_modules/@types/node/index.d.ts +0 -93
- package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/examples/node_modules/@types/node/module.d.ts +0 -539
- package/examples/node_modules/@types/node/net.d.ts +0 -1012
- package/examples/node_modules/@types/node/os.d.ts +0 -506
- package/examples/node_modules/@types/node/package.json +0 -140
- package/examples/node_modules/@types/node/path.d.ts +0 -200
- package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/examples/node_modules/@types/node/process.d.ts +0 -1966
- package/examples/node_modules/@types/node/punycode.d.ts +0 -117
- package/examples/node_modules/@types/node/querystring.d.ts +0 -152
- package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/examples/node_modules/@types/node/readline.d.ts +0 -589
- package/examples/node_modules/@types/node/repl.d.ts +0 -430
- package/examples/node_modules/@types/node/sea.d.ts +0 -153
- package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
- package/examples/node_modules/@types/node/stream.d.ts +0 -1675
- package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/examples/node_modules/@types/node/test.d.ts +0 -1787
- package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/examples/node_modules/@types/node/timers.d.ts +0 -286
- package/examples/node_modules/@types/node/tls.d.ts +0 -1259
- package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/examples/node_modules/@types/node/tty.d.ts +0 -208
- package/examples/node_modules/@types/node/url.d.ts +0 -964
- package/examples/node_modules/@types/node/util.d.ts +0 -2331
- package/examples/node_modules/@types/node/v8.d.ts +0 -809
- package/examples/node_modules/@types/node/vm.d.ts +0 -1001
- package/examples/node_modules/@types/node/wasi.d.ts +0 -181
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/examples/node_modules/@types/node/zlib.d.ts +0 -540
- package/examples/node_modules/dotenv/config.d.ts +0 -1
- package/examples/node_modules/dotenv/config.js +0 -9
- package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
- package/examples/node_modules/dotenv/lib/env-options.js +0 -28
- package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
- package/examples/node_modules/dotenv/lib/main.js +0 -386
- package/examples/node_modules/dotenv/package.json +0 -62
- package/examples/node_modules/esbuild/install.js +0 -289
- package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
- package/examples/node_modules/esbuild/lib/main.js +0 -2242
- package/examples/node_modules/esbuild/package.json +0 -49
- package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
- package/examples/node_modules/fsevents/fsevents.js +0 -83
- package/examples/node_modules/fsevents/package.json +0 -62
- package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
- package/examples/node_modules/get-tsconfig/package.json +0 -46
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/examples/node_modules/resolve-pkg-maps/package.json +0 -42
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cli.mjs +0 -55
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
- package/examples/node_modules/tsx/dist/loader.mjs +0 -1
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +0 -1
- package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
- package/examples/node_modules/tsx/dist/repl.mjs +0 -3
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/examples/node_modules/tsx/package.json +0 -68
- package/examples/node_modules/undici-types/agent.d.ts +0 -31
- package/examples/node_modules/undici-types/api.d.ts +0 -43
- package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/examples/node_modules/undici-types/cache.d.ts +0 -36
- package/examples/node_modules/undici-types/client.d.ts +0 -108
- package/examples/node_modules/undici-types/connector.d.ts +0 -34
- package/examples/node_modules/undici-types/content-type.d.ts +0 -21
- package/examples/node_modules/undici-types/cookies.d.ts +0 -28
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/examples/node_modules/undici-types/errors.d.ts +0 -149
- package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
- package/examples/node_modules/undici-types/fetch.d.ts +0 -209
- package/examples/node_modules/undici-types/file.d.ts +0 -39
- package/examples/node_modules/undici-types/filereader.d.ts +0 -54
- package/examples/node_modules/undici-types/formdata.d.ts +0 -108
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
- package/examples/node_modules/undici-types/handlers.d.ts +0 -15
- package/examples/node_modules/undici-types/header.d.ts +0 -4
- package/examples/node_modules/undici-types/index.d.ts +0 -71
- package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
- package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
- package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/examples/node_modules/undici-types/package.json +0 -55
- package/examples/node_modules/undici-types/patch.d.ts +0 -33
- package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/examples/node_modules/undici-types/pool.d.ts +0 -39
- package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/examples/node_modules/undici-types/readable.d.ts +0 -65
- package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/examples/node_modules/undici-types/util.d.ts +0 -18
- package/examples/node_modules/undici-types/webidl.d.ts +0 -228
- package/examples/node_modules/undici-types/websocket.d.ts +0 -150
- package/examples/package-lock.json +0 -611
- package/examples/package.json +0 -18
- package/src/models/operations/get-v2-lists-list.ts +0 -17016
- package/src/models/operations/get-v2-objects-object.ts +0 -15794
- package/tsconfig.json +0 -40
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminated-union.js";
|
|
3
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
4
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
5
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
|
+
import * as models from "../index.js";
|
|
7
|
+
export type GetV2FilesFileIdRequest = {
|
|
8
|
+
fileId: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GetV2FilesFileIdNotFoundType: {
|
|
11
|
+
readonly InvalidRequestError: "invalid_request_error";
|
|
12
|
+
};
|
|
13
|
+
export type GetV2FilesFileIdNotFoundType = ClosedEnum<typeof GetV2FilesFileIdNotFoundType>;
|
|
14
|
+
export declare const GetV2FilesFileIdCode: {
|
|
15
|
+
readonly NotFound: "not_found";
|
|
16
|
+
};
|
|
17
|
+
export type GetV2FilesFileIdCode = ClosedEnum<typeof GetV2FilesFileIdCode>;
|
|
18
|
+
export type GetV2FilesFileIdId = {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the workspace the file belongs to.
|
|
21
|
+
*/
|
|
22
|
+
workspaceId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the file entry.
|
|
25
|
+
*/
|
|
26
|
+
fileId: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The storage provider for this file entry.
|
|
30
|
+
*/
|
|
31
|
+
export declare const GetV2FilesFileIdStorageProvider: {
|
|
32
|
+
readonly Attio: "attio";
|
|
33
|
+
readonly Dropbox: "dropbox";
|
|
34
|
+
readonly Box: "box";
|
|
35
|
+
readonly GoogleDrive: "google-drive";
|
|
36
|
+
readonly MicrosoftOnedrive: "microsoft-onedrive";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The storage provider for this file entry.
|
|
40
|
+
*/
|
|
41
|
+
export type GetV2FilesFileIdStorageProvider = OpenEnum<typeof GetV2FilesFileIdStorageProvider>;
|
|
42
|
+
/**
|
|
43
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
44
|
+
*/
|
|
45
|
+
export declare const GetV2FilesFileIdCreatedByActorType: {
|
|
46
|
+
readonly ApiToken: "api-token";
|
|
47
|
+
readonly WorkspaceMember: "workspace-member";
|
|
48
|
+
readonly System: "system";
|
|
49
|
+
readonly App: "app";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
53
|
+
*/
|
|
54
|
+
export type GetV2FilesFileIdCreatedByActorType = OpenEnum<typeof GetV2FilesFileIdCreatedByActorType>;
|
|
55
|
+
/**
|
|
56
|
+
* The actor that created this file entry.
|
|
57
|
+
*/
|
|
58
|
+
export type GetV2FilesFileIdCreatedByActor = {
|
|
59
|
+
/**
|
|
60
|
+
* An ID to identify the actor.
|
|
61
|
+
*/
|
|
62
|
+
id?: string | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
65
|
+
*/
|
|
66
|
+
type?: GetV2FilesFileIdCreatedByActorType | null | undefined;
|
|
67
|
+
};
|
|
68
|
+
export type GetV2FilesFileIdFolder = {
|
|
69
|
+
id: GetV2FilesFileIdId;
|
|
70
|
+
/**
|
|
71
|
+
* The ID of the object the record belongs to.
|
|
72
|
+
*/
|
|
73
|
+
objectId: string;
|
|
74
|
+
/**
|
|
75
|
+
* The slug of the object the record belongs to.
|
|
76
|
+
*/
|
|
77
|
+
objectSlug: string;
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the record the file is linked to.
|
|
80
|
+
*/
|
|
81
|
+
recordId: string;
|
|
82
|
+
/**
|
|
83
|
+
* The storage provider for this file entry.
|
|
84
|
+
*/
|
|
85
|
+
storageProvider: GetV2FilesFileIdStorageProvider;
|
|
86
|
+
/**
|
|
87
|
+
* The actor that created this file entry.
|
|
88
|
+
*/
|
|
89
|
+
createdByActor: GetV2FilesFileIdCreatedByActor;
|
|
90
|
+
/**
|
|
91
|
+
* Timestamp representing when the file entry was created.
|
|
92
|
+
*/
|
|
93
|
+
createdAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* The type of file entry.
|
|
96
|
+
*/
|
|
97
|
+
fileType: "folder";
|
|
98
|
+
/**
|
|
99
|
+
* The name of the folder.
|
|
100
|
+
*/
|
|
101
|
+
name: string;
|
|
102
|
+
/**
|
|
103
|
+
* The ID of the parent folder, or null if this is a top-level folder.
|
|
104
|
+
*/
|
|
105
|
+
parentFolderId: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the folder contains any child entries.
|
|
108
|
+
*/
|
|
109
|
+
hasChildren: boolean;
|
|
110
|
+
};
|
|
111
|
+
export type GetV2FilesFileIdData = (models.FileT & {
|
|
112
|
+
fileType: "file";
|
|
113
|
+
}) | GetV2FilesFileIdFolder | models.ConnectedFile | models.ConnectedFolder | discriminatedUnionTypes.Unknown<"fileType">;
|
|
114
|
+
/**
|
|
115
|
+
* Success
|
|
116
|
+
*/
|
|
117
|
+
export type GetV2FilesFileIdResponse = {
|
|
118
|
+
data: (models.FileT & {
|
|
119
|
+
fileType: "file";
|
|
120
|
+
}) | GetV2FilesFileIdFolder | models.ConnectedFile | models.ConnectedFolder | discriminatedUnionTypes.Unknown<"fileType">;
|
|
121
|
+
};
|
|
122
|
+
export type DeleteV2FilesFileIdRequest = {
|
|
123
|
+
fileId: string;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Success
|
|
127
|
+
*/
|
|
128
|
+
export type DeleteV2FilesFileIdResponse = {};
|
|
129
|
+
/** @internal */
|
|
130
|
+
export type GetV2FilesFileIdRequest$Outbound = {
|
|
131
|
+
file_id: string;
|
|
132
|
+
};
|
|
133
|
+
/** @internal */
|
|
134
|
+
export declare const GetV2FilesFileIdRequest$outboundSchema: z.ZodMiniType<GetV2FilesFileIdRequest$Outbound, GetV2FilesFileIdRequest>;
|
|
135
|
+
export declare function getV2FilesFileIdRequestToJSON(getV2FilesFileIdRequest: GetV2FilesFileIdRequest): string;
|
|
136
|
+
/** @internal */
|
|
137
|
+
export declare const GetV2FilesFileIdNotFoundType$inboundSchema: z.ZodMiniEnum<typeof GetV2FilesFileIdNotFoundType>;
|
|
138
|
+
/** @internal */
|
|
139
|
+
export declare const GetV2FilesFileIdCode$inboundSchema: z.ZodMiniEnum<typeof GetV2FilesFileIdCode>;
|
|
140
|
+
/** @internal */
|
|
141
|
+
export declare const GetV2FilesFileIdId$inboundSchema: z.ZodMiniType<GetV2FilesFileIdId, unknown>;
|
|
142
|
+
export declare function getV2FilesFileIdIdFromJSON(jsonString: string): SafeParseResult<GetV2FilesFileIdId, SDKValidationError>;
|
|
143
|
+
/** @internal */
|
|
144
|
+
export declare const GetV2FilesFileIdStorageProvider$inboundSchema: z.ZodMiniType<GetV2FilesFileIdStorageProvider, unknown>;
|
|
145
|
+
/** @internal */
|
|
146
|
+
export declare const GetV2FilesFileIdCreatedByActorType$inboundSchema: z.ZodMiniType<GetV2FilesFileIdCreatedByActorType, unknown>;
|
|
147
|
+
/** @internal */
|
|
148
|
+
export declare const GetV2FilesFileIdCreatedByActor$inboundSchema: z.ZodMiniType<GetV2FilesFileIdCreatedByActor, unknown>;
|
|
149
|
+
export declare function getV2FilesFileIdCreatedByActorFromJSON(jsonString: string): SafeParseResult<GetV2FilesFileIdCreatedByActor, SDKValidationError>;
|
|
150
|
+
/** @internal */
|
|
151
|
+
export declare const GetV2FilesFileIdFolder$inboundSchema: z.ZodMiniType<GetV2FilesFileIdFolder, unknown>;
|
|
152
|
+
export declare function getV2FilesFileIdFolderFromJSON(jsonString: string): SafeParseResult<GetV2FilesFileIdFolder, SDKValidationError>;
|
|
153
|
+
/** @internal */
|
|
154
|
+
export declare const GetV2FilesFileIdData$inboundSchema: z.ZodMiniType<GetV2FilesFileIdData, unknown>;
|
|
155
|
+
export declare function getV2FilesFileIdDataFromJSON(jsonString: string): SafeParseResult<GetV2FilesFileIdData, SDKValidationError>;
|
|
156
|
+
/** @internal */
|
|
157
|
+
export declare const GetV2FilesFileIdResponse$inboundSchema: z.ZodMiniType<GetV2FilesFileIdResponse, unknown>;
|
|
158
|
+
export declare function getV2FilesFileIdResponseFromJSON(jsonString: string): SafeParseResult<GetV2FilesFileIdResponse, SDKValidationError>;
|
|
159
|
+
/** @internal */
|
|
160
|
+
export type DeleteV2FilesFileIdRequest$Outbound = {
|
|
161
|
+
file_id: string;
|
|
162
|
+
};
|
|
163
|
+
/** @internal */
|
|
164
|
+
export declare const DeleteV2FilesFileIdRequest$outboundSchema: z.ZodMiniType<DeleteV2FilesFileIdRequest$Outbound, DeleteV2FilesFileIdRequest>;
|
|
165
|
+
export declare function deleteV2FilesFileIdRequestToJSON(deleteV2FilesFileIdRequest: DeleteV2FilesFileIdRequest): string;
|
|
166
|
+
/** @internal */
|
|
167
|
+
export declare const DeleteV2FilesFileIdResponse$inboundSchema: z.ZodMiniType<DeleteV2FilesFileIdResponse, unknown>;
|
|
168
|
+
export declare function deleteV2FilesFileIdResponseFromJSON(jsonString: string): SafeParseResult<DeleteV2FilesFileIdResponse, SDKValidationError>;
|
|
169
|
+
//# sourceMappingURL=get-v2-files-file-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-v2-files-file-id.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/get-v2-files-file-id.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,KAAK,uBAAuB,MAAM,oCAAoC,CAAC;AAG9E,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,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AgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,wBAAwB,EACxB,OAAO,CAcP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D;AAED,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,mCAAmC,EACnC,0BAA0B,CAU3B,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,2BAA2B,EAC3B,OAAO,CACO,CAAC;AAEjB,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.DeleteV2FilesFileIdResponse$inboundSchema = exports.DeleteV2FilesFileIdRequest$outboundSchema = exports.GetV2FilesFileIdResponse$inboundSchema = exports.GetV2FilesFileIdData$inboundSchema = exports.GetV2FilesFileIdFolder$inboundSchema = exports.GetV2FilesFileIdCreatedByActor$inboundSchema = exports.GetV2FilesFileIdCreatedByActorType$inboundSchema = exports.GetV2FilesFileIdStorageProvider$inboundSchema = exports.GetV2FilesFileIdId$inboundSchema = exports.GetV2FilesFileIdCode$inboundSchema = exports.GetV2FilesFileIdNotFoundType$inboundSchema = exports.GetV2FilesFileIdRequest$outboundSchema = exports.GetV2FilesFileIdCreatedByActorType = exports.GetV2FilesFileIdStorageProvider = exports.GetV2FilesFileIdCode = exports.GetV2FilesFileIdNotFoundType = void 0;
|
|
40
|
+
exports.getV2FilesFileIdRequestToJSON = getV2FilesFileIdRequestToJSON;
|
|
41
|
+
exports.getV2FilesFileIdIdFromJSON = getV2FilesFileIdIdFromJSON;
|
|
42
|
+
exports.getV2FilesFileIdCreatedByActorFromJSON = getV2FilesFileIdCreatedByActorFromJSON;
|
|
43
|
+
exports.getV2FilesFileIdFolderFromJSON = getV2FilesFileIdFolderFromJSON;
|
|
44
|
+
exports.getV2FilesFileIdDataFromJSON = getV2FilesFileIdDataFromJSON;
|
|
45
|
+
exports.getV2FilesFileIdResponseFromJSON = getV2FilesFileIdResponseFromJSON;
|
|
46
|
+
exports.deleteV2FilesFileIdRequestToJSON = deleteV2FilesFileIdRequestToJSON;
|
|
47
|
+
exports.deleteV2FilesFileIdResponseFromJSON = deleteV2FilesFileIdResponseFromJSON;
|
|
48
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
49
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
50
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
51
|
+
const discriminated_union_js_1 = require("../../types/discriminated-union.js");
|
|
52
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
53
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
54
|
+
const models = __importStar(require("../index.js"));
|
|
55
|
+
exports.GetV2FilesFileIdNotFoundType = {
|
|
56
|
+
InvalidRequestError: "invalid_request_error",
|
|
57
|
+
};
|
|
58
|
+
exports.GetV2FilesFileIdCode = {
|
|
59
|
+
NotFound: "not_found",
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The storage provider for this file entry.
|
|
63
|
+
*/
|
|
64
|
+
exports.GetV2FilesFileIdStorageProvider = {
|
|
65
|
+
Attio: "attio",
|
|
66
|
+
Dropbox: "dropbox",
|
|
67
|
+
Box: "box",
|
|
68
|
+
GoogleDrive: "google-drive",
|
|
69
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
73
|
+
*/
|
|
74
|
+
exports.GetV2FilesFileIdCreatedByActorType = {
|
|
75
|
+
ApiToken: "api-token",
|
|
76
|
+
WorkspaceMember: "workspace-member",
|
|
77
|
+
System: "system",
|
|
78
|
+
App: "app",
|
|
79
|
+
};
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.GetV2FilesFileIdRequest$outboundSchema = z.pipe(z.object({
|
|
82
|
+
fileId: z.string(),
|
|
83
|
+
}), z.transform((v) => {
|
|
84
|
+
return (0, primitives_js_1.remap)(v, {
|
|
85
|
+
fileId: "file_id",
|
|
86
|
+
});
|
|
87
|
+
}));
|
|
88
|
+
function getV2FilesFileIdRequestToJSON(getV2FilesFileIdRequest) {
|
|
89
|
+
return JSON.stringify(exports.GetV2FilesFileIdRequest$outboundSchema.parse(getV2FilesFileIdRequest));
|
|
90
|
+
}
|
|
91
|
+
/** @internal */
|
|
92
|
+
exports.GetV2FilesFileIdNotFoundType$inboundSchema = z.enum(exports.GetV2FilesFileIdNotFoundType);
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.GetV2FilesFileIdCode$inboundSchema = z.enum(exports.GetV2FilesFileIdCode);
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.GetV2FilesFileIdId$inboundSchema = z.pipe(z.object({
|
|
97
|
+
workspace_id: types.string(),
|
|
98
|
+
file_id: types.string(),
|
|
99
|
+
}), z.transform((v) => {
|
|
100
|
+
return (0, primitives_js_1.remap)(v, {
|
|
101
|
+
"workspace_id": "workspaceId",
|
|
102
|
+
"file_id": "fileId",
|
|
103
|
+
});
|
|
104
|
+
}));
|
|
105
|
+
function getV2FilesFileIdIdFromJSON(jsonString) {
|
|
106
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesFileIdId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesFileIdId' from JSON`);
|
|
107
|
+
}
|
|
108
|
+
/** @internal */
|
|
109
|
+
exports.GetV2FilesFileIdStorageProvider$inboundSchema = openEnums.inboundSchema(exports.GetV2FilesFileIdStorageProvider);
|
|
110
|
+
/** @internal */
|
|
111
|
+
exports.GetV2FilesFileIdCreatedByActorType$inboundSchema = openEnums.inboundSchema(exports.GetV2FilesFileIdCreatedByActorType);
|
|
112
|
+
/** @internal */
|
|
113
|
+
exports.GetV2FilesFileIdCreatedByActor$inboundSchema = z.object({
|
|
114
|
+
id: z.optional(z.nullable(types.string())),
|
|
115
|
+
type: z.optional(z.nullable(exports.GetV2FilesFileIdCreatedByActorType$inboundSchema)),
|
|
116
|
+
});
|
|
117
|
+
function getV2FilesFileIdCreatedByActorFromJSON(jsonString) {
|
|
118
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesFileIdCreatedByActor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesFileIdCreatedByActor' from JSON`);
|
|
119
|
+
}
|
|
120
|
+
/** @internal */
|
|
121
|
+
exports.GetV2FilesFileIdFolder$inboundSchema = z.pipe(z.object({
|
|
122
|
+
id: z.lazy(() => exports.GetV2FilesFileIdId$inboundSchema),
|
|
123
|
+
object_id: types.string(),
|
|
124
|
+
object_slug: types.string(),
|
|
125
|
+
record_id: types.string(),
|
|
126
|
+
storage_provider: exports.GetV2FilesFileIdStorageProvider$inboundSchema,
|
|
127
|
+
created_by_actor: z.lazy(() => exports.GetV2FilesFileIdCreatedByActor$inboundSchema),
|
|
128
|
+
created_at: types.string(),
|
|
129
|
+
file_type: types.literal("folder"),
|
|
130
|
+
name: types.string(),
|
|
131
|
+
parent_folder_id: types.nullable(types.string()),
|
|
132
|
+
has_children: types.boolean(),
|
|
133
|
+
}), z.transform((v) => {
|
|
134
|
+
return (0, primitives_js_1.remap)(v, {
|
|
135
|
+
"object_id": "objectId",
|
|
136
|
+
"object_slug": "objectSlug",
|
|
137
|
+
"record_id": "recordId",
|
|
138
|
+
"storage_provider": "storageProvider",
|
|
139
|
+
"created_by_actor": "createdByActor",
|
|
140
|
+
"created_at": "createdAt",
|
|
141
|
+
"file_type": "fileType",
|
|
142
|
+
"parent_folder_id": "parentFolderId",
|
|
143
|
+
"has_children": "hasChildren",
|
|
144
|
+
});
|
|
145
|
+
}));
|
|
146
|
+
function getV2FilesFileIdFolderFromJSON(jsonString) {
|
|
147
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesFileIdFolder$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesFileIdFolder' from JSON`);
|
|
148
|
+
}
|
|
149
|
+
/** @internal */
|
|
150
|
+
exports.GetV2FilesFileIdData$inboundSchema = (0, discriminated_union_js_1.discriminatedUnion)("file_type", {
|
|
151
|
+
file: z.intersection(models.FileT$inboundSchema, z.pipe(z.object({ file_type: z.literal("file") }), z.transform((v) => ({ fileType: v.file_type })))),
|
|
152
|
+
folder: z.lazy(() => exports.GetV2FilesFileIdFolder$inboundSchema),
|
|
153
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
154
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
155
|
+
}, { outputPropertyName: "fileType" });
|
|
156
|
+
function getV2FilesFileIdDataFromJSON(jsonString) {
|
|
157
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesFileIdData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesFileIdData' from JSON`);
|
|
158
|
+
}
|
|
159
|
+
/** @internal */
|
|
160
|
+
exports.GetV2FilesFileIdResponse$inboundSchema = z.object({
|
|
161
|
+
data: (0, discriminated_union_js_1.discriminatedUnion)("file_type", {
|
|
162
|
+
file: z.intersection(models.FileT$inboundSchema, z.pipe(z.object({ file_type: z.literal("file") }), z.transform((v) => ({ fileType: v.file_type })))),
|
|
163
|
+
folder: z.lazy(() => exports.GetV2FilesFileIdFolder$inboundSchema),
|
|
164
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
165
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
166
|
+
}, { outputPropertyName: "fileType" }),
|
|
167
|
+
});
|
|
168
|
+
function getV2FilesFileIdResponseFromJSON(jsonString) {
|
|
169
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesFileIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesFileIdResponse' from JSON`);
|
|
170
|
+
}
|
|
171
|
+
/** @internal */
|
|
172
|
+
exports.DeleteV2FilesFileIdRequest$outboundSchema = z.pipe(z.object({
|
|
173
|
+
fileId: z.string(),
|
|
174
|
+
}), z.transform((v) => {
|
|
175
|
+
return (0, primitives_js_1.remap)(v, {
|
|
176
|
+
fileId: "file_id",
|
|
177
|
+
});
|
|
178
|
+
}));
|
|
179
|
+
function deleteV2FilesFileIdRequestToJSON(deleteV2FilesFileIdRequest) {
|
|
180
|
+
return JSON.stringify(exports.DeleteV2FilesFileIdRequest$outboundSchema.parse(deleteV2FilesFileIdRequest));
|
|
181
|
+
}
|
|
182
|
+
/** @internal */
|
|
183
|
+
exports.DeleteV2FilesFileIdResponse$inboundSchema = z.object({});
|
|
184
|
+
function deleteV2FilesFileIdResponseFromJSON(jsonString) {
|
|
185
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteV2FilesFileIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2FilesFileIdResponse' from JSON`);
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=get-v2-files-file-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-v2-files-file-id.js","sourceRoot":"","sources":["../../../../src/models/operations/get-v2-files-file-id.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoLH,sEAMC;AA6BD,gEAQC;AAyBD,wFAQC;AAqCD,wEAQC;AAmBD,oEAQC;AAqBD,4EAQC;AAsBD,4EAMC;AAQD,kFAQC;AA/YD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,+EAAwE;AACxE,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v4-mini";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminated-union.js";
|
|
3
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
4
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
5
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
|
+
import * as models from "../index.js";
|
|
7
|
+
/**
|
|
8
|
+
* Filter results by storage provider.
|
|
9
|
+
*/
|
|
10
|
+
export declare const GetV2FilesStorageProvider: {
|
|
11
|
+
readonly Attio: "attio";
|
|
12
|
+
readonly Dropbox: "dropbox";
|
|
13
|
+
readonly Box: "box";
|
|
14
|
+
readonly GoogleDrive: "google-drive";
|
|
15
|
+
readonly MicrosoftOnedrive: "microsoft-onedrive";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Filter results by storage provider.
|
|
19
|
+
*/
|
|
20
|
+
export type GetV2FilesStorageProvider = ClosedEnum<typeof GetV2FilesStorageProvider>;
|
|
21
|
+
export type GetV2FilesRequest = {
|
|
22
|
+
object: string;
|
|
23
|
+
recordId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Filter results by storage provider.
|
|
26
|
+
*/
|
|
27
|
+
storageProvider?: GetV2FilesStorageProvider | undefined;
|
|
28
|
+
parentFolderId?: string | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
cursor?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
export type GetV2FilesData = (models.FileT & {
|
|
33
|
+
fileType: "file";
|
|
34
|
+
}) | models.Folder | models.ConnectedFile | models.ConnectedFolder | discriminatedUnionTypes.Unknown<"fileType">;
|
|
35
|
+
export type GetV2FilesPagination = {
|
|
36
|
+
nextCursor: string | null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Success
|
|
40
|
+
*/
|
|
41
|
+
export type GetV2FilesResponse = {
|
|
42
|
+
data: Array<(models.FileT & {
|
|
43
|
+
fileType: "file";
|
|
44
|
+
}) | models.Folder | models.ConnectedFile | models.ConnectedFolder | discriminatedUnionTypes.Unknown<"fileType">>;
|
|
45
|
+
pagination: GetV2FilesPagination;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const GetV2FilesStorageProvider$outboundSchema: z.ZodMiniEnum<typeof GetV2FilesStorageProvider>;
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type GetV2FilesRequest$Outbound = {
|
|
51
|
+
object: string;
|
|
52
|
+
record_id: string;
|
|
53
|
+
storage_provider?: string | undefined;
|
|
54
|
+
parent_folder_id?: string | undefined;
|
|
55
|
+
limit: number;
|
|
56
|
+
cursor?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const GetV2FilesRequest$outboundSchema: z.ZodMiniType<GetV2FilesRequest$Outbound, GetV2FilesRequest>;
|
|
60
|
+
export declare function getV2FilesRequestToJSON(getV2FilesRequest: GetV2FilesRequest): string;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const GetV2FilesData$inboundSchema: z.ZodMiniType<GetV2FilesData, unknown>;
|
|
63
|
+
export declare function getV2FilesDataFromJSON(jsonString: string): SafeParseResult<GetV2FilesData, SDKValidationError>;
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const GetV2FilesPagination$inboundSchema: z.ZodMiniType<GetV2FilesPagination, unknown>;
|
|
66
|
+
export declare function getV2FilesPaginationFromJSON(jsonString: string): SafeParseResult<GetV2FilesPagination, SDKValidationError>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const GetV2FilesResponse$inboundSchema: z.ZodMiniType<GetV2FilesResponse, unknown>;
|
|
69
|
+
export declare function getV2FilesResponseFromJSON(jsonString: string): SafeParseResult<GetV2FilesResponse, SDKValidationError>;
|
|
70
|
+
//# sourceMappingURL=get-v2-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-v2-files.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/get-v2-files.ts"],"names":[],"mapp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O,CAeP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GetV2FilesResponse$inboundSchema = exports.GetV2FilesPagination$inboundSchema = exports.GetV2FilesData$inboundSchema = exports.GetV2FilesRequest$outboundSchema = exports.GetV2FilesStorageProvider$outboundSchema = exports.GetV2FilesStorageProvider = void 0;
|
|
40
|
+
exports.getV2FilesRequestToJSON = getV2FilesRequestToJSON;
|
|
41
|
+
exports.getV2FilesDataFromJSON = getV2FilesDataFromJSON;
|
|
42
|
+
exports.getV2FilesPaginationFromJSON = getV2FilesPaginationFromJSON;
|
|
43
|
+
exports.getV2FilesResponseFromJSON = getV2FilesResponseFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const discriminated_union_js_1 = require("../../types/discriminated-union.js");
|
|
48
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
49
|
+
const models = __importStar(require("../index.js"));
|
|
50
|
+
/**
|
|
51
|
+
* Filter results by storage provider.
|
|
52
|
+
*/
|
|
53
|
+
exports.GetV2FilesStorageProvider = {
|
|
54
|
+
Attio: "attio",
|
|
55
|
+
Dropbox: "dropbox",
|
|
56
|
+
Box: "box",
|
|
57
|
+
GoogleDrive: "google-drive",
|
|
58
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.GetV2FilesStorageProvider$outboundSchema = z.enum(exports.GetV2FilesStorageProvider);
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.GetV2FilesRequest$outboundSchema = z.pipe(z.object({
|
|
64
|
+
object: z.string(),
|
|
65
|
+
recordId: z.string(),
|
|
66
|
+
storageProvider: z.optional(exports.GetV2FilesStorageProvider$outboundSchema),
|
|
67
|
+
parentFolderId: z.optional(z.string()),
|
|
68
|
+
limit: z._default(z.int(), 50),
|
|
69
|
+
cursor: z.optional(z.string()),
|
|
70
|
+
}), z.transform((v) => {
|
|
71
|
+
return (0, primitives_js_1.remap)(v, {
|
|
72
|
+
recordId: "record_id",
|
|
73
|
+
storageProvider: "storage_provider",
|
|
74
|
+
parentFolderId: "parent_folder_id",
|
|
75
|
+
});
|
|
76
|
+
}));
|
|
77
|
+
function getV2FilesRequestToJSON(getV2FilesRequest) {
|
|
78
|
+
return JSON.stringify(exports.GetV2FilesRequest$outboundSchema.parse(getV2FilesRequest));
|
|
79
|
+
}
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.GetV2FilesData$inboundSchema = (0, discriminated_union_js_1.discriminatedUnion)("file_type", {
|
|
82
|
+
file: z.intersection(models.FileT$inboundSchema, z.pipe(z.object({ file_type: z.literal("file") }), z.transform((v) => ({ fileType: v.file_type })))),
|
|
83
|
+
folder: models.Folder$inboundSchema,
|
|
84
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
85
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
86
|
+
}, { outputPropertyName: "fileType" });
|
|
87
|
+
function getV2FilesDataFromJSON(jsonString) {
|
|
88
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesData' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
/** @internal */
|
|
91
|
+
exports.GetV2FilesPagination$inboundSchema = z.pipe(z.object({
|
|
92
|
+
next_cursor: types.nullable(types.string()),
|
|
93
|
+
}), z.transform((v) => {
|
|
94
|
+
return (0, primitives_js_1.remap)(v, {
|
|
95
|
+
"next_cursor": "nextCursor",
|
|
96
|
+
});
|
|
97
|
+
}));
|
|
98
|
+
function getV2FilesPaginationFromJSON(jsonString) {
|
|
99
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesPagination' from JSON`);
|
|
100
|
+
}
|
|
101
|
+
/** @internal */
|
|
102
|
+
exports.GetV2FilesResponse$inboundSchema = z.object({
|
|
103
|
+
data: z.array((0, discriminated_union_js_1.discriminatedUnion)("file_type", {
|
|
104
|
+
file: z.intersection(models.FileT$inboundSchema, z.pipe(z.object({ file_type: z.literal("file") }), z.transform((v) => ({ fileType: v.file_type })))),
|
|
105
|
+
folder: models.Folder$inboundSchema,
|
|
106
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
107
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
108
|
+
}, { outputPropertyName: "fileType" })),
|
|
109
|
+
pagination: z.lazy(() => exports.GetV2FilesPagination$inboundSchema),
|
|
110
|
+
});
|
|
111
|
+
function getV2FilesResponseFromJSON(jsonString) {
|
|
112
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2FilesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2FilesResponse' from JSON`);
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=get-v2-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-v2-files.js","sourceRoot":"","sources":["../../../../src/models/operations/get-v2-files.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGH,0DAMC;AAmBD,wDAQC;AAiBD,oEAQC;AAsBD,gEAQC;AA9LD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,+EAAwE;AAGxE,iEAAmD;AAEnD,oDAAsC;AAEtC;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC;AA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