@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,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { AttioCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { AttioBaseError } from "../models/errors/attio-base-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List files
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Lists internal files, externally connected files and folders across the workspace. Optional query parameters may be provided to filter results by object, record, storage provider or parent folder.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
35
|
+
*
|
|
36
|
+
* Required scopes: `object_configuration:read`, `record_permission:read`, `file:read`.
|
|
37
|
+
*/
|
|
38
|
+
export function filesGetV2Files(
|
|
39
|
+
client: AttioCore,
|
|
40
|
+
request: operations.GetV2FilesRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
operations.GetV2FilesResponse,
|
|
45
|
+
| AttioBaseError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: AttioCore,
|
|
64
|
+
request: operations.GetV2FilesRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
operations.GetV2FilesResponse,
|
|
70
|
+
| AttioBaseError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) => z.parse(operations.GetV2FilesRequest$outboundSchema, value),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = null;
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/v2/files")();
|
|
94
|
+
|
|
95
|
+
const query = encodeFormQuery({
|
|
96
|
+
"cursor": payload.cursor,
|
|
97
|
+
"limit": payload.limit,
|
|
98
|
+
"object": payload.object,
|
|
99
|
+
"parent_folder_id": payload.parent_folder_id,
|
|
100
|
+
"record_id": payload.record_id,
|
|
101
|
+
"storage_provider": payload.storage_provider,
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const headers = new Headers(compactMap({
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
const secConfig = await extractSecurity(client._options.oauth2);
|
|
109
|
+
const securityInput = secConfig == null ? {} : { oauth2: secConfig };
|
|
110
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
|
+
|
|
112
|
+
const context = {
|
|
113
|
+
options: client._options,
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
+
operationID: "get_/v2/files",
|
|
116
|
+
oAuth2Scopes: null,
|
|
117
|
+
|
|
118
|
+
resolvedSecurity: requestSecurity,
|
|
119
|
+
|
|
120
|
+
securitySource: client._options.oauth2,
|
|
121
|
+
retryConfig: options?.retries
|
|
122
|
+
|| client._options.retryConfig
|
|
123
|
+
|| { strategy: "none" },
|
|
124
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const requestRes = client._createRequest(context, {
|
|
128
|
+
security: requestSecurity,
|
|
129
|
+
method: "GET",
|
|
130
|
+
baseURL: options?.serverURL,
|
|
131
|
+
path: path,
|
|
132
|
+
headers: headers,
|
|
133
|
+
query: query,
|
|
134
|
+
body: body,
|
|
135
|
+
userAgent: client._options.userAgent,
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
|
+
}, options);
|
|
138
|
+
if (!requestRes.ok) {
|
|
139
|
+
return [requestRes, { status: "invalid" }];
|
|
140
|
+
}
|
|
141
|
+
const req = requestRes.value;
|
|
142
|
+
|
|
143
|
+
const doResult = await client._do(req, {
|
|
144
|
+
context,
|
|
145
|
+
errorCodes: ["4XX", "5XX"],
|
|
146
|
+
retryConfig: context.retryConfig,
|
|
147
|
+
retryCodes: context.retryCodes,
|
|
148
|
+
});
|
|
149
|
+
if (!doResult.ok) {
|
|
150
|
+
return [doResult, { status: "request-error", request: req }];
|
|
151
|
+
}
|
|
152
|
+
const response = doResult.value;
|
|
153
|
+
|
|
154
|
+
const [result] = await M.match<
|
|
155
|
+
operations.GetV2FilesResponse,
|
|
156
|
+
| AttioBaseError
|
|
157
|
+
| ResponseValidationError
|
|
158
|
+
| ConnectionError
|
|
159
|
+
| RequestAbortedError
|
|
160
|
+
| RequestTimeoutError
|
|
161
|
+
| InvalidRequestError
|
|
162
|
+
| UnexpectedClientError
|
|
163
|
+
| SDKValidationError
|
|
164
|
+
>(
|
|
165
|
+
M.json(200, operations.GetV2FilesResponse$inboundSchema),
|
|
166
|
+
M.fail("4XX"),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, req);
|
|
169
|
+
if (!result.ok) {
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { AttioCore } from "../core.js";
|
|
7
|
+
import { appendForm } from "../lib/encodings.js";
|
|
8
|
+
import {
|
|
9
|
+
getContentTypeFromFileName,
|
|
10
|
+
readableStreamToArrayBuffer,
|
|
11
|
+
} from "../lib/files.js";
|
|
12
|
+
import * as M from "../lib/matchers.js";
|
|
13
|
+
import { compactMap } from "../lib/primitives.js";
|
|
14
|
+
import { safeParse } from "../lib/schemas.js";
|
|
15
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
16
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
17
|
+
import { pathToFunc } from "../lib/url.js";
|
|
18
|
+
import { AttioBaseError } from "../models/errors/attio-base-error.js";
|
|
19
|
+
import {
|
|
20
|
+
ConnectionError,
|
|
21
|
+
InvalidRequestError,
|
|
22
|
+
RequestAbortedError,
|
|
23
|
+
RequestTimeoutError,
|
|
24
|
+
UnexpectedClientError,
|
|
25
|
+
} from "../models/errors/http-client-errors.js";
|
|
26
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
27
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
28
|
+
import * as operations from "../models/operations/index.js";
|
|
29
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
30
|
+
import { isBlobLike } from "../types/blobs.js";
|
|
31
|
+
import { Result } from "../types/fp.js";
|
|
32
|
+
import { isReadableStream } from "../types/streams.js";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Upload a file
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* Uploads a file to native Attio storage for a record. Send multipart/form-data with a single binary field named `file` together with the body fields `object`, `record_id`, and optional `parent_folder_id`. Maximum file size is 50 MB.
|
|
39
|
+
*
|
|
40
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
41
|
+
*
|
|
42
|
+
* Required scopes: `file:read-write`, `object_configuration:read`, `record_permission:read`.
|
|
43
|
+
*/
|
|
44
|
+
export function filesPostV2FilesUpload(
|
|
45
|
+
client: AttioCore,
|
|
46
|
+
request: operations.PostV2FilesUploadRequest,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): APIPromise<
|
|
49
|
+
Result<
|
|
50
|
+
operations.PostV2FilesUploadResponse,
|
|
51
|
+
| AttioBaseError
|
|
52
|
+
| ResponseValidationError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| InvalidRequestError
|
|
57
|
+
| UnexpectedClientError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: AttioCore,
|
|
70
|
+
request: operations.PostV2FilesUploadRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
Result<
|
|
75
|
+
operations.PostV2FilesUploadResponse,
|
|
76
|
+
| AttioBaseError
|
|
77
|
+
| ResponseValidationError
|
|
78
|
+
| ConnectionError
|
|
79
|
+
| RequestAbortedError
|
|
80
|
+
| RequestTimeoutError
|
|
81
|
+
| InvalidRequestError
|
|
82
|
+
| UnexpectedClientError
|
|
83
|
+
| SDKValidationError
|
|
84
|
+
>,
|
|
85
|
+
APICall,
|
|
86
|
+
]
|
|
87
|
+
> {
|
|
88
|
+
const parsed = safeParse(
|
|
89
|
+
request,
|
|
90
|
+
(value) =>
|
|
91
|
+
z.parse(operations.PostV2FilesUploadRequest$outboundSchema, value),
|
|
92
|
+
"Input validation failed",
|
|
93
|
+
);
|
|
94
|
+
if (!parsed.ok) {
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const payload = parsed.value;
|
|
98
|
+
const body = new FormData();
|
|
99
|
+
|
|
100
|
+
if (isBlobLike(payload.file)) {
|
|
101
|
+
appendForm(body, "file", payload.file);
|
|
102
|
+
} else if (isReadableStream(payload.file.content)) {
|
|
103
|
+
const buffer = await readableStreamToArrayBuffer(payload.file.content);
|
|
104
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
105
|
+
|| "application/octet-stream";
|
|
106
|
+
const blob = new Blob([buffer], { type: contentType });
|
|
107
|
+
appendForm(body, "file", blob, payload.file.fileName);
|
|
108
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
109
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
110
|
+
|| "application/octet-stream";
|
|
111
|
+
appendForm(
|
|
112
|
+
body,
|
|
113
|
+
"file",
|
|
114
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
115
|
+
type: contentType,
|
|
116
|
+
}),
|
|
117
|
+
payload.file.fileName,
|
|
118
|
+
);
|
|
119
|
+
} else {
|
|
120
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
121
|
+
|| "application/octet-stream";
|
|
122
|
+
appendForm(
|
|
123
|
+
body,
|
|
124
|
+
"file",
|
|
125
|
+
new Blob([payload.file.content], { type: contentType }),
|
|
126
|
+
payload.file.fileName,
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
appendForm(body, "object", payload.object);
|
|
130
|
+
appendForm(body, "record_id", payload.record_id);
|
|
131
|
+
if (payload.parent_folder_id !== undefined) {
|
|
132
|
+
appendForm(body, "parent_folder_id", payload.parent_folder_id);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const path = pathToFunc("/v2/files/upload")();
|
|
136
|
+
|
|
137
|
+
const headers = new Headers(compactMap({
|
|
138
|
+
Accept: "application/json",
|
|
139
|
+
}));
|
|
140
|
+
|
|
141
|
+
const secConfig = await extractSecurity(client._options.oauth2);
|
|
142
|
+
const securityInput = secConfig == null ? {} : { oauth2: secConfig };
|
|
143
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
144
|
+
|
|
145
|
+
const context = {
|
|
146
|
+
options: client._options,
|
|
147
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
148
|
+
operationID: "post_/v2/files/upload",
|
|
149
|
+
oAuth2Scopes: null,
|
|
150
|
+
|
|
151
|
+
resolvedSecurity: requestSecurity,
|
|
152
|
+
|
|
153
|
+
securitySource: client._options.oauth2,
|
|
154
|
+
retryConfig: options?.retries
|
|
155
|
+
|| client._options.retryConfig
|
|
156
|
+
|| { strategy: "none" },
|
|
157
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const requestRes = client._createRequest(context, {
|
|
161
|
+
security: requestSecurity,
|
|
162
|
+
method: "POST",
|
|
163
|
+
baseURL: options?.serverURL,
|
|
164
|
+
path: path,
|
|
165
|
+
headers: headers,
|
|
166
|
+
body: body,
|
|
167
|
+
userAgent: client._options.userAgent,
|
|
168
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
169
|
+
}, options);
|
|
170
|
+
if (!requestRes.ok) {
|
|
171
|
+
return [requestRes, { status: "invalid" }];
|
|
172
|
+
}
|
|
173
|
+
const req = requestRes.value;
|
|
174
|
+
|
|
175
|
+
const doResult = await client._do(req, {
|
|
176
|
+
context,
|
|
177
|
+
errorCodes: ["4XX", "5XX"],
|
|
178
|
+
retryConfig: context.retryConfig,
|
|
179
|
+
retryCodes: context.retryCodes,
|
|
180
|
+
});
|
|
181
|
+
if (!doResult.ok) {
|
|
182
|
+
return [doResult, { status: "request-error", request: req }];
|
|
183
|
+
}
|
|
184
|
+
const response = doResult.value;
|
|
185
|
+
|
|
186
|
+
const [result] = await M.match<
|
|
187
|
+
operations.PostV2FilesUploadResponse,
|
|
188
|
+
| AttioBaseError
|
|
189
|
+
| ResponseValidationError
|
|
190
|
+
| ConnectionError
|
|
191
|
+
| RequestAbortedError
|
|
192
|
+
| RequestTimeoutError
|
|
193
|
+
| InvalidRequestError
|
|
194
|
+
| UnexpectedClientError
|
|
195
|
+
| SDKValidationError
|
|
196
|
+
>(
|
|
197
|
+
M.json(201, operations.PostV2FilesUploadResponse$inboundSchema),
|
|
198
|
+
M.fail("4XX"),
|
|
199
|
+
M.fail("5XX"),
|
|
200
|
+
)(response, req);
|
|
201
|
+
if (!result.ok) {
|
|
202
|
+
return [result, { status: "complete", request: req, response }];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return [result, { status: "complete", request: req, response }];
|
|
206
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { AttioCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { AttioBaseError } from "../models/errors/attio-base-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Create a folder
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Creates a native folder entry or a connected file/folder entry on an object record.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint is in beta. We will aim to avoid breaking changes, but small updates may be made as we roll out to more users.
|
|
35
|
+
*
|
|
36
|
+
* Required scopes: `file:read-write`, `object_configuration:read`, `record_permission:read`.
|
|
37
|
+
*/
|
|
38
|
+
export function filesPostV2Files(
|
|
39
|
+
client: AttioCore,
|
|
40
|
+
request: operations.PostV2FilesRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
operations.PostV2FilesResponse,
|
|
45
|
+
| AttioBaseError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: AttioCore,
|
|
64
|
+
request: operations.PostV2FilesRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
operations.PostV2FilesResponse,
|
|
70
|
+
| AttioBaseError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) => z.parse(operations.PostV2FilesRequest$outboundSchema, value),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/v2/files")();
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
const secConfig = await extractSecurity(client._options.oauth2);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { oauth2: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
+
operationID: "post_/v2/files",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
|
|
112
|
+
securitySource: client._options.oauth2,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const requestRes = client._createRequest(context, {
|
|
120
|
+
security: requestSecurity,
|
|
121
|
+
method: "POST",
|
|
122
|
+
baseURL: options?.serverURL,
|
|
123
|
+
path: path,
|
|
124
|
+
headers: headers,
|
|
125
|
+
body: body,
|
|
126
|
+
userAgent: client._options.userAgent,
|
|
127
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
|
+
}, options);
|
|
129
|
+
if (!requestRes.ok) {
|
|
130
|
+
return [requestRes, { status: "invalid" }];
|
|
131
|
+
}
|
|
132
|
+
const req = requestRes.value;
|
|
133
|
+
|
|
134
|
+
const doResult = await client._do(req, {
|
|
135
|
+
context,
|
|
136
|
+
errorCodes: ["4XX", "5XX"],
|
|
137
|
+
retryConfig: context.retryConfig,
|
|
138
|
+
retryCodes: context.retryCodes,
|
|
139
|
+
});
|
|
140
|
+
if (!doResult.ok) {
|
|
141
|
+
return [doResult, { status: "request-error", request: req }];
|
|
142
|
+
}
|
|
143
|
+
const response = doResult.value;
|
|
144
|
+
|
|
145
|
+
const [result] = await M.match<
|
|
146
|
+
operations.PostV2FilesResponse,
|
|
147
|
+
| AttioBaseError
|
|
148
|
+
| ResponseValidationError
|
|
149
|
+
| ConnectionError
|
|
150
|
+
| RequestAbortedError
|
|
151
|
+
| RequestTimeoutError
|
|
152
|
+
| InvalidRequestError
|
|
153
|
+
| UnexpectedClientError
|
|
154
|
+
| SDKValidationError
|
|
155
|
+
>(
|
|
156
|
+
M.json(200, operations.PostV2FilesResponse$inboundSchema),
|
|
157
|
+
M.fail("4XX"),
|
|
158
|
+
M.fail("5XX"),
|
|
159
|
+
)(response, req);
|
|
160
|
+
if (!result.ok) {
|
|
161
|
+
return [result, { status: "complete", request: req, response }];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return [result, { status: "complete", request: req, response }];
|
|
165
|
+
}
|
|
@@ -42,6 +42,7 @@ export function notesCreate(
|
|
|
42
42
|
Result<
|
|
43
43
|
operations.PostV2NotesResponse,
|
|
44
44
|
| errors.GetV2ObjectsObjectNotFoundError
|
|
45
|
+
| errors.PostV2NotesValidationTypeError
|
|
45
46
|
| AttioBaseError
|
|
46
47
|
| ResponseValidationError
|
|
47
48
|
| ConnectionError
|
|
@@ -68,6 +69,7 @@ async function $do(
|
|
|
68
69
|
Result<
|
|
69
70
|
operations.PostV2NotesResponse,
|
|
70
71
|
| errors.GetV2ObjectsObjectNotFoundError
|
|
72
|
+
| errors.PostV2NotesValidationTypeError
|
|
71
73
|
| AttioBaseError
|
|
72
74
|
| ResponseValidationError
|
|
73
75
|
| ConnectionError
|
|
@@ -134,7 +136,7 @@ async function $do(
|
|
|
134
136
|
|
|
135
137
|
const doResult = await client._do(req, {
|
|
136
138
|
context,
|
|
137
|
-
errorCodes: ["404", "4XX", "5XX"],
|
|
139
|
+
errorCodes: ["404", "413", "4XX", "5XX"],
|
|
138
140
|
retryConfig: context.retryConfig,
|
|
139
141
|
retryCodes: context.retryCodes,
|
|
140
142
|
});
|
|
@@ -150,6 +152,7 @@ async function $do(
|
|
|
150
152
|
const [result] = await M.match<
|
|
151
153
|
operations.PostV2NotesResponse,
|
|
152
154
|
| errors.GetV2ObjectsObjectNotFoundError
|
|
155
|
+
| errors.PostV2NotesValidationTypeError
|
|
153
156
|
| AttioBaseError
|
|
154
157
|
| ResponseValidationError
|
|
155
158
|
| ConnectionError
|
|
@@ -161,6 +164,7 @@ async function $do(
|
|
|
161
164
|
>(
|
|
162
165
|
M.json(200, operations.PostV2NotesResponse$inboundSchema),
|
|
163
166
|
M.jsonErr(404, errors.GetV2ObjectsObjectNotFoundError$inboundSchema),
|
|
167
|
+
M.jsonErr(413, errors.PostV2NotesValidationTypeError$inboundSchema),
|
|
164
168
|
M.fail("4XX"),
|
|
165
169
|
M.fail("5XX"),
|
|
166
170
|
)(response, req, { extraFields: responseFields });
|