UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

1,037 lines 127 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.PatchV2TasksTaskIdNotFoundError = exports.GetV2TasksTaskIdNotFoundError = exports.PostV2TasksValidationTypeError = exports.GetV2NotesNoteIdNotFoundError = exports.GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError = exports.ImmutableValueError = exports.CodeImmutableValue = exports.MultipleMatchResultsError = exports.PutV2ListsListEntriesCode = exports.PutV2ListsListEntriesNotFoundError = exports.PostV2ListsListEntriesInvalidRequestError = exports.PostV2ListsListEntriesNotFoundError = exports.GetV2ListsListNotFoundError = exports.PostV2ListsInvalidRequestError = exports.BillingError = exports.PostV2ListsCode = exports.PostV2ListsType = exports.PostV2ListsNotFoundError = exports.GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError = exports.MissingValueError = exports.CodeMissingValue = exports.GetV2ObjectsObjectRecordsRecordIdInvalidRequestError = exports.PutV2ObjectsObjectRecordsInvalidRequestError = exports.PostV2ObjectsObjectRecordsInvalidRequestError = exports.FilterError = exports.PostV2ObjectsObjectRecordsQueryCode = exports.PostV2ObjectsObjectRecordsQueryNotFoundError = exports.PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError = exports.PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError = exports.PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError = exports.PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError = exports.BadRequestCode = exports.PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError = exports.PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError = exports.SystemEditUnauthorizedError = exports.PatchV2TargetIdentifierAttributesAttributeCode = exports.GetV2TargetIdentifierAttributesAttributeNotFoundError = exports.PostV2TargetIdentifierAttributesValidationTypeError = exports.PostV2TargetIdentifierAttributesNotFoundError = exports.PostV2TargetIdentifierAttributesSlugConflictError = exports.PatchV2ObjectsObjectValidationTypeError = exports.CodeValidationType = exports.BadRequestType = exports.PatchV2ObjectsObjectSlugConflictError = exports.PostV2ObjectsSlugConflictError = exports.ConflictCode = exports.ConflictType = exports.GetV2ObjectsObjectNotFoundError = exports.NotFoundCode = exports.NotFoundType = void 0; exports.PatchV2TargetIdentifierAttributesAttributeCode$inboundSchema = exports.GetV2TargetIdentifierAttributesAttributeNotFoundError$ = exports.GetV2TargetIdentifierAttributesAttributeNotFoundError$outboundSchema = exports.GetV2TargetIdentifierAttributesAttributeNotFoundError$inboundSchema = exports.PostV2TargetIdentifierAttributesValidationTypeError$ = exports.PostV2TargetIdentifierAttributesValidationTypeError$outboundSchema = exports.PostV2TargetIdentifierAttributesValidationTypeError$inboundSchema = exports.PostV2TargetIdentifierAttributesNotFoundError$ = exports.PostV2TargetIdentifierAttributesNotFoundError$outboundSchema = exports.PostV2TargetIdentifierAttributesNotFoundError$inboundSchema = exports.PostV2TargetIdentifierAttributesSlugConflictError$ = exports.PostV2TargetIdentifierAttributesSlugConflictError$outboundSchema = exports.PostV2TargetIdentifierAttributesSlugConflictError$inboundSchema = exports.PatchV2ObjectsObjectValidationTypeError$ = exports.PatchV2ObjectsObjectValidationTypeError$outboundSchema = exports.PatchV2ObjectsObjectValidationTypeError$inboundSchema = exports.CodeValidationType$ = exports.CodeValidationType$outboundSchema = exports.CodeValidationType$inboundSchema = exports.BadRequestType$ = exports.BadRequestType$outboundSchema = exports.BadRequestType$inboundSchema = exports.PatchV2ObjectsObjectSlugConflictError$ = exports.PatchV2ObjectsObjectSlugConflictError$outboundSchema = exports.PatchV2ObjectsObjectSlugConflictError$inboundSchema = exports.PostV2ObjectsSlugConflictError$ = exports.PostV2ObjectsSlugConflictError$outboundSchema = exports.PostV2ObjectsSlugConflictError$inboundSchema = exports.ConflictCode$ = exports.ConflictCode$outboundSchema = exports.ConflictCode$inboundSchema = exports.ConflictType$ = exports.ConflictType$outboundSchema = exports.ConflictType$inboundSchema = exports.GetV2ObjectsObjectNotFoundError$ = exports.GetV2ObjectsObjectNotFoundError$outboundSchema = exports.GetV2ObjectsObjectNotFoundError$inboundSchema = exports.NotFoundCode$ = exports.NotFoundCode$outboundSchema = exports.NotFoundCode$inboundSchema = exports.NotFoundType$ = exports.NotFoundType$outboundSchema = exports.NotFoundType$inboundSchema = exports.DeleteV2WebhooksWebhookIdNotFoundError = exports.GetV2WebhooksWebhookIdNotFoundError = exports.PostV2WebhooksValidationTypeError = exports.DeleteV2CommentsCommentIdNotFoundError = exports.GetV2CommentsCommentIdNotFoundError = exports.PostV2CommentsInvalidRequestError = exports.GetV2ThreadsThreadIdNotFoundError = void 0; exports.MissingValueError$ = exports.MissingValueError$outboundSchema = exports.MissingValueError$inboundSchema = exports.CodeMissingValue$ = exports.CodeMissingValue$outboundSchema = exports.CodeMissingValue$inboundSchema = exports.GetV2ObjectsObjectRecordsRecordIdInvalidRequestError$ = exports.GetV2ObjectsObjectRecordsRecordIdInvalidRequestError$outboundSchema = exports.GetV2ObjectsObjectRecordsRecordIdInvalidRequestError$inboundSchema = exports.PutV2ObjectsObjectRecordsInvalidRequestError$ = exports.PutV2ObjectsObjectRecordsInvalidRequestError$outboundSchema = exports.PutV2ObjectsObjectRecordsInvalidRequestError$inboundSchema = exports.PostV2ObjectsObjectRecordsInvalidRequestError$ = exports.PostV2ObjectsObjectRecordsInvalidRequestError$outboundSchema = exports.PostV2ObjectsObjectRecordsInvalidRequestError$inboundSchema = exports.FilterError$ = exports.FilterError$outboundSchema = exports.FilterError$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryCode$ = exports.PostV2ObjectsObjectRecordsQueryCode$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryCode$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryNotFoundError$ = exports.PostV2ObjectsObjectRecordsQueryNotFoundError$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryNotFoundError$inboundSchema = exports.PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError$ = exports.PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError$outboundSchema = exports.PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError$inboundSchema = exports.PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError$ = exports.PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError$outboundSchema = exports.PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError$inboundSchema = exports.PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError$ = exports.PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError$outboundSchema = exports.PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError$inboundSchema = exports.PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError$ = exports.PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError$outboundSchema = exports.PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError$inboundSchema = exports.BadRequestCode$ = exports.BadRequestCode$outboundSchema = exports.BadRequestCode$inboundSchema = exports.PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError$ = exports.PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError$outboundSchema = exports.PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError$inboundSchema = exports.PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError$ = exports.PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError$outboundSchema = exports.PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError$inboundSchema = exports.SystemEditUnauthorizedError$ = exports.SystemEditUnauthorizedError$outboundSchema = exports.SystemEditUnauthorizedError$inboundSchema = exports.PatchV2TargetIdentifierAttributesAttributeCode$ = exports.PatchV2TargetIdentifierAttributesAttributeCode$outboundSchema = void 0; exports.PostV2TasksValidationTypeError$outboundSchema = exports.PostV2TasksValidationTypeError$inboundSchema = exports.GetV2NotesNoteIdNotFoundError$ = exports.GetV2NotesNoteIdNotFoundError$outboundSchema = exports.GetV2NotesNoteIdNotFoundError$inboundSchema = exports.GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError$ = exports.GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError$outboundSchema = exports.GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError$inboundSchema = exports.ImmutableValueError$ = exports.ImmutableValueError$outboundSchema = exports.ImmutableValueError$inboundSchema = exports.CodeImmutableValue$ = exports.CodeImmutableValue$outboundSchema = exports.CodeImmutableValue$inboundSchema = exports.MultipleMatchResultsError$ = exports.MultipleMatchResultsError$outboundSchema = exports.MultipleMatchResultsError$inboundSchema = exports.PutV2ListsListEntriesCode$ = exports.PutV2ListsListEntriesCode$outboundSchema = exports.PutV2ListsListEntriesCode$inboundSchema = exports.PutV2ListsListEntriesNotFoundError$ = exports.PutV2ListsListEntriesNotFoundError$outboundSchema = exports.PutV2ListsListEntriesNotFoundError$inboundSchema = exports.PostV2ListsListEntriesInvalidRequestError$ = exports.PostV2ListsListEntriesInvalidRequestError$outboundSchema = exports.PostV2ListsListEntriesInvalidRequestError$inboundSchema = exports.PostV2ListsListEntriesNotFoundError$ = exports.PostV2ListsListEntriesNotFoundError$outboundSchema = exports.PostV2ListsListEntriesNotFoundError$inboundSchema = exports.GetV2ListsListNotFoundError$ = exports.GetV2ListsListNotFoundError$outboundSchema = exports.GetV2ListsListNotFoundError$inboundSchema = exports.PostV2ListsInvalidRequestError$ = exports.PostV2ListsInvalidRequestError$outboundSchema = exports.PostV2ListsInvalidRequestError$inboundSchema = exports.BillingError$ = exports.BillingError$outboundSchema = exports.BillingError$inboundSchema = exports.PostV2ListsCode$ = exports.PostV2ListsCode$outboundSchema = exports.PostV2ListsCode$inboundSchema = exports.PostV2ListsType$ = exports.PostV2ListsType$outboundSchema = exports.PostV2ListsType$inboundSchema = exports.PostV2ListsNotFoundError$ = exports.PostV2ListsNotFoundError$outboundSchema = exports.PostV2ListsNotFoundError$inboundSchema = exports.GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError$ = exports.GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError$outboundSchema = exports.GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError$inboundSchema = void 0; exports.DeleteV2WebhooksWebhookIdNotFoundError$ = exports.DeleteV2WebhooksWebhookIdNotFoundError$outboundSchema = exports.DeleteV2WebhooksWebhookIdNotFoundError$inboundSchema = exports.GetV2WebhooksWebhookIdNotFoundError$ = exports.GetV2WebhooksWebhookIdNotFoundError$outboundSchema = exports.GetV2WebhooksWebhookIdNotFoundError$inboundSchema = exports.PostV2WebhooksValidationTypeError$ = exports.PostV2WebhooksValidationTypeError$outboundSchema = exports.PostV2WebhooksValidationTypeError$inboundSchema = exports.DeleteV2CommentsCommentIdNotFoundError$ = exports.DeleteV2CommentsCommentIdNotFoundError$outboundSchema = exports.DeleteV2CommentsCommentIdNotFoundError$inboundSchema = exports.GetV2CommentsCommentIdNotFoundError$ = exports.GetV2CommentsCommentIdNotFoundError$outboundSchema = exports.GetV2CommentsCommentIdNotFoundError$inboundSchema = exports.PostV2CommentsInvalidRequestError$ = exports.PostV2CommentsInvalidRequestError$outboundSchema = exports.PostV2CommentsInvalidRequestError$inboundSchema = exports.GetV2ThreadsThreadIdNotFoundError$ = exports.GetV2ThreadsThreadIdNotFoundError$outboundSchema = exports.GetV2ThreadsThreadIdNotFoundError$inboundSchema = exports.PatchV2TasksTaskIdNotFoundError$ = exports.PatchV2TasksTaskIdNotFoundError$outboundSchema = exports.PatchV2TasksTaskIdNotFoundError$inboundSchema = exports.GetV2TasksTaskIdNotFoundError$ = exports.GetV2TasksTaskIdNotFoundError$outboundSchema = exports.GetV2TasksTaskIdNotFoundError$inboundSchema = exports.PostV2TasksValidationTypeError$ = void 0; const z = __importStar(require("zod")); const primitives_js_1 = require("../../lib/primitives.js"); exports.NotFoundType = { InvalidRequestError: "invalid_request_error", }; exports.NotFoundCode = { NotFound: "not_found", }; /** * Not Found */ class GetV2ObjectsObjectNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2ObjectsObjectNotFoundError"; } } exports.GetV2ObjectsObjectNotFoundError = GetV2ObjectsObjectNotFoundError; exports.ConflictType = { InvalidRequestError: "invalid_request_error", }; exports.ConflictCode = { SlugConflict: "slug_conflict", }; /** * Conflict */ class PostV2ObjectsSlugConflictError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ObjectsSlugConflictError"; } } exports.PostV2ObjectsSlugConflictError = PostV2ObjectsSlugConflictError; /** * Conflict */ class PatchV2ObjectsObjectSlugConflictError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PatchV2ObjectsObjectSlugConflictError"; } } exports.PatchV2ObjectsObjectSlugConflictError = PatchV2ObjectsObjectSlugConflictError; exports.BadRequestType = { InvalidRequestError: "invalid_request_error", }; exports.CodeValidationType = { ValidationType: "validation_type", }; /** * Bad Request */ class PatchV2ObjectsObjectValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PatchV2ObjectsObjectValidationTypeError"; } } exports.PatchV2ObjectsObjectValidationTypeError = PatchV2ObjectsObjectValidationTypeError; /** * Conflict */ class PostV2TargetIdentifierAttributesSlugConflictError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesSlugConflictError"; } } exports.PostV2TargetIdentifierAttributesSlugConflictError = PostV2TargetIdentifierAttributesSlugConflictError; /** * Not Found */ class PostV2TargetIdentifierAttributesNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesNotFoundError"; } } exports.PostV2TargetIdentifierAttributesNotFoundError = PostV2TargetIdentifierAttributesNotFoundError; /** * Bad Request */ class PostV2TargetIdentifierAttributesValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesValidationTypeError"; } } exports.PostV2TargetIdentifierAttributesValidationTypeError = PostV2TargetIdentifierAttributesValidationTypeError; /** * Not Found */ class GetV2TargetIdentifierAttributesAttributeNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2TargetIdentifierAttributesAttributeNotFoundError"; } } exports.GetV2TargetIdentifierAttributesAttributeNotFoundError = GetV2TargetIdentifierAttributesAttributeNotFoundError; exports.PatchV2TargetIdentifierAttributesAttributeCode = { SystemEditUnauthorized: "system_edit_unauthorized", }; /** * Bad Request */ class SystemEditUnauthorizedError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "SystemEditUnauthorizedError"; } } exports.SystemEditUnauthorizedError = SystemEditUnauthorizedError; /** * Conflict */ class PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError"; } } exports.PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError = PostV2TargetIdentifierAttributesAttributeOptionsSlugConflictError; /** * Bad Request */ class PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError"; } } exports.PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError = PostV2TargetIdentifierAttributesAttributeOptionsValidationTypeError; exports.BadRequestCode = { ValueNotFound: "value_not_found", MissingValue: "missing_value", }; /** * Bad Request */ class PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError"; } } exports.PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError = PatchV2TargetIdentifierAttributesAttributeOptionsOptionInvalidRequestError; /** * Conflict */ class PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError"; } } exports.PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError = PostV2TargetIdentifierAttributesAttributeStatusesSlugConflictError; /** * Bad Request */ class PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError"; } } exports.PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError = PostV2TargetIdentifierAttributesAttributeStatusesValidationTypeError; /** * Bad Request */ class PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError"; } } exports.PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError = PatchV2TargetIdentifierAttributesAttributeStatusesStatusInvalidRequestError; /** * Not Found */ class PostV2ObjectsObjectRecordsQueryNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ObjectsObjectRecordsQueryNotFoundError"; } } exports.PostV2ObjectsObjectRecordsQueryNotFoundError = PostV2ObjectsObjectRecordsQueryNotFoundError; exports.PostV2ObjectsObjectRecordsQueryCode = { FilterError: "filter_error", }; /** * Bad Request */ class FilterError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "FilterError"; } } exports.FilterError = FilterError; /** * Bad Request */ class PostV2ObjectsObjectRecordsInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ObjectsObjectRecordsInvalidRequestError"; } } exports.PostV2ObjectsObjectRecordsInvalidRequestError = PostV2ObjectsObjectRecordsInvalidRequestError; /** * Bad Request */ class PutV2ObjectsObjectRecordsInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PutV2ObjectsObjectRecordsInvalidRequestError"; } } exports.PutV2ObjectsObjectRecordsInvalidRequestError = PutV2ObjectsObjectRecordsInvalidRequestError; /** * Not Found */ class GetV2ObjectsObjectRecordsRecordIdInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2ObjectsObjectRecordsRecordIdInvalidRequestError"; } } exports.GetV2ObjectsObjectRecordsRecordIdInvalidRequestError = GetV2ObjectsObjectRecordsRecordIdInvalidRequestError; exports.CodeMissingValue = { MissingValue: "missing_value", }; /** * Bad Request */ class MissingValueError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "MissingValueError"; } } exports.MissingValueError = MissingValueError; /** * Bad Request */ class GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError"; } } exports.GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesValidationTypeError; /** * Not Found */ class PostV2ListsNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ListsNotFoundError"; } } exports.PostV2ListsNotFoundError = PostV2ListsNotFoundError; exports.PostV2ListsType = { AuthError: "auth_error", }; exports.PostV2ListsCode = { BillingError: "billing_error", }; /** * Forbidden */ class BillingError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "BillingError"; } } exports.BillingError = BillingError; /** * Bad Request */ class PostV2ListsInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ListsInvalidRequestError"; } } exports.PostV2ListsInvalidRequestError = PostV2ListsInvalidRequestError; /** * Not Found */ class GetV2ListsListNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2ListsListNotFoundError"; } } exports.GetV2ListsListNotFoundError = GetV2ListsListNotFoundError; /** * Not Found */ class PostV2ListsListEntriesNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ListsListEntriesNotFoundError"; } } exports.PostV2ListsListEntriesNotFoundError = PostV2ListsListEntriesNotFoundError; /** * Bad Request */ class PostV2ListsListEntriesInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2ListsListEntriesInvalidRequestError"; } } exports.PostV2ListsListEntriesInvalidRequestError = PostV2ListsListEntriesInvalidRequestError; /** * Not Found */ class PutV2ListsListEntriesNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PutV2ListsListEntriesNotFoundError"; } } exports.PutV2ListsListEntriesNotFoundError = PutV2ListsListEntriesNotFoundError; exports.PutV2ListsListEntriesCode = { MultipleMatchResults: "multiple_match_results", }; /** * Bad Request */ class MultipleMatchResultsError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "MultipleMatchResultsError"; } } exports.MultipleMatchResultsError = MultipleMatchResultsError; exports.CodeImmutableValue = { ImmutableValue: "immutable_value", }; /** * Bad Request */ class ImmutableValueError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "ImmutableValueError"; } } exports.ImmutableValueError = ImmutableValueError; /** * Not Found */ class GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError"; } } exports.GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError = GetV2WorkspaceMembersWorkspaceMemberIdInvalidRequestError; /** * Not Found */ class GetV2NotesNoteIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2NotesNoteIdNotFoundError"; } } exports.GetV2NotesNoteIdNotFoundError = GetV2NotesNoteIdNotFoundError; /** * Bad Request */ class PostV2TasksValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2TasksValidationTypeError"; } } exports.PostV2TasksValidationTypeError = PostV2TasksValidationTypeError; /** * Not Found */ class GetV2TasksTaskIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2TasksTaskIdNotFoundError"; } } exports.GetV2TasksTaskIdNotFoundError = GetV2TasksTaskIdNotFoundError; /** * Not Found */ class PatchV2TasksTaskIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PatchV2TasksTaskIdNotFoundError"; } } exports.PatchV2TasksTaskIdNotFoundError = PatchV2TasksTaskIdNotFoundError; /** * Not Found */ class GetV2ThreadsThreadIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2ThreadsThreadIdNotFoundError"; } } exports.GetV2ThreadsThreadIdNotFoundError = GetV2ThreadsThreadIdNotFoundError; /** * Bad Request */ class PostV2CommentsInvalidRequestError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2CommentsInvalidRequestError"; } } exports.PostV2CommentsInvalidRequestError = PostV2CommentsInvalidRequestError; /** * Not Found */ class GetV2CommentsCommentIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2CommentsCommentIdNotFoundError"; } } exports.GetV2CommentsCommentIdNotFoundError = GetV2CommentsCommentIdNotFoundError; /** * Not Found */ class DeleteV2CommentsCommentIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "DeleteV2CommentsCommentIdNotFoundError"; } } exports.DeleteV2CommentsCommentIdNotFoundError = DeleteV2CommentsCommentIdNotFoundError; /** * Bad Request */ class PostV2WebhooksValidationTypeError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "PostV2WebhooksValidationTypeError"; } } exports.PostV2WebhooksValidationTypeError = PostV2WebhooksValidationTypeError; /** * Not Found */ class GetV2WebhooksWebhookIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "GetV2WebhooksWebhookIdNotFoundError"; } } exports.GetV2WebhooksWebhookIdNotFoundError = GetV2WebhooksWebhookIdNotFoundError; /** * Not Found */ class DeleteV2WebhooksWebhookIdNotFoundError extends Error { constructor(err) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message); this.data$ = err; this.statusCode = err.statusCode; this.type = err.type; this.code = err.code; this.name = "DeleteV2WebhooksWebhookIdNotFoundError"; } } exports.DeleteV2WebhooksWebhookIdNotFoundError = DeleteV2WebhooksWebhookIdNotFoundError; /** @internal */ exports.NotFoundType$inboundSchema = z.nativeEnum(exports.NotFoundType); /** @internal */ exports.NotFoundType$outboundSchema = exports.NotFoundType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var NotFoundType$; (function (NotFoundType$) { /** @deprecated use `NotFoundType$inboundSchema` instead. */ NotFoundType$.inboundSchema = exports.NotFoundType$inboundSchema; /** @deprecated use `NotFoundType$outboundSchema` instead. */ NotFoundType$.outboundSchema = exports.NotFoundType$outboundSchema; })(NotFoundType$ || (exports.NotFoundType$ = NotFoundType$ = {})); /** @internal */ exports.NotFoundCode$inboundSchema = z.nativeEnum(exports.NotFoundCode); /** @internal */ exports.NotFoundCode$outboundSchema = exports.NotFoundCode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var NotFoundCode$; (function (NotFoundCode$) { /** @deprecated use `NotFoundCode$inboundSchema` instead. */ NotFoundCode$.inboundSchema = exports.NotFoundCode$inboundSchema; /** @deprecated use `NotFoundCode$outboundSchema` instead. */ NotFoundCode$.outboundSchema = exports.NotFoundCode$outboundSchema; })(NotFoundCode$ || (exports.NotFoundCode$ = NotFoundCode$ = {})); /** @internal */ exports.GetV2ObjectsObjectNotFoundError$inboundSchema = z.object({ status_code: z.number(), type: exports.NotFoundType$inboundSchema, code: exports.NotFoundCode$inboundSchema, message: z.string(), }) .transform((v) => { const remapped = (0, primitives_js_1.remap)(v, { "status_code": "statusCode", }); return new GetV2ObjectsObjectNotFoundError(remapped); }); /** @internal */ exports.GetV2ObjectsObjectNotFoundError$outboundSchema = z.instanceof(GetV2ObjectsObjectNotFoundError) .transform(v => v.data$) .pipe(z.object({ statusCode: z.number(), type: exports.NotFoundType$outboundSchema, code: exports.NotFoundCode$outboundSchema, message: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { statusCode: "status_code", }); })); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2ObjectsObjectNotFoundError$; (function (GetV2ObjectsObjectNotFoundError$) { /** @deprecated use `GetV2ObjectsObjectNotFoundError$inboundSchema` instead. */ GetV2ObjectsObjectNotFoundError$.inboundSchema = exports.GetV2ObjectsObjectNotFoundError$inboundSchema; /** @deprecated use `GetV2ObjectsObjectNotFoundError$outboundSchema` instead. */ GetV2ObjectsObjectNotFoundError$.outboundSchema = exports.GetV2ObjectsObjectNotFoundError$outboundSchema; })(GetV2ObjectsObjectNotFoundError$ || (exports.GetV2ObjectsObjectNotFoundError$ = GetV2ObjectsObjectNotFoundError$ = {})); /** @internal */ exports.ConflictType$inboundSchema = z.nativeEnum(exports.ConflictType); /** @internal */ exports.ConflictType$outboundSchema = exports.ConflictType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var ConflictType$; (function (ConflictType$) { /** @deprecated use `ConflictType$inboundSchema` instead. */ ConflictType$.inboundSchema = exports.ConflictType$inboundSchema; /** @deprecated use `ConflictType$outboundSchema` instead. */ ConflictType$.outboundSchema = exports.ConflictType$outboundSchema; })(ConflictType$ || (exports.ConflictType$ = ConflictType$ = {})); /** @internal */ exports.ConflictCode$inboundSchema = z.nativeEnum(exports.ConflictCode); /** @internal */ exports.ConflictCode$outboundSchema = exports.ConflictCode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var ConflictCode$; (function (ConflictCode$) { /** @deprecated use `ConflictCode$inboundSchema` instead. */ ConflictCode$.inboundSchema = exports.ConflictCode$inboundSchema; /** @deprecated use `ConflictCode$outboundSchema` instead. */ ConflictCode$.outboundSchema = exports.ConflictCode$outboundSchema; })(ConflictCode$ || (exports.ConflictCode$ = ConflictCode$ = {})); /** @internal */ exports.PostV2ObjectsSlugConflictError$inboundSchema = z.object({ status_code: z.number(), type: exports.ConflictType$inboundSchema, code: exports.ConflictCode$inboundSchema, message: z.string(), }) .transform((v) => { const remapped = (0, primitives_js_1.remap)(v, { "status_code": "statusCode", }); return new PostV2ObjectsSlugConflictError(remapped); }); /** @internal */ exports.PostV2ObjectsSlugConflictError$outboundSchema = z.instanceof(PostV2ObjectsSlugConflictError) .transform(v => v.data$) .pipe(z.object({ statusCode: z.number(), type: exports.ConflictType$outboundSchema, code: exports.ConflictCode$outboundSchema, message: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { statusCode: "status_code", }); })); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PostV2ObjectsSlugConflictError$; (function (PostV2ObjectsSlugConflictError$) { /** @deprecated use `PostV2ObjectsSlugConflictError$inboundSchema` instead. */ PostV2ObjectsSlugConflictError$.inboundSchema = exports.PostV2ObjectsSlugConflictError$inboundSchema; /** @deprecated use `PostV2ObjectsSlugConflictError$outboundSchema` instead. */ PostV2ObjectsSlugConflictError$.outboundSchema = exports.PostV2ObjectsSlugConflictError$outboundSchema; })(PostV2ObjectsSlugConflictError$ || (exports.PostV2ObjectsSlugConflictError$ = PostV2ObjectsSlugConflictError$ = {})); /** @internal */ exports.PatchV2ObjectsObjectSlugConflictError$inboundSchema = z.object({ status_code: z.number(), type: exports.ConflictType$inboundSchema, code: exports.ConflictCode$inboundSchema, message: z.string(), }) .transform((v) => { const remapped = (0, primitives_js_1.remap)(v, { "status_code": "statusCode", }); return new PatchV2ObjectsObjectSlugConflictError(remapped); }); /** @internal */ exports.PatchV2ObjectsObjectSlugConflictError$outboundSchema = z.instanceof(PatchV2ObjectsObjectSlugConflictError) .transform(v => v.data$) .pipe(z.object({ statusCode: z.number(), type: exports.ConflictType$outboundSchema, code: exports.ConflictCode$outboundSchema, message: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { statusCode: "status_code", }); })); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2ObjectsObjectSlugConflictError$; (function (PatchV2ObjectsObjectSlugConflictError$) { /** @deprecated use `PatchV2ObjectsObjectSlugConflictError$inboundSchema` instead. */ PatchV2ObjectsObjectSlugConflictError$.inboundSchema = exports.PatchV2ObjectsObjectSlugConflictError$inboundSchema; /** @deprecated use `PatchV2ObjectsObjectSlugConflictError$outboundSchema` instead. */ PatchV2ObjectsObjectSlugConflictError$.outboundSchema = exports.PatchV2ObjectsObjectSlugConflictError$outboundSchema; })(PatchV2ObjectsObjectSlugConflictError$ || (exports.PatchV2ObjectsObjectSlugConflictError$ = PatchV2ObjectsObjectSlugConflictError$ = {})); /** @internal */ exports.BadRequestType$inboundSchema = z.nativeEnum(exports.BadRequestType); /** @internal */ exports.BadRequestType$outboundSchema = exports.BadRequestType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var BadRequestType$; (function (BadRequestType$) { /** @deprecated use `BadRequestType$inboundSchema` instead. */ BadRequestType$.inboundSchema = exports.BadRequestType$inboundSchema; /** @deprecated use `BadRequestType$outboundSchema` instead. */ BadRequestType$.outboundSchema = exports.BadRequestType$outboundSchema; })(BadRequestType$ || (exports.BadRequestType$ = BadRequestType$ = {})); /** @internal */ exports.CodeValidationType$inboundSchema = z.nativeEnum(exports.CodeValidationType); /** @internal */ exports.CodeValidationType$outboundSchema = exports.CodeValidationType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var CodeValidationType$; (function (CodeValidationType$) { /** @deprecated use `CodeValidationType$inboundSchema` instead. */ CodeValidationType$.inboundSchema = exports.CodeValidationType$inboundSchema; /** @deprecated use `CodeValidationType$outboundSchema` instead. */ CodeValidationType$.outboundSchema = exports.CodeValidationType$outboundSchema; })(CodeValidationType$ || (exports.CodeValidationType$ = CodeValidationType$ = {})); /** @internal */ exports.PatchV2ObjectsObjectValidationTypeError$inboundSchema = z.object({ status_code: z.number(), type: exports.BadRequestType$inboundSchema, code: exports.CodeValidationType$inboundSchema, message: z.string(), }) .transform((v) => { const remapped = (0, primitives_js_1.remap)(v, { "status_code": "