@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,404 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
11
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
|
+
import * as types from "../../types/primitives.js";
|
|
14
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
15
|
+
import * as models from "../index.js";
|
|
16
|
+
|
|
17
|
+
export type GetV2FilesFileIdRequest = {
|
|
18
|
+
fileId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const GetV2FilesFileIdNotFoundType = {
|
|
22
|
+
InvalidRequestError: "invalid_request_error",
|
|
23
|
+
} as const;
|
|
24
|
+
export type GetV2FilesFileIdNotFoundType = ClosedEnum<
|
|
25
|
+
typeof GetV2FilesFileIdNotFoundType
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const GetV2FilesFileIdCode = {
|
|
29
|
+
NotFound: "not_found",
|
|
30
|
+
} as const;
|
|
31
|
+
export type GetV2FilesFileIdCode = ClosedEnum<typeof GetV2FilesFileIdCode>;
|
|
32
|
+
|
|
33
|
+
export type GetV2FilesFileIdId = {
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the workspace the file belongs to.
|
|
36
|
+
*/
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the file entry.
|
|
40
|
+
*/
|
|
41
|
+
fileId: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The storage provider for this file entry.
|
|
46
|
+
*/
|
|
47
|
+
export const GetV2FilesFileIdStorageProvider = {
|
|
48
|
+
Attio: "attio",
|
|
49
|
+
Dropbox: "dropbox",
|
|
50
|
+
Box: "box",
|
|
51
|
+
GoogleDrive: "google-drive",
|
|
52
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
53
|
+
} as const;
|
|
54
|
+
/**
|
|
55
|
+
* The storage provider for this file entry.
|
|
56
|
+
*/
|
|
57
|
+
export type GetV2FilesFileIdStorageProvider = OpenEnum<
|
|
58
|
+
typeof GetV2FilesFileIdStorageProvider
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
63
|
+
*/
|
|
64
|
+
export const GetV2FilesFileIdCreatedByActorType = {
|
|
65
|
+
ApiToken: "api-token",
|
|
66
|
+
WorkspaceMember: "workspace-member",
|
|
67
|
+
System: "system",
|
|
68
|
+
App: "app",
|
|
69
|
+
} as const;
|
|
70
|
+
/**
|
|
71
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
72
|
+
*/
|
|
73
|
+
export type GetV2FilesFileIdCreatedByActorType = OpenEnum<
|
|
74
|
+
typeof GetV2FilesFileIdCreatedByActorType
|
|
75
|
+
>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The actor that created this file entry.
|
|
79
|
+
*/
|
|
80
|
+
export type GetV2FilesFileIdCreatedByActor = {
|
|
81
|
+
/**
|
|
82
|
+
* An ID to identify the actor.
|
|
83
|
+
*/
|
|
84
|
+
id?: string | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The type of actor. [Read more information on actor types here](/docs/actors).
|
|
87
|
+
*/
|
|
88
|
+
type?: GetV2FilesFileIdCreatedByActorType | null | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type GetV2FilesFileIdFolder = {
|
|
92
|
+
id: GetV2FilesFileIdId;
|
|
93
|
+
/**
|
|
94
|
+
* The ID of the object the record belongs to.
|
|
95
|
+
*/
|
|
96
|
+
objectId: string;
|
|
97
|
+
/**
|
|
98
|
+
* The slug of the object the record belongs to.
|
|
99
|
+
*/
|
|
100
|
+
objectSlug: string;
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the record the file is linked to.
|
|
103
|
+
*/
|
|
104
|
+
recordId: string;
|
|
105
|
+
/**
|
|
106
|
+
* The storage provider for this file entry.
|
|
107
|
+
*/
|
|
108
|
+
storageProvider: GetV2FilesFileIdStorageProvider;
|
|
109
|
+
/**
|
|
110
|
+
* The actor that created this file entry.
|
|
111
|
+
*/
|
|
112
|
+
createdByActor: GetV2FilesFileIdCreatedByActor;
|
|
113
|
+
/**
|
|
114
|
+
* Timestamp representing when the file entry was created.
|
|
115
|
+
*/
|
|
116
|
+
createdAt: string;
|
|
117
|
+
/**
|
|
118
|
+
* The type of file entry.
|
|
119
|
+
*/
|
|
120
|
+
fileType: "folder";
|
|
121
|
+
/**
|
|
122
|
+
* The name of the folder.
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* The ID of the parent folder, or null if this is a top-level folder.
|
|
127
|
+
*/
|
|
128
|
+
parentFolderId: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the folder contains any child entries.
|
|
131
|
+
*/
|
|
132
|
+
hasChildren: boolean;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type GetV2FilesFileIdData =
|
|
136
|
+
| (models.FileT & { fileType: "file" })
|
|
137
|
+
| GetV2FilesFileIdFolder
|
|
138
|
+
| models.ConnectedFile
|
|
139
|
+
| models.ConnectedFolder
|
|
140
|
+
| discriminatedUnionTypes.Unknown<"fileType">;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Success
|
|
144
|
+
*/
|
|
145
|
+
export type GetV2FilesFileIdResponse = {
|
|
146
|
+
data:
|
|
147
|
+
| (models.FileT & { fileType: "file" })
|
|
148
|
+
| GetV2FilesFileIdFolder
|
|
149
|
+
| models.ConnectedFile
|
|
150
|
+
| models.ConnectedFolder
|
|
151
|
+
| discriminatedUnionTypes.Unknown<"fileType">;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export type DeleteV2FilesFileIdRequest = {
|
|
155
|
+
fileId: string;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Success
|
|
160
|
+
*/
|
|
161
|
+
export type DeleteV2FilesFileIdResponse = {};
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export type GetV2FilesFileIdRequest$Outbound = {
|
|
165
|
+
file_id: string;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetV2FilesFileIdRequest$outboundSchema: z.ZodMiniType<
|
|
170
|
+
GetV2FilesFileIdRequest$Outbound,
|
|
171
|
+
GetV2FilesFileIdRequest
|
|
172
|
+
> = z.pipe(
|
|
173
|
+
z.object({
|
|
174
|
+
fileId: z.string(),
|
|
175
|
+
}),
|
|
176
|
+
z.transform((v) => {
|
|
177
|
+
return remap$(v, {
|
|
178
|
+
fileId: "file_id",
|
|
179
|
+
});
|
|
180
|
+
}),
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
export function getV2FilesFileIdRequestToJSON(
|
|
184
|
+
getV2FilesFileIdRequest: GetV2FilesFileIdRequest,
|
|
185
|
+
): string {
|
|
186
|
+
return JSON.stringify(
|
|
187
|
+
GetV2FilesFileIdRequest$outboundSchema.parse(getV2FilesFileIdRequest),
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const GetV2FilesFileIdNotFoundType$inboundSchema: z.ZodMiniEnum<
|
|
193
|
+
typeof GetV2FilesFileIdNotFoundType
|
|
194
|
+
> = z.enum(GetV2FilesFileIdNotFoundType);
|
|
195
|
+
|
|
196
|
+
/** @internal */
|
|
197
|
+
export const GetV2FilesFileIdCode$inboundSchema: z.ZodMiniEnum<
|
|
198
|
+
typeof GetV2FilesFileIdCode
|
|
199
|
+
> = z.enum(GetV2FilesFileIdCode);
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const GetV2FilesFileIdId$inboundSchema: z.ZodMiniType<
|
|
203
|
+
GetV2FilesFileIdId,
|
|
204
|
+
unknown
|
|
205
|
+
> = z.pipe(
|
|
206
|
+
z.object({
|
|
207
|
+
workspace_id: types.string(),
|
|
208
|
+
file_id: types.string(),
|
|
209
|
+
}),
|
|
210
|
+
z.transform((v) => {
|
|
211
|
+
return remap$(v, {
|
|
212
|
+
"workspace_id": "workspaceId",
|
|
213
|
+
"file_id": "fileId",
|
|
214
|
+
});
|
|
215
|
+
}),
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
export function getV2FilesFileIdIdFromJSON(
|
|
219
|
+
jsonString: string,
|
|
220
|
+
): SafeParseResult<GetV2FilesFileIdId, SDKValidationError> {
|
|
221
|
+
return safeParse(
|
|
222
|
+
jsonString,
|
|
223
|
+
(x) => GetV2FilesFileIdId$inboundSchema.parse(JSON.parse(x)),
|
|
224
|
+
`Failed to parse 'GetV2FilesFileIdId' from JSON`,
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** @internal */
|
|
229
|
+
export const GetV2FilesFileIdStorageProvider$inboundSchema: z.ZodMiniType<
|
|
230
|
+
GetV2FilesFileIdStorageProvider,
|
|
231
|
+
unknown
|
|
232
|
+
> = openEnums.inboundSchema(GetV2FilesFileIdStorageProvider);
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const GetV2FilesFileIdCreatedByActorType$inboundSchema: z.ZodMiniType<
|
|
236
|
+
GetV2FilesFileIdCreatedByActorType,
|
|
237
|
+
unknown
|
|
238
|
+
> = openEnums.inboundSchema(GetV2FilesFileIdCreatedByActorType);
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const GetV2FilesFileIdCreatedByActor$inboundSchema: z.ZodMiniType<
|
|
242
|
+
GetV2FilesFileIdCreatedByActor,
|
|
243
|
+
unknown
|
|
244
|
+
> = z.object({
|
|
245
|
+
id: z.optional(z.nullable(types.string())),
|
|
246
|
+
type: z.optional(
|
|
247
|
+
z.nullable(GetV2FilesFileIdCreatedByActorType$inboundSchema),
|
|
248
|
+
),
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
export function getV2FilesFileIdCreatedByActorFromJSON(
|
|
252
|
+
jsonString: string,
|
|
253
|
+
): SafeParseResult<GetV2FilesFileIdCreatedByActor, SDKValidationError> {
|
|
254
|
+
return safeParse(
|
|
255
|
+
jsonString,
|
|
256
|
+
(x) => GetV2FilesFileIdCreatedByActor$inboundSchema.parse(JSON.parse(x)),
|
|
257
|
+
`Failed to parse 'GetV2FilesFileIdCreatedByActor' from JSON`,
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** @internal */
|
|
262
|
+
export const GetV2FilesFileIdFolder$inboundSchema: z.ZodMiniType<
|
|
263
|
+
GetV2FilesFileIdFolder,
|
|
264
|
+
unknown
|
|
265
|
+
> = z.pipe(
|
|
266
|
+
z.object({
|
|
267
|
+
id: z.lazy(() => GetV2FilesFileIdId$inboundSchema),
|
|
268
|
+
object_id: types.string(),
|
|
269
|
+
object_slug: types.string(),
|
|
270
|
+
record_id: types.string(),
|
|
271
|
+
storage_provider: GetV2FilesFileIdStorageProvider$inboundSchema,
|
|
272
|
+
created_by_actor: z.lazy(() =>
|
|
273
|
+
GetV2FilesFileIdCreatedByActor$inboundSchema
|
|
274
|
+
),
|
|
275
|
+
created_at: types.string(),
|
|
276
|
+
file_type: types.literal("folder"),
|
|
277
|
+
name: types.string(),
|
|
278
|
+
parent_folder_id: types.nullable(types.string()),
|
|
279
|
+
has_children: types.boolean(),
|
|
280
|
+
}),
|
|
281
|
+
z.transform((v) => {
|
|
282
|
+
return remap$(v, {
|
|
283
|
+
"object_id": "objectId",
|
|
284
|
+
"object_slug": "objectSlug",
|
|
285
|
+
"record_id": "recordId",
|
|
286
|
+
"storage_provider": "storageProvider",
|
|
287
|
+
"created_by_actor": "createdByActor",
|
|
288
|
+
"created_at": "createdAt",
|
|
289
|
+
"file_type": "fileType",
|
|
290
|
+
"parent_folder_id": "parentFolderId",
|
|
291
|
+
"has_children": "hasChildren",
|
|
292
|
+
});
|
|
293
|
+
}),
|
|
294
|
+
);
|
|
295
|
+
|
|
296
|
+
export function getV2FilesFileIdFolderFromJSON(
|
|
297
|
+
jsonString: string,
|
|
298
|
+
): SafeParseResult<GetV2FilesFileIdFolder, SDKValidationError> {
|
|
299
|
+
return safeParse(
|
|
300
|
+
jsonString,
|
|
301
|
+
(x) => GetV2FilesFileIdFolder$inboundSchema.parse(JSON.parse(x)),
|
|
302
|
+
`Failed to parse 'GetV2FilesFileIdFolder' from JSON`,
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** @internal */
|
|
307
|
+
export const GetV2FilesFileIdData$inboundSchema: z.ZodMiniType<
|
|
308
|
+
GetV2FilesFileIdData,
|
|
309
|
+
unknown
|
|
310
|
+
> = discriminatedUnion("file_type", {
|
|
311
|
+
file: z.intersection(
|
|
312
|
+
models.FileT$inboundSchema,
|
|
313
|
+
z.pipe(
|
|
314
|
+
z.object({ file_type: z.literal("file") }),
|
|
315
|
+
z.transform((v) => ({ fileType: v.file_type })),
|
|
316
|
+
),
|
|
317
|
+
),
|
|
318
|
+
folder: z.lazy(() => GetV2FilesFileIdFolder$inboundSchema),
|
|
319
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
320
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
321
|
+
}, { outputPropertyName: "fileType" });
|
|
322
|
+
|
|
323
|
+
export function getV2FilesFileIdDataFromJSON(
|
|
324
|
+
jsonString: string,
|
|
325
|
+
): SafeParseResult<GetV2FilesFileIdData, SDKValidationError> {
|
|
326
|
+
return safeParse(
|
|
327
|
+
jsonString,
|
|
328
|
+
(x) => GetV2FilesFileIdData$inboundSchema.parse(JSON.parse(x)),
|
|
329
|
+
`Failed to parse 'GetV2FilesFileIdData' from JSON`,
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** @internal */
|
|
334
|
+
export const GetV2FilesFileIdResponse$inboundSchema: z.ZodMiniType<
|
|
335
|
+
GetV2FilesFileIdResponse,
|
|
336
|
+
unknown
|
|
337
|
+
> = z.object({
|
|
338
|
+
data: discriminatedUnion("file_type", {
|
|
339
|
+
file: z.intersection(
|
|
340
|
+
models.FileT$inboundSchema,
|
|
341
|
+
z.pipe(
|
|
342
|
+
z.object({ file_type: z.literal("file") }),
|
|
343
|
+
z.transform((v) => ({ fileType: v.file_type })),
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
folder: z.lazy(() => GetV2FilesFileIdFolder$inboundSchema),
|
|
347
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
348
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
349
|
+
}, { outputPropertyName: "fileType" }),
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
export function getV2FilesFileIdResponseFromJSON(
|
|
353
|
+
jsonString: string,
|
|
354
|
+
): SafeParseResult<GetV2FilesFileIdResponse, SDKValidationError> {
|
|
355
|
+
return safeParse(
|
|
356
|
+
jsonString,
|
|
357
|
+
(x) => GetV2FilesFileIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
358
|
+
`Failed to parse 'GetV2FilesFileIdResponse' from JSON`,
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/** @internal */
|
|
363
|
+
export type DeleteV2FilesFileIdRequest$Outbound = {
|
|
364
|
+
file_id: string;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
/** @internal */
|
|
368
|
+
export const DeleteV2FilesFileIdRequest$outboundSchema: z.ZodMiniType<
|
|
369
|
+
DeleteV2FilesFileIdRequest$Outbound,
|
|
370
|
+
DeleteV2FilesFileIdRequest
|
|
371
|
+
> = z.pipe(
|
|
372
|
+
z.object({
|
|
373
|
+
fileId: z.string(),
|
|
374
|
+
}),
|
|
375
|
+
z.transform((v) => {
|
|
376
|
+
return remap$(v, {
|
|
377
|
+
fileId: "file_id",
|
|
378
|
+
});
|
|
379
|
+
}),
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
export function deleteV2FilesFileIdRequestToJSON(
|
|
383
|
+
deleteV2FilesFileIdRequest: DeleteV2FilesFileIdRequest,
|
|
384
|
+
): string {
|
|
385
|
+
return JSON.stringify(
|
|
386
|
+
DeleteV2FilesFileIdRequest$outboundSchema.parse(deleteV2FilesFileIdRequest),
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** @internal */
|
|
391
|
+
export const DeleteV2FilesFileIdResponse$inboundSchema: z.ZodMiniType<
|
|
392
|
+
DeleteV2FilesFileIdResponse,
|
|
393
|
+
unknown
|
|
394
|
+
> = z.object({});
|
|
395
|
+
|
|
396
|
+
export function deleteV2FilesFileIdResponseFromJSON(
|
|
397
|
+
jsonString: string,
|
|
398
|
+
): SafeParseResult<DeleteV2FilesFileIdResponse, SDKValidationError> {
|
|
399
|
+
return safeParse(
|
|
400
|
+
jsonString,
|
|
401
|
+
(x) => DeleteV2FilesFileIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
402
|
+
`Failed to parse 'DeleteV2FilesFileIdResponse' from JSON`,
|
|
403
|
+
);
|
|
404
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
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 * as types from "../../types/primitives.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
14
|
+
import * as models from "../index.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Filter results by storage provider.
|
|
18
|
+
*/
|
|
19
|
+
export const GetV2FilesStorageProvider = {
|
|
20
|
+
Attio: "attio",
|
|
21
|
+
Dropbox: "dropbox",
|
|
22
|
+
Box: "box",
|
|
23
|
+
GoogleDrive: "google-drive",
|
|
24
|
+
MicrosoftOnedrive: "microsoft-onedrive",
|
|
25
|
+
} as const;
|
|
26
|
+
/**
|
|
27
|
+
* Filter results by storage provider.
|
|
28
|
+
*/
|
|
29
|
+
export type GetV2FilesStorageProvider = ClosedEnum<
|
|
30
|
+
typeof GetV2FilesStorageProvider
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
export type GetV2FilesRequest = {
|
|
34
|
+
object: string;
|
|
35
|
+
recordId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Filter results by storage provider.
|
|
38
|
+
*/
|
|
39
|
+
storageProvider?: GetV2FilesStorageProvider | undefined;
|
|
40
|
+
parentFolderId?: string | undefined;
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
cursor?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type GetV2FilesData =
|
|
46
|
+
| (models.FileT & { fileType: "file" })
|
|
47
|
+
| models.Folder
|
|
48
|
+
| models.ConnectedFile
|
|
49
|
+
| models.ConnectedFolder
|
|
50
|
+
| discriminatedUnionTypes.Unknown<"fileType">;
|
|
51
|
+
|
|
52
|
+
export type GetV2FilesPagination = {
|
|
53
|
+
nextCursor: string | null;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Success
|
|
58
|
+
*/
|
|
59
|
+
export type GetV2FilesResponse = {
|
|
60
|
+
data: Array<
|
|
61
|
+
| (models.FileT & { fileType: "file" })
|
|
62
|
+
| models.Folder
|
|
63
|
+
| models.ConnectedFile
|
|
64
|
+
| models.ConnectedFolder
|
|
65
|
+
| discriminatedUnionTypes.Unknown<"fileType">
|
|
66
|
+
>;
|
|
67
|
+
pagination: GetV2FilesPagination;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const GetV2FilesStorageProvider$outboundSchema: z.ZodMiniEnum<
|
|
72
|
+
typeof GetV2FilesStorageProvider
|
|
73
|
+
> = z.enum(GetV2FilesStorageProvider);
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type GetV2FilesRequest$Outbound = {
|
|
77
|
+
object: string;
|
|
78
|
+
record_id: string;
|
|
79
|
+
storage_provider?: string | undefined;
|
|
80
|
+
parent_folder_id?: string | undefined;
|
|
81
|
+
limit: number;
|
|
82
|
+
cursor?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const GetV2FilesRequest$outboundSchema: z.ZodMiniType<
|
|
87
|
+
GetV2FilesRequest$Outbound,
|
|
88
|
+
GetV2FilesRequest
|
|
89
|
+
> = z.pipe(
|
|
90
|
+
z.object({
|
|
91
|
+
object: z.string(),
|
|
92
|
+
recordId: z.string(),
|
|
93
|
+
storageProvider: z.optional(GetV2FilesStorageProvider$outboundSchema),
|
|
94
|
+
parentFolderId: z.optional(z.string()),
|
|
95
|
+
limit: z._default(z.int(), 50),
|
|
96
|
+
cursor: z.optional(z.string()),
|
|
97
|
+
}),
|
|
98
|
+
z.transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
recordId: "record_id",
|
|
101
|
+
storageProvider: "storage_provider",
|
|
102
|
+
parentFolderId: "parent_folder_id",
|
|
103
|
+
});
|
|
104
|
+
}),
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
export function getV2FilesRequestToJSON(
|
|
108
|
+
getV2FilesRequest: GetV2FilesRequest,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
GetV2FilesRequest$outboundSchema.parse(getV2FilesRequest),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const GetV2FilesData$inboundSchema: z.ZodMiniType<
|
|
117
|
+
GetV2FilesData,
|
|
118
|
+
unknown
|
|
119
|
+
> = discriminatedUnion("file_type", {
|
|
120
|
+
file: z.intersection(
|
|
121
|
+
models.FileT$inboundSchema,
|
|
122
|
+
z.pipe(
|
|
123
|
+
z.object({ file_type: z.literal("file") }),
|
|
124
|
+
z.transform((v) => ({ fileType: v.file_type })),
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
folder: models.Folder$inboundSchema,
|
|
128
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
129
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
130
|
+
}, { outputPropertyName: "fileType" });
|
|
131
|
+
|
|
132
|
+
export function getV2FilesDataFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<GetV2FilesData, SDKValidationError> {
|
|
135
|
+
return safeParse(
|
|
136
|
+
jsonString,
|
|
137
|
+
(x) => GetV2FilesData$inboundSchema.parse(JSON.parse(x)),
|
|
138
|
+
`Failed to parse 'GetV2FilesData' from JSON`,
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const GetV2FilesPagination$inboundSchema: z.ZodMiniType<
|
|
144
|
+
GetV2FilesPagination,
|
|
145
|
+
unknown
|
|
146
|
+
> = z.pipe(
|
|
147
|
+
z.object({
|
|
148
|
+
next_cursor: types.nullable(types.string()),
|
|
149
|
+
}),
|
|
150
|
+
z.transform((v) => {
|
|
151
|
+
return remap$(v, {
|
|
152
|
+
"next_cursor": "nextCursor",
|
|
153
|
+
});
|
|
154
|
+
}),
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
export function getV2FilesPaginationFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<GetV2FilesPagination, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) => GetV2FilesPagination$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'GetV2FilesPagination' from JSON`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** @internal */
|
|
168
|
+
export const GetV2FilesResponse$inboundSchema: z.ZodMiniType<
|
|
169
|
+
GetV2FilesResponse,
|
|
170
|
+
unknown
|
|
171
|
+
> = z.object({
|
|
172
|
+
data: z.array(discriminatedUnion("file_type", {
|
|
173
|
+
file: z.intersection(
|
|
174
|
+
models.FileT$inboundSchema,
|
|
175
|
+
z.pipe(
|
|
176
|
+
z.object({ file_type: z.literal("file") }),
|
|
177
|
+
z.transform((v) => ({ fileType: v.file_type })),
|
|
178
|
+
),
|
|
179
|
+
),
|
|
180
|
+
folder: models.Folder$inboundSchema,
|
|
181
|
+
["connected-file"]: models.ConnectedFile$inboundSchema,
|
|
182
|
+
["connected-folder"]: models.ConnectedFolder$inboundSchema,
|
|
183
|
+
}, { outputPropertyName: "fileType" })),
|
|
184
|
+
pagination: z.lazy(() => GetV2FilesPagination$inboundSchema),
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
export function getV2FilesResponseFromJSON(
|
|
188
|
+
jsonString: string,
|
|
189
|
+
): SafeParseResult<GetV2FilesResponse, SDKValidationError> {
|
|
190
|
+
return safeParse(
|
|
191
|
+
jsonString,
|
|
192
|
+
(x) => GetV2FilesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
+
`Failed to parse 'GetV2FilesResponse' from JSON`,
|
|
194
|
+
);
|
|
195
|
+
}
|