@hubspot/app-connect-sdk 1.0.0-alpha.2 → 1.0.0-alpha.21
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/.turbo/turbo-format$colon$check.log +1 -1
- package/.turbo/turbo-test.log +101 -57
- package/.turbo/turbo-tsdown.log +474 -469
- package/build/tsconfig.browser.tsbuildinfo +1 -1
- package/build/tsconfig.server.tsbuildinfo +1 -1
- package/dist/browser/{HubSpotAppConnect-BW45gyDs.js → HubSpotAppConnect-721kYr9d.js} +17 -23
- package/dist/browser/HubSpotAppConnect-721kYr9d.js.map +1 -0
- package/dist/browser/{create-vctOhpX9.js → create-DxEyGG-k.js} +336 -100
- package/dist/browser/create-DxEyGG-k.js.map +1 -0
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/react/lovable.d.ts +9 -2
- package/dist/browser/react/lovable.js +7 -4
- package/dist/browser/react/lovable.js.map +1 -1
- package/dist/browser/react.d.ts +2 -3
- package/dist/browser/react.js +1 -1
- package/dist/browser/{types-rTQw6A54.d.ts → types-C3wed8dU.d.ts} +52 -7
- package/dist/server/api-client-core/apis/account/account-info-types.generated.d.ts +73 -85
- package/dist/server/api-client-core/apis/account/account-info.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/account/account-info.generated.js +4 -3
- package/dist/server/api-client-core/apis/account/account-info.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/account/audit-logs-types.generated.d.ts +203 -215
- package/dist/server/api-client-core/apis/account/audit-logs.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/account/audit-logs.generated.js +4 -3
- package/dist/server/api-client-core/apis/account/audit-logs.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/auth/oauth-types.generated.d.ts +78 -90
- package/dist/server/api-client-core/apis/auth/oauth.generated.d.ts +1 -1
- package/dist/server/api-client-core/apis/auth/oauth.generated.js +3 -2
- package/dist/server/api-client-core/apis/auth/oauth.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/automation/actions-types.generated.d.ts +779 -794
- package/dist/server/api-client-core/apis/automation/actions.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/automation/actions.generated.js +101 -102
- package/dist/server/api-client-core/apis/automation/actions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/automation/sequences-types.generated.d.ts +370 -382
- package/dist/server/api-client-core/apis/automation/sequences.generated.d.ts +1 -1
- package/dist/server/api-client-core/apis/automation/sequences.generated.js +3 -2
- package/dist/server/api-client-core/apis/automation/sequences.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/business-units-types.generated.d.ts +43 -55
- package/dist/server/api-client-core/apis/business-units.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/business-units.generated.js +4 -3
- package/dist/server/api-client-core/apis/business-units.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/authors-types.generated.d.ts +420 -445
- package/dist/server/api-client-core/apis/cms/authors.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/authors.generated.js +155 -158
- package/dist/server/api-client-core/apis/cms/authors.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/blog-settings-types.generated.d.ts +270 -295
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.js +35 -38
- package/dist/server/api-client-core/apis/cms/blog-settings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/cms-content-audit-types.generated.d.ts +107 -131
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js +6 -5
- package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/domains-types.generated.d.ts +155 -167
- package/dist/server/api-client-core/apis/cms/domains.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/cms/domains.generated.js +3 -2
- package/dist/server/api-client-core/apis/cms/domains.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/hubdb-types.generated.d.ts +876 -889
- package/dist/server/api-client-core/apis/cms/hubdb.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/hubdb.generated.js +184 -185
- package/dist/server/api-client-core/apis/cms/hubdb.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/media-bridge-types.generated.d.ts +1550 -1575
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.js +161 -164
- package/dist/server/api-client-core/apis/cms/media-bridge.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/pages-types.generated.d.ts +1583 -1547
- package/dist/server/api-client-core/apis/cms/pages.generated.d.ts +15 -3
- package/dist/server/api-client-core/apis/cms/pages.generated.js +335 -326
- package/dist/server/api-client-core/apis/cms/pages.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/posts-types.generated.d.ts +900 -904
- package/dist/server/api-client-core/apis/cms/posts.generated.d.ts +7 -3
- package/dist/server/api-client-core/apis/cms/posts.generated.js +197 -196
- package/dist/server/api-client-core/apis/cms/posts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/site-search-types.generated.d.ts +162 -174
- package/dist/server/api-client-core/apis/cms/site-search.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/site-search.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/site-search.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/source-code-types.generated.d.ts +148 -172
- package/dist/server/api-client-core/apis/cms/source-code.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/source-code.generated.js +40 -43
- package/dist/server/api-client-core/apis/cms/source-code.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/tags-types.generated.d.ts +406 -420
- package/dist/server/api-client-core/apis/cms/tags.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/cms/tags.generated.js +157 -158
- package/dist/server/api-client-core/apis/cms/tags.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/url-mappings-types.generated.d.ts +127 -139
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/url-mappings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/cms/url-redirects-types.generated.d.ts +170 -182
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.js +4 -3
- package/dist/server/api-client-core/apis/cms/url-redirects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.d.ts +728 -742
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js +66 -69
- package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations/custom-channels-types.generated.d.ts +445 -471
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js +70 -73
- package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations/visitor-identification-types.generated.d.ts +28 -40
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js +3 -2
- package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/conversations-types.generated.d.ts +768 -781
- package/dist/server/api-client-core/apis/conversations.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/conversations.generated.js +101 -102
- package/dist/server/api-client-core/apis/conversations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/app-uninstalls-types.generated.d.ts +8 -19
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js +3 -2
- package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/appointments-types.generated.d.ts +887 -891
- package/dist/server/api-client-core/apis/crm/appointments.generated.d.ts +7 -3
- package/dist/server/api-client-core/apis/crm/appointments.generated.js +105 -106
- package/dist/server/api-client-core/apis/crm/appointments.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/associations-schema-types.generated.d.ts +247 -260
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.js +48 -49
- package/dist/server/api-client-core/apis/crm/associations-schema.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/associations-types.generated.d.ts +576 -590
- package/dist/server/api-client-core/apis/crm/associations.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/associations.generated.js +71 -72
- package/dist/server/api-client-core/apis/crm/associations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/calling-extensions-types.generated.d.ts +355 -379
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js +34 -37
- package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/calls-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/calls.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/calls.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/calls.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/carts-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/carts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/carts.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/carts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/commerce-payments-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.d.ts +752 -766
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/communications-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/communications.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/communications.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/communications.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/companies-types.generated.d.ts +769 -795
- package/dist/server/api-client-core/apis/crm/companies.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/companies.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/companies.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/contacts-types.generated.d.ts +786 -812
- package/dist/server/api-client-core/apis/crm/contacts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/contacts.generated.js +60 -61
- package/dist/server/api-client-core/apis/crm/contacts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/contracts-types.generated.d.ts +796 -777
- package/dist/server/api-client-core/apis/crm/contracts.generated.d.ts +8 -3
- package/dist/server/api-client-core/apis/crm/contracts.generated.js +60 -57
- package/dist/server/api-client-core/apis/crm/contracts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/courses-types.generated.d.ts +758 -772
- package/dist/server/api-client-core/apis/crm/courses.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/courses.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/courses.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/crm-owners-types.generated.d.ts +103 -115
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/crm-owners.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/custom-objects-types.generated.d.ts +833 -848
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.js +91 -90
- package/dist/server/api-client-core/apis/crm/custom-objects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/deal-splits-types.generated.d.ts +158 -170
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/deal-splits.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/deals-types.generated.d.ts +771 -785
- package/dist/server/api-client-core/apis/crm/deals.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/deals.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/deals.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/discounts-types.generated.d.ts +754 -768
- package/dist/server/api-client-core/apis/crm/discounts.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/discounts.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/discounts.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/emails-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/emails.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/emails.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/emails.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/exports-types.generated.d.ts +227 -251
- package/dist/server/api-client-core/apis/crm/exports.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/exports.generated.js +4 -5
- package/dist/server/api-client-core/apis/crm/exports.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/feedback-submissions-types.generated.d.ts +551 -565
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js +45 -46
- package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/fees-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/fees.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/fees.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/fees.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/goal-targets-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/goal-targets.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/imports-types.generated.d.ts +305 -329
- package/dist/server/api-client-core/apis/crm/imports.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/imports.generated.js +20 -23
- package/dist/server/api-client-core/apis/crm/imports.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/invoices-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/invoices.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/invoices.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/invoices.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/leads-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/leads.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/leads.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/leads.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/limits-tracking-types.generated.d.ts +251 -263
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/line-items-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/line-items.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/line-items.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/line-items.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/listings-types.generated.d.ts +758 -772
- package/dist/server/api-client-core/apis/crm/listings.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/listings.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/listings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/lists-types.generated.d.ts +2075 -2111
- package/dist/server/api-client-core/apis/crm/lists.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/lists.generated.js +97 -98
- package/dist/server/api-client-core/apis/crm/lists.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/meetings-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/meetings.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/meetings.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/meetings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/notes-types.generated.d.ts +755 -769
- package/dist/server/api-client-core/apis/crm/notes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/notes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/notes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/object-library-types.generated.d.ts +24 -36
- package/dist/server/api-client-core/apis/crm/object-library.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/object-library.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/object-library.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/objects-types.generated.d.ts +620 -645
- package/dist/server/api-client-core/apis/crm/objects.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/objects.generated.js +66 -67
- package/dist/server/api-client-core/apis/crm/objects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/orders-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/orders.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/orders.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/orders.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/partner-clients-types.generated.d.ts +646 -660
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.js +63 -62
- package/dist/server/api-client-core/apis/crm/partner-clients.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/partner-services-types.generated.d.ts +646 -660
- package/dist/server/api-client-core/apis/crm/partner-services.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/partner-services.generated.js +63 -62
- package/dist/server/api-client-core/apis/crm/partner-services.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/pipelines-types.generated.d.ts +320 -332
- package/dist/server/api-client-core/apis/crm/pipelines.generated.d.ts +2 -2
- package/dist/server/api-client-core/apis/crm/pipelines.generated.js +3 -2
- package/dist/server/api-client-core/apis/crm/pipelines.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/postal-mail-types.generated.d.ts +744 -758
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/postal-mail.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/products-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/products.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/products.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/products.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/projects-types.generated.d.ts +761 -787
- package/dist/server/api-client-core/apis/crm/projects.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/projects.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/projects.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/properties-types.generated.d.ts +526 -528
- package/dist/server/api-client-core/apis/crm/properties.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/properties.generated.js +79 -78
- package/dist/server/api-client-core/apis/crm/properties.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/property-validations-types.generated.d.ts +71 -83
- package/dist/server/api-client-core/apis/crm/property-validations.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/property-validations.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/property-validations.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.d.ts +409 -433
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js +24 -25
- package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.d.ts +156 -169
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js +55 -56
- package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/quotes-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/quotes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/quotes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/quotes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/schemas-types.generated.d.ts +575 -600
- package/dist/server/api-client-core/apis/crm/schemas.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/schemas.generated.js +33 -34
- package/dist/server/api-client-core/apis/crm/schemas.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/services-types.generated.d.ts +750 -764
- package/dist/server/api-client-core/apis/crm/services.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/services.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/services.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/tasks-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/tasks.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/tasks.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/tasks.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/taxes-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/taxes.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/taxes.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/taxes.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/tickets-types.generated.d.ts +764 -790
- package/dist/server/api-client-core/apis/crm/tickets.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/tickets.generated.js +59 -58
- package/dist/server/api-client-core/apis/crm/tickets.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/timeline-types.generated.d.ts +136 -149
- package/dist/server/api-client-core/apis/crm/timeline.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/timeline.generated.js +5 -6
- package/dist/server/api-client-core/apis/crm/timeline.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/transcriptions-types.generated.d.ts +104 -117
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.js +7 -10
- package/dist/server/api-client-core/apis/crm/transcriptions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/users-types.generated.d.ts +747 -761
- package/dist/server/api-client-core/apis/crm/users.generated.d.ts +5 -3
- package/dist/server/api-client-core/apis/crm/users.generated.js +58 -57
- package/dist/server/api-client-core/apis/crm/users.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.d.ts +28 -40
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js +4 -3
- package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events/manage-event-definitions-types.generated.d.ts +909 -945
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js +29 -30
- package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events/send-event-completions-types.generated.d.ts +49 -62
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.js +4 -5
- package/dist/server/api-client-core/apis/events/send-event-completions.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/events-types.generated.d.ts +99 -111
- package/dist/server/api-client-core/apis/events.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/events.generated.js +4 -3
- package/dist/server/api-client-core/apis/events.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/files-types.generated.d.ts +636 -649
- package/dist/server/api-client-core/apis/files.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/files.generated.js +112 -113
- package/dist/server/api-client-core/apis/files.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.d.ts +799 -816
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.d.ts +8 -3
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js +126 -127
- package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/marketing-emails-types.generated.d.ts +745 -769
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js +100 -103
- package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/marketing-events-types.generated.d.ts +1504 -1546
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.d.ts +9 -3
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js +162 -167
- package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/single-send-types.generated.d.ts +91 -103
- package/dist/server/api-client-core/apis/marketing/single-send.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/marketing/single-send.generated.js +3 -2
- package/dist/server/api-client-core/apis/marketing/single-send.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/marketing/transactional-single-send-types.generated.d.ts +187 -200
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js +14 -15
- package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/meta/origins-types.generated.d.ts +41 -53
- package/dist/server/api-client-core/apis/meta/origins.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/meta/origins.generated.js +4 -3
- package/dist/server/api-client-core/apis/meta/origins.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/scheduler/meetings-types.generated.d.ts +850 -863
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.d.ts +4 -3
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.js +28 -29
- package/dist/server/api-client-core/apis/scheduler/meetings.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/multicurrency-types.generated.d.ts +281 -296
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.d.ts +6 -3
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.js +32 -33
- package/dist/server/api-client-core/apis/settings/multicurrency.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/tax-rates-types.generated.d.ts +71 -83
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.js +4 -3
- package/dist/server/api-client-core/apis/settings/tax-rates.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/settings/user-provisioning-types.generated.d.ts +202 -250
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js +23 -26
- package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/webhooks-journal-types.generated.d.ts +490 -526
- package/dist/server/api-client-core/apis/webhooks-journal.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/webhooks-journal.generated.js +65 -70
- package/dist/server/api-client-core/apis/webhooks-journal.generated.js.map +1 -1
- package/dist/server/api-client-core/apis/webhooks-types.generated.d.ts +816 -852
- package/dist/server/api-client-core/apis/webhooks.generated.d.ts +3 -3
- package/dist/server/api-client-core/apis/webhooks.generated.js +93 -98
- package/dist/server/api-client-core/apis/webhooks.generated.js.map +1 -1
- package/dist/server/api-client-core/binary-data.js.map +1 -1
- package/dist/server/api-client-core/client.js +5 -1
- package/dist/server/api-client-core/client.js.map +1 -1
- package/dist/server/api-client-core/codegen-helpers/file-op-wrappers.js.map +1 -1
- package/dist/server/api-client-core/errors.js.map +1 -1
- package/dist/server/api-client-core/op.js.map +1 -1
- package/dist/server/api-client-core/pagination.d.ts +2 -2
- package/dist/server/api-client-core/pagination.js +2 -2
- package/dist/server/api-client-core/pagination.js.map +1 -1
- package/dist/server/api-client-core/plugins/fetch-transport.js +33 -9
- package/dist/server/api-client-core/plugins/fetch-transport.js.map +1 -1
- package/dist/server/api-client-core/types.d.ts +1 -1
- package/dist/server/api-client.d.ts +184 -184
- package/dist/server/api-client.js +89 -89
- package/dist/server/constants.js +33 -6
- package/dist/server/constants.js.map +1 -1
- package/dist/server/deno/start.js.map +1 -1
- package/dist/server/hono/hono-request-handler.js +32 -23
- package/dist/server/hono/hono-request-handler.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-complete.js +158 -0
- package/dist/server/hono/hubspot-connect-routes/auth-complete.js.map +1 -0
- package/dist/server/hono/hubspot-connect-routes/auth-init-session.js +25 -12
- package/dist/server/hono/hubspot-connect-routes/auth-init-session.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-logout.js +32 -9
- package/dist/server/hono/hubspot-connect-routes/auth-logout.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/auth-refresh.js +32 -18
- package/dist/server/hono/hubspot-connect-routes/auth-refresh.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-client-metadata-types.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js +4 -1
- package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/fetch-hubspot-client-metadata.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js +4 -2
- package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js +5 -5
- package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/oauth-client.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/utils.js +53 -6
- package/dist/server/hono/hubspot-connect-routes/utils.js.map +1 -1
- package/dist/server/hono/hubspot-connect-routes/whoami.js +51 -0
- package/dist/server/hono/hubspot-connect-routes/whoami.js.map +1 -0
- package/dist/server/hono/types.d.ts +9 -10
- package/dist/server/hono/utils/cookie-utils.js +2 -1
- package/dist/server/hono/utils/cookie-utils.js.map +1 -1
- package/dist/server/hono/utils/cors-middleware.js +85 -0
- package/dist/server/hono/utils/cors-middleware.js.map +1 -0
- package/dist/server/import-app-keys.js.map +1 -1
- package/dist/server/lovable/create-app-function-start.d.ts +1 -1
- package/dist/server/lovable/create-app-function-start.js +4 -6
- package/dist/server/lovable/create-app-function-start.js.map +1 -1
- package/dist/server/lovable/hubspot-connect/index.js.map +1 -1
- package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js +14 -15
- package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js.map +1 -1
- package/dist/server/sanitize-request.js +14 -11
- package/dist/server/sanitize-request.js.map +1 -1
- package/dist/server/secure-start-core.js +4 -5
- package/dist/server/secure-start-core.js.map +1 -1
- package/dist/server/shared/constants.js +22 -9
- package/dist/server/shared/constants.js.map +1 -1
- package/dist/server/shared/encoding/base64.js.map +1 -1
- package/dist/server/shared/encoding/sha256.js.map +1 -1
- package/dist/server/shared/logger.js.map +1 -1
- package/dist/server/types.d.ts +1 -35
- package/dist/server/utils/cookie-utils.js.map +1 -1
- package/dist/server/utils/dpop-utils.js.map +1 -1
- package/dist/server/utils/env-utils.js +60 -7
- package/dist/server/utils/env-utils.js.map +1 -1
- package/dist/server/utils/hubspot-dpop-auth-headers.js +38 -0
- package/dist/server/utils/hubspot-dpop-auth-headers.js.map +1 -0
- package/dist/server/utils/jwk-utils.js.map +1 -1
- package/dist/server/utils/jwt-utils.js.map +1 -1
- package/package.json +15 -21
- package/src/browser/app-connect-controller/README.md +5 -2
- package/src/browser/app-connect-controller/connect-start.test.ts +157 -0
- package/src/browser/app-connect-controller/connect-start.ts +18 -3
- package/src/browser/app-connect-controller/constants.ts +6 -4
- package/src/browser/app-connect-controller/create.ts +8 -2
- package/src/browser/app-connect-controller/disconnect.ts +5 -7
- package/src/browser/app-connect-controller/init.test.ts +275 -0
- package/src/browser/app-connect-controller/init.ts +44 -19
- package/src/browser/app-connect-controller/oauth-complete.test.ts +110 -0
- package/src/browser/app-connect-controller/oauth-complete.ts +53 -0
- package/src/browser/app-connect-controller/oauth-popup.test.ts +239 -0
- package/src/browser/app-connect-controller/oauth-popup.ts +160 -0
- package/src/browser/app-connect-controller/types.ts +3 -0
- package/src/browser/app-connect-controller/utils/iframe-utils.ts +12 -0
- package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.test.ts +35 -0
- package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.ts +21 -0
- package/src/browser/app-connect-controller/utils/session-utils.test.ts +73 -22
- package/src/browser/app-connect-controller/utils/session-utils.ts +74 -33
- package/src/browser/app-connect-controller/view-state.test.ts +1 -0
- package/src/browser/app-connect-controller/view-state.ts +1 -0
- package/src/browser/index.ts +1 -0
- package/src/browser/react/components/AppConnectHeader/AppConnectHeader.tsx +21 -34
- package/src/browser/react/components/ConnectButton/ConnectButton.tsx +1 -1
- package/src/browser/react/lovable/LovableHubSpotAppConnect.tsx +12 -2
- package/src/browser/types.ts +30 -5
- package/src/server/api-client-core/__tests__/errors.test.ts +309 -0
- package/src/server/api-client-core/__tests__/operation-headers.test.ts +251 -0
- package/src/server/api-client-core/apis/account/account-info-types.generated.ts +74 -88
- package/src/server/api-client-core/apis/account/account-info.generated.ts +2 -4
- package/src/server/api-client-core/apis/account/audit-logs-types.generated.ts +346 -360
- package/src/server/api-client-core/apis/account/audit-logs.generated.ts +2 -4
- package/src/server/api-client-core/apis/auth/oauth-types.generated.ts +81 -99
- package/src/server/api-client-core/apis/auth/oauth.generated.ts +1 -3
- package/src/server/api-client-core/apis/automation/actions-types.generated.ts +1162 -1188
- package/src/server/api-client-core/apis/automation/actions.generated.ts +10 -12
- package/src/server/api-client-core/apis/automation/sequences-types.generated.ts +379 -393
- package/src/server/api-client-core/apis/automation/sequences.generated.ts +1 -3
- package/src/server/api-client-core/apis/business-units-types.generated.ts +43 -59
- package/src/server/api-client-core/apis/business-units.generated.ts +9 -10
- package/src/server/api-client-core/apis/cms/authors-types.generated.ts +3823 -3853
- package/src/server/api-client-core/apis/cms/authors.generated.ts +31 -37
- package/src/server/api-client-core/apis/cms/blog-settings-types.generated.ts +3667 -3696
- package/src/server/api-client-core/apis/cms/blog-settings.generated.ts +46 -51
- package/src/server/api-client-core/apis/cms/cms-content-audit-types.generated.ts +138 -163
- package/src/server/api-client-core/apis/cms/cms-content-audit.generated.ts +2 -10
- package/src/server/api-client-core/apis/cms/domains-types.generated.ts +153 -167
- package/src/server/api-client-core/apis/cms/domains.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/hubdb-types.generated.ts +1013 -1063
- package/src/server/api-client-core/apis/cms/hubdb.generated.ts +3 -5
- package/src/server/api-client-core/apis/cms/media-bridge-types.generated.ts +8623 -8657
- package/src/server/api-client-core/apis/cms/media-bridge.generated.ts +16 -22
- package/src/server/api-client-core/apis/cms/pages-types.generated.ts +5259 -5272
- package/src/server/api-client-core/apis/cms/pages.generated.ts +262 -226
- package/src/server/api-client-core/apis/cms/posts-types.generated.ts +4420 -4438
- package/src/server/api-client-core/apis/cms/posts.generated.ts +108 -106
- package/src/server/api-client-core/apis/cms/site-search-types.generated.ts +1867 -1881
- package/src/server/api-client-core/apis/cms/site-search.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/source-code-types.generated.ts +144 -177
- package/src/server/api-client-core/apis/cms/source-code.generated.ts +15 -23
- package/src/server/api-client-core/apis/cms/tags-types.generated.ts +3820 -3845
- package/src/server/api-client-core/apis/cms/tags.generated.ts +80 -82
- package/src/server/api-client-core/apis/cms/url-mappings-types.generated.ts +188 -202
- package/src/server/api-client-core/apis/cms/url-mappings.generated.ts +2 -4
- package/src/server/api-client-core/apis/cms/url-redirects-types.generated.ts +182 -196
- package/src/server/api-client-core/apis/cms/url-redirects.generated.ts +2 -4
- package/src/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.ts +810 -828
- package/src/server/api-client-core/apis/communication-preferences/subscriptions.generated.ts +66 -63
- package/src/server/api-client-core/apis/conversations/custom-channels-types.generated.ts +564 -601
- package/src/server/api-client-core/apis/conversations/custom-channels.generated.ts +90 -86
- package/src/server/api-client-core/apis/conversations/visitor-identification-types.generated.ts +31 -44
- package/src/server/api-client-core/apis/conversations/visitor-identification.generated.ts +6 -8
- package/src/server/api-client-core/apis/conversations-types.generated.ts +955 -991
- package/src/server/api-client-core/apis/conversations.generated.ts +6 -5
- package/src/server/api-client-core/apis/crm/app-uninstalls-types.generated.ts +7 -19
- package/src/server/api-client-core/apis/crm/app-uninstalls.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/appointments-types.generated.ts +965 -969
- package/src/server/api-client-core/apis/crm/appointments.generated.ts +143 -137
- package/src/server/api-client-core/apis/crm/associations-schema-types.generated.ts +292 -322
- package/src/server/api-client-core/apis/crm/associations-schema.generated.ts +17 -19
- package/src/server/api-client-core/apis/crm/associations-types.generated.ts +657 -675
- package/src/server/api-client-core/apis/crm/associations.generated.ts +70 -70
- package/src/server/api-client-core/apis/crm/calling-extensions-types.generated.ts +417 -441
- package/src/server/api-client-core/apis/crm/calling-extensions.generated.ts +62 -69
- package/src/server/api-client-core/apis/crm/calls-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/calls.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/carts-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/carts.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/commerce-payments-types.generated.ts +847 -856
- package/src/server/api-client-core/apis/crm/commerce-payments.generated.ts +73 -73
- package/src/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.ts +844 -853
- package/src/server/api-client-core/apis/crm/commerce-subscriptions.generated.ts +50 -51
- package/src/server/api-client-core/apis/crm/communications-types.generated.ts +846 -856
- package/src/server/api-client-core/apis/crm/communications.generated.ts +73 -73
- package/src/server/api-client-core/apis/crm/companies-types.generated.ts +859 -885
- package/src/server/api-client-core/apis/crm/companies.generated.ts +44 -50
- package/src/server/api-client-core/apis/crm/contacts-types.generated.ts +875 -907
- package/src/server/api-client-core/apis/crm/contacts.generated.ts +46 -52
- package/src/server/api-client-core/apis/crm/contracts-types.generated.ts +894 -862
- package/src/server/api-client-core/apis/crm/contracts.generated.ts +66 -56
- package/src/server/api-client-core/apis/crm/courses-types.generated.ts +842 -859
- package/src/server/api-client-core/apis/crm/courses.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/crm-owners-types.generated.ts +102 -115
- package/src/server/api-client-core/apis/crm/crm-owners.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/custom-objects-types.generated.ts +900 -915
- package/src/server/api-client-core/apis/crm/custom-objects.generated.ts +128 -126
- package/src/server/api-client-core/apis/crm/deal-splits-types.generated.ts +157 -170
- package/src/server/api-client-core/apis/crm/deal-splits.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/deals-types.generated.ts +858 -875
- package/src/server/api-client-core/apis/crm/deals.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/discounts-types.generated.ts +842 -855
- package/src/server/api-client-core/apis/crm/discounts.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/emails-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/emails.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/exports-types.generated.ts +284 -314
- package/src/server/api-client-core/apis/crm/exports.generated.ts +6 -11
- package/src/server/api-client-core/apis/crm/feedback-submissions-types.generated.ts +607 -622
- package/src/server/api-client-core/apis/crm/feedback-submissions.generated.ts +84 -80
- package/src/server/api-client-core/apis/crm/fees-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/fees.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/goal-targets-types.generated.ts +845 -856
- package/src/server/api-client-core/apis/crm/goal-targets.generated.ts +50 -51
- package/src/server/api-client-core/apis/crm/imports-types.generated.ts +663 -692
- package/src/server/api-client-core/apis/crm/imports.generated.ts +2 -7
- package/src/server/api-client-core/apis/crm/invoices-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/invoices.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/leads-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/leads.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/limits-tracking-types.generated.ts +263 -275
- package/src/server/api-client-core/apis/crm/limits-tracking.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/line-items-types.generated.ts +843 -856
- package/src/server/api-client-core/apis/crm/line-items.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/listings-types.generated.ts +842 -859
- package/src/server/api-client-core/apis/crm/listings.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/lists-types.generated.ts +2794 -2845
- package/src/server/api-client-core/apis/crm/lists.generated.ts +8 -20
- package/src/server/api-client-core/apis/crm/meetings-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/meetings.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/notes-types.generated.ts +839 -856
- package/src/server/api-client-core/apis/crm/notes.generated.ts +42 -44
- package/src/server/api-client-core/apis/crm/object-library-types.generated.ts +26 -39
- package/src/server/api-client-core/apis/crm/object-library.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/objects-types.generated.ts +688 -716
- package/src/server/api-client-core/apis/crm/objects.generated.ts +79 -83
- package/src/server/api-client-core/apis/crm/orders-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/orders.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/partner-clients-types.generated.ts +721 -735
- package/src/server/api-client-core/apis/crm/partner-clients.generated.ts +60 -60
- package/src/server/api-client-core/apis/crm/partner-services-types.generated.ts +720 -734
- package/src/server/api-client-core/apis/crm/partner-services.generated.ts +60 -60
- package/src/server/api-client-core/apis/crm/pipelines-types.generated.ts +366 -388
- package/src/server/api-client-core/apis/crm/pipelines.generated.ts +2 -4
- package/src/server/api-client-core/apis/crm/postal-mail-types.generated.ts +830 -843
- package/src/server/api-client-core/apis/crm/postal-mail.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/products-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/products.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/projects-types.generated.ts +845 -875
- package/src/server/api-client-core/apis/crm/projects.generated.ts +47 -53
- package/src/server/api-client-core/apis/crm/properties-types.generated.ts +623 -626
- package/src/server/api-client-core/apis/crm/properties.generated.ts +33 -28
- package/src/server/api-client-core/apis/crm/property-validations-types.generated.ts +160 -174
- package/src/server/api-client-core/apis/crm/property-validations.generated.ts +2 -6
- package/src/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.ts +467 -494
- package/src/server/api-client-core/apis/crm/public-app-crm-cards.generated.ts +7 -15
- package/src/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.ts +166 -177
- package/src/server/api-client-core/apis/crm/public-app-feature-flags.generated.ts +6 -8
- package/src/server/api-client-core/apis/crm/quotes-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/quotes.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/schemas-types.generated.ts +613 -640
- package/src/server/api-client-core/apis/crm/schemas.generated.ts +8 -14
- package/src/server/api-client-core/apis/crm/services-types.generated.ts +832 -849
- package/src/server/api-client-core/apis/crm/services.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/tasks-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/tasks.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/taxes-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/taxes.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/tickets-types.generated.ts +848 -878
- package/src/server/api-client-core/apis/crm/tickets.generated.ts +47 -53
- package/src/server/api-client-core/apis/crm/timeline-types.generated.ts +144 -161
- package/src/server/api-client-core/apis/crm/timeline.generated.ts +6 -8
- package/src/server/api-client-core/apis/crm/transcriptions-types.generated.ts +149 -164
- package/src/server/api-client-core/apis/crm/transcriptions.generated.ts +22 -22
- package/src/server/api-client-core/apis/crm/users-types.generated.ts +829 -846
- package/src/server/api-client-core/apis/crm/users.generated.ts +45 -47
- package/src/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.ts +29 -42
- package/src/server/api-client-core/apis/crm/video-conferencing-extension.generated.ts +17 -19
- package/src/server/api-client-core/apis/events/manage-event-definitions-types.generated.ts +1509 -1558
- package/src/server/api-client-core/apis/events/manage-event-definitions.generated.ts +55 -65
- package/src/server/api-client-core/apis/events/send-event-completions-types.generated.ts +51 -68
- package/src/server/api-client-core/apis/events/send-event-completions.generated.ts +10 -10
- package/src/server/api-client-core/apis/events-types.generated.ts +97 -110
- package/src/server/api-client-core/apis/events.generated.ts +2 -4
- package/src/server/api-client-core/apis/files-types.generated.ts +727 -757
- package/src/server/api-client-core/apis/files.generated.ts +3 -5
- package/src/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.ts +1221 -1234
- package/src/server/api-client-core/apis/marketing/campaigns-public-api.generated.ts +45 -47
- package/src/server/api-client-core/apis/marketing/marketing-emails-types.generated.ts +3704 -3733
- package/src/server/api-client-core/apis/marketing/marketing-emails.generated.ts +44 -52
- package/src/server/api-client-core/apis/marketing/marketing-events-types.generated.ts +1787 -1848
- package/src/server/api-client-core/apis/marketing/marketing-events.generated.ts +236 -241
- package/src/server/api-client-core/apis/marketing/single-send-types.generated.ts +142 -155
- package/src/server/api-client-core/apis/marketing/single-send.generated.ts +2 -6
- package/src/server/api-client-core/apis/marketing/transactional-single-send-types.generated.ts +253 -269
- package/src/server/api-client-core/apis/marketing/transactional-single-send.generated.ts +32 -31
- package/src/server/api-client-core/apis/meta/origins-types.generated.ts +40 -56
- package/src/server/api-client-core/apis/meta/origins.generated.ts +2 -4
- package/src/server/api-client-core/apis/scheduler/meetings-types.generated.ts +1001 -1014
- package/src/server/api-client-core/apis/scheduler/meetings.generated.ts +6 -8
- package/src/server/api-client-core/apis/settings/multicurrency-types.generated.ts +1906 -1912
- package/src/server/api-client-core/apis/settings/multicurrency.generated.ts +64 -63
- package/src/server/api-client-core/apis/settings/tax-rates-types.generated.ts +71 -85
- package/src/server/api-client-core/apis/settings/tax-rates.generated.ts +2 -4
- package/src/server/api-client-core/apis/settings/user-provisioning-types.generated.ts +207 -257
- package/src/server/api-client-core/apis/settings/user-provisioning.generated.ts +8 -24
- package/src/server/api-client-core/apis/webhooks-journal-types.generated.ts +740 -771
- package/src/server/api-client-core/apis/webhooks-journal.generated.ts +47 -59
- package/src/server/api-client-core/apis/webhooks-types.generated.ts +1194 -1228
- package/src/server/api-client-core/apis/webhooks.generated.ts +52 -64
- package/src/server/api-client-core/client.ts +5 -1
- package/src/server/api-client-core/pagination.ts +2 -2
- package/src/server/api-client-core/plugins/fetch-transport.ts +70 -12
- package/src/server/api-client-core/types.ts +1 -1
- package/src/server/constants.ts +29 -4
- package/src/server/hono/hono-request-handler.ts +68 -27
- package/src/server/hono/hubspot-connect-routes/auth-complete.test.ts +394 -0
- package/src/server/hono/hubspot-connect-routes/{auth-callback.ts → auth-complete.ts} +81 -30
- package/src/server/hono/hubspot-connect-routes/auth-init-session.test.ts +114 -30
- package/src/server/hono/hubspot-connect-routes/auth-init-session.ts +35 -10
- package/src/server/hono/hubspot-connect-routes/auth-logout.test.ts +13 -0
- package/src/server/hono/hubspot-connect-routes/auth-logout.ts +39 -10
- package/src/server/hono/hubspot-connect-routes/auth-refresh.test.ts +6 -0
- package/src/server/hono/hubspot-connect-routes/auth-refresh.ts +24 -9
- package/src/server/hono/hubspot-connect-routes/cimd-public-routes.test.ts +7 -6
- package/src/server/hono/hubspot-connect-routes/cimd-public-routes.ts +5 -1
- package/src/server/hono/hubspot-connect-routes/hubspot-connect-routes.ts +11 -3
- package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.test.ts +17 -24
- package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.ts +8 -8
- package/src/server/hono/hubspot-connect-routes/utils.test.ts +16 -46
- package/src/server/hono/hubspot-connect-routes/utils.ts +61 -5
- package/src/server/hono/hubspot-connect-routes/whoami.ts +74 -0
- package/src/server/hono/types.ts +11 -10
- package/src/server/hono/utils/cookie-utils.ts +27 -2
- package/src/server/hono/utils/cors-middleware.test.ts +80 -0
- package/src/server/hono/utils/cors-middleware.ts +95 -0
- package/src/server/lovable/create-app-function-start.ts +4 -7
- package/src/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.ts +21 -16
- package/src/server/sanitize-request.ts +15 -12
- package/src/server/secure-start-core.ts +7 -6
- package/src/server/types.ts +2 -38
- package/src/server/utils/env-utils.test.ts +140 -12
- package/src/server/utils/env-utils.ts +80 -6
- package/src/server/utils/hubspot-dpop-auth-headers.test.ts +43 -0
- package/src/server/utils/hubspot-dpop-auth-headers.ts +48 -0
- package/src/shared/constants.ts +40 -3
- package/src/shared/wire-types.ts +49 -0
- package/dist/browser/HubSpotAppConnect-BW45gyDs.js.map +0 -1
- package/dist/browser/create-vctOhpX9.js.map +0 -1
- package/dist/server/hono/hubspot-connect-routes/auth-callback.js +0 -125
- package/dist/server/hono/hubspot-connect-routes/auth-callback.js.map +0 -1
- package/dist/server/proxy.js +0 -68
- package/dist/server/proxy.js.map +0 -1
- package/src/server/hono/hubspot-connect-routes/auth-callback.test.ts +0 -225
- package/src/server/proxy.test.ts +0 -80
- package/src/server/proxy.ts +0 -116
|
@@ -2,1023 +2,1008 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Operation } from '../../types.ts';
|
|
4
4
|
|
|
5
|
-
export namespace
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export namespace CRMCustomObjectsSchemas {
|
|
6
|
+
/**
|
|
7
|
+
* Contains the id and type of an association
|
|
8
|
+
*/
|
|
9
|
+
export interface AssociatedId {
|
|
10
|
+
/**
|
|
11
|
+
* The ID for the association type.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of associations.
|
|
16
|
+
*/
|
|
17
|
+
type: string;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export interface DeleteInput {
|
|
33
|
-
objectId: string;
|
|
34
|
-
objectType: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type DeleteOutput = void;
|
|
38
|
-
|
|
39
|
-
export interface GetInput {
|
|
40
|
-
/**
|
|
41
|
-
* Whether to return only results that have been archived.
|
|
42
|
-
*/
|
|
43
|
-
archived?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
46
|
-
*/
|
|
47
|
-
associations?: string[];
|
|
48
|
-
/**
|
|
49
|
-
* The name of a property whose values are unique for this object type
|
|
50
|
-
*/
|
|
51
|
-
idProperty?: string;
|
|
52
|
-
objectId: string;
|
|
53
|
-
objectType: string;
|
|
54
|
-
/**
|
|
55
|
-
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
56
|
-
*/
|
|
57
|
-
properties?: string[];
|
|
58
|
-
/**
|
|
59
|
-
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
60
|
-
*/
|
|
61
|
-
propertiesWithHistory?: string[];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type GetOutput = Schemas.SimplePublicObjectWithAssociations;
|
|
65
|
-
|
|
66
|
-
export interface ListInput {
|
|
67
|
-
/**
|
|
68
|
-
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
69
|
-
*/
|
|
70
|
-
after?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Whether to return only results that have been archived.
|
|
73
|
-
*/
|
|
74
|
-
archived?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
77
|
-
*/
|
|
78
|
-
associations?: string[];
|
|
79
|
-
/**
|
|
80
|
-
* The maximum number of results to display per page.
|
|
81
|
-
*/
|
|
82
|
-
limit?: number;
|
|
83
|
-
objectType: string;
|
|
84
|
-
/**
|
|
85
|
-
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
86
|
-
*/
|
|
87
|
-
properties?: string[];
|
|
88
|
-
/**
|
|
89
|
-
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
90
|
-
*/
|
|
91
|
-
propertiesWithHistory?: string[];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export type ListOutput =
|
|
95
|
-
Schemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
96
|
-
|
|
97
|
-
export interface UpdateAssociationLabelsInput {
|
|
98
|
-
data: Schemas.AssociationSpec[];
|
|
99
|
-
objectId: string;
|
|
100
|
-
objectType: string;
|
|
101
|
-
toObjectId: string;
|
|
102
|
-
toObjectType: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type UpdateAssociationLabelsOutput = Schemas.LabelsBetweenObjectPair;
|
|
106
|
-
|
|
107
|
-
export interface UpdateInput {
|
|
108
|
-
data: Schemas.SimplePublicObjectInput;
|
|
109
|
-
/**
|
|
110
|
-
* The name of a property whose values are unique for this object type
|
|
111
|
-
*/
|
|
112
|
-
idProperty?: string;
|
|
113
|
-
objectId: string;
|
|
114
|
-
objectType: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type UpdateOutput = Schemas.SimplePublicObject;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the type, direction, and details of the relationship between two CRM objects.
|
|
22
|
+
*/
|
|
23
|
+
export interface AssociationSpec {
|
|
24
|
+
/**
|
|
25
|
+
* The category of the association, such as "HUBSPOT_DEFINED".
|
|
26
|
+
*/
|
|
27
|
+
associationCategory:
|
|
28
|
+
| 'HUBSPOT_DEFINED'
|
|
29
|
+
| 'INTEGRATOR_DEFINED'
|
|
30
|
+
| 'USER_DEFINED'
|
|
31
|
+
| 'WORK';
|
|
32
|
+
/**
|
|
33
|
+
* The ID representing the specific type of association.
|
|
34
|
+
*/
|
|
35
|
+
associationTypeId: number;
|
|
118
36
|
}
|
|
119
37
|
|
|
120
|
-
export
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
38
|
+
export interface BatchInputSimplePublicObjectBatchInput {
|
|
39
|
+
/**
|
|
40
|
+
* An array of SimplePublicObjectBatchInput objects, each representing an object to be updated. This is a required field.
|
|
41
|
+
*/
|
|
42
|
+
inputs: SimplePublicObjectBatchInput[];
|
|
43
|
+
}
|
|
125
44
|
|
|
126
|
-
|
|
45
|
+
export interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
46
|
+
/**
|
|
47
|
+
* An array of objects to be created, each represented by a SimplePublicObjectBatchInputForCreate. Each object includes properties and optional associations.
|
|
48
|
+
*/
|
|
49
|
+
inputs: SimplePublicObjectBatchInputForCreate[];
|
|
50
|
+
}
|
|
127
51
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
52
|
+
export interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
53
|
+
/**
|
|
54
|
+
* An array of SimplePublicObjectBatchInputUpsert objects. Each object in the array contains the data for a single upsert operation, including properties and optional identifiers.
|
|
55
|
+
*/
|
|
56
|
+
inputs: SimplePublicObjectBatchInputUpsert[];
|
|
57
|
+
}
|
|
134
58
|
|
|
135
|
-
|
|
59
|
+
export interface BatchInputSimplePublicObjectId {
|
|
60
|
+
/**
|
|
61
|
+
* An array of SimplePublicObjectId objects, each containing an ID of a public object. This is used to specify the objects involved in the batch operation.
|
|
62
|
+
*/
|
|
63
|
+
inputs: SimplePublicObjectId[];
|
|
64
|
+
}
|
|
136
65
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
|
|
68
|
+
*/
|
|
69
|
+
export interface BatchReadInputSimplePublicObjectId {
|
|
70
|
+
/**
|
|
71
|
+
* When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
|
|
72
|
+
*/
|
|
73
|
+
idProperty?: string;
|
|
74
|
+
inputs: SimplePublicObjectId[];
|
|
75
|
+
/**
|
|
76
|
+
* Key-value pairs for setting properties for the new object.
|
|
77
|
+
*/
|
|
78
|
+
properties: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Key-value pairs for setting properties for the new object and their histories.
|
|
81
|
+
*/
|
|
82
|
+
propertiesWithHistory: string[];
|
|
83
|
+
}
|
|
141
84
|
|
|
142
|
-
|
|
85
|
+
/**
|
|
86
|
+
* The response returned after performing a batch operation on associations.
|
|
87
|
+
*/
|
|
88
|
+
export interface BatchResponsePublicDefaultAssociation {
|
|
89
|
+
/**
|
|
90
|
+
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
91
|
+
*/
|
|
92
|
+
completedAt: string;
|
|
93
|
+
errors?: StandardError[];
|
|
94
|
+
/**
|
|
95
|
+
* An object containing relevant links related to the batch request.
|
|
96
|
+
*/
|
|
97
|
+
links?: Record<string, string>;
|
|
98
|
+
/**
|
|
99
|
+
* The total number of errors that occurred during the operation.
|
|
100
|
+
*/
|
|
101
|
+
numErrors?: number;
|
|
102
|
+
/**
|
|
103
|
+
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
104
|
+
*/
|
|
105
|
+
requestedAt?: string;
|
|
106
|
+
results: PublicDefaultAssociation[];
|
|
107
|
+
/**
|
|
108
|
+
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
109
|
+
*/
|
|
110
|
+
startedAt: string;
|
|
111
|
+
/**
|
|
112
|
+
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
113
|
+
*/
|
|
114
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
115
|
+
}
|
|
143
116
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
117
|
+
/**
|
|
118
|
+
* A public object batch response object
|
|
119
|
+
*/
|
|
120
|
+
export interface BatchResponseSimplePublicObject {
|
|
121
|
+
/**
|
|
122
|
+
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
123
|
+
*/
|
|
124
|
+
completedAt: string;
|
|
125
|
+
/**
|
|
126
|
+
* An object containing relevant links related to the batch request.
|
|
127
|
+
*/
|
|
128
|
+
links?: Record<string, string>;
|
|
129
|
+
/**
|
|
130
|
+
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
131
|
+
*/
|
|
132
|
+
requestedAt?: string;
|
|
133
|
+
results: SimplePublicObject[];
|
|
134
|
+
/**
|
|
135
|
+
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
136
|
+
*/
|
|
137
|
+
startedAt: string;
|
|
138
|
+
/**
|
|
139
|
+
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
140
|
+
*/
|
|
141
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
142
|
+
}
|
|
152
143
|
|
|
153
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
146
|
+
*/
|
|
147
|
+
export interface BatchResponseSimplePublicUpsertObject {
|
|
148
|
+
/**
|
|
149
|
+
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
150
|
+
*/
|
|
151
|
+
completedAt: string;
|
|
152
|
+
/**
|
|
153
|
+
* An object containing relevant links related to the batch request.
|
|
154
|
+
*/
|
|
155
|
+
links?: Record<string, string>;
|
|
156
|
+
/**
|
|
157
|
+
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
158
|
+
*/
|
|
159
|
+
requestedAt?: string;
|
|
160
|
+
results: SimplePublicUpsertObject[];
|
|
161
|
+
/**
|
|
162
|
+
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
163
|
+
*/
|
|
164
|
+
startedAt: string;
|
|
165
|
+
/**
|
|
166
|
+
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
167
|
+
*/
|
|
168
|
+
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
169
|
+
}
|
|
154
170
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
171
|
+
export interface CollectionResponseAssociatedId {
|
|
172
|
+
paging?: Paging;
|
|
173
|
+
/**
|
|
174
|
+
* An array of associated IDs, each represented by an object of type AssociatedId.
|
|
175
|
+
*/
|
|
176
|
+
results: AssociatedId[];
|
|
177
|
+
}
|
|
159
178
|
|
|
160
|
-
|
|
179
|
+
export interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
180
|
+
paging?: ForwardPaging;
|
|
181
|
+
/**
|
|
182
|
+
* An array of SimplePublicObjectWithAssociations, each representing a CRM object with its associated properties and associations.
|
|
183
|
+
*/
|
|
184
|
+
results: SimplePublicObjectWithAssociations[];
|
|
185
|
+
}
|
|
161
186
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
189
|
+
*/
|
|
190
|
+
export interface CollectionResponseWithTotalSimplePublicObject {
|
|
191
|
+
paging?: Paging;
|
|
192
|
+
results: SimplePublicObject[];
|
|
193
|
+
/**
|
|
194
|
+
* The number of available results
|
|
195
|
+
*/
|
|
196
|
+
total: number;
|
|
197
|
+
}
|
|
166
198
|
|
|
167
|
-
|
|
199
|
+
export interface ErrorDetail {
|
|
200
|
+
/**
|
|
201
|
+
* The status code associated with the error detail
|
|
202
|
+
*/
|
|
203
|
+
code?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Context about the error condition
|
|
206
|
+
*/
|
|
207
|
+
context?: Record<string, string[]>;
|
|
208
|
+
/**
|
|
209
|
+
* The name of the field or parameter in which the error was found.
|
|
210
|
+
*/
|
|
211
|
+
in?: string;
|
|
212
|
+
/**
|
|
213
|
+
* A human readable message describing the error along with remediation steps where appropriate
|
|
214
|
+
*/
|
|
215
|
+
message: string;
|
|
216
|
+
/**
|
|
217
|
+
* A specific category that contains more specific detail about the error
|
|
218
|
+
*/
|
|
219
|
+
subCategory?: string;
|
|
168
220
|
}
|
|
169
221
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
inputs: Schemas.SimplePublicObjectBatchInput[];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface BatchInputSimplePublicObjectBatchInputForCreate {
|
|
211
|
-
/**
|
|
212
|
-
* An array of objects to be created, each represented by a SimplePublicObjectBatchInputForCreate. Each object includes properties and optional associations.
|
|
213
|
-
*/
|
|
214
|
-
inputs: Schemas.SimplePublicObjectBatchInputForCreate[];
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export interface BatchInputSimplePublicObjectBatchInputUpsert {
|
|
218
|
-
/**
|
|
219
|
-
* An array of SimplePublicObjectBatchInputUpsert objects. Each object in the array contains the data for a single upsert operation, including properties and optional identifiers.
|
|
220
|
-
*/
|
|
221
|
-
inputs: Schemas.SimplePublicObjectBatchInputUpsert[];
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface BatchInputSimplePublicObjectId {
|
|
225
|
-
/**
|
|
226
|
-
* An array of SimplePublicObjectId objects, each containing an ID of a public object. This is used to specify the objects involved in the batch operation.
|
|
227
|
-
*/
|
|
228
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Specifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
|
|
233
|
-
*/
|
|
234
|
-
export interface BatchReadInputSimplePublicObjectId {
|
|
235
|
-
/**
|
|
236
|
-
* When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
|
|
237
|
-
*/
|
|
238
|
-
idProperty?: string;
|
|
239
|
-
inputs: Schemas.SimplePublicObjectId[];
|
|
240
|
-
/**
|
|
241
|
-
* Key-value pairs for setting properties for the new object.
|
|
242
|
-
*/
|
|
243
|
-
properties: string[];
|
|
244
|
-
/**
|
|
245
|
-
* Key-value pairs for setting properties for the new object and their histories.
|
|
246
|
-
*/
|
|
247
|
-
propertiesWithHistory: string[];
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* The response returned after performing a batch operation on associations.
|
|
252
|
-
*/
|
|
253
|
-
export interface BatchResponsePublicDefaultAssociation {
|
|
254
|
-
/**
|
|
255
|
-
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
256
|
-
*/
|
|
257
|
-
completedAt: string;
|
|
258
|
-
errors?: Schemas.StandardError[];
|
|
259
|
-
/**
|
|
260
|
-
* An object containing relevant links related to the batch request.
|
|
261
|
-
*/
|
|
262
|
-
links?: Record<string, string>;
|
|
263
|
-
/**
|
|
264
|
-
* The total number of errors that occurred during the operation.
|
|
265
|
-
*/
|
|
266
|
-
numErrors?: number;
|
|
267
|
-
/**
|
|
268
|
-
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
269
|
-
*/
|
|
270
|
-
requestedAt?: string;
|
|
271
|
-
results: Schemas.PublicDefaultAssociation[];
|
|
272
|
-
/**
|
|
273
|
-
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
274
|
-
*/
|
|
275
|
-
startedAt: string;
|
|
276
|
-
/**
|
|
277
|
-
* The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".
|
|
278
|
-
*/
|
|
279
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* A public object batch response object
|
|
284
|
-
*/
|
|
285
|
-
export interface BatchResponseSimplePublicObject {
|
|
286
|
-
/**
|
|
287
|
-
* The timestamp when the batch processing was completed, in ISO 8601 format.
|
|
288
|
-
*/
|
|
289
|
-
completedAt: string;
|
|
290
|
-
/**
|
|
291
|
-
* An object containing relevant links related to the batch request.
|
|
292
|
-
*/
|
|
293
|
-
links?: Record<string, string>;
|
|
294
|
-
/**
|
|
295
|
-
* The timestamp when the batch request was initially made, in ISO 8601 format.
|
|
296
|
-
*/
|
|
297
|
-
requestedAt?: string;
|
|
298
|
-
results: Schemas.SimplePublicObject[];
|
|
299
|
-
/**
|
|
300
|
-
* The timestamp when the batch processing began, in ISO 8601 format.
|
|
301
|
-
*/
|
|
302
|
-
startedAt: string;
|
|
303
|
-
/**
|
|
304
|
-
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
305
|
-
*/
|
|
306
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
|
|
311
|
-
*/
|
|
312
|
-
export interface BatchResponseSimplePublicUpsertObject {
|
|
313
|
-
/**
|
|
314
|
-
* The timestamp when the batch process was completed, in ISO 8601 format.
|
|
315
|
-
*/
|
|
316
|
-
completedAt: string;
|
|
317
|
-
/**
|
|
318
|
-
* An object containing relevant links related to the batch request.
|
|
319
|
-
*/
|
|
320
|
-
links?: Record<string, string>;
|
|
321
|
-
/**
|
|
322
|
-
* The timestamp when the batch process was initiated, in ISO 8601 format.
|
|
323
|
-
*/
|
|
324
|
-
requestedAt?: string;
|
|
325
|
-
results: Schemas.SimplePublicUpsertObject[];
|
|
326
|
-
/**
|
|
327
|
-
* The timestamp when the batch process began execution, in ISO 8601 format.
|
|
328
|
-
*/
|
|
329
|
-
startedAt: string;
|
|
330
|
-
/**
|
|
331
|
-
* The status of the batch processing request. The expected value is "COMPLETE".
|
|
332
|
-
*/
|
|
333
|
-
status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export interface CollectionResponseAssociatedId {
|
|
337
|
-
paging?: Schemas.Paging;
|
|
338
|
-
/**
|
|
339
|
-
* An array of associated IDs, each represented by an object of type AssociatedId.
|
|
340
|
-
*/
|
|
341
|
-
results: Schemas.AssociatedId[];
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export interface CollectionResponseSimplePublicObjectWithAssociationsForwardPaging {
|
|
345
|
-
paging?: Schemas.ForwardPaging;
|
|
346
|
-
/**
|
|
347
|
-
* An array of SimplePublicObjectWithAssociations, each representing a CRM object with its associated properties and associations.
|
|
348
|
-
*/
|
|
349
|
-
results: Schemas.SimplePublicObjectWithAssociations[];
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Represents a list of simple objects returned from an API request, along with the total count of objects available.
|
|
354
|
-
*/
|
|
355
|
-
export interface CollectionResponseWithTotalSimplePublicObject {
|
|
356
|
-
paging?: Schemas.Paging;
|
|
357
|
-
results: Schemas.SimplePublicObject[];
|
|
358
|
-
/**
|
|
359
|
-
* The number of available results
|
|
360
|
-
*/
|
|
361
|
-
total: number;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export interface ErrorDetail {
|
|
365
|
-
/**
|
|
366
|
-
* The status code associated with the error detail
|
|
367
|
-
*/
|
|
368
|
-
code?: string;
|
|
369
|
-
/**
|
|
370
|
-
* Context about the error condition
|
|
371
|
-
*/
|
|
372
|
-
context?: Record<string, string[]>;
|
|
373
|
-
/**
|
|
374
|
-
* The name of the field or parameter in which the error was found.
|
|
375
|
-
*/
|
|
376
|
-
in?: string;
|
|
377
|
-
/**
|
|
378
|
-
* A human readable message describing the error along with remediation steps where appropriate
|
|
379
|
-
*/
|
|
380
|
-
message: string;
|
|
381
|
-
/**
|
|
382
|
-
* A specific category that contains more specific detail about the error
|
|
383
|
-
*/
|
|
384
|
-
subCategory?: string;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
|
|
389
|
-
*/
|
|
390
|
-
export interface Filter {
|
|
391
|
-
/**
|
|
392
|
-
* The upper boundary value when using ranged-based filters.
|
|
393
|
-
*/
|
|
394
|
-
highValue?: string;
|
|
395
|
-
/**
|
|
396
|
-
* null
|
|
397
|
-
*/
|
|
398
|
-
operator:
|
|
399
|
-
| 'BETWEEN'
|
|
400
|
-
| 'CONTAINS_TOKEN'
|
|
401
|
-
| 'EQ'
|
|
402
|
-
| 'GT'
|
|
403
|
-
| 'GTE'
|
|
404
|
-
| 'HAS_PROPERTY'
|
|
405
|
-
| 'IN'
|
|
406
|
-
| 'LT'
|
|
407
|
-
| 'LTE'
|
|
408
|
-
| 'NEQ'
|
|
409
|
-
| 'NOT_CONTAINS_TOKEN'
|
|
410
|
-
| 'NOT_HAS_PROPERTY'
|
|
411
|
-
| 'NOT_IN';
|
|
412
|
-
/**
|
|
413
|
-
* The name of the property to apply the filter to.
|
|
414
|
-
*/
|
|
415
|
-
propertyName: string;
|
|
416
|
-
/**
|
|
417
|
-
* The value to match against the property.
|
|
418
|
-
*/
|
|
419
|
-
value?: string;
|
|
420
|
-
/**
|
|
421
|
-
* The values to match against the property.
|
|
422
|
-
*/
|
|
423
|
-
values?: string[];
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export interface FilterGroup {
|
|
427
|
-
/**
|
|
428
|
-
* An array of Filter objects, each defining a specific filtering criterion. This property is required.
|
|
429
|
-
*/
|
|
430
|
-
filters: Schemas.Filter[];
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export interface ForwardPaging {
|
|
434
|
-
next?: Schemas.NextPage;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* The relationship descriptors applicable between two object types.
|
|
439
|
-
*/
|
|
440
|
-
export interface LabelsBetweenObjectPair {
|
|
441
|
-
/**
|
|
442
|
-
* Source unique ID of the object.
|
|
443
|
-
*/
|
|
444
|
-
fromObjectId: string;
|
|
445
|
-
/**
|
|
446
|
-
* Source object type.
|
|
447
|
-
*/
|
|
448
|
-
fromObjectTypeId: string;
|
|
449
|
-
labels: string[];
|
|
450
|
-
/**
|
|
451
|
-
* Target unique ID of the object.
|
|
452
|
-
*/
|
|
453
|
-
toObjectId: string;
|
|
454
|
-
/**
|
|
455
|
-
* Target object type.
|
|
456
|
-
*/
|
|
457
|
-
toObjectTypeId: string;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
462
|
-
*/
|
|
463
|
-
export interface NextPage {
|
|
464
|
-
/**
|
|
465
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
466
|
-
*/
|
|
467
|
-
after: string;
|
|
468
|
-
/**
|
|
469
|
-
* A URL that can be used to retrieve the next page results.
|
|
470
|
-
*/
|
|
471
|
-
link?: string;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export interface Paging {
|
|
475
|
-
next?: Schemas.NextPage;
|
|
476
|
-
prev?: Schemas.PreviousPage;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
481
|
-
*/
|
|
482
|
-
export interface PreviousPage {
|
|
483
|
-
/**
|
|
484
|
-
* A paging cursor token for retrieving previous pages.
|
|
485
|
-
*/
|
|
486
|
-
before: string;
|
|
487
|
-
/**
|
|
488
|
-
* A URL that can be used to retrieve the previous pages' results.
|
|
489
|
-
*/
|
|
490
|
-
link?: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
export interface PublicAssociationsForObject {
|
|
494
|
-
to: Schemas.PublicObjectId;
|
|
495
|
-
/**
|
|
496
|
-
* An array of association specifications, each detailing a type of association between the objects, including its category and type ID.
|
|
497
|
-
*/
|
|
498
|
-
types: Schemas.AssociationSpec[];
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
export interface PublicDefaultAssociation {
|
|
502
|
-
associationSpec: Schemas.AssociationSpec;
|
|
503
|
-
from: Schemas.PublicObjectId;
|
|
504
|
-
to: Schemas.PublicObjectId;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Input data for merging two records.
|
|
509
|
-
*/
|
|
510
|
-
export interface PublicMergeInput {
|
|
511
|
-
/**
|
|
512
|
-
* The ID of the object that will be merged into the primary object.
|
|
513
|
-
*/
|
|
514
|
-
objectIdToMerge: string;
|
|
515
|
-
/**
|
|
516
|
-
* The ID of the primary object into which another object will be merged.
|
|
517
|
-
*/
|
|
518
|
-
primaryObjectId: string;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Contains the Id of a Public Object
|
|
523
|
-
*/
|
|
524
|
-
export interface PublicObjectId {
|
|
525
|
-
/**
|
|
526
|
-
* The unique ID of the object.
|
|
527
|
-
*/
|
|
528
|
-
id: string;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Describes a search request
|
|
533
|
-
*/
|
|
534
|
-
export interface PublicObjectSearchRequest {
|
|
535
|
-
/**
|
|
536
|
-
* A paging cursor token for retrieving subsequent pages.
|
|
537
|
-
*/
|
|
538
|
-
after: string;
|
|
539
|
-
/**
|
|
540
|
-
* Up to 6 groups of filters defining additional query criteria.
|
|
541
|
-
*/
|
|
542
|
-
filterGroups: Schemas.FilterGroup[];
|
|
543
|
-
/**
|
|
544
|
-
* The maximum results to return, up to 200 objects.
|
|
545
|
-
*/
|
|
546
|
-
limit: number;
|
|
547
|
-
/**
|
|
548
|
-
* A list of property names to include in the response.
|
|
549
|
-
*/
|
|
550
|
-
properties: string[];
|
|
551
|
-
/**
|
|
552
|
-
* The search query string, up to 3000 characters.
|
|
553
|
-
*/
|
|
554
|
-
query?: string;
|
|
555
|
-
/**
|
|
556
|
-
* Specifies sorting order based on object properties.
|
|
557
|
-
*/
|
|
558
|
-
sorts: string[];
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* A simple public object.
|
|
563
|
-
*/
|
|
564
|
-
export interface SimplePublicObject {
|
|
565
|
-
/**
|
|
566
|
-
* Whether the object is archived.
|
|
567
|
-
*/
|
|
568
|
-
archived: boolean;
|
|
569
|
-
/**
|
|
570
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
571
|
-
*/
|
|
572
|
-
archivedAt?: string;
|
|
573
|
-
/**
|
|
574
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
575
|
-
*/
|
|
576
|
-
createdAt: string;
|
|
577
|
-
/**
|
|
578
|
-
* The unique ID of the object.
|
|
579
|
-
*/
|
|
580
|
-
id: string;
|
|
581
|
-
/**
|
|
582
|
-
* An identifier used for tracing the write request for the object.
|
|
583
|
-
*/
|
|
584
|
-
objectWriteTraceId?: string;
|
|
585
|
-
/**
|
|
586
|
-
* Key-value pairs representing the properties of the object.
|
|
587
|
-
*/
|
|
588
|
-
properties: Record<string, string>;
|
|
589
|
-
/**
|
|
590
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
591
|
-
*/
|
|
592
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
593
|
-
/**
|
|
594
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
595
|
-
*/
|
|
596
|
-
updatedAt: string;
|
|
597
|
-
/**
|
|
598
|
-
* The URL associated with the object.
|
|
599
|
-
*/
|
|
600
|
-
url?: string;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
605
|
-
*/
|
|
606
|
-
export interface SimplePublicObjectBatchInput {
|
|
607
|
-
/**
|
|
608
|
-
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
609
|
-
*/
|
|
610
|
-
id: string;
|
|
611
|
-
/**
|
|
612
|
-
* The name of a property whose values are unique for this object
|
|
613
|
-
*/
|
|
614
|
-
idProperty?: string;
|
|
615
|
-
/**
|
|
616
|
-
* A unique identifier for tracing the request.
|
|
617
|
-
*/
|
|
618
|
-
objectWriteTraceId?: string;
|
|
619
|
-
/**
|
|
620
|
-
* Key-value pairs representing the properties of the object.
|
|
621
|
-
*/
|
|
622
|
-
properties: Record<string, string>;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* An input object that contains a collection of objects to be created together in a batch.
|
|
627
|
-
*/
|
|
628
|
-
export interface SimplePublicObjectBatchInputForCreate {
|
|
629
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
630
|
-
/**
|
|
631
|
-
* An identifier used for tracing the creation or update request of the object.
|
|
632
|
-
*/
|
|
633
|
-
objectWriteTraceId?: string;
|
|
634
|
-
/**
|
|
635
|
-
* Key value pairs representing the properties of the object.
|
|
636
|
-
*/
|
|
637
|
-
properties: Record<string, string>;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Represents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
|
|
642
|
-
*/
|
|
643
|
-
export interface SimplePublicObjectBatchInputUpsert {
|
|
644
|
-
/**
|
|
645
|
-
* The unique ID of the object.
|
|
646
|
-
*/
|
|
647
|
-
id: string;
|
|
648
|
-
/**
|
|
649
|
-
* The name of a property whose values are unique for this object
|
|
650
|
-
*/
|
|
651
|
-
idProperty?: string;
|
|
652
|
-
/**
|
|
653
|
-
* An identifier for tracing the creation request.
|
|
654
|
-
*/
|
|
655
|
-
objectWriteTraceId?: string;
|
|
656
|
-
/**
|
|
657
|
-
* Key value pairs representing the properties of the object.
|
|
658
|
-
*/
|
|
659
|
-
properties: Record<string, string>;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Contains the Id of a Public Object
|
|
664
|
-
*/
|
|
665
|
-
export interface SimplePublicObjectId {
|
|
666
|
-
/**
|
|
667
|
-
* The unique ID of the object.
|
|
668
|
-
*/
|
|
669
|
-
id: string;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
674
|
-
*/
|
|
675
|
-
export interface SimplePublicObjectInput {
|
|
676
|
-
/**
|
|
677
|
-
* Key value pairs representing the properties of the object.
|
|
678
|
-
*/
|
|
679
|
-
properties: Record<string, string>;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Is the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
|
|
684
|
-
*/
|
|
685
|
-
export interface SimplePublicObjectInputForCreate {
|
|
686
|
-
associations: Schemas.PublicAssociationsForObject[];
|
|
687
|
-
/**
|
|
688
|
-
* Key-value pairs for setting properties for the new object.
|
|
689
|
-
*/
|
|
690
|
-
properties: Record<string, string>;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
695
|
-
*/
|
|
696
|
-
export interface SimplePublicObjectWithAssociations {
|
|
697
|
-
/**
|
|
698
|
-
* Whether the object is archived.
|
|
699
|
-
*/
|
|
700
|
-
archived: boolean;
|
|
701
|
-
/**
|
|
702
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
703
|
-
*/
|
|
704
|
-
archivedAt?: string;
|
|
705
|
-
/**
|
|
706
|
-
* A list defining relationships with other objects.
|
|
707
|
-
*/
|
|
708
|
-
associations?: Record<string, Schemas.CollectionResponseAssociatedId>;
|
|
709
|
-
/**
|
|
710
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
711
|
-
*/
|
|
712
|
-
createdAt: string;
|
|
713
|
-
/**
|
|
714
|
-
* The unique ID of the object.
|
|
715
|
-
*/
|
|
716
|
-
id: string;
|
|
717
|
-
/**
|
|
718
|
-
* An identifier used for tracing the creation or update request of the object.
|
|
719
|
-
*/
|
|
720
|
-
objectWriteTraceId?: string;
|
|
721
|
-
/**
|
|
722
|
-
* Key value pairs representing the properties of the object.
|
|
723
|
-
*/
|
|
724
|
-
properties: Record<string, string>;
|
|
725
|
-
/**
|
|
726
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
727
|
-
*/
|
|
728
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
729
|
-
/**
|
|
730
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
731
|
-
*/
|
|
732
|
-
updatedAt: string;
|
|
733
|
-
/**
|
|
734
|
-
* The URL on the API that provide direct navigation to the corresponding UI pages for the connectors.
|
|
735
|
-
*/
|
|
736
|
-
url?: string;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Represents a CRM object that has either been created or updated (upserted)
|
|
741
|
-
*/
|
|
742
|
-
export interface SimplePublicUpsertObject {
|
|
743
|
-
/**
|
|
744
|
-
* Whether the object is archived.
|
|
745
|
-
*/
|
|
746
|
-
archived: boolean;
|
|
747
|
-
/**
|
|
748
|
-
* The timestamp when the object was archived, in ISO 8601 format.
|
|
749
|
-
*/
|
|
750
|
-
archivedAt?: string;
|
|
751
|
-
/**
|
|
752
|
-
* The timestamp when the object was created, in ISO 8601 format.
|
|
753
|
-
*/
|
|
754
|
-
createdAt: string;
|
|
755
|
-
/**
|
|
756
|
-
* The unique ID of the object.
|
|
757
|
-
*/
|
|
758
|
-
id: string;
|
|
759
|
-
/**
|
|
760
|
-
* Whether the property is new.
|
|
761
|
-
*/
|
|
762
|
-
new: boolean;
|
|
763
|
-
/**
|
|
764
|
-
* An identifier used for tracing the write request for the object.
|
|
765
|
-
*/
|
|
766
|
-
objectWriteTraceId?: string;
|
|
767
|
-
/**
|
|
768
|
-
* Key value pairs representing the properties of the object.
|
|
769
|
-
*/
|
|
770
|
-
properties: Record<string, string>;
|
|
771
|
-
/**
|
|
772
|
-
* Key-value pairs representing the properties of the object along with their history.
|
|
773
|
-
*/
|
|
774
|
-
propertiesWithHistory?: Record<string, Schemas.ValueWithTimestamp[]>;
|
|
775
|
-
/**
|
|
776
|
-
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
777
|
-
*/
|
|
778
|
-
updatedAt: string;
|
|
779
|
-
/**
|
|
780
|
-
* The URL associated with the object.
|
|
781
|
-
*/
|
|
782
|
-
url?: string;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
787
|
-
*/
|
|
788
|
-
export interface StandardError {
|
|
789
|
-
/**
|
|
790
|
-
* The main category of the error.
|
|
791
|
-
*/
|
|
792
|
-
category: string;
|
|
793
|
-
/**
|
|
794
|
-
* Additional context-specific information related to the error.
|
|
795
|
-
*/
|
|
796
|
-
context: Record<string, string[]>;
|
|
797
|
-
/**
|
|
798
|
-
* The detailed error objects.
|
|
799
|
-
*/
|
|
800
|
-
errors: Schemas.ErrorDetail[];
|
|
801
|
-
/**
|
|
802
|
-
* A unique ID for the error instance.
|
|
803
|
-
*/
|
|
804
|
-
id?: string;
|
|
805
|
-
/**
|
|
806
|
-
* URLs linking to documentation or resources associated with the error.
|
|
807
|
-
*/
|
|
808
|
-
links: Record<string, string>;
|
|
809
|
-
/**
|
|
810
|
-
* A human-readable string describing the error and possible remediation steps.
|
|
811
|
-
*/
|
|
812
|
-
message: string;
|
|
813
|
-
/**
|
|
814
|
-
* The HTTP status code associated with the error.
|
|
815
|
-
*/
|
|
816
|
-
status: string;
|
|
817
|
-
/**
|
|
818
|
-
* A more specific error category within each main category.
|
|
819
|
-
*/
|
|
820
|
-
subCategory?: Record<string, never>;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* Property model that includes timestamp.
|
|
825
|
-
*/
|
|
826
|
-
export interface ValueWithTimestamp {
|
|
827
|
-
/**
|
|
828
|
-
* The unique ID of the property.
|
|
829
|
-
*/
|
|
830
|
-
sourceId?: string;
|
|
831
|
-
/**
|
|
832
|
-
* A human-readable label.
|
|
833
|
-
*/
|
|
834
|
-
sourceLabel?: string;
|
|
835
|
-
/**
|
|
836
|
-
* The property type.
|
|
837
|
-
*/
|
|
838
|
-
sourceType: string;
|
|
839
|
-
/**
|
|
840
|
-
* The timestamp when the property was updated, in ISO 8601 format.
|
|
841
|
-
*/
|
|
842
|
-
timestamp: string;
|
|
843
|
-
/**
|
|
844
|
-
* The ID of the user who last updated the property.
|
|
845
|
-
*/
|
|
846
|
-
updatedByUserId?: number;
|
|
847
|
-
/**
|
|
848
|
-
* The property value.
|
|
849
|
-
*/
|
|
850
|
-
value: string;
|
|
851
|
-
}
|
|
222
|
+
/**
|
|
223
|
+
* Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
|
|
224
|
+
*/
|
|
225
|
+
export interface Filter {
|
|
226
|
+
/**
|
|
227
|
+
* The upper boundary value when using ranged-based filters.
|
|
228
|
+
*/
|
|
229
|
+
highValue?: string;
|
|
230
|
+
/**
|
|
231
|
+
* null
|
|
232
|
+
*/
|
|
233
|
+
operator:
|
|
234
|
+
| 'BETWEEN'
|
|
235
|
+
| 'CONTAINS_TOKEN'
|
|
236
|
+
| 'EQ'
|
|
237
|
+
| 'GT'
|
|
238
|
+
| 'GTE'
|
|
239
|
+
| 'HAS_PROPERTY'
|
|
240
|
+
| 'IN'
|
|
241
|
+
| 'LT'
|
|
242
|
+
| 'LTE'
|
|
243
|
+
| 'NEQ'
|
|
244
|
+
| 'NOT_CONTAINS_TOKEN'
|
|
245
|
+
| 'NOT_HAS_PROPERTY'
|
|
246
|
+
| 'NOT_IN';
|
|
247
|
+
/**
|
|
248
|
+
* The name of the property to apply the filter to.
|
|
249
|
+
*/
|
|
250
|
+
propertyName: string;
|
|
251
|
+
/**
|
|
252
|
+
* The value to match against the property.
|
|
253
|
+
*/
|
|
254
|
+
value?: string;
|
|
255
|
+
/**
|
|
256
|
+
* The values to match against the property.
|
|
257
|
+
*/
|
|
258
|
+
values?: string[];
|
|
852
259
|
}
|
|
853
260
|
|
|
854
|
-
export
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
261
|
+
export interface FilterGroup {
|
|
262
|
+
/**
|
|
263
|
+
* An array of Filter objects, each defining a specific filtering criterion. This property is required.
|
|
264
|
+
*/
|
|
265
|
+
filters: Filter[];
|
|
266
|
+
}
|
|
859
267
|
|
|
860
|
-
|
|
861
|
-
|
|
268
|
+
export interface ForwardPaging {
|
|
269
|
+
next?: NextPage;
|
|
862
270
|
}
|
|
863
271
|
|
|
864
272
|
/**
|
|
865
|
-
*
|
|
866
|
-
* ```ts
|
|
867
|
-
* import { crmCustomObjects } from '@hubspot/api-client-core';
|
|
868
|
-
* client.send(crmCustomObjects.advanced.merge(input));
|
|
869
|
-
* ```
|
|
273
|
+
* The relationship descriptors applicable between two object types.
|
|
870
274
|
*/
|
|
871
|
-
export interface
|
|
275
|
+
export interface LabelsBetweenObjectPair {
|
|
872
276
|
/**
|
|
873
|
-
*
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
277
|
+
* Source unique ID of the object.
|
|
278
|
+
*/
|
|
279
|
+
fromObjectId: string;
|
|
280
|
+
/**
|
|
281
|
+
* Source object type.
|
|
877
282
|
*/
|
|
878
|
-
|
|
283
|
+
fromObjectTypeId: string;
|
|
284
|
+
labels: string[];
|
|
285
|
+
/**
|
|
286
|
+
* Target unique ID of the object.
|
|
287
|
+
*/
|
|
288
|
+
toObjectId: string;
|
|
289
|
+
/**
|
|
290
|
+
* Target object type.
|
|
291
|
+
*/
|
|
292
|
+
toObjectTypeId: string;
|
|
879
293
|
}
|
|
880
294
|
|
|
881
295
|
/**
|
|
882
|
-
*
|
|
883
|
-
* ```ts
|
|
884
|
-
* import { crmCustomObjects } from '@hubspot/api-client-core';
|
|
885
|
-
* client.send(crmCustomObjects.basic.create(input));
|
|
886
|
-
* ```
|
|
296
|
+
* Specifies the paging information needed to retrieve the next set of results in a paginated API response
|
|
887
297
|
*/
|
|
888
|
-
export interface
|
|
298
|
+
export interface NextPage {
|
|
889
299
|
/**
|
|
890
|
-
*
|
|
891
|
-
* @apiPath /crm/objects/2026-03/{objectType}
|
|
892
|
-
* @apiMethod POST
|
|
893
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
300
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
894
301
|
*/
|
|
895
|
-
|
|
302
|
+
after: string;
|
|
896
303
|
/**
|
|
897
|
-
*
|
|
898
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
899
|
-
* @apiMethod DELETE
|
|
900
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
304
|
+
* A URL that can be used to retrieve the next page results.
|
|
901
305
|
*/
|
|
902
|
-
|
|
306
|
+
link?: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export interface Paging {
|
|
310
|
+
next?: NextPage;
|
|
311
|
+
prev?: PreviousPage;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* specifies the paging information needed to retrieve the previous set of results in a paginated API response
|
|
316
|
+
*/
|
|
317
|
+
export interface PreviousPage {
|
|
903
318
|
/**
|
|
904
|
-
*
|
|
905
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
906
|
-
* @apiMethod DELETE
|
|
907
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
319
|
+
* A paging cursor token for retrieving previous pages.
|
|
908
320
|
*/
|
|
909
|
-
|
|
321
|
+
before: string;
|
|
910
322
|
/**
|
|
911
|
-
*
|
|
912
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
913
|
-
* @apiMethod GET
|
|
914
|
-
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
323
|
+
* A URL that can be used to retrieve the previous pages' results.
|
|
915
324
|
*/
|
|
916
|
-
|
|
325
|
+
link?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface PublicAssociationsForObject {
|
|
329
|
+
to: PublicObjectId;
|
|
917
330
|
/**
|
|
918
|
-
*
|
|
919
|
-
|
|
920
|
-
|
|
331
|
+
* An array of association specifications, each detailing a type of association between the objects, including its category and type ID.
|
|
332
|
+
*/
|
|
333
|
+
types: AssociationSpec[];
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export interface PublicDefaultAssociation {
|
|
337
|
+
associationSpec: AssociationSpec;
|
|
338
|
+
from: PublicObjectId;
|
|
339
|
+
to: PublicObjectId;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Input data for merging two records.
|
|
344
|
+
*/
|
|
345
|
+
export interface PublicMergeInput {
|
|
346
|
+
/**
|
|
347
|
+
* The ID of the object that will be merged into the primary object.
|
|
348
|
+
*/
|
|
349
|
+
objectIdToMerge: string;
|
|
350
|
+
/**
|
|
351
|
+
* The ID of the primary object into which another object will be merged.
|
|
352
|
+
*/
|
|
353
|
+
primaryObjectId: string;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Contains the Id of a Public Object
|
|
358
|
+
*/
|
|
359
|
+
export interface PublicObjectId {
|
|
360
|
+
/**
|
|
361
|
+
* The unique ID of the object.
|
|
362
|
+
*/
|
|
363
|
+
id: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Describes a search request
|
|
368
|
+
*/
|
|
369
|
+
export interface PublicObjectSearchRequest {
|
|
370
|
+
/**
|
|
371
|
+
* A paging cursor token for retrieving subsequent pages.
|
|
372
|
+
*/
|
|
373
|
+
after: string;
|
|
374
|
+
/**
|
|
375
|
+
* Up to 6 groups of filters defining additional query criteria.
|
|
376
|
+
*/
|
|
377
|
+
filterGroups: FilterGroup[];
|
|
378
|
+
/**
|
|
379
|
+
* The maximum results to return, up to 200 objects.
|
|
380
|
+
*/
|
|
381
|
+
limit: number;
|
|
382
|
+
/**
|
|
383
|
+
* A list of property names to include in the response.
|
|
384
|
+
*/
|
|
385
|
+
properties: string[];
|
|
386
|
+
/**
|
|
387
|
+
* The search query string, up to 3000 characters.
|
|
388
|
+
*/
|
|
389
|
+
query?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Specifies sorting order based on object properties.
|
|
392
|
+
*/
|
|
393
|
+
sorts: string[];
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* A simple public object.
|
|
398
|
+
*/
|
|
399
|
+
export interface SimplePublicObject {
|
|
400
|
+
/**
|
|
401
|
+
* Whether the object is archived.
|
|
402
|
+
*/
|
|
403
|
+
archived: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
406
|
+
*/
|
|
407
|
+
archivedAt?: string;
|
|
408
|
+
/**
|
|
409
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
410
|
+
*/
|
|
411
|
+
createdAt: string;
|
|
412
|
+
/**
|
|
413
|
+
* The unique ID of the object.
|
|
414
|
+
*/
|
|
415
|
+
id: string;
|
|
416
|
+
/**
|
|
417
|
+
* An identifier used for tracing the write request for the object.
|
|
418
|
+
*/
|
|
419
|
+
objectWriteTraceId?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Key-value pairs representing the properties of the object.
|
|
422
|
+
*/
|
|
423
|
+
properties: Record<string, string>;
|
|
424
|
+
/**
|
|
425
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
426
|
+
*/
|
|
427
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
428
|
+
/**
|
|
429
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
430
|
+
*/
|
|
431
|
+
updatedAt: string;
|
|
432
|
+
/**
|
|
433
|
+
* The URL associated with the object.
|
|
434
|
+
*/
|
|
435
|
+
url?: string;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
|
|
440
|
+
*/
|
|
441
|
+
export interface SimplePublicObjectBatchInput {
|
|
442
|
+
/**
|
|
443
|
+
* The id to be updated. This can be the object id, or the unique property value of the idProperty property
|
|
444
|
+
*/
|
|
445
|
+
id: string;
|
|
446
|
+
/**
|
|
447
|
+
* The name of a property whose values are unique for this object
|
|
448
|
+
*/
|
|
449
|
+
idProperty?: string;
|
|
450
|
+
/**
|
|
451
|
+
* A unique identifier for tracing the request.
|
|
452
|
+
*/
|
|
453
|
+
objectWriteTraceId?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Key-value pairs representing the properties of the object.
|
|
456
|
+
*/
|
|
457
|
+
properties: Record<string, string>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* An input object that contains a collection of objects to be created together in a batch.
|
|
462
|
+
*/
|
|
463
|
+
export interface SimplePublicObjectBatchInputForCreate {
|
|
464
|
+
associations: PublicAssociationsForObject[];
|
|
465
|
+
/**
|
|
466
|
+
* An identifier used for tracing the creation or update request of the object.
|
|
467
|
+
*/
|
|
468
|
+
objectWriteTraceId?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Key value pairs representing the properties of the object.
|
|
471
|
+
*/
|
|
472
|
+
properties: Record<string, string>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Represents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
|
|
477
|
+
*/
|
|
478
|
+
export interface SimplePublicObjectBatchInputUpsert {
|
|
479
|
+
/**
|
|
480
|
+
* The unique ID of the object.
|
|
481
|
+
*/
|
|
482
|
+
id: string;
|
|
483
|
+
/**
|
|
484
|
+
* The name of a property whose values are unique for this object
|
|
485
|
+
*/
|
|
486
|
+
idProperty?: string;
|
|
487
|
+
/**
|
|
488
|
+
* An identifier for tracing the creation request.
|
|
489
|
+
*/
|
|
490
|
+
objectWriteTraceId?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Key value pairs representing the properties of the object.
|
|
493
|
+
*/
|
|
494
|
+
properties: Record<string, string>;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Contains the Id of a Public Object
|
|
499
|
+
*/
|
|
500
|
+
export interface SimplePublicObjectId {
|
|
501
|
+
/**
|
|
502
|
+
* The unique ID of the object.
|
|
503
|
+
*/
|
|
504
|
+
id: string;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Represents the input required to create or update a CRM object, containing an object with property names and their corresponding values.
|
|
509
|
+
*/
|
|
510
|
+
export interface SimplePublicObjectInput {
|
|
511
|
+
/**
|
|
512
|
+
* Key value pairs representing the properties of the object.
|
|
513
|
+
*/
|
|
514
|
+
properties: Record<string, string>;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Is the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
|
|
519
|
+
*/
|
|
520
|
+
export interface SimplePublicObjectInputForCreate {
|
|
521
|
+
associations: PublicAssociationsForObject[];
|
|
522
|
+
/**
|
|
523
|
+
* Key-value pairs for setting properties for the new object.
|
|
524
|
+
*/
|
|
525
|
+
properties: Record<string, string>;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
|
|
530
|
+
*/
|
|
531
|
+
export interface SimplePublicObjectWithAssociations {
|
|
532
|
+
/**
|
|
533
|
+
* Whether the object is archived.
|
|
534
|
+
*/
|
|
535
|
+
archived: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
538
|
+
*/
|
|
539
|
+
archivedAt?: string;
|
|
540
|
+
/**
|
|
541
|
+
* A list defining relationships with other objects.
|
|
542
|
+
*/
|
|
543
|
+
associations?: Record<string, CollectionResponseAssociatedId>;
|
|
544
|
+
/**
|
|
545
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
546
|
+
*/
|
|
547
|
+
createdAt: string;
|
|
548
|
+
/**
|
|
549
|
+
* The unique ID of the object.
|
|
550
|
+
*/
|
|
551
|
+
id: string;
|
|
552
|
+
/**
|
|
553
|
+
* An identifier used for tracing the creation or update request of the object.
|
|
554
|
+
*/
|
|
555
|
+
objectWriteTraceId?: string;
|
|
556
|
+
/**
|
|
557
|
+
* Key value pairs representing the properties of the object.
|
|
558
|
+
*/
|
|
559
|
+
properties: Record<string, string>;
|
|
560
|
+
/**
|
|
561
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
562
|
+
*/
|
|
563
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
564
|
+
/**
|
|
565
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
566
|
+
*/
|
|
567
|
+
updatedAt: string;
|
|
568
|
+
/**
|
|
569
|
+
* The URL on the API that provide direct navigation to the corresponding UI pages for the connectors.
|
|
570
|
+
*/
|
|
571
|
+
url?: string;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Represents a CRM object that has either been created or updated (upserted)
|
|
576
|
+
*/
|
|
577
|
+
export interface SimplePublicUpsertObject {
|
|
578
|
+
/**
|
|
579
|
+
* Whether the object is archived.
|
|
580
|
+
*/
|
|
581
|
+
archived: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* The timestamp when the object was archived, in ISO 8601 format.
|
|
584
|
+
*/
|
|
585
|
+
archivedAt?: string;
|
|
586
|
+
/**
|
|
587
|
+
* The timestamp when the object was created, in ISO 8601 format.
|
|
588
|
+
*/
|
|
589
|
+
createdAt: string;
|
|
590
|
+
/**
|
|
591
|
+
* The unique ID of the object.
|
|
592
|
+
*/
|
|
593
|
+
id: string;
|
|
594
|
+
/**
|
|
595
|
+
* Whether the property is new.
|
|
596
|
+
*/
|
|
597
|
+
new: boolean;
|
|
598
|
+
/**
|
|
599
|
+
* An identifier used for tracing the write request for the object.
|
|
600
|
+
*/
|
|
601
|
+
objectWriteTraceId?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Key value pairs representing the properties of the object.
|
|
604
|
+
*/
|
|
605
|
+
properties: Record<string, string>;
|
|
606
|
+
/**
|
|
607
|
+
* Key-value pairs representing the properties of the object along with their history.
|
|
608
|
+
*/
|
|
609
|
+
propertiesWithHistory?: Record<string, ValueWithTimestamp[]>;
|
|
610
|
+
/**
|
|
611
|
+
* The timestamp when the object was last updated, in ISO 8601 format.
|
|
612
|
+
*/
|
|
613
|
+
updatedAt: string;
|
|
614
|
+
/**
|
|
615
|
+
* The URL associated with the object.
|
|
616
|
+
*/
|
|
617
|
+
url?: string;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
|
|
622
|
+
*/
|
|
623
|
+
export interface StandardError {
|
|
624
|
+
/**
|
|
625
|
+
* The main category of the error.
|
|
626
|
+
*/
|
|
627
|
+
category: string;
|
|
628
|
+
/**
|
|
629
|
+
* Additional context-specific information related to the error.
|
|
630
|
+
*/
|
|
631
|
+
context: Record<string, string[]>;
|
|
632
|
+
/**
|
|
633
|
+
* The detailed error objects.
|
|
634
|
+
*/
|
|
635
|
+
errors: ErrorDetail[];
|
|
636
|
+
/**
|
|
637
|
+
* A unique ID for the error instance.
|
|
638
|
+
*/
|
|
639
|
+
id?: string;
|
|
640
|
+
/**
|
|
641
|
+
* URLs linking to documentation or resources associated with the error.
|
|
642
|
+
*/
|
|
643
|
+
links: Record<string, string>;
|
|
644
|
+
/**
|
|
645
|
+
* A human-readable string describing the error and possible remediation steps.
|
|
646
|
+
*/
|
|
647
|
+
message: string;
|
|
648
|
+
/**
|
|
649
|
+
* The HTTP status code associated with the error.
|
|
650
|
+
*/
|
|
651
|
+
status: string;
|
|
652
|
+
/**
|
|
653
|
+
* A more specific error category within each main category.
|
|
654
|
+
*/
|
|
655
|
+
subCategory?: Record<string, never>;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Property model that includes timestamp.
|
|
660
|
+
*/
|
|
661
|
+
export interface ValueWithTimestamp {
|
|
662
|
+
/**
|
|
663
|
+
* The unique ID of the property.
|
|
664
|
+
*/
|
|
665
|
+
sourceId?: string;
|
|
666
|
+
/**
|
|
667
|
+
* A human-readable label.
|
|
668
|
+
*/
|
|
669
|
+
sourceLabel?: string;
|
|
670
|
+
/**
|
|
671
|
+
* The property type.
|
|
672
|
+
*/
|
|
673
|
+
sourceType: string;
|
|
674
|
+
/**
|
|
675
|
+
* The timestamp when the property was updated, in ISO 8601 format.
|
|
676
|
+
*/
|
|
677
|
+
timestamp: string;
|
|
678
|
+
/**
|
|
679
|
+
* The ID of the user who last updated the property.
|
|
680
|
+
*/
|
|
681
|
+
updatedByUserId?: number;
|
|
682
|
+
/**
|
|
683
|
+
* The property value.
|
|
684
|
+
*/
|
|
685
|
+
value: string;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export namespace CrmCustomObjectsCrmAssociations {
|
|
690
|
+
export interface CreateInput {
|
|
691
|
+
fromObjectId: string;
|
|
692
|
+
fromObjectType: string;
|
|
693
|
+
toObjectId: string;
|
|
694
|
+
toObjectType: string;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export type CreateOutput =
|
|
698
|
+
CRMCustomObjectsSchemas.BatchResponsePublicDefaultAssociation;
|
|
699
|
+
|
|
700
|
+
export interface DeleteInput {
|
|
701
|
+
objectId: string;
|
|
702
|
+
objectType: string;
|
|
703
|
+
toObjectId: string;
|
|
704
|
+
toObjectType: string;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export type DeleteOutput = void;
|
|
708
|
+
|
|
709
|
+
export interface UpdateLabelsInput {
|
|
710
|
+
data: CRMCustomObjectsSchemas.AssociationSpec[];
|
|
711
|
+
objectId: string;
|
|
712
|
+
objectType: string;
|
|
713
|
+
toObjectId: string;
|
|
714
|
+
toObjectType: string;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export type UpdateLabelsOutput =
|
|
718
|
+
CRMCustomObjectsSchemas.LabelsBetweenObjectPair;
|
|
719
|
+
/**
|
|
720
|
+
* Usage example:
|
|
721
|
+
* ```ts
|
|
722
|
+
* import { crmCustomObjectsCrmAssociations } from '@hubspot/api-client-core';
|
|
723
|
+
* client.send(crmCustomObjectsCrmAssociations.create(input));
|
|
724
|
+
* ```
|
|
725
|
+
*/
|
|
726
|
+
export interface API {
|
|
727
|
+
/**
|
|
728
|
+
* Create the default (most generic) association type between two object types
|
|
729
|
+
* @apiPath /crm/objects/2026-03/{fromObjectType}/{fromObjectId}/associations/default/{toObjectType}/{toObjectId}
|
|
730
|
+
* @apiMethod PUT
|
|
921
731
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
922
732
|
*/
|
|
923
|
-
|
|
733
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
924
734
|
/**
|
|
925
|
-
*
|
|
926
|
-
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
927
|
-
* @apiMethod
|
|
735
|
+
* deletes all associations between two records.
|
|
736
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
737
|
+
* @apiMethod DELETE
|
|
928
738
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
929
739
|
*/
|
|
930
|
-
|
|
740
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
931
741
|
/**
|
|
932
742
|
* Set association labels between two records.
|
|
933
743
|
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}
|
|
934
744
|
* @apiMethod PUT
|
|
935
745
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
936
746
|
*/
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
747
|
+
updateLabels: (input: UpdateLabelsInput) => Operation<UpdateLabelsOutput>;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export namespace CrmCustomObjectsCrmObjectsCustom {
|
|
752
|
+
export interface MergeInput {
|
|
753
|
+
data: CRMCustomObjectsSchemas.PublicMergeInput;
|
|
754
|
+
objectType: string;
|
|
940
755
|
}
|
|
941
756
|
|
|
757
|
+
export type MergeOutput = CRMCustomObjectsSchemas.SimplePublicObject;
|
|
942
758
|
/**
|
|
943
759
|
* Usage example:
|
|
944
760
|
* ```ts
|
|
945
|
-
* import {
|
|
946
|
-
* client.send(
|
|
761
|
+
* import { crmCustomObjectsCrmObjectsCustom } from '@hubspot/api-client-core';
|
|
762
|
+
* client.send(crmCustomObjectsCrmObjectsCustom.merge(input));
|
|
947
763
|
* ```
|
|
948
764
|
*/
|
|
949
|
-
export interface
|
|
765
|
+
export interface API {
|
|
950
766
|
/**
|
|
951
|
-
*
|
|
952
|
-
* @apiPath /crm/objects/2026-03/{
|
|
953
|
-
* @apiMethod
|
|
767
|
+
* Merge two objects with same type
|
|
768
|
+
* @apiPath /crm/objects/2026-03/{objectType}/merge
|
|
769
|
+
* @apiMethod POST
|
|
954
770
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
955
771
|
*/
|
|
956
|
-
|
|
772
|
+
merge: (input: MergeInput) => Operation<MergeOutput>;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export namespace CrmCustomObjectsCrmObjectsCustomBatch {
|
|
777
|
+
export interface CreateInput {
|
|
778
|
+
data: CRMCustomObjectsSchemas.BatchInputSimplePublicObjectBatchInputForCreate;
|
|
779
|
+
objectType: string;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export type CreateOutput =
|
|
783
|
+
CRMCustomObjectsSchemas.BatchResponseSimplePublicObject;
|
|
784
|
+
|
|
785
|
+
export interface DeleteInput {
|
|
786
|
+
data: CRMCustomObjectsSchemas.BatchInputSimplePublicObjectId;
|
|
787
|
+
objectType: string;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export type DeleteOutput = void;
|
|
791
|
+
|
|
792
|
+
export interface GetInput {
|
|
793
|
+
/**
|
|
794
|
+
* Whether to return only results that have been archived.
|
|
795
|
+
*/
|
|
796
|
+
archived?: boolean;
|
|
797
|
+
data: CRMCustomObjectsSchemas.BatchReadInputSimplePublicObjectId;
|
|
798
|
+
objectType: string;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
export type GetOutput =
|
|
802
|
+
CRMCustomObjectsSchemas.BatchResponseSimplePublicObject;
|
|
803
|
+
|
|
804
|
+
export interface UpdateInput {
|
|
805
|
+
data: CRMCustomObjectsSchemas.BatchInputSimplePublicObjectBatchInput;
|
|
806
|
+
objectType: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export type UpdateOutput =
|
|
810
|
+
CRMCustomObjectsSchemas.BatchResponseSimplePublicObject;
|
|
811
|
+
|
|
812
|
+
export interface UpsertInput {
|
|
813
|
+
data: CRMCustomObjectsSchemas.BatchInputSimplePublicObjectBatchInputUpsert;
|
|
814
|
+
objectType: string;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export type UpsertOutput =
|
|
818
|
+
CRMCustomObjectsSchemas.BatchResponseSimplePublicUpsertObject;
|
|
819
|
+
/**
|
|
820
|
+
* Usage example:
|
|
821
|
+
* ```ts
|
|
822
|
+
* import { crmCustomObjectsCrmObjectsCustomBatch } from '@hubspot/api-client-core';
|
|
823
|
+
* client.send(crmCustomObjectsCrmObjectsCustomBatch.create(input));
|
|
824
|
+
* ```
|
|
825
|
+
*/
|
|
826
|
+
export interface API {
|
|
957
827
|
/**
|
|
958
828
|
* Create a batch of objects
|
|
959
829
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/create
|
|
960
830
|
* @apiMethod POST
|
|
961
831
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
962
832
|
*/
|
|
963
|
-
|
|
833
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
964
834
|
/**
|
|
965
835
|
* Archive a batch of objects by ID
|
|
966
836
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/archive
|
|
967
837
|
* @apiMethod POST
|
|
968
838
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
969
839
|
*/
|
|
970
|
-
delete: (input:
|
|
840
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
971
841
|
/**
|
|
972
842
|
* Read a batch of objects by internal ID, or unique property values
|
|
973
843
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/read
|
|
974
844
|
* @apiMethod POST
|
|
975
845
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
976
846
|
*/
|
|
977
|
-
get: (input:
|
|
847
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
978
848
|
/**
|
|
979
849
|
* Update a batch of objects by internal ID, or unique property values
|
|
980
850
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/update
|
|
981
851
|
* @apiMethod POST
|
|
982
852
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
983
853
|
*/
|
|
984
|
-
update: (input:
|
|
854
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
985
855
|
/**
|
|
986
856
|
* Create or update a batch of objects by unique property values
|
|
987
857
|
* @apiPath /crm/objects/2026-03/{objectType}/batch/upsert
|
|
988
858
|
* @apiMethod POST
|
|
989
859
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
990
860
|
*/
|
|
991
|
-
upsert: (input:
|
|
861
|
+
upsert: (input: UpsertInput) => Operation<UpsertOutput>;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export namespace CrmCustomObjectsCrmObjectsGenericobjects {
|
|
866
|
+
export interface CreateInput {
|
|
867
|
+
data: CRMCustomObjectsSchemas.SimplePublicObjectInputForCreate;
|
|
868
|
+
objectType: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export type CreateOutput = CRMCustomObjectsSchemas.SimplePublicObject;
|
|
872
|
+
|
|
873
|
+
export interface DeleteInput {
|
|
874
|
+
objectId: string;
|
|
875
|
+
objectType: string;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export type DeleteOutput = void;
|
|
879
|
+
|
|
880
|
+
export interface GetInput {
|
|
881
|
+
/**
|
|
882
|
+
* Whether to return only results that have been archived.
|
|
883
|
+
*/
|
|
884
|
+
archived?: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
887
|
+
*/
|
|
888
|
+
associations?: string[];
|
|
889
|
+
/**
|
|
890
|
+
* The name of a property whose values are unique for this object type
|
|
891
|
+
*/
|
|
892
|
+
idProperty?: string;
|
|
893
|
+
objectId: string;
|
|
894
|
+
objectType: string;
|
|
895
|
+
/**
|
|
896
|
+
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
897
|
+
*/
|
|
898
|
+
properties?: string[];
|
|
899
|
+
/**
|
|
900
|
+
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
901
|
+
*/
|
|
902
|
+
propertiesWithHistory?: string[];
|
|
992
903
|
}
|
|
993
904
|
|
|
905
|
+
export type GetOutput =
|
|
906
|
+
CRMCustomObjectsSchemas.SimplePublicObjectWithAssociations;
|
|
907
|
+
|
|
908
|
+
export interface ListInput {
|
|
909
|
+
/**
|
|
910
|
+
* The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
911
|
+
*/
|
|
912
|
+
after?: string;
|
|
913
|
+
/**
|
|
914
|
+
* Whether to return only results that have been archived.
|
|
915
|
+
*/
|
|
916
|
+
archived?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
919
|
+
*/
|
|
920
|
+
associations?: string[];
|
|
921
|
+
/**
|
|
922
|
+
* The maximum number of results to display per page.
|
|
923
|
+
*/
|
|
924
|
+
limit?: number;
|
|
925
|
+
objectType: string;
|
|
926
|
+
/**
|
|
927
|
+
* A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
928
|
+
*/
|
|
929
|
+
properties?: string[];
|
|
930
|
+
/**
|
|
931
|
+
* A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
932
|
+
*/
|
|
933
|
+
propertiesWithHistory?: string[];
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export type ListOutput =
|
|
937
|
+
CRMCustomObjectsSchemas.CollectionResponseSimplePublicObjectWithAssociationsForwardPaging;
|
|
938
|
+
|
|
939
|
+
export interface SearchInput {
|
|
940
|
+
data: CRMCustomObjectsSchemas.PublicObjectSearchRequest;
|
|
941
|
+
objectType: string;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export type SearchOutput =
|
|
945
|
+
CRMCustomObjectsSchemas.CollectionResponseWithTotalSimplePublicObject;
|
|
946
|
+
|
|
947
|
+
export interface UpdateInput {
|
|
948
|
+
data: CRMCustomObjectsSchemas.SimplePublicObjectInput;
|
|
949
|
+
/**
|
|
950
|
+
* The name of a property whose values are unique for this object type
|
|
951
|
+
*/
|
|
952
|
+
idProperty?: string;
|
|
953
|
+
objectId: string;
|
|
954
|
+
objectType: string;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export type UpdateOutput = CRMCustomObjectsSchemas.SimplePublicObject;
|
|
994
958
|
/**
|
|
995
959
|
* Usage example:
|
|
996
960
|
* ```ts
|
|
997
|
-
* import {
|
|
998
|
-
* client.send(
|
|
961
|
+
* import { crmCustomObjectsCrmObjectsGenericobjects } from '@hubspot/api-client-core';
|
|
962
|
+
* client.send(crmCustomObjectsCrmObjectsGenericobjects.create(input));
|
|
999
963
|
* ```
|
|
1000
964
|
*/
|
|
1001
|
-
export interface
|
|
965
|
+
export interface API {
|
|
966
|
+
/**
|
|
967
|
+
* Create
|
|
968
|
+
* @apiPath /crm/objects/2026-03/{objectType}
|
|
969
|
+
* @apiMethod POST
|
|
970
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
971
|
+
*/
|
|
972
|
+
create: (input: CreateInput) => Operation<CreateOutput>;
|
|
973
|
+
/**
|
|
974
|
+
* Archive
|
|
975
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
976
|
+
* @apiMethod DELETE
|
|
977
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
978
|
+
*/
|
|
979
|
+
delete: (input: DeleteInput) => Operation<DeleteOutput>;
|
|
980
|
+
/**
|
|
981
|
+
* Read
|
|
982
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
983
|
+
* @apiMethod GET
|
|
984
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
985
|
+
*/
|
|
986
|
+
get: (input: GetInput) => Operation<GetOutput>;
|
|
987
|
+
/**
|
|
988
|
+
* List
|
|
989
|
+
* @apiPath /crm/objects/2026-03/{objectType}
|
|
990
|
+
* @apiMethod GET
|
|
991
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
992
|
+
*/
|
|
993
|
+
list: (input: ListInput) => Operation<ListOutput>;
|
|
1002
994
|
/**
|
|
1003
995
|
* Search for CRM objects of a specified type.
|
|
1004
996
|
* @apiPath /crm/objects/2026-03/{objectType}/search
|
|
1005
997
|
* @apiMethod POST
|
|
1006
998
|
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1007
999
|
*/
|
|
1008
|
-
search: (input:
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
* ```
|
|
1017
|
-
*/
|
|
1018
|
-
export interface API {
|
|
1019
|
-
advanced: AdvancedAPI;
|
|
1020
|
-
basic: BasicAPI;
|
|
1021
|
-
batch: BatchAPI;
|
|
1022
|
-
search: SearchAPI;
|
|
1000
|
+
search: (input: SearchInput) => Operation<SearchOutput>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Update
|
|
1003
|
+
* @apiPath /crm/objects/2026-03/{objectType}/{objectId}
|
|
1004
|
+
* @apiMethod PATCH
|
|
1005
|
+
* @requiredScopes crm-public-object-api-access, oauth, oauth-access
|
|
1006
|
+
*/
|
|
1007
|
+
update: (input: UpdateInput) => Operation<UpdateOutput>;
|
|
1023
1008
|
}
|
|
1024
1009
|
}
|