@wirecat/hubspot-cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/LICENSE +204 -0
- package/README.md +256 -2
- package/contracts/wirecat.json +1965 -0
- package/dist/bin/hubspot.d.ts +3 -0
- package/dist/bin/hubspot.d.ts.map +1 -0
- package/dist/bin/hubspot.js +40 -0
- package/dist/bin/hubspot.js.map +1 -0
- package/dist/bundle/all-profiles-64JAUYW4.js +279 -0
- package/dist/bundle/anthropic-VJOS4OUM.js +91 -0
- package/dist/bundle/app-server-422MCA7S.js +245 -0
- package/dist/bundle/bun-M3J2QTR3.js +169 -0
- package/dist/bundle/bun-sqlite-IX3XYA5F.js +76 -0
- package/dist/bundle/chunk-24ERVFJP.js +73 -0
- package/dist/bundle/chunk-2QZK5BEP.js +392 -0
- package/dist/bundle/chunk-2TWQIWWG.js +1328 -0
- package/dist/bundle/chunk-2VGD63G6.js +604 -0
- package/dist/bundle/chunk-2VGZRYEH.js +334 -0
- package/dist/bundle/chunk-36ITRDYY.js +63116 -0
- package/dist/bundle/chunk-43EKCUBJ.js +72 -0
- package/dist/bundle/chunk-4W6BMH45.js +731 -0
- package/dist/bundle/chunk-5A6ZYNAQ.js +2003 -0
- package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
- package/dist/bundle/chunk-5GBUCHRU.js +274 -0
- package/dist/bundle/chunk-5K7QLJMM.js +4072 -0
- package/dist/bundle/chunk-65TWQ7BV.js +54 -0
- package/dist/bundle/chunk-7ELMWE3P.js +12066 -0
- package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
- package/dist/bundle/chunk-B3MANLNK.js +602 -0
- package/dist/bundle/chunk-BKXDHU3G.js +1395 -0
- package/dist/bundle/chunk-C32AKHTY.js +2310 -0
- package/dist/bundle/chunk-CLAN3FES.js +1246 -0
- package/dist/bundle/chunk-CWXOXIWS.js +46 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DB2XKHI4.js +72 -0
- package/dist/bundle/chunk-DBEQI5YM.js +100 -0
- package/dist/bundle/chunk-DFCHHR5M.js +38 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DRWWJLI6.js +188 -0
- package/dist/bundle/chunk-DSP36YHQ.js +29 -0
- package/dist/bundle/chunk-E52JAS35.js +1028 -0
- package/dist/bundle/chunk-E5WLE7BM.js +78 -0
- package/dist/bundle/chunk-ECEZOLOD.js +230 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-FBCCBCFH.js +288 -0
- package/dist/bundle/chunk-FKA7DOCK.js +53 -0
- package/dist/bundle/chunk-FOZYMDRL.js +259 -0
- package/dist/bundle/chunk-FPUGMDJV.js +7 -0
- package/dist/bundle/chunk-FTFV3HFW.js +721 -0
- package/dist/bundle/chunk-H3TNVEQX.js +782 -0
- package/dist/bundle/chunk-HC5ZWE5X.js +193 -0
- package/dist/bundle/chunk-HCAZV5NP.js +95 -0
- package/dist/bundle/chunk-HTAN663T.js +4045 -0
- package/dist/bundle/chunk-HZRQLAHO.js +16 -0
- package/dist/bundle/chunk-IMJQRPLN.js +92 -0
- package/dist/bundle/chunk-JLDBMEKZ.js +106 -0
- package/dist/bundle/chunk-JRCPCVPI.js +9393 -0
- package/dist/bundle/chunk-LNV33FDC.js +786 -0
- package/dist/bundle/chunk-LOBVOGOE.js +66 -0
- package/dist/bundle/chunk-MVA5HVKL.js +1392 -0
- package/dist/bundle/chunk-N2XADGL4.js +76 -0
- package/dist/bundle/chunk-NHHJHXMQ.js +58 -0
- package/dist/bundle/chunk-NUU4WZVL.js +52 -0
- package/dist/bundle/chunk-NWHEHV3K.js +133 -0
- package/dist/bundle/chunk-NXERIDPJ.js +319 -0
- package/dist/bundle/chunk-O3DYRCIT.js +23 -0
- package/dist/bundle/chunk-O55RWNSH.js +161 -0
- package/dist/bundle/chunk-P5BHKKBI.js +206 -0
- package/dist/bundle/chunk-PPHBRESD.js +82 -0
- package/dist/bundle/chunk-PVKF24ZW.js +364 -0
- package/dist/bundle/chunk-QGFX5MXL.js +460 -0
- package/dist/bundle/chunk-QJW35N5V.js +761 -0
- package/dist/bundle/chunk-QU25DA5N.js +360 -0
- package/dist/bundle/chunk-RMIYKDUL.js +1068 -0
- package/dist/bundle/chunk-RR5MX5TM.js +142 -0
- package/dist/bundle/chunk-SAKK2YRU.js +218 -0
- package/dist/bundle/chunk-SDQGB4KB.js +185 -0
- package/dist/bundle/chunk-TBJYLC5K.js +2788 -0
- package/dist/bundle/chunk-TI46WQXQ.js +1197 -0
- package/dist/bundle/chunk-TKVL2C3B.js +170 -0
- package/dist/bundle/chunk-TOSCB4SO.js +1227 -0
- package/dist/bundle/chunk-TP7GDWVF.js +6848 -0
- package/dist/bundle/chunk-UUMUL4L3.js +72 -0
- package/dist/bundle/chunk-VIEYMDBR.js +41 -0
- package/dist/bundle/chunk-W53EJOFQ.js +63 -0
- package/dist/bundle/chunk-W7HM2VGO.js +24 -0
- package/dist/bundle/chunk-WE4UFASG.js +88 -0
- package/dist/bundle/chunk-WQBX7XYP.js +26174 -0
- package/dist/bundle/chunk-X2M6NIQG.js +18 -0
- package/dist/bundle/chunk-X7XUX7A4.js +1846 -0
- package/dist/bundle/chunk-XRREFEIW.js +372 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-ZBDSHFG4.js +40933 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-C6CBFXZF.js +40 -0
- package/dist/bundle/command-server-entry-DJKVVZCQ.js +169 -0
- package/dist/bundle/decode-FC65Y4IV.js +297 -0
- package/dist/bundle/definitions-MVPICAWV.js +2991 -0
- package/dist/bundle/dispatch-KOISQ5QJ.js +411 -0
- package/dist/bundle/dist-MYZZKZJ7.js +7577 -0
- package/dist/bundle/echarts-FVTUDXDU.js +42501 -0
- package/dist/bundle/embed-VNBZFPYH.js +38 -0
- package/dist/bundle/embedder-6U4NOFRO.js +111 -0
- package/dist/bundle/failure-FZ6VYKEQ.js +25 -0
- package/dist/bundle/first-run-RPIJZEDT.js +29 -0
- package/dist/bundle/first-screen-RTVMGHAE.js +40 -0
- package/dist/bundle/hubspot.js +198 -0
- package/dist/bundle/instructions-HET7BCYK.js +11 -0
- package/dist/bundle/mcp-RGNRW77S.js +167 -0
- package/dist/bundle/meeting-combined-L5AGBPYX.js +25 -0
- package/dist/bundle/meeting-model-NTB4RK3F.js +25 -0
- package/dist/bundle/meeting-semantic-JY3OGCBS.js +22 -0
- package/dist/bundle/node-CXZIFHZC.js +176 -0
- package/dist/bundle/node-P4E63KXA.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-P3O7XN7Q.js +74 -0
- package/dist/bundle/oauth-HNCY4B2S.js +20 -0
- package/dist/bundle/open-F4P6YV54.js +23 -0
- package/dist/bundle/openai-4AICLIK3.js +238 -0
- package/dist/bundle/process-5RUXWGYS.js +91 -0
- package/dist/bundle/program-POG5GHUQ.js +9241 -0
- package/dist/bundle/prompt-NFMDVBZ4.js +17 -0
- package/dist/bundle/recognize-DKN3RY4V.js +26 -0
- package/dist/bundle/remote-6QHAGQWY.js +31 -0
- package/dist/bundle/rerank-M4KHEHUZ.js +52 -0
- package/dist/bundle/schemas-JRL3DLMP.js +952 -0
- package/dist/bundle/serve-DNU43ND6.js +199 -0
- package/dist/bundle/server-C3ZHA7AZ.js +77 -0
- package/dist/bundle/server-XJSNF3K5.js +207 -0
- package/dist/bundle/source-A3SBLHC4.js +934 -0
- package/dist/bundle/sqlite-runtime-EMQAC63N.js +20 -0
- package/dist/bundle/state-T45CX7VY.js +36 -0
- package/dist/bundle/store-6LCEVBAZ.js +176 -0
- package/dist/bundle/store-6TZ2FCVA.js +295 -0
- package/dist/bundle/store-CCDNUB6A.js +32 -0
- package/dist/bundle/store-maintenance-command-BRCG6MNA.js +68 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +87 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +9 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +65 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/comments.d.ts +3 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +114 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/crm-shared.d.ts +8 -0
- package/dist/commands/crm-shared.d.ts.map +1 -0
- package/dist/commands/crm-shared.js +93 -0
- package/dist/commands/crm-shared.js.map +1 -0
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +14 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +164 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +22 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +88 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +137 -0
- package/dist/context.js.map +1 -0
- package/dist/crm/activities.d.ts +24 -0
- package/dist/crm/activities.d.ts.map +1 -0
- package/dist/crm/activities.js +214 -0
- package/dist/crm/activities.js.map +1 -0
- package/dist/crm/associations.d.ts +20 -0
- package/dist/crm/associations.d.ts.map +1 -0
- package/dist/crm/associations.js +47 -0
- package/dist/crm/associations.js.map +1 -0
- package/dist/crm/records.d.ts +63 -0
- package/dist/crm/records.d.ts.map +1 -0
- package/dist/crm/records.js +333 -0
- package/dist/crm/records.js.map +1 -0
- package/dist/crm/search.d.ts +57 -0
- package/dist/crm/search.d.ts.map +1 -0
- package/dist/crm/search.js +47 -0
- package/dist/crm/search.js.map +1 -0
- package/dist/crm/source.d.ts +32 -0
- package/dist/crm/source.d.ts.map +1 -0
- package/dist/crm/source.js +369 -0
- package/dist/crm/source.js.map +1 -0
- package/dist/generated/definitions.d.ts +3 -0
- package/dist/generated/definitions.d.ts.map +1 -0
- package/dist/generated/definitions.js +2987 -0
- package/dist/generated/definitions.js.map +1 -0
- package/dist/generated/manifest.d.ts +6 -0
- package/dist/generated/manifest.d.ts.map +1 -0
- package/dist/generated/manifest.js +6499 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +205 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +810 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +1114 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +5 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/hubspot/account.d.ts +12 -0
- package/dist/hubspot/account.d.ts.map +1 -0
- package/dist/hubspot/account.js +23 -0
- package/dist/hubspot/account.js.map +1 -0
- package/dist/hubspot/transport.d.ts +76 -0
- package/dist/hubspot/transport.d.ts.map +1 -0
- package/dist/hubspot/transport.js +346 -0
- package/dist/hubspot/transport.js.map +1 -0
- package/dist/identity.d.ts +7 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +32 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/program.d.ts +6 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +77 -0
- package/dist/program.js.map +1 -0
- package/dist/reasons.d.ts +10 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +33 -0
- package/dist/reasons.js.map +1 -0
- package/dist/sample/comments.d.ts +61 -0
- package/dist/sample/comments.d.ts.map +1 -0
- package/dist/sample/comments.js +39 -0
- package/dist/sample/comments.js.map +1 -0
- package/dist/sample/records.d.ts +16 -0
- package/dist/sample/records.d.ts.map +1 -0
- package/dist/sample/records.js +22 -0
- package/dist/sample/records.js.map +1 -0
- package/dist/sample/transport.d.ts +42 -0
- package/dist/sample/transport.d.ts.map +1 -0
- package/dist/sample/transport.js +153 -0
- package/dist/sample/transport.js.map +1 -0
- package/dist/setup/flow.d.ts +2 -0
- package/dist/setup/flow.d.ts.map +1 -0
- package/dist/setup/flow.js +97 -0
- package/dist/setup/flow.js.map +1 -0
- package/dist/setup/texts.en.json +19 -0
- package/dist/setup/texts.es.json +19 -0
- package/dist/setup/texts.ru.json +19 -0
- package/dist/store.d.ts +16 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +34 -0
- package/dist/store.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/dist/whoami.d.ts +19 -0
- package/dist/whoami.d.ts.map +1 -0
- package/dist/whoami.js +15 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +98 -4
- package/skills/hubspot-cli/SKILL.md +97 -0
- package/skills/hubspot-cli/references/api/api-basic.md +462 -0
- package/skills/hubspot-cli/references/api/api-batch.md +149 -0
- package/skills/hubspot-cli/references/api/api-search.md +147 -0
- package/skills/hubspot-cli/references/api.md +15 -0
|
@@ -0,0 +1,2991 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
4
|
+
|
|
5
|
+
// dist/generated/definitions.js
|
|
6
|
+
var definitions = {
|
|
7
|
+
AssociatedId: {
|
|
8
|
+
description: "Contains the id and type of an association",
|
|
9
|
+
type: "object",
|
|
10
|
+
properties: {
|
|
11
|
+
id: {
|
|
12
|
+
description: "The unique identifier for the associated object.",
|
|
13
|
+
type: "string"
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
description: "The type of associations.",
|
|
17
|
+
type: "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
required: ["id", "type"]
|
|
21
|
+
},
|
|
22
|
+
AssociationSpec: {
|
|
23
|
+
description: "Defines the type, direction, and details of the relationship between two CRM objects.",
|
|
24
|
+
type: "object",
|
|
25
|
+
properties: {
|
|
26
|
+
associationCategory: {
|
|
27
|
+
description: 'The category of the association, indicating its origin or purpose. Valid values include "HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED", and "WORK".',
|
|
28
|
+
type: "string",
|
|
29
|
+
enum: ["HUBSPOT_DEFINED", "INTEGRATOR_DEFINED", "USER_DEFINED", "WORK"]
|
|
30
|
+
},
|
|
31
|
+
associationTypeId: {
|
|
32
|
+
description: "An integer representing the unique identifier for the type of association.",
|
|
33
|
+
type: "integer",
|
|
34
|
+
format: "int32"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
required: ["associationCategory", "associationTypeId"]
|
|
38
|
+
},
|
|
39
|
+
BatchInputSimplePublicObjectBatchInput: {
|
|
40
|
+
description: "Represents a batch input component used to handle multiple simple public objects in a single API request. This component is typically used when performing batch operations to create, update, or delete multiple records simultaneously.",
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {
|
|
43
|
+
inputs: {
|
|
44
|
+
description: "An array of simple public objects to be processed in the batch operation. Each object in the array contains the data necessary for the specific operation being performed.",
|
|
45
|
+
type: "array",
|
|
46
|
+
items: {
|
|
47
|
+
type: "ref",
|
|
48
|
+
ref: "SimplePublicObjectBatchInput"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
required: ["inputs"]
|
|
53
|
+
},
|
|
54
|
+
BatchInputSimplePublicObjectBatchInputForCreate: {
|
|
55
|
+
description: "Represents a batch input for creating multiple simple public objects in a single request. This component is used to streamline the process of adding new objects to a HubSpot account by allowing multiple entries to be created at once.",
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
inputs: {
|
|
59
|
+
description: "An array of simple public objects to be created. Each object in the array contains the necessary data for creating a new entry in the system.",
|
|
60
|
+
type: "array",
|
|
61
|
+
items: {
|
|
62
|
+
type: "ref",
|
|
63
|
+
ref: "SimplePublicObjectBatchInputForCreate"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
required: ["inputs"]
|
|
68
|
+
},
|
|
69
|
+
BatchInputSimplePublicObjectBatchInputUpsert: {
|
|
70
|
+
description: "Represents a batch input operation for upserting simple public objects in HubSpot. This component is used to process multiple upsert operations in a single request, improving efficiency and performance.",
|
|
71
|
+
type: "object",
|
|
72
|
+
properties: {
|
|
73
|
+
inputs: {
|
|
74
|
+
description: "An array of simple public objects to be upserted. Each object in the array contains the necessary data for creating or updating a record in HubSpot.",
|
|
75
|
+
type: "array",
|
|
76
|
+
items: {
|
|
77
|
+
type: "ref",
|
|
78
|
+
ref: "SimplePublicObjectBatchInputUpsert"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
required: ["inputs"]
|
|
83
|
+
},
|
|
84
|
+
BatchInputSimplePublicObjectId: {
|
|
85
|
+
description: "Represents a batch input payload containing a list of simple public object IDs. This component is used when performing batch operations on multiple objects within HubSpot.",
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
inputs: {
|
|
89
|
+
description: "An array of simple public object IDs to be processed in the batch operation.",
|
|
90
|
+
type: "array",
|
|
91
|
+
items: {
|
|
92
|
+
type: "ref",
|
|
93
|
+
ref: "SimplePublicObjectId"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
required: ["inputs"]
|
|
98
|
+
},
|
|
99
|
+
BatchReadInputSimplePublicObjectId: {
|
|
100
|
+
description: "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.",
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: {
|
|
103
|
+
idProperty: {
|
|
104
|
+
description: "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.",
|
|
105
|
+
type: "string"
|
|
106
|
+
},
|
|
107
|
+
inputs: {
|
|
108
|
+
description: "An array of SimplePublicObjectId objects, each containing the ID of an object to be read.",
|
|
109
|
+
type: "array",
|
|
110
|
+
items: {
|
|
111
|
+
type: "ref",
|
|
112
|
+
ref: "SimplePublicObjectId"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
properties: {
|
|
116
|
+
description: "An array of the property names to be returned in the response. If a specified property is not present on the requested object(s), it will be ignored.",
|
|
117
|
+
type: "array",
|
|
118
|
+
items: {
|
|
119
|
+
type: "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
propertiesWithHistory: {
|
|
123
|
+
description: "An array of the property names to be returned along with their history of previous values. If a specified property is not present on the requested object(s), it will be ignored.",
|
|
124
|
+
type: "array",
|
|
125
|
+
items: {
|
|
126
|
+
type: "string"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
required: ["inputs", "properties", "propertiesWithHistory"]
|
|
131
|
+
},
|
|
132
|
+
BatchResponsePublicDefaultAssociation: {
|
|
133
|
+
description: "The response returned after performing a batch operation on associations.",
|
|
134
|
+
type: "object",
|
|
135
|
+
properties: {
|
|
136
|
+
completedAt: {
|
|
137
|
+
description: "The timestamp when the batch process was completed, in ISO 8601 format.",
|
|
138
|
+
type: "string"
|
|
139
|
+
},
|
|
140
|
+
errors: {
|
|
141
|
+
description: "An array of StandardError objects detailing any errors that occurred during the batch operation.",
|
|
142
|
+
type: "array",
|
|
143
|
+
items: {
|
|
144
|
+
type: "ref",
|
|
145
|
+
ref: "StandardError"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
links: {
|
|
149
|
+
description: "A map of link names to associated URIs, providing additional information or actions related to the batch operation.",
|
|
150
|
+
type: "object",
|
|
151
|
+
properties: {},
|
|
152
|
+
required: [],
|
|
153
|
+
additionalProperties: {
|
|
154
|
+
type: "string"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
numErrors: {
|
|
158
|
+
description: "The total number of errors that occurred during the operation.",
|
|
159
|
+
type: "integer",
|
|
160
|
+
format: "int32"
|
|
161
|
+
},
|
|
162
|
+
requestedAt: {
|
|
163
|
+
description: "The timestamp when the batch process was initiated, in ISO 8601 format.",
|
|
164
|
+
type: "string"
|
|
165
|
+
},
|
|
166
|
+
results: {
|
|
167
|
+
description: "An array of PublicDefaultAssociation objects representing the results of the batch operation.",
|
|
168
|
+
type: "array",
|
|
169
|
+
items: {
|
|
170
|
+
type: "ref",
|
|
171
|
+
ref: "PublicDefaultAssociation"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
startedAt: {
|
|
175
|
+
description: "The timestamp when the batch process began execution, in ISO 8601 format.",
|
|
176
|
+
type: "string"
|
|
177
|
+
},
|
|
178
|
+
status: {
|
|
179
|
+
description: 'The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".',
|
|
180
|
+
type: "string",
|
|
181
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
185
|
+
},
|
|
186
|
+
BatchResponseSimplePublicObject: {
|
|
187
|
+
description: "A public object batch response object",
|
|
188
|
+
type: "object",
|
|
189
|
+
properties: {
|
|
190
|
+
completedAt: {
|
|
191
|
+
description: "The timestamp when the batch processing was completed, in ISO 8601 format.",
|
|
192
|
+
type: "string"
|
|
193
|
+
},
|
|
194
|
+
links: {
|
|
195
|
+
description: "A map of link names to associated URIs, providing additional information or actions related to the batch operation.",
|
|
196
|
+
type: "object",
|
|
197
|
+
properties: {},
|
|
198
|
+
required: [],
|
|
199
|
+
additionalProperties: {
|
|
200
|
+
type: "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
requestedAt: {
|
|
204
|
+
description: "The timestamp when the batch request was initially made, in ISO 8601 format.",
|
|
205
|
+
type: "string"
|
|
206
|
+
},
|
|
207
|
+
results: {
|
|
208
|
+
description: "An array of SimplePublicObject items representing the results of the batch operation.",
|
|
209
|
+
type: "array",
|
|
210
|
+
items: {
|
|
211
|
+
type: "ref",
|
|
212
|
+
ref: "SimplePublicObject"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
startedAt: {
|
|
216
|
+
description: "The timestamp when the batch processing began, in ISO 8601 format.",
|
|
217
|
+
type: "string"
|
|
218
|
+
},
|
|
219
|
+
status: {
|
|
220
|
+
description: 'The status of the batch processing request. The expected value is "COMPLETE".',
|
|
221
|
+
type: "string",
|
|
222
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
226
|
+
},
|
|
227
|
+
BatchResponseSimplePublicObjectWithErrors: {
|
|
228
|
+
description: "Represents the result of a batch operation on CRM objects, including the processing status, batch results, timestamps, and a list of any errors encountered during the operation.",
|
|
229
|
+
type: "object",
|
|
230
|
+
properties: {
|
|
231
|
+
completedAt: {
|
|
232
|
+
description: "The timestamp when the batch process was completed, in ISO 8601 format.",
|
|
233
|
+
type: "string"
|
|
234
|
+
},
|
|
235
|
+
errors: {
|
|
236
|
+
type: "array",
|
|
237
|
+
items: {
|
|
238
|
+
type: "ref",
|
|
239
|
+
ref: "StandardError"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
links: {
|
|
243
|
+
description: "An object containing relevant links related to the batch request.",
|
|
244
|
+
type: "object",
|
|
245
|
+
properties: {},
|
|
246
|
+
required: [],
|
|
247
|
+
additionalProperties: {
|
|
248
|
+
type: "string"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
numErrors: {
|
|
252
|
+
description: "The number of errors encountered during the batch process.",
|
|
253
|
+
type: "integer",
|
|
254
|
+
format: "int32"
|
|
255
|
+
},
|
|
256
|
+
requestedAt: {
|
|
257
|
+
description: "The timestamp when the batch process was initiated, in ISO 8601 format.",
|
|
258
|
+
type: "string"
|
|
259
|
+
},
|
|
260
|
+
results: {
|
|
261
|
+
type: "array",
|
|
262
|
+
items: {
|
|
263
|
+
type: "ref",
|
|
264
|
+
ref: "SimplePublicObject"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
startedAt: {
|
|
268
|
+
description: "The timestamp when the batch process began execution, in ISO 8601 format.",
|
|
269
|
+
type: "string"
|
|
270
|
+
},
|
|
271
|
+
status: {
|
|
272
|
+
description: 'The status of the batch processing request - "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE"',
|
|
273
|
+
type: "string",
|
|
274
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
278
|
+
},
|
|
279
|
+
BatchResponseSimplePublicUpsertObject: {
|
|
280
|
+
description: "Represents the result of a batch upsert operation, including the operation\u2019s status, timestamps, and a list of successfully created or updated objects.",
|
|
281
|
+
type: "object",
|
|
282
|
+
properties: {
|
|
283
|
+
completedAt: {
|
|
284
|
+
description: "The timestamp when the batch process was completed, in ISO 8601 format.",
|
|
285
|
+
type: "string"
|
|
286
|
+
},
|
|
287
|
+
links: {
|
|
288
|
+
description: "A map of link names to associated URIs, providing additional information or actions related to the batch operation.",
|
|
289
|
+
type: "object",
|
|
290
|
+
properties: {},
|
|
291
|
+
required: [],
|
|
292
|
+
additionalProperties: {
|
|
293
|
+
type: "string"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
requestedAt: {
|
|
297
|
+
description: "The timestamp when the batch process was initiated, in ISO 8601 format.",
|
|
298
|
+
type: "string"
|
|
299
|
+
},
|
|
300
|
+
results: {
|
|
301
|
+
description: "An array of SimplePublicUpsertObject items representing the results of the batch upsert operation.",
|
|
302
|
+
type: "array",
|
|
303
|
+
items: {
|
|
304
|
+
type: "ref",
|
|
305
|
+
ref: "SimplePublicUpsertObject"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
startedAt: {
|
|
309
|
+
description: "The timestamp when the batch process began execution, in ISO 8601 format.",
|
|
310
|
+
type: "string"
|
|
311
|
+
},
|
|
312
|
+
status: {
|
|
313
|
+
description: 'The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".',
|
|
314
|
+
type: "string",
|
|
315
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
319
|
+
},
|
|
320
|
+
BatchResponseSimplePublicUpsertObjectWithErrors: {
|
|
321
|
+
description: "Represents the response from a batch upsert operation, including the status, timestamps, successfully processed objects, and any errors that occurred during processing.",
|
|
322
|
+
type: "object",
|
|
323
|
+
properties: {
|
|
324
|
+
completedAt: {
|
|
325
|
+
description: "The timestamp when the batch process was completed, in ISO 8601 format.",
|
|
326
|
+
type: "string"
|
|
327
|
+
},
|
|
328
|
+
errors: {
|
|
329
|
+
type: "array",
|
|
330
|
+
items: {
|
|
331
|
+
type: "ref",
|
|
332
|
+
ref: "StandardError"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
links: {
|
|
336
|
+
description: "An object containing relevant links related to the batch request.",
|
|
337
|
+
type: "object",
|
|
338
|
+
properties: {},
|
|
339
|
+
required: [],
|
|
340
|
+
additionalProperties: {
|
|
341
|
+
type: "string"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
numErrors: {
|
|
345
|
+
description: "The number of errors encountered during the batch process.",
|
|
346
|
+
type: "integer",
|
|
347
|
+
format: "int32"
|
|
348
|
+
},
|
|
349
|
+
requestedAt: {
|
|
350
|
+
description: "The timestamp when the batch process was initiated, in ISO 8601 format.",
|
|
351
|
+
type: "string"
|
|
352
|
+
},
|
|
353
|
+
results: {
|
|
354
|
+
type: "array",
|
|
355
|
+
items: {
|
|
356
|
+
type: "ref",
|
|
357
|
+
ref: "SimplePublicUpsertObject"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
startedAt: {
|
|
361
|
+
description: "The timestamp when the batch process began execution, in ISO 8601 format.",
|
|
362
|
+
type: "string"
|
|
363
|
+
},
|
|
364
|
+
status: {
|
|
365
|
+
description: 'The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE".',
|
|
366
|
+
type: "string",
|
|
367
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
371
|
+
},
|
|
372
|
+
CollectionResponseAssociatedId: {
|
|
373
|
+
description: "Represents a collection of associated IDs returned by an API request, including pagination details for navigating through the results.",
|
|
374
|
+
type: "object",
|
|
375
|
+
properties: {
|
|
376
|
+
paging: {
|
|
377
|
+
type: "ref",
|
|
378
|
+
ref: "Paging"
|
|
379
|
+
},
|
|
380
|
+
results: {
|
|
381
|
+
description: "A list of associated IDs retrieved from the API request.",
|
|
382
|
+
type: "array",
|
|
383
|
+
items: {
|
|
384
|
+
type: "ref",
|
|
385
|
+
ref: "AssociatedId"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
required: ["results"]
|
|
390
|
+
},
|
|
391
|
+
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging: {
|
|
392
|
+
description: "Represents a paginated collection response that includes simple public objects with their associations. This component is used to handle the results and pagination details when retrieving a list of objects from the API.",
|
|
393
|
+
type: "object",
|
|
394
|
+
properties: {
|
|
395
|
+
paging: {
|
|
396
|
+
type: "ref",
|
|
397
|
+
ref: "ForwardPaging"
|
|
398
|
+
},
|
|
399
|
+
results: {
|
|
400
|
+
description: "An array of simple public objects that are included in the current page of the response. Each object may include its associated data.",
|
|
401
|
+
type: "array",
|
|
402
|
+
items: {
|
|
403
|
+
type: "ref",
|
|
404
|
+
ref: "SimplePublicObjectWithAssociations"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
required: ["results"]
|
|
409
|
+
},
|
|
410
|
+
CollectionResponseWithTotalSimplePublicObject: {
|
|
411
|
+
description: "Represents a list of simple objects returned from an API request, along with the total count of objects available.",
|
|
412
|
+
type: "object",
|
|
413
|
+
properties: {
|
|
414
|
+
paging: {
|
|
415
|
+
type: "ref",
|
|
416
|
+
ref: "Paging"
|
|
417
|
+
},
|
|
418
|
+
results: {
|
|
419
|
+
description: "An array containing the simple public objects returned in the current page of the response. This property is required.",
|
|
420
|
+
type: "array",
|
|
421
|
+
items: {
|
|
422
|
+
type: "ref",
|
|
423
|
+
ref: "SimplePublicObject"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
total: {
|
|
427
|
+
description: "The number of available results",
|
|
428
|
+
type: "integer",
|
|
429
|
+
format: "int32"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
required: ["results", "total"]
|
|
433
|
+
},
|
|
434
|
+
ApiError: {
|
|
435
|
+
description: "Represents an error response returned by the API when an operation fails. This component is used in various endpoints to provide detailed information about the error encountered.",
|
|
436
|
+
type: "object",
|
|
437
|
+
properties: {
|
|
438
|
+
category: {
|
|
439
|
+
description: "The error category",
|
|
440
|
+
type: "string"
|
|
441
|
+
},
|
|
442
|
+
context: {
|
|
443
|
+
description: "Context about the error condition",
|
|
444
|
+
type: "object",
|
|
445
|
+
properties: {},
|
|
446
|
+
required: [],
|
|
447
|
+
additionalProperties: {
|
|
448
|
+
type: "array",
|
|
449
|
+
items: {
|
|
450
|
+
type: "string"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
correlationId: {
|
|
455
|
+
description: "A unique identifier for the request. Include this value with any error reports or support tickets",
|
|
456
|
+
type: "string"
|
|
457
|
+
},
|
|
458
|
+
errors: {
|
|
459
|
+
description: "further information about the error",
|
|
460
|
+
type: "array",
|
|
461
|
+
items: {
|
|
462
|
+
type: "ref",
|
|
463
|
+
ref: "ErrorDetail"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
links: {
|
|
467
|
+
description: "A map of link names to associated URIs containing documentation about the error or recommended remediation steps",
|
|
468
|
+
type: "object",
|
|
469
|
+
properties: {},
|
|
470
|
+
required: [],
|
|
471
|
+
additionalProperties: {
|
|
472
|
+
type: "string"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
message: {
|
|
476
|
+
description: "A human readable message describing the error along with remediation steps where appropriate",
|
|
477
|
+
type: "string"
|
|
478
|
+
},
|
|
479
|
+
subCategory: {
|
|
480
|
+
description: "A specific category that contains more specific detail about the error",
|
|
481
|
+
type: "string"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
required: ["category", "correlationId", "message"]
|
|
485
|
+
},
|
|
486
|
+
ErrorDetail: {
|
|
487
|
+
description: "Represents detailed information about an error that occurred in the API. This component is used to provide additional context and specifics about errors, typically as part of an error response.",
|
|
488
|
+
type: "object",
|
|
489
|
+
properties: {
|
|
490
|
+
code: {
|
|
491
|
+
description: "The status code associated with the error detail",
|
|
492
|
+
type: "string"
|
|
493
|
+
},
|
|
494
|
+
context: {
|
|
495
|
+
description: "Context about the error condition",
|
|
496
|
+
type: "object",
|
|
497
|
+
properties: {},
|
|
498
|
+
required: [],
|
|
499
|
+
additionalProperties: {
|
|
500
|
+
type: "array",
|
|
501
|
+
items: {
|
|
502
|
+
type: "string"
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
in: {
|
|
507
|
+
description: "The name of the field or parameter in which the error was found.",
|
|
508
|
+
type: "string"
|
|
509
|
+
},
|
|
510
|
+
message: {
|
|
511
|
+
description: "A human readable message describing the error along with remediation steps where appropriate",
|
|
512
|
+
type: "string"
|
|
513
|
+
},
|
|
514
|
+
subCategory: {
|
|
515
|
+
description: "A specific category that contains more specific detail about the error",
|
|
516
|
+
type: "string"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
required: ["message"]
|
|
520
|
+
},
|
|
521
|
+
Filter: {
|
|
522
|
+
description: "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. ",
|
|
523
|
+
type: "object",
|
|
524
|
+
properties: {
|
|
525
|
+
highValue: {
|
|
526
|
+
description: "The upper boundary value when using ranged-based filters.",
|
|
527
|
+
type: "string"
|
|
528
|
+
},
|
|
529
|
+
operator: {
|
|
530
|
+
description: 'The comparison operator used in the filter, such as "EQ" or "GT".',
|
|
531
|
+
type: "string",
|
|
532
|
+
enum: [
|
|
533
|
+
"BETWEEN",
|
|
534
|
+
"CONTAINS_TOKEN",
|
|
535
|
+
"EQ",
|
|
536
|
+
"GT",
|
|
537
|
+
"GTE",
|
|
538
|
+
"HAS_PROPERTY",
|
|
539
|
+
"IN",
|
|
540
|
+
"LT",
|
|
541
|
+
"LTE",
|
|
542
|
+
"NEQ",
|
|
543
|
+
"NOT_CONTAINS_TOKEN",
|
|
544
|
+
"NOT_HAS_PROPERTY",
|
|
545
|
+
"NOT_IN"
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
propertyName: {
|
|
549
|
+
description: "The name of the property to apply the filter to.",
|
|
550
|
+
type: "string"
|
|
551
|
+
},
|
|
552
|
+
value: {
|
|
553
|
+
description: "The value to match against the property.",
|
|
554
|
+
type: "string"
|
|
555
|
+
},
|
|
556
|
+
values: {
|
|
557
|
+
description: "The values to match against the property.",
|
|
558
|
+
type: "array",
|
|
559
|
+
items: {
|
|
560
|
+
type: "string"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
required: ["operator", "propertyName"]
|
|
565
|
+
},
|
|
566
|
+
FilterGroup: {
|
|
567
|
+
description: "Represents a group of filters used to query data within HubSpot. This component is used to define criteria for filtering records in various API endpoints.",
|
|
568
|
+
type: "object",
|
|
569
|
+
properties: {
|
|
570
|
+
filters: {
|
|
571
|
+
description: "A list of individual filter criteria that are applied together as a group. Each filter specifies a condition that records must meet to be included in the results.",
|
|
572
|
+
type: "array",
|
|
573
|
+
items: {
|
|
574
|
+
type: "ref",
|
|
575
|
+
ref: "Filter"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
required: ["filters"]
|
|
580
|
+
},
|
|
581
|
+
ForwardPaging: {
|
|
582
|
+
description: "Paging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.",
|
|
583
|
+
type: "object",
|
|
584
|
+
properties: {
|
|
585
|
+
next: {
|
|
586
|
+
type: "ref",
|
|
587
|
+
ref: "NextPage"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
required: []
|
|
591
|
+
},
|
|
592
|
+
LabelsBetweenObjectPair: {
|
|
593
|
+
description: "The relationship descriptors applicable between two object types.",
|
|
594
|
+
type: "object",
|
|
595
|
+
properties: {
|
|
596
|
+
fromObjectId: {
|
|
597
|
+
description: "Source unique ID of the object.",
|
|
598
|
+
type: "string"
|
|
599
|
+
},
|
|
600
|
+
fromObjectTypeId: {
|
|
601
|
+
description: "Source object type.",
|
|
602
|
+
type: "string"
|
|
603
|
+
},
|
|
604
|
+
labels: {
|
|
605
|
+
description: "An array of labels that describe the relationship between the two objects. This is a required property.",
|
|
606
|
+
type: "array",
|
|
607
|
+
items: {
|
|
608
|
+
type: "string"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
toObjectId: {
|
|
612
|
+
description: "Target unique ID of the object.",
|
|
613
|
+
type: "string"
|
|
614
|
+
},
|
|
615
|
+
toObjectTypeId: {
|
|
616
|
+
description: "Target object type.",
|
|
617
|
+
type: "string"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
required: ["fromObjectId", "fromObjectTypeId", "labels", "toObjectId", "toObjectTypeId"]
|
|
621
|
+
},
|
|
622
|
+
NextPage: {
|
|
623
|
+
description: "Specifies the paging information needed to retrieve the next set of results in a paginated API response",
|
|
624
|
+
type: "object",
|
|
625
|
+
properties: {
|
|
626
|
+
after: {
|
|
627
|
+
description: "A paging cursor token for retrieving subsequent pages.",
|
|
628
|
+
type: "string"
|
|
629
|
+
},
|
|
630
|
+
link: {
|
|
631
|
+
description: "A URL that can be used to retrieve the next page results.",
|
|
632
|
+
type: "string"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
required: ["after"]
|
|
636
|
+
},
|
|
637
|
+
Paging: {
|
|
638
|
+
description: "Represents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.",
|
|
639
|
+
type: "object",
|
|
640
|
+
properties: {
|
|
641
|
+
next: {
|
|
642
|
+
type: "ref",
|
|
643
|
+
ref: "NextPage"
|
|
644
|
+
},
|
|
645
|
+
prev: {
|
|
646
|
+
type: "ref",
|
|
647
|
+
ref: "PreviousPage"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
required: []
|
|
651
|
+
},
|
|
652
|
+
PreviousPage: {
|
|
653
|
+
description: "specifies the paging information needed to retrieve the previous set of results in a paginated API response",
|
|
654
|
+
type: "object",
|
|
655
|
+
properties: {
|
|
656
|
+
before: {
|
|
657
|
+
description: "A paging cursor token for retrieving previous pages.",
|
|
658
|
+
type: "string"
|
|
659
|
+
},
|
|
660
|
+
link: {
|
|
661
|
+
description: "A URL that can be used to retrieve the previous pages' results.",
|
|
662
|
+
type: "string"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
required: ["before"]
|
|
666
|
+
},
|
|
667
|
+
PublicAssociationsForObject: {
|
|
668
|
+
description: "Represents the associations for a specific object in HubSpot, detailing the types of associations and the related objects involved.",
|
|
669
|
+
type: "object",
|
|
670
|
+
properties: {
|
|
671
|
+
to: {
|
|
672
|
+
type: "ref",
|
|
673
|
+
ref: "PublicObjectId"
|
|
674
|
+
},
|
|
675
|
+
types: {
|
|
676
|
+
description: "The types of associations that exist between the object and other entities, indicating the nature of their relationship.",
|
|
677
|
+
type: "array",
|
|
678
|
+
items: {
|
|
679
|
+
type: "ref",
|
|
680
|
+
ref: "AssociationSpec"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
required: ["to", "types"]
|
|
685
|
+
},
|
|
686
|
+
PublicDefaultAssociation: {
|
|
687
|
+
description: "The PublicDefaultAssociation component represents the default association configuration between two objects in HubSpot. It is used to define how objects are related to each other within the platform.",
|
|
688
|
+
type: "object",
|
|
689
|
+
properties: {
|
|
690
|
+
associationSpec: {
|
|
691
|
+
type: "ref",
|
|
692
|
+
ref: "AssociationSpec"
|
|
693
|
+
},
|
|
694
|
+
from: {
|
|
695
|
+
type: "ref",
|
|
696
|
+
ref: "PublicObjectId"
|
|
697
|
+
},
|
|
698
|
+
to: {
|
|
699
|
+
type: "ref",
|
|
700
|
+
ref: "PublicObjectId"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
required: ["associationSpec", "from", "to"]
|
|
704
|
+
},
|
|
705
|
+
PublicGdprDeleteInput: {
|
|
706
|
+
description: "An input that contains the information required to process a public GDPR data deletion request.",
|
|
707
|
+
type: "object",
|
|
708
|
+
properties: {
|
|
709
|
+
idProperty: {
|
|
710
|
+
description: "The name of a property whose values are unique for this object. An alternative to identifying a contact by ID.",
|
|
711
|
+
type: "string"
|
|
712
|
+
},
|
|
713
|
+
objectId: {
|
|
714
|
+
description: "The ID of the contact to permanently delete.",
|
|
715
|
+
type: "string"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
required: ["objectId"]
|
|
719
|
+
},
|
|
720
|
+
PublicMergeInput: {
|
|
721
|
+
description: "Input data for merging two records.",
|
|
722
|
+
type: "object",
|
|
723
|
+
properties: {
|
|
724
|
+
objectIdToMerge: {
|
|
725
|
+
description: "The object ID of the record that the merge will not set as the current value after the merge.",
|
|
726
|
+
type: "string"
|
|
727
|
+
},
|
|
728
|
+
primaryObjectId: {
|
|
729
|
+
description: "The object ID of the record that the merge will generally set as the current value after the merge.",
|
|
730
|
+
type: "string"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
required: ["objectIdToMerge", "primaryObjectId"]
|
|
734
|
+
},
|
|
735
|
+
PublicObjectId: {
|
|
736
|
+
description: "Contains the Id of a Public Object",
|
|
737
|
+
type: "object",
|
|
738
|
+
properties: {
|
|
739
|
+
id: {
|
|
740
|
+
description: "The unique ID of the object.",
|
|
741
|
+
type: "string"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
required: ["id"]
|
|
745
|
+
},
|
|
746
|
+
PublicObjectSearchRequest: {
|
|
747
|
+
description: "Describes a search request",
|
|
748
|
+
type: "object",
|
|
749
|
+
properties: {
|
|
750
|
+
after: {
|
|
751
|
+
description: "A paging cursor token for retrieving subsequent pages.",
|
|
752
|
+
type: "string"
|
|
753
|
+
},
|
|
754
|
+
filterGroups: {
|
|
755
|
+
description: "Up to 6 groups of filters defining additional query criteria.",
|
|
756
|
+
type: "array",
|
|
757
|
+
items: {
|
|
758
|
+
type: "ref",
|
|
759
|
+
ref: "FilterGroup"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
limit: {
|
|
763
|
+
description: "The maximum results to return, up to 200 objects.",
|
|
764
|
+
type: "integer",
|
|
765
|
+
format: "int32"
|
|
766
|
+
},
|
|
767
|
+
properties: {
|
|
768
|
+
description: "A list of property names to include in the response.",
|
|
769
|
+
type: "array",
|
|
770
|
+
items: {
|
|
771
|
+
type: "string"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
query: {
|
|
775
|
+
description: "The search query string, up to 3000 characters.",
|
|
776
|
+
type: "string"
|
|
777
|
+
},
|
|
778
|
+
sorts: {
|
|
779
|
+
description: "Specifies sorting order based on object properties.",
|
|
780
|
+
type: "array",
|
|
781
|
+
items: {
|
|
782
|
+
type: "object",
|
|
783
|
+
properties: {
|
|
784
|
+
propertyName: {
|
|
785
|
+
type: "string"
|
|
786
|
+
},
|
|
787
|
+
direction: {
|
|
788
|
+
type: "string",
|
|
789
|
+
enum: ["ASCENDING", "DESCENDING"]
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
required: ["propertyName"]
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
required: ["filterGroups", "limit", "properties", "sorts"]
|
|
797
|
+
},
|
|
798
|
+
PublicObjectWarning: {
|
|
799
|
+
description: "Represents a warning message related to a public object in HubSpot, providing details about the nature and context of the warning.",
|
|
800
|
+
type: "object",
|
|
801
|
+
properties: {
|
|
802
|
+
category: {
|
|
803
|
+
description: "The classification of the warning, indicating the type or nature of the issue.",
|
|
804
|
+
type: "string"
|
|
805
|
+
},
|
|
806
|
+
context: {
|
|
807
|
+
description: "Additional information or metadata about the warning, providing context for understanding the issue.",
|
|
808
|
+
type: "object",
|
|
809
|
+
properties: {},
|
|
810
|
+
required: [],
|
|
811
|
+
additionalProperties: {
|
|
812
|
+
type: "string"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
message: {
|
|
816
|
+
description: "The text of the warning message, providing information about the issue or alert.",
|
|
817
|
+
type: "string"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
required: ["category", "context", "message"]
|
|
821
|
+
},
|
|
822
|
+
SimplePublicObject: {
|
|
823
|
+
description: "A simple public object.",
|
|
824
|
+
type: "object",
|
|
825
|
+
properties: {
|
|
826
|
+
archived: {
|
|
827
|
+
description: "Whether the object is archived.",
|
|
828
|
+
type: "boolean"
|
|
829
|
+
},
|
|
830
|
+
archivedAt: {
|
|
831
|
+
description: "The timestamp when the object was archived, in ISO 8601 format.",
|
|
832
|
+
type: "string"
|
|
833
|
+
},
|
|
834
|
+
createdAt: {
|
|
835
|
+
description: "The timestamp when the object was created, in ISO 8601 format.",
|
|
836
|
+
type: "string"
|
|
837
|
+
},
|
|
838
|
+
id: {
|
|
839
|
+
description: "The unique ID of the object.",
|
|
840
|
+
type: "string"
|
|
841
|
+
},
|
|
842
|
+
objectWriteTraceId: {
|
|
843
|
+
description: "An identifier used to trace the write request for the object. Set a unique ID for each write operation; it is returned with any errors so you can identify which request encountered which error.",
|
|
844
|
+
type: "string"
|
|
845
|
+
},
|
|
846
|
+
properties: {
|
|
847
|
+
description: "Key-value pairs representing the properties of the object.",
|
|
848
|
+
type: "object",
|
|
849
|
+
properties: {},
|
|
850
|
+
required: [],
|
|
851
|
+
additionalProperties: {
|
|
852
|
+
type: "string"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
propertiesWithHistory: {
|
|
856
|
+
description: "Key-value pairs representing the properties of the object along with their history, each with a timestamp and source information.",
|
|
857
|
+
type: "object",
|
|
858
|
+
properties: {},
|
|
859
|
+
required: [],
|
|
860
|
+
additionalProperties: {
|
|
861
|
+
type: "array",
|
|
862
|
+
items: {
|
|
863
|
+
type: "ref",
|
|
864
|
+
ref: "ValueWithTimestamp"
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
updatedAt: {
|
|
869
|
+
description: "The timestamp when the object was last updated, in ISO 8601 format.",
|
|
870
|
+
type: "string"
|
|
871
|
+
},
|
|
872
|
+
url: {
|
|
873
|
+
description: "The URL associated with the object.",
|
|
874
|
+
type: "string"
|
|
875
|
+
},
|
|
876
|
+
warnings: {
|
|
877
|
+
type: "array",
|
|
878
|
+
items: {
|
|
879
|
+
type: "ref",
|
|
880
|
+
ref: "PublicObjectWarning"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
required: ["archived", "createdAt", "id", "properties", "updatedAt"]
|
|
885
|
+
},
|
|
886
|
+
SimplePublicObjectBatchInput: {
|
|
887
|
+
description: "Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.",
|
|
888
|
+
type: "object",
|
|
889
|
+
properties: {
|
|
890
|
+
id: {
|
|
891
|
+
description: "The ID of the contact to update. This can be the object ID, or the unique property value of the `idProperty` property.",
|
|
892
|
+
type: "string"
|
|
893
|
+
},
|
|
894
|
+
idProperty: {
|
|
895
|
+
description: "The name of a unique property, when identifying records by property. ",
|
|
896
|
+
type: "string"
|
|
897
|
+
},
|
|
898
|
+
objectWriteTraceId: {
|
|
899
|
+
description: "A unique identifier for tracing the request.",
|
|
900
|
+
type: "string"
|
|
901
|
+
},
|
|
902
|
+
properties: {
|
|
903
|
+
description: "Key-value pairs representing the properties of the object.",
|
|
904
|
+
type: "object",
|
|
905
|
+
properties: {},
|
|
906
|
+
required: [],
|
|
907
|
+
additionalProperties: {
|
|
908
|
+
type: "string"
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
required: ["id", "properties"]
|
|
913
|
+
},
|
|
914
|
+
SimplePublicObjectBatchInputForCreate: {
|
|
915
|
+
description: "An input object that contains a collection of objects to be created together in a batch.",
|
|
916
|
+
type: "object",
|
|
917
|
+
properties: {
|
|
918
|
+
associations: {
|
|
919
|
+
description: "An array of associations that define the relationships between the objects being created and other existing objects. This property is required.",
|
|
920
|
+
type: "array",
|
|
921
|
+
items: {
|
|
922
|
+
type: "ref",
|
|
923
|
+
ref: "PublicAssociationsForObject"
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
objectWriteTraceId: {
|
|
927
|
+
description: "An identifier used for tracing the creation or update request of the object.",
|
|
928
|
+
type: "string"
|
|
929
|
+
},
|
|
930
|
+
properties: {
|
|
931
|
+
description: "Key value pairs representing the properties of the object.",
|
|
932
|
+
type: "object",
|
|
933
|
+
properties: {},
|
|
934
|
+
required: [],
|
|
935
|
+
additionalProperties: {
|
|
936
|
+
type: "string"
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
required: ["associations", "properties"]
|
|
941
|
+
},
|
|
942
|
+
SimplePublicObjectBatchInputUpsert: {
|
|
943
|
+
description: "Represents an object used in batch upsert operations, containing an object\u2019s unique identifier, its properties, and optionally the unique property name and a write trace ID.",
|
|
944
|
+
type: "object",
|
|
945
|
+
properties: {
|
|
946
|
+
id: {
|
|
947
|
+
description: "The unique ID of the object.",
|
|
948
|
+
type: "string"
|
|
949
|
+
},
|
|
950
|
+
idProperty: {
|
|
951
|
+
description: "The name of a property whose values are unique for this object",
|
|
952
|
+
type: "string"
|
|
953
|
+
},
|
|
954
|
+
objectWriteTraceId: {
|
|
955
|
+
description: "An identifier for tracing the creation request.",
|
|
956
|
+
type: "string"
|
|
957
|
+
},
|
|
958
|
+
properties: {
|
|
959
|
+
description: "Key value pairs representing the properties of the object.",
|
|
960
|
+
type: "object",
|
|
961
|
+
properties: {},
|
|
962
|
+
required: [],
|
|
963
|
+
additionalProperties: {
|
|
964
|
+
type: "string"
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
required: ["id", "properties"]
|
|
969
|
+
},
|
|
970
|
+
SimplePublicObjectId: {
|
|
971
|
+
description: "Contains the Id of a Public Object",
|
|
972
|
+
type: "object",
|
|
973
|
+
properties: {
|
|
974
|
+
id: {
|
|
975
|
+
description: "The unique ID of the object.",
|
|
976
|
+
type: "string"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
required: ["id"]
|
|
980
|
+
},
|
|
981
|
+
SimplePublicObjectInput: {
|
|
982
|
+
description: "Represents the input required to update a CRM object, containing an object with property names and their corresponding values.",
|
|
983
|
+
type: "object",
|
|
984
|
+
properties: {
|
|
985
|
+
properties: {
|
|
986
|
+
description: "Key value pairs representing the properties of the object.",
|
|
987
|
+
type: "object",
|
|
988
|
+
properties: {},
|
|
989
|
+
required: [],
|
|
990
|
+
additionalProperties: {
|
|
991
|
+
type: "string"
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
required: ["properties"]
|
|
996
|
+
},
|
|
997
|
+
SimplePublicObjectInputForCreate: {
|
|
998
|
+
description: "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.",
|
|
999
|
+
type: "object",
|
|
1000
|
+
properties: {
|
|
1001
|
+
associations: {
|
|
1002
|
+
description: "An array that specifies the relationships between the new public object and existing objects. This is required to establish how the new object is connected within the system.",
|
|
1003
|
+
type: "array",
|
|
1004
|
+
items: {
|
|
1005
|
+
type: "ref",
|
|
1006
|
+
ref: "PublicAssociationsForObject"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
properties: {
|
|
1010
|
+
description: "Key-value pairs for setting properties for the new object.",
|
|
1011
|
+
type: "object",
|
|
1012
|
+
properties: {},
|
|
1013
|
+
required: [],
|
|
1014
|
+
additionalProperties: {
|
|
1015
|
+
type: "string"
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
required: ["associations", "properties"]
|
|
1020
|
+
},
|
|
1021
|
+
SimplePublicObjectWithAssociations: {
|
|
1022
|
+
description: "Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.",
|
|
1023
|
+
type: "object",
|
|
1024
|
+
properties: {
|
|
1025
|
+
archived: {
|
|
1026
|
+
description: "Whether the object is archived.",
|
|
1027
|
+
type: "boolean"
|
|
1028
|
+
},
|
|
1029
|
+
archivedAt: {
|
|
1030
|
+
description: "The timestamp when the object was archived, in ISO 8601 format.",
|
|
1031
|
+
type: "string"
|
|
1032
|
+
},
|
|
1033
|
+
associations: {
|
|
1034
|
+
description: "A map of associated object types to their associated IDs.",
|
|
1035
|
+
type: "object",
|
|
1036
|
+
properties: {},
|
|
1037
|
+
required: [],
|
|
1038
|
+
additionalProperties: {
|
|
1039
|
+
type: "ref",
|
|
1040
|
+
ref: "CollectionResponseAssociatedId"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
createdAt: {
|
|
1044
|
+
description: "The timestamp when the object was created, in ISO 8601 format.",
|
|
1045
|
+
type: "string"
|
|
1046
|
+
},
|
|
1047
|
+
id: {
|
|
1048
|
+
description: "The unique ID of the object.",
|
|
1049
|
+
type: "string"
|
|
1050
|
+
},
|
|
1051
|
+
objectWriteTraceId: {
|
|
1052
|
+
description: "An identifier used for tracing the creation or update request of the object.",
|
|
1053
|
+
type: "string"
|
|
1054
|
+
},
|
|
1055
|
+
properties: {
|
|
1056
|
+
description: "Key value pairs representing the properties of the object.",
|
|
1057
|
+
type: "object",
|
|
1058
|
+
properties: {},
|
|
1059
|
+
required: [],
|
|
1060
|
+
additionalProperties: {
|
|
1061
|
+
type: "string"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
propertiesWithHistory: {
|
|
1065
|
+
description: "Key-value pairs representing the properties of the object along with their history.",
|
|
1066
|
+
type: "object",
|
|
1067
|
+
properties: {},
|
|
1068
|
+
required: [],
|
|
1069
|
+
additionalProperties: {
|
|
1070
|
+
type: "array",
|
|
1071
|
+
items: {
|
|
1072
|
+
type: "ref",
|
|
1073
|
+
ref: "ValueWithTimestamp"
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
updatedAt: {
|
|
1078
|
+
description: "The timestamp when the object was last updated, in ISO 8601 format.",
|
|
1079
|
+
type: "string"
|
|
1080
|
+
},
|
|
1081
|
+
url: {
|
|
1082
|
+
description: "The URL link to access this object.",
|
|
1083
|
+
type: "string"
|
|
1084
|
+
},
|
|
1085
|
+
warnings: {
|
|
1086
|
+
type: "array",
|
|
1087
|
+
items: {
|
|
1088
|
+
type: "ref",
|
|
1089
|
+
ref: "PublicObjectWarning"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
required: ["archived", "createdAt", "id", "properties", "updatedAt"]
|
|
1094
|
+
},
|
|
1095
|
+
SimplePublicUpsertObject: {
|
|
1096
|
+
description: "Represents a CRM object that has either been created or updated (upserted)",
|
|
1097
|
+
type: "object",
|
|
1098
|
+
properties: {
|
|
1099
|
+
archived: {
|
|
1100
|
+
description: "Whether the object is archived.",
|
|
1101
|
+
type: "boolean"
|
|
1102
|
+
},
|
|
1103
|
+
archivedAt: {
|
|
1104
|
+
description: "The timestamp when the object was archived, in ISO 8601 format.",
|
|
1105
|
+
type: "string"
|
|
1106
|
+
},
|
|
1107
|
+
createdAt: {
|
|
1108
|
+
description: "The timestamp when the object was created, in ISO 8601 format.",
|
|
1109
|
+
type: "string"
|
|
1110
|
+
},
|
|
1111
|
+
id: {
|
|
1112
|
+
description: "The unique ID of the object.",
|
|
1113
|
+
type: "string"
|
|
1114
|
+
},
|
|
1115
|
+
"new": {
|
|
1116
|
+
description: "Whether the property is new.",
|
|
1117
|
+
type: "boolean"
|
|
1118
|
+
},
|
|
1119
|
+
objectWriteTraceId: {
|
|
1120
|
+
description: "An identifier for tracing the creation request.",
|
|
1121
|
+
type: "string"
|
|
1122
|
+
},
|
|
1123
|
+
properties: {
|
|
1124
|
+
description: "Key value pairs representing the properties of the object.",
|
|
1125
|
+
type: "object",
|
|
1126
|
+
properties: {},
|
|
1127
|
+
required: [],
|
|
1128
|
+
additionalProperties: {
|
|
1129
|
+
type: "string"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
propertiesWithHistory: {
|
|
1133
|
+
description: "Key-value pairs representing the properties of the object along with their history.",
|
|
1134
|
+
type: "object",
|
|
1135
|
+
properties: {},
|
|
1136
|
+
required: [],
|
|
1137
|
+
additionalProperties: {
|
|
1138
|
+
type: "array",
|
|
1139
|
+
items: {
|
|
1140
|
+
type: "ref",
|
|
1141
|
+
ref: "ValueWithTimestamp"
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
updatedAt: {
|
|
1146
|
+
description: "The timestamp when the object was last updated, in ISO 8601 format.",
|
|
1147
|
+
type: "string"
|
|
1148
|
+
},
|
|
1149
|
+
url: {
|
|
1150
|
+
description: "The URL associated with the object.",
|
|
1151
|
+
type: "string"
|
|
1152
|
+
},
|
|
1153
|
+
warnings: {
|
|
1154
|
+
type: "array",
|
|
1155
|
+
items: {
|
|
1156
|
+
type: "ref",
|
|
1157
|
+
ref: "PublicObjectWarning"
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
required: ["archived", "createdAt", "id", "new", "properties", "updatedAt"]
|
|
1162
|
+
},
|
|
1163
|
+
StandardError: {
|
|
1164
|
+
description: "Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.",
|
|
1165
|
+
type: "object",
|
|
1166
|
+
properties: {
|
|
1167
|
+
category: {
|
|
1168
|
+
description: "The main category of the error.",
|
|
1169
|
+
type: "string"
|
|
1170
|
+
},
|
|
1171
|
+
context: {
|
|
1172
|
+
description: "Additional context-specific information related to the error.",
|
|
1173
|
+
type: "object",
|
|
1174
|
+
properties: {},
|
|
1175
|
+
required: [],
|
|
1176
|
+
additionalProperties: {
|
|
1177
|
+
type: "array",
|
|
1178
|
+
items: {
|
|
1179
|
+
type: "string"
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
errors: {
|
|
1184
|
+
description: "The detailed error objects.",
|
|
1185
|
+
type: "array",
|
|
1186
|
+
items: {
|
|
1187
|
+
type: "ref",
|
|
1188
|
+
ref: "ErrorDetail"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
id: {
|
|
1192
|
+
description: "A unique ID for the error instance.",
|
|
1193
|
+
type: "string"
|
|
1194
|
+
},
|
|
1195
|
+
links: {
|
|
1196
|
+
description: "URLs linking to documentation or resources associated with the error.",
|
|
1197
|
+
type: "object",
|
|
1198
|
+
properties: {},
|
|
1199
|
+
required: [],
|
|
1200
|
+
additionalProperties: {
|
|
1201
|
+
type: "string"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
message: {
|
|
1205
|
+
description: "A human-readable string describing the error and possible remediation steps.",
|
|
1206
|
+
type: "string"
|
|
1207
|
+
},
|
|
1208
|
+
status: {
|
|
1209
|
+
description: 'A text status code for the error, typically "error".',
|
|
1210
|
+
type: "string"
|
|
1211
|
+
},
|
|
1212
|
+
subCategory: {
|
|
1213
|
+
description: "A more specific error category within each main category.",
|
|
1214
|
+
type: "object",
|
|
1215
|
+
properties: {},
|
|
1216
|
+
required: []
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
required: ["category", "context", "errors", "links", "message", "status"]
|
|
1220
|
+
},
|
|
1221
|
+
ValueWithTimestamp: {
|
|
1222
|
+
description: "Property model that includes timestamp.",
|
|
1223
|
+
type: "object",
|
|
1224
|
+
properties: {
|
|
1225
|
+
sourceId: {
|
|
1226
|
+
description: "A string identifier for the specific source of the value.",
|
|
1227
|
+
type: "string"
|
|
1228
|
+
},
|
|
1229
|
+
sourceLabel: {
|
|
1230
|
+
description: "A human-readable label.",
|
|
1231
|
+
type: "string"
|
|
1232
|
+
},
|
|
1233
|
+
sourceType: {
|
|
1234
|
+
description: "A string indicating the type of source from which the value originated.",
|
|
1235
|
+
type: "string"
|
|
1236
|
+
},
|
|
1237
|
+
timestamp: {
|
|
1238
|
+
description: "The timestamp when the property was updated, in ISO 8601 format.",
|
|
1239
|
+
type: "string"
|
|
1240
|
+
},
|
|
1241
|
+
updatedByUserId: {
|
|
1242
|
+
description: "The ID of the user who last updated the property.",
|
|
1243
|
+
type: "integer",
|
|
1244
|
+
format: "int32"
|
|
1245
|
+
},
|
|
1246
|
+
value: {
|
|
1247
|
+
description: "The property value.",
|
|
1248
|
+
type: "string"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
required: ["sourceType", "timestamp", "value"]
|
|
1252
|
+
},
|
|
1253
|
+
CollectionResponsePublicOwnerForwardPaging: {
|
|
1254
|
+
type: "object",
|
|
1255
|
+
properties: {
|
|
1256
|
+
paging: {
|
|
1257
|
+
type: "ref",
|
|
1258
|
+
ref: "ForwardPaging"
|
|
1259
|
+
},
|
|
1260
|
+
results: {
|
|
1261
|
+
description: "An array of PublicOwner objects, each representing an individual owner with their specific details.",
|
|
1262
|
+
type: "array",
|
|
1263
|
+
items: {
|
|
1264
|
+
type: "ref",
|
|
1265
|
+
ref: "PublicOwner"
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
required: ["results"]
|
|
1270
|
+
},
|
|
1271
|
+
PublicOwner: {
|
|
1272
|
+
type: "object",
|
|
1273
|
+
properties: {
|
|
1274
|
+
archived: {
|
|
1275
|
+
description: "Indicates whether the owner is archived.",
|
|
1276
|
+
type: "boolean"
|
|
1277
|
+
},
|
|
1278
|
+
createdAt: {
|
|
1279
|
+
description: "The date and time when the owner was created.",
|
|
1280
|
+
type: "string"
|
|
1281
|
+
},
|
|
1282
|
+
email: {
|
|
1283
|
+
description: "The email address of the owner.",
|
|
1284
|
+
type: "string"
|
|
1285
|
+
},
|
|
1286
|
+
firstName: {
|
|
1287
|
+
description: "The first name of the owner.",
|
|
1288
|
+
type: "string"
|
|
1289
|
+
},
|
|
1290
|
+
id: {
|
|
1291
|
+
description: "The unique identifier of the owner.",
|
|
1292
|
+
type: "string"
|
|
1293
|
+
},
|
|
1294
|
+
lastName: {
|
|
1295
|
+
description: "The last name of the owner.",
|
|
1296
|
+
type: "string"
|
|
1297
|
+
},
|
|
1298
|
+
teams: {
|
|
1299
|
+
description: "An array of teams associated with the owner, where each team is represented by a PublicTeam object.",
|
|
1300
|
+
type: "array",
|
|
1301
|
+
items: {
|
|
1302
|
+
type: "ref",
|
|
1303
|
+
ref: "PublicTeam"
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
type: {
|
|
1307
|
+
description: "The type of the owner, which can be either PERSON or QUEUE.",
|
|
1308
|
+
type: "string",
|
|
1309
|
+
enum: ["PERSON", "QUEUE"]
|
|
1310
|
+
},
|
|
1311
|
+
updatedAt: {
|
|
1312
|
+
description: "The date and time when the owner was last updated.",
|
|
1313
|
+
type: "string"
|
|
1314
|
+
},
|
|
1315
|
+
userId: {
|
|
1316
|
+
description: "The user ID of the owner.",
|
|
1317
|
+
type: "integer",
|
|
1318
|
+
format: "int32"
|
|
1319
|
+
},
|
|
1320
|
+
userIdIncludingInactive: {
|
|
1321
|
+
description: "The user ID of the owner, including inactive users.",
|
|
1322
|
+
type: "integer",
|
|
1323
|
+
format: "int32"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
required: ["archived", "createdAt", "id", "type", "updatedAt"]
|
|
1327
|
+
},
|
|
1328
|
+
PublicTeam: {
|
|
1329
|
+
type: "object",
|
|
1330
|
+
properties: {
|
|
1331
|
+
id: {
|
|
1332
|
+
description: "The unique identifier for the team, represented as a string.",
|
|
1333
|
+
type: "string"
|
|
1334
|
+
},
|
|
1335
|
+
name: {
|
|
1336
|
+
description: "The name of the team, represented as a string.",
|
|
1337
|
+
type: "string"
|
|
1338
|
+
},
|
|
1339
|
+
primary: {
|
|
1340
|
+
description: "A boolean indicating whether this team is the primary team.",
|
|
1341
|
+
type: "boolean"
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
required: ["id", "name", "primary"]
|
|
1345
|
+
},
|
|
1346
|
+
CollectionResponsePipelineNoPaging: {
|
|
1347
|
+
type: "object",
|
|
1348
|
+
properties: {
|
|
1349
|
+
results: {
|
|
1350
|
+
type: "array",
|
|
1351
|
+
items: {
|
|
1352
|
+
type: "ref",
|
|
1353
|
+
ref: "Pipeline"
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
required: ["results"]
|
|
1358
|
+
},
|
|
1359
|
+
CollectionResponsePipelineStageNoPaging: {
|
|
1360
|
+
type: "object",
|
|
1361
|
+
properties: {
|
|
1362
|
+
results: {
|
|
1363
|
+
type: "array",
|
|
1364
|
+
items: {
|
|
1365
|
+
type: "ref",
|
|
1366
|
+
ref: "PipelineStage"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
required: ["results"]
|
|
1371
|
+
},
|
|
1372
|
+
CollectionResponsePublicAuditInfoNoPaging: {
|
|
1373
|
+
type: "object",
|
|
1374
|
+
properties: {
|
|
1375
|
+
results: {
|
|
1376
|
+
type: "array",
|
|
1377
|
+
items: {
|
|
1378
|
+
type: "ref",
|
|
1379
|
+
ref: "PublicAuditInfo"
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
required: ["results"]
|
|
1384
|
+
},
|
|
1385
|
+
Pipeline: {
|
|
1386
|
+
type: "object",
|
|
1387
|
+
properties: {
|
|
1388
|
+
archived: {
|
|
1389
|
+
description: "Whether the pipeline is archived.",
|
|
1390
|
+
type: "boolean"
|
|
1391
|
+
},
|
|
1392
|
+
archivedAt: {
|
|
1393
|
+
description: "The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived.",
|
|
1394
|
+
type: "string"
|
|
1395
|
+
},
|
|
1396
|
+
createdAt: {
|
|
1397
|
+
description: "The date the pipeline was created. The default pipelines will have createdAt = 0.",
|
|
1398
|
+
type: "string"
|
|
1399
|
+
},
|
|
1400
|
+
displayOrder: {
|
|
1401
|
+
description: "The order for displaying this pipeline. If two pipelines have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1402
|
+
type: "integer",
|
|
1403
|
+
format: "int32"
|
|
1404
|
+
},
|
|
1405
|
+
id: {
|
|
1406
|
+
description: "A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline.",
|
|
1407
|
+
type: "string"
|
|
1408
|
+
},
|
|
1409
|
+
label: {
|
|
1410
|
+
description: "A unique label used to organize pipelines in HubSpot's UI",
|
|
1411
|
+
type: "string"
|
|
1412
|
+
},
|
|
1413
|
+
stages: {
|
|
1414
|
+
description: "The stages associated with the pipeline. They can be retrieved and updated via the pipeline stages endpoints.",
|
|
1415
|
+
type: "array",
|
|
1416
|
+
items: {
|
|
1417
|
+
type: "ref",
|
|
1418
|
+
ref: "PipelineStage"
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
updatedAt: {
|
|
1422
|
+
description: "The date the pipeline was last updated.",
|
|
1423
|
+
type: "string"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
required: ["archived", "createdAt", "displayOrder", "id", "label", "stages", "updatedAt"]
|
|
1427
|
+
},
|
|
1428
|
+
PipelineInput: {
|
|
1429
|
+
type: "object",
|
|
1430
|
+
properties: {
|
|
1431
|
+
displayOrder: {
|
|
1432
|
+
description: "The order for displaying this pipeline. If two pipelines have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1433
|
+
type: "integer",
|
|
1434
|
+
format: "int32"
|
|
1435
|
+
},
|
|
1436
|
+
label: {
|
|
1437
|
+
description: "A unique label used to organize pipelines in HubSpot's UI",
|
|
1438
|
+
type: "string"
|
|
1439
|
+
},
|
|
1440
|
+
pipelineId: {
|
|
1441
|
+
type: "string"
|
|
1442
|
+
},
|
|
1443
|
+
stages: {
|
|
1444
|
+
description: "Pipeline stage inputs used to create the new or replacement pipeline.",
|
|
1445
|
+
type: "array",
|
|
1446
|
+
items: {
|
|
1447
|
+
type: "ref",
|
|
1448
|
+
ref: "PipelineStageInput"
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
required: ["displayOrder", "label", "stages"]
|
|
1453
|
+
},
|
|
1454
|
+
PipelinePatchInput: {
|
|
1455
|
+
type: "object",
|
|
1456
|
+
properties: {
|
|
1457
|
+
archived: {
|
|
1458
|
+
description: "Whether the pipeline is archived. This property should only be provided when restoring an archived pipeline. If it's provided in any other call, the request will fail and a `400 Bad Request` will be returned.",
|
|
1459
|
+
type: "boolean"
|
|
1460
|
+
},
|
|
1461
|
+
displayOrder: {
|
|
1462
|
+
description: "The order for displaying this pipeline. If two pipelines have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1463
|
+
type: "integer",
|
|
1464
|
+
format: "int32"
|
|
1465
|
+
},
|
|
1466
|
+
label: {
|
|
1467
|
+
description: "A unique label used to organize pipelines in HubSpot's UI",
|
|
1468
|
+
type: "string"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
required: []
|
|
1472
|
+
},
|
|
1473
|
+
PipelineReplaceInput: {
|
|
1474
|
+
type: "object",
|
|
1475
|
+
properties: {
|
|
1476
|
+
displayOrder: {
|
|
1477
|
+
description: "The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1478
|
+
type: "integer",
|
|
1479
|
+
format: "int32"
|
|
1480
|
+
},
|
|
1481
|
+
label: {
|
|
1482
|
+
description: "A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.",
|
|
1483
|
+
type: "string"
|
|
1484
|
+
},
|
|
1485
|
+
stages: {
|
|
1486
|
+
description: "The stages associated with the pipeline. They can be retrieved and updated via the pipeline stages endpoints.",
|
|
1487
|
+
type: "array",
|
|
1488
|
+
items: {
|
|
1489
|
+
type: "ref",
|
|
1490
|
+
ref: "PipelineStageInput"
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
required: ["displayOrder", "label", "stages"]
|
|
1495
|
+
},
|
|
1496
|
+
PipelineStage: {
|
|
1497
|
+
type: "object",
|
|
1498
|
+
properties: {
|
|
1499
|
+
archived: {
|
|
1500
|
+
description: "Whether the pipeline is archived.",
|
|
1501
|
+
type: "boolean"
|
|
1502
|
+
},
|
|
1503
|
+
archivedAt: {
|
|
1504
|
+
description: "The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived.",
|
|
1505
|
+
type: "string"
|
|
1506
|
+
},
|
|
1507
|
+
createdAt: {
|
|
1508
|
+
description: "The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0.",
|
|
1509
|
+
type: "string"
|
|
1510
|
+
},
|
|
1511
|
+
displayOrder: {
|
|
1512
|
+
description: "The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1513
|
+
type: "integer",
|
|
1514
|
+
format: "int32"
|
|
1515
|
+
},
|
|
1516
|
+
id: {
|
|
1517
|
+
description: "A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage.",
|
|
1518
|
+
type: "string"
|
|
1519
|
+
},
|
|
1520
|
+
label: {
|
|
1521
|
+
description: "A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.",
|
|
1522
|
+
type: "string"
|
|
1523
|
+
},
|
|
1524
|
+
metadata: {
|
|
1525
|
+
description: 'A JSON object containing properties that are not present on all object pipelines.\n\nFor `deals` pipelines, the `probability` field is required (`{ "probability": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1.\n\nFor `tickets` pipelines, the `ticketState` field is optional (`{ "ticketState": "OPEN" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.',
|
|
1526
|
+
type: "object",
|
|
1527
|
+
properties: {},
|
|
1528
|
+
required: [],
|
|
1529
|
+
additionalProperties: {
|
|
1530
|
+
type: "string"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
updatedAt: {
|
|
1534
|
+
description: "The date the pipeline stage was last updated.",
|
|
1535
|
+
type: "string"
|
|
1536
|
+
},
|
|
1537
|
+
writePermissions: {
|
|
1538
|
+
description: "Defines the level of write access for the pipeline stage, with possible values being CRM_PERMISSIONS_ENFORCEMENT, READ_ONLY, or INTERNAL_ONLY.",
|
|
1539
|
+
type: "string",
|
|
1540
|
+
enum: ["CRM_PERMISSIONS_ENFORCEMENT", "INTERNAL_ONLY", "READ_ONLY"]
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
required: ["archived", "createdAt", "displayOrder", "id", "label", "metadata", "updatedAt", "writePermissions"]
|
|
1544
|
+
},
|
|
1545
|
+
PipelineStageInput: {
|
|
1546
|
+
type: "object",
|
|
1547
|
+
properties: {
|
|
1548
|
+
displayOrder: {
|
|
1549
|
+
description: "The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1550
|
+
type: "integer",
|
|
1551
|
+
format: "int32"
|
|
1552
|
+
},
|
|
1553
|
+
label: {
|
|
1554
|
+
description: "A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.",
|
|
1555
|
+
type: "string"
|
|
1556
|
+
},
|
|
1557
|
+
metadata: {
|
|
1558
|
+
description: 'A JSON object containing properties that are not present on all object pipelines.\n\nFor `deals` pipelines, the `probability` field is required (`{ "probability": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1.\n\nFor `tickets` pipelines, the `ticketState` field is optional (`{ "ticketState": "OPEN" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.',
|
|
1559
|
+
type: "object",
|
|
1560
|
+
properties: {},
|
|
1561
|
+
required: [],
|
|
1562
|
+
additionalProperties: {
|
|
1563
|
+
type: "string"
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
stageId: {
|
|
1567
|
+
type: "string"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
required: ["displayOrder", "label", "metadata"]
|
|
1571
|
+
},
|
|
1572
|
+
PipelineStagePatchInput: {
|
|
1573
|
+
type: "object",
|
|
1574
|
+
properties: {
|
|
1575
|
+
archived: {
|
|
1576
|
+
description: "Whether the pipeline is archived.",
|
|
1577
|
+
type: "boolean"
|
|
1578
|
+
},
|
|
1579
|
+
displayOrder: {
|
|
1580
|
+
description: "The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1581
|
+
type: "integer",
|
|
1582
|
+
format: "int32"
|
|
1583
|
+
},
|
|
1584
|
+
label: {
|
|
1585
|
+
description: "A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.",
|
|
1586
|
+
type: "string"
|
|
1587
|
+
},
|
|
1588
|
+
metadata: {
|
|
1589
|
+
description: 'A JSON object containing properties that are not present on all object pipelines.\n\nFor `deals` pipelines, the `probability` field is required (`{ "probability": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1.\n\nFor `tickets` pipelines, the `ticketState` field is optional (`{ "ticketState": "OPEN" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.',
|
|
1590
|
+
type: "object",
|
|
1591
|
+
properties: {},
|
|
1592
|
+
required: [],
|
|
1593
|
+
additionalProperties: {
|
|
1594
|
+
type: "string"
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
required: ["metadata"]
|
|
1599
|
+
},
|
|
1600
|
+
PipelineStageReplaceInput: {
|
|
1601
|
+
type: "object",
|
|
1602
|
+
properties: {
|
|
1603
|
+
displayOrder: {
|
|
1604
|
+
description: "The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.",
|
|
1605
|
+
type: "integer",
|
|
1606
|
+
format: "int32"
|
|
1607
|
+
},
|
|
1608
|
+
label: {
|
|
1609
|
+
description: "A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.",
|
|
1610
|
+
type: "string"
|
|
1611
|
+
},
|
|
1612
|
+
metadata: {
|
|
1613
|
+
description: 'A JSON object containing properties that are not present on all object pipelines.\n\nFor `deals` pipelines, the `probability` field is required (`{ "probability": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1.\n\nFor `tickets` pipelines, the `ticketState` field is optional (`{ "ticketState": "OPEN" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.',
|
|
1614
|
+
type: "object",
|
|
1615
|
+
properties: {},
|
|
1616
|
+
required: [],
|
|
1617
|
+
additionalProperties: {
|
|
1618
|
+
type: "string"
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
required: ["displayOrder", "label", "metadata"]
|
|
1623
|
+
},
|
|
1624
|
+
PublicAuditInfo: {
|
|
1625
|
+
type: "object",
|
|
1626
|
+
properties: {
|
|
1627
|
+
action: {
|
|
1628
|
+
description: "The action performed that triggered the audit event.",
|
|
1629
|
+
type: "string"
|
|
1630
|
+
},
|
|
1631
|
+
fromUserId: {
|
|
1632
|
+
description: "The ID of the user who initiated the audit event.",
|
|
1633
|
+
type: "integer",
|
|
1634
|
+
format: "int32"
|
|
1635
|
+
},
|
|
1636
|
+
identifier: {
|
|
1637
|
+
description: "A unique string identifier for the audit event.",
|
|
1638
|
+
type: "string"
|
|
1639
|
+
},
|
|
1640
|
+
message: {
|
|
1641
|
+
description: "A descriptive message related to the audit event.",
|
|
1642
|
+
type: "string"
|
|
1643
|
+
},
|
|
1644
|
+
portalId: {
|
|
1645
|
+
description: "The unique identifier for the HubSpot portal where the audit event occurred.",
|
|
1646
|
+
type: "integer",
|
|
1647
|
+
format: "int32"
|
|
1648
|
+
},
|
|
1649
|
+
rawObject: {
|
|
1650
|
+
description: "An object containing the raw data associated with the audit event.",
|
|
1651
|
+
type: "object",
|
|
1652
|
+
properties: {},
|
|
1653
|
+
required: []
|
|
1654
|
+
},
|
|
1655
|
+
timestamp: {
|
|
1656
|
+
description: "The date and time when the audit event took place.",
|
|
1657
|
+
type: "string"
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
required: ["action", "identifier", "portalId"]
|
|
1661
|
+
},
|
|
1662
|
+
BatchInputPropertyCreate: {
|
|
1663
|
+
type: "object",
|
|
1664
|
+
properties: {
|
|
1665
|
+
inputs: {
|
|
1666
|
+
description: "An array of PropertyCreate objects, each representing a property to be created. This field is required.",
|
|
1667
|
+
type: "array",
|
|
1668
|
+
items: {
|
|
1669
|
+
type: "ref",
|
|
1670
|
+
ref: "PropertyCreate"
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
required: ["inputs"]
|
|
1675
|
+
},
|
|
1676
|
+
BatchInputPropertyName: {
|
|
1677
|
+
type: "object",
|
|
1678
|
+
properties: {
|
|
1679
|
+
inputs: {
|
|
1680
|
+
description: "An array of property names to be processed in the batch operation. Each item in the array is a reference to a PropertyName object.",
|
|
1681
|
+
type: "array",
|
|
1682
|
+
items: {
|
|
1683
|
+
type: "ref",
|
|
1684
|
+
ref: "PropertyName"
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
required: ["inputs"]
|
|
1689
|
+
},
|
|
1690
|
+
BatchReadInputPropertyName: {
|
|
1691
|
+
type: "object",
|
|
1692
|
+
properties: {
|
|
1693
|
+
archived: {
|
|
1694
|
+
description: "Specifies whether the property is archived.",
|
|
1695
|
+
type: "boolean"
|
|
1696
|
+
},
|
|
1697
|
+
dataSensitivity: {
|
|
1698
|
+
description: "Indicates the sensitivity level of the data, such as 'non_sensitive', 'sensitive', or 'highly_sensitive'.",
|
|
1699
|
+
type: "string",
|
|
1700
|
+
enum: ["highly_sensitive", "non_sensitive", "sensitive"]
|
|
1701
|
+
},
|
|
1702
|
+
inputs: {
|
|
1703
|
+
description: "An array of property names to be included in the batch read operation. Each item in the array is a reference to a PropertyName object.",
|
|
1704
|
+
type: "array",
|
|
1705
|
+
items: {
|
|
1706
|
+
type: "ref",
|
|
1707
|
+
ref: "PropertyName"
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
required: ["archived", "dataSensitivity", "inputs"]
|
|
1712
|
+
},
|
|
1713
|
+
BatchResponseProperty: {
|
|
1714
|
+
type: "object",
|
|
1715
|
+
properties: {
|
|
1716
|
+
completedAt: {
|
|
1717
|
+
description: "The timestamp indicating when the batch operation was completed.",
|
|
1718
|
+
type: "string"
|
|
1719
|
+
},
|
|
1720
|
+
links: {
|
|
1721
|
+
description: "A collection of URLs linking to documentation or resources related to the batch operation.",
|
|
1722
|
+
type: "object",
|
|
1723
|
+
properties: {},
|
|
1724
|
+
required: [],
|
|
1725
|
+
additionalProperties: {
|
|
1726
|
+
type: "string"
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
requestedAt: {
|
|
1730
|
+
description: "The timestamp indicating when the batch operation was requested.",
|
|
1731
|
+
type: "string"
|
|
1732
|
+
},
|
|
1733
|
+
results: {
|
|
1734
|
+
description: "An array of Property objects representing the results of the batch operation.",
|
|
1735
|
+
type: "array",
|
|
1736
|
+
items: {
|
|
1737
|
+
type: "ref",
|
|
1738
|
+
ref: "Property"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
startedAt: {
|
|
1742
|
+
description: "The timestamp indicating when the batch operation began processing.",
|
|
1743
|
+
type: "string"
|
|
1744
|
+
},
|
|
1745
|
+
status: {
|
|
1746
|
+
description: "The current status of the batch operation, with possible values being CANCELED, COMPLETE, PENDING, or PROCESSING.",
|
|
1747
|
+
type: "string",
|
|
1748
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
1752
|
+
},
|
|
1753
|
+
BatchResponsePropertyWithErrors: {
|
|
1754
|
+
type: "object",
|
|
1755
|
+
properties: {
|
|
1756
|
+
completedAt: {
|
|
1757
|
+
description: "The date and time when the batch operation was completed, in ISO 8601 format.",
|
|
1758
|
+
type: "string"
|
|
1759
|
+
},
|
|
1760
|
+
errors: {
|
|
1761
|
+
description: "An array of errors encountered during the batch operation, each represented by a StandardError object.",
|
|
1762
|
+
type: "array",
|
|
1763
|
+
items: {
|
|
1764
|
+
type: "ref",
|
|
1765
|
+
ref: "StandardError"
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
links: {
|
|
1769
|
+
description: "A map of link names to their associated URIs, providing additional information or actions related to the batch operation.",
|
|
1770
|
+
type: "object",
|
|
1771
|
+
properties: {},
|
|
1772
|
+
required: [],
|
|
1773
|
+
additionalProperties: {
|
|
1774
|
+
type: "string"
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
numErrors: {
|
|
1778
|
+
description: "The number of errors encountered during the batch operation.",
|
|
1779
|
+
type: "integer",
|
|
1780
|
+
format: "int32"
|
|
1781
|
+
},
|
|
1782
|
+
requestedAt: {
|
|
1783
|
+
description: "The date and time when the batch operation was requested, in ISO 8601 format.",
|
|
1784
|
+
type: "string"
|
|
1785
|
+
},
|
|
1786
|
+
results: {
|
|
1787
|
+
description: "An array of properties that were processed in the batch operation.",
|
|
1788
|
+
type: "array",
|
|
1789
|
+
items: {
|
|
1790
|
+
type: "ref",
|
|
1791
|
+
ref: "Property"
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
startedAt: {
|
|
1795
|
+
description: "The date and time when the batch operation started, in ISO 8601 format.",
|
|
1796
|
+
type: "string"
|
|
1797
|
+
},
|
|
1798
|
+
status: {
|
|
1799
|
+
description: "The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.",
|
|
1800
|
+
type: "string",
|
|
1801
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
1805
|
+
},
|
|
1806
|
+
CollectionResponsePropertyGroupNoPaging: {
|
|
1807
|
+
type: "object",
|
|
1808
|
+
properties: {
|
|
1809
|
+
results: {
|
|
1810
|
+
description: "An array of property groups, where each group is represented by a PropertyGroup object.",
|
|
1811
|
+
type: "array",
|
|
1812
|
+
items: {
|
|
1813
|
+
type: "ref",
|
|
1814
|
+
ref: "PropertyGroup"
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
},
|
|
1818
|
+
required: ["results"]
|
|
1819
|
+
},
|
|
1820
|
+
CollectionResponsePropertyNoPaging: {
|
|
1821
|
+
type: "object",
|
|
1822
|
+
properties: {
|
|
1823
|
+
results: {
|
|
1824
|
+
description: "An array of Property objects, each representing a specific property associated with the object type. This array contains the details of each property such as name, label, type, and other metadata.",
|
|
1825
|
+
type: "array",
|
|
1826
|
+
items: {
|
|
1827
|
+
type: "ref",
|
|
1828
|
+
ref: "Property"
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
required: ["results"]
|
|
1833
|
+
},
|
|
1834
|
+
Option: {
|
|
1835
|
+
description: "A HubSpot property option",
|
|
1836
|
+
type: "object",
|
|
1837
|
+
properties: {
|
|
1838
|
+
description: {
|
|
1839
|
+
description: "A description of the option.",
|
|
1840
|
+
type: "string"
|
|
1841
|
+
},
|
|
1842
|
+
displayOrder: {
|
|
1843
|
+
description: "Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values.",
|
|
1844
|
+
type: "integer",
|
|
1845
|
+
format: "int32"
|
|
1846
|
+
},
|
|
1847
|
+
hidden: {
|
|
1848
|
+
description: "Hidden options will not be displayed in HubSpot.",
|
|
1849
|
+
type: "boolean"
|
|
1850
|
+
},
|
|
1851
|
+
label: {
|
|
1852
|
+
description: "A human-readable option label that will be shown in HubSpot.",
|
|
1853
|
+
type: "string"
|
|
1854
|
+
},
|
|
1855
|
+
value: {
|
|
1856
|
+
description: "The internal value of the option, which must be used when setting the property value through the API.",
|
|
1857
|
+
type: "string"
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
required: ["hidden", "label", "value"]
|
|
1861
|
+
},
|
|
1862
|
+
OptionInput: {
|
|
1863
|
+
type: "object",
|
|
1864
|
+
properties: {
|
|
1865
|
+
description: {
|
|
1866
|
+
description: "A description of the option.",
|
|
1867
|
+
type: "string"
|
|
1868
|
+
},
|
|
1869
|
+
displayOrder: {
|
|
1870
|
+
description: "Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values.",
|
|
1871
|
+
type: "integer",
|
|
1872
|
+
format: "int32"
|
|
1873
|
+
},
|
|
1874
|
+
hidden: {
|
|
1875
|
+
description: "Hidden options won't be shown in HubSpot.",
|
|
1876
|
+
type: "boolean"
|
|
1877
|
+
},
|
|
1878
|
+
label: {
|
|
1879
|
+
description: "A human-readable option label that will be shown in HubSpot.",
|
|
1880
|
+
type: "string"
|
|
1881
|
+
},
|
|
1882
|
+
value: {
|
|
1883
|
+
description: "The internal value of the option, which must be used when setting the property value through the API.",
|
|
1884
|
+
type: "string"
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
required: ["displayOrder", "hidden", "label", "value"]
|
|
1888
|
+
},
|
|
1889
|
+
Property: {
|
|
1890
|
+
description: "A HubSpot property",
|
|
1891
|
+
type: "object",
|
|
1892
|
+
properties: {
|
|
1893
|
+
archived: {
|
|
1894
|
+
description: "Whether or not the property is archived.",
|
|
1895
|
+
type: "boolean"
|
|
1896
|
+
},
|
|
1897
|
+
archivedAt: {
|
|
1898
|
+
description: "When the property was archived.",
|
|
1899
|
+
type: "string"
|
|
1900
|
+
},
|
|
1901
|
+
calculated: {
|
|
1902
|
+
description: "For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties.",
|
|
1903
|
+
type: "boolean"
|
|
1904
|
+
},
|
|
1905
|
+
calculationFormula: {
|
|
1906
|
+
description: "Represents a formula that is used to compute a calculated property.",
|
|
1907
|
+
type: "string"
|
|
1908
|
+
},
|
|
1909
|
+
createdAt: {
|
|
1910
|
+
description: "The timestamp when the property was created, in ISO 8601 format.",
|
|
1911
|
+
type: "string"
|
|
1912
|
+
},
|
|
1913
|
+
createdUserId: {
|
|
1914
|
+
description: "The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot.",
|
|
1915
|
+
type: "string"
|
|
1916
|
+
},
|
|
1917
|
+
currencyPropertyName: {
|
|
1918
|
+
description: "The name of the currency property associated with this property, if applicable.",
|
|
1919
|
+
type: "string"
|
|
1920
|
+
},
|
|
1921
|
+
dataSensitivity: {
|
|
1922
|
+
description: "The sensitivity level of the data. Valid values include 'non_sensitive', 'sensitive', and 'highly_sensitive'.",
|
|
1923
|
+
type: "string",
|
|
1924
|
+
enum: ["highly_sensitive", "non_sensitive", "sensitive"]
|
|
1925
|
+
},
|
|
1926
|
+
dateDisplayHint: {
|
|
1927
|
+
description: "Indicates how date values should be displayed, with options such as 'absolute', 'absolute_with_relative', 'time_since', or 'time_until'.",
|
|
1928
|
+
type: "string",
|
|
1929
|
+
enum: ["absolute", "absolute_with_relative", "time_since", "time_until"]
|
|
1930
|
+
},
|
|
1931
|
+
description: {
|
|
1932
|
+
description: "A description of the property that will be shown as help text in HubSpot.",
|
|
1933
|
+
type: "string"
|
|
1934
|
+
},
|
|
1935
|
+
displayOrder: {
|
|
1936
|
+
description: "Properties are shown in order, starting with the lowest positive integer value.",
|
|
1937
|
+
type: "integer",
|
|
1938
|
+
format: "int32"
|
|
1939
|
+
},
|
|
1940
|
+
externalOptions: {
|
|
1941
|
+
description: "For default properties, true indicates that the options are stored externally to the property settings.",
|
|
1942
|
+
type: "boolean"
|
|
1943
|
+
},
|
|
1944
|
+
fieldType: {
|
|
1945
|
+
description: "Controls how the property appears in HubSpot.",
|
|
1946
|
+
type: "string"
|
|
1947
|
+
},
|
|
1948
|
+
formField: {
|
|
1949
|
+
description: "Whether or not the property can be used in a HubSpot form.",
|
|
1950
|
+
type: "boolean"
|
|
1951
|
+
},
|
|
1952
|
+
groupName: {
|
|
1953
|
+
description: "The name of the property group the property belongs to.",
|
|
1954
|
+
type: "string"
|
|
1955
|
+
},
|
|
1956
|
+
hasUniqueValue: {
|
|
1957
|
+
description: "Whether or not the property's value must be unique. Once set, this can't be changed.",
|
|
1958
|
+
type: "boolean"
|
|
1959
|
+
},
|
|
1960
|
+
hidden: {
|
|
1961
|
+
description: "Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties.",
|
|
1962
|
+
type: "boolean"
|
|
1963
|
+
},
|
|
1964
|
+
hubspotDefined: {
|
|
1965
|
+
description: "This will be true for default object properties built into HubSpot.",
|
|
1966
|
+
type: "boolean"
|
|
1967
|
+
},
|
|
1968
|
+
label: {
|
|
1969
|
+
description: "A human-readable property label that will be shown in HubSpot.",
|
|
1970
|
+
type: "string"
|
|
1971
|
+
},
|
|
1972
|
+
modificationMetadata: {
|
|
1973
|
+
type: "ref",
|
|
1974
|
+
ref: "PropertyModificationMetadata"
|
|
1975
|
+
},
|
|
1976
|
+
name: {
|
|
1977
|
+
description: "The internal property name, which must be used when referencing the property via the API.",
|
|
1978
|
+
type: "string"
|
|
1979
|
+
},
|
|
1980
|
+
numberDisplayHint: {
|
|
1981
|
+
description: "A hint for displaying number properties. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'.",
|
|
1982
|
+
type: "string",
|
|
1983
|
+
enum: ["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
|
|
1984
|
+
},
|
|
1985
|
+
options: {
|
|
1986
|
+
description: "A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types.",
|
|
1987
|
+
type: "array",
|
|
1988
|
+
items: {
|
|
1989
|
+
type: "ref",
|
|
1990
|
+
ref: "Option"
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
referencedObjectType: {
|
|
1994
|
+
description: "If this property is related to other object(s), they'll be listed here.",
|
|
1995
|
+
type: "string"
|
|
1996
|
+
},
|
|
1997
|
+
sensitiveDataCategories: {
|
|
1998
|
+
description: "An array of categories indicating the sensitivity of the data contained in the property.",
|
|
1999
|
+
type: "array",
|
|
2000
|
+
items: {
|
|
2001
|
+
type: "string"
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
showCurrencySymbol: {
|
|
2005
|
+
description: "Whether or not the property will display the currency symbol set in the account settings.",
|
|
2006
|
+
type: "boolean"
|
|
2007
|
+
},
|
|
2008
|
+
textDisplayHint: {
|
|
2009
|
+
description: "A hint for displaying text properties. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', and 'postal_code'.",
|
|
2010
|
+
type: "string",
|
|
2011
|
+
enum: [
|
|
2012
|
+
"domain_name",
|
|
2013
|
+
"email",
|
|
2014
|
+
"ip_address",
|
|
2015
|
+
"multi_line",
|
|
2016
|
+
"phone_number",
|
|
2017
|
+
"physical_address",
|
|
2018
|
+
"postal_code",
|
|
2019
|
+
"unformatted_single_line"
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
2022
|
+
type: {
|
|
2023
|
+
description: "The property data type.",
|
|
2024
|
+
type: "string"
|
|
2025
|
+
},
|
|
2026
|
+
updatedAt: {
|
|
2027
|
+
description: "The timestamp when the property was last updated, in ISO 8601 format.",
|
|
2028
|
+
type: "string"
|
|
2029
|
+
},
|
|
2030
|
+
updatedUserId: {
|
|
2031
|
+
description: "The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot.",
|
|
2032
|
+
type: "string"
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
required: ["description", "fieldType", "groupName", "label", "name", "options", "type"]
|
|
2036
|
+
},
|
|
2037
|
+
PropertyCreate: {
|
|
2038
|
+
type: "object",
|
|
2039
|
+
properties: {
|
|
2040
|
+
calculationFormula: {
|
|
2041
|
+
description: "Represents a formula that is used to compute a calculated property.",
|
|
2042
|
+
type: "string"
|
|
2043
|
+
},
|
|
2044
|
+
currencyPropertyName: {
|
|
2045
|
+
description: "A string representing the name of the currency property.",
|
|
2046
|
+
type: "string"
|
|
2047
|
+
},
|
|
2048
|
+
dataSensitivity: {
|
|
2049
|
+
description: "Indicates the sensitivity level of the property, with options: highly_sensitive, non_sensitive, or sensitive.",
|
|
2050
|
+
type: "string",
|
|
2051
|
+
enum: ["highly_sensitive", "non_sensitive", "sensitive"]
|
|
2052
|
+
},
|
|
2053
|
+
description: {
|
|
2054
|
+
description: "A description of the property that will be shown as help text in HubSpot.",
|
|
2055
|
+
type: "string"
|
|
2056
|
+
},
|
|
2057
|
+
displayOrder: {
|
|
2058
|
+
description: "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values.",
|
|
2059
|
+
type: "integer",
|
|
2060
|
+
format: "int32"
|
|
2061
|
+
},
|
|
2062
|
+
externalOptions: {
|
|
2063
|
+
description: "Applicable only for 'enumeration' type properties. Should be set to true in conjunction with a 'referencedObjectType' of 'OWNER'. Otherwise false.",
|
|
2064
|
+
type: "boolean"
|
|
2065
|
+
},
|
|
2066
|
+
fieldType: {
|
|
2067
|
+
description: "Controls how the property appears in HubSpot.",
|
|
2068
|
+
type: "string",
|
|
2069
|
+
enum: [
|
|
2070
|
+
"booleancheckbox",
|
|
2071
|
+
"calculation_equation",
|
|
2072
|
+
"checkbox",
|
|
2073
|
+
"date",
|
|
2074
|
+
"file",
|
|
2075
|
+
"html",
|
|
2076
|
+
"number",
|
|
2077
|
+
"phonenumber",
|
|
2078
|
+
"radio",
|
|
2079
|
+
"select",
|
|
2080
|
+
"text",
|
|
2081
|
+
"textarea"
|
|
2082
|
+
]
|
|
2083
|
+
},
|
|
2084
|
+
formField: {
|
|
2085
|
+
description: "Whether or not the property can be used in a HubSpot form.",
|
|
2086
|
+
type: "boolean"
|
|
2087
|
+
},
|
|
2088
|
+
groupName: {
|
|
2089
|
+
description: "The name of the property group the property belongs to.",
|
|
2090
|
+
type: "string"
|
|
2091
|
+
},
|
|
2092
|
+
hasUniqueValue: {
|
|
2093
|
+
description: "Whether or not the property's value must be unique. Once set, this can't be changed.",
|
|
2094
|
+
type: "boolean"
|
|
2095
|
+
},
|
|
2096
|
+
hidden: {
|
|
2097
|
+
description: "If true, the property won't be visible and can't be used in HubSpot.",
|
|
2098
|
+
type: "boolean"
|
|
2099
|
+
},
|
|
2100
|
+
label: {
|
|
2101
|
+
description: "A human-readable property label that will be shown in HubSpot.",
|
|
2102
|
+
type: "string"
|
|
2103
|
+
},
|
|
2104
|
+
name: {
|
|
2105
|
+
description: "The internal property name, which must be used when referencing the property via the API.",
|
|
2106
|
+
type: "string"
|
|
2107
|
+
},
|
|
2108
|
+
numberDisplayHint: {
|
|
2109
|
+
description: "A string providing a hint on how to display numbers. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', 'probability'.",
|
|
2110
|
+
type: "string",
|
|
2111
|
+
enum: ["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
|
|
2112
|
+
},
|
|
2113
|
+
options: {
|
|
2114
|
+
description: "A list of valid options for the property. This field is required for enumerated properties.",
|
|
2115
|
+
type: "array",
|
|
2116
|
+
items: {
|
|
2117
|
+
type: "ref",
|
|
2118
|
+
ref: "OptionInput"
|
|
2119
|
+
}
|
|
2120
|
+
},
|
|
2121
|
+
referencedObjectType: {
|
|
2122
|
+
description: "Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users.",
|
|
2123
|
+
type: "string"
|
|
2124
|
+
},
|
|
2125
|
+
showCurrencySymbol: {
|
|
2126
|
+
description: "A boolean indicating whether to show the currency symbol for currency fields.",
|
|
2127
|
+
type: "boolean"
|
|
2128
|
+
},
|
|
2129
|
+
textDisplayHint: {
|
|
2130
|
+
description: "A string providing a hint on how to display text. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', 'postal_code'.",
|
|
2131
|
+
type: "string",
|
|
2132
|
+
enum: [
|
|
2133
|
+
"domain_name",
|
|
2134
|
+
"email",
|
|
2135
|
+
"ip_address",
|
|
2136
|
+
"multi_line",
|
|
2137
|
+
"phone_number",
|
|
2138
|
+
"physical_address",
|
|
2139
|
+
"postal_code",
|
|
2140
|
+
"unformatted_single_line"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
type: {
|
|
2144
|
+
description: "The data type of the property.",
|
|
2145
|
+
type: "string",
|
|
2146
|
+
enum: ["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"]
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
required: ["fieldType", "groupName", "label", "name", "type"]
|
|
2150
|
+
},
|
|
2151
|
+
PropertyGroup: {
|
|
2152
|
+
type: "object",
|
|
2153
|
+
properties: {
|
|
2154
|
+
archived: {
|
|
2155
|
+
description: "Indicates whether the property group is archived.",
|
|
2156
|
+
type: "boolean"
|
|
2157
|
+
},
|
|
2158
|
+
displayOrder: {
|
|
2159
|
+
description: "Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.",
|
|
2160
|
+
type: "integer",
|
|
2161
|
+
format: "int32"
|
|
2162
|
+
},
|
|
2163
|
+
label: {
|
|
2164
|
+
description: "A human-readable label that will be shown in HubSpot.",
|
|
2165
|
+
type: "string"
|
|
2166
|
+
},
|
|
2167
|
+
name: {
|
|
2168
|
+
description: "The internal property group name, which must be used when referencing the property group via the API.",
|
|
2169
|
+
type: "string"
|
|
2170
|
+
}
|
|
2171
|
+
},
|
|
2172
|
+
required: ["archived", "label", "name"]
|
|
2173
|
+
},
|
|
2174
|
+
PropertyGroupCreate: {
|
|
2175
|
+
type: "object",
|
|
2176
|
+
properties: {
|
|
2177
|
+
displayOrder: {
|
|
2178
|
+
description: "Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.",
|
|
2179
|
+
type: "integer",
|
|
2180
|
+
format: "int32"
|
|
2181
|
+
},
|
|
2182
|
+
label: {
|
|
2183
|
+
description: "A human-readable label that will be shown in HubSpot.",
|
|
2184
|
+
type: "string"
|
|
2185
|
+
},
|
|
2186
|
+
name: {
|
|
2187
|
+
description: "The internal property group name, which must be used when referencing the property group via the API.",
|
|
2188
|
+
type: "string"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
required: ["label", "name"]
|
|
2192
|
+
},
|
|
2193
|
+
PropertyGroupUpdate: {
|
|
2194
|
+
type: "object",
|
|
2195
|
+
properties: {
|
|
2196
|
+
displayOrder: {
|
|
2197
|
+
description: "Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.",
|
|
2198
|
+
type: "integer",
|
|
2199
|
+
format: "int32"
|
|
2200
|
+
},
|
|
2201
|
+
label: {
|
|
2202
|
+
description: "A human-readable label that will be shown in HubSpot.",
|
|
2203
|
+
type: "string"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
required: []
|
|
2207
|
+
},
|
|
2208
|
+
PropertyModificationMetadata: {
|
|
2209
|
+
type: "object",
|
|
2210
|
+
properties: {
|
|
2211
|
+
archivable: {
|
|
2212
|
+
description: "Specifies whether the property can be archived.",
|
|
2213
|
+
type: "boolean"
|
|
2214
|
+
},
|
|
2215
|
+
readOnlyDefinition: {
|
|
2216
|
+
description: "Indicates whether the property's definition is read-only and cannot be modified.",
|
|
2217
|
+
type: "boolean"
|
|
2218
|
+
},
|
|
2219
|
+
readOnlyOptions: {
|
|
2220
|
+
description: "Indicates whether the property's options are read-only and cannot be modified.",
|
|
2221
|
+
type: "boolean"
|
|
2222
|
+
},
|
|
2223
|
+
readOnlyValue: {
|
|
2224
|
+
description: "Indicates whether the property's value is read-only and cannot be modified.",
|
|
2225
|
+
type: "boolean"
|
|
2226
|
+
}
|
|
2227
|
+
},
|
|
2228
|
+
required: ["archivable", "readOnlyDefinition", "readOnlyValue"]
|
|
2229
|
+
},
|
|
2230
|
+
PropertyName: {
|
|
2231
|
+
type: "object",
|
|
2232
|
+
properties: {
|
|
2233
|
+
name: {
|
|
2234
|
+
description: "The name of the property to read or modify.",
|
|
2235
|
+
type: "string"
|
|
2236
|
+
}
|
|
2237
|
+
},
|
|
2238
|
+
required: ["name"]
|
|
2239
|
+
},
|
|
2240
|
+
PropertyUpdate: {
|
|
2241
|
+
type: "object",
|
|
2242
|
+
properties: {
|
|
2243
|
+
calculationFormula: {
|
|
2244
|
+
description: "Represents a formula that is used to compute a calculated property.",
|
|
2245
|
+
type: "string"
|
|
2246
|
+
},
|
|
2247
|
+
currencyPropertyName: {
|
|
2248
|
+
description: "A string specifying the name of the property that holds the currency information, applicable when showCurrencySymbol is true.",
|
|
2249
|
+
type: "string"
|
|
2250
|
+
},
|
|
2251
|
+
description: {
|
|
2252
|
+
description: "A description of the property that will be shown as help text in HubSpot.",
|
|
2253
|
+
type: "string"
|
|
2254
|
+
},
|
|
2255
|
+
displayOrder: {
|
|
2256
|
+
description: "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values.",
|
|
2257
|
+
type: "integer",
|
|
2258
|
+
format: "int32"
|
|
2259
|
+
},
|
|
2260
|
+
fieldType: {
|
|
2261
|
+
description: "Controls how the property appears in HubSpot.",
|
|
2262
|
+
type: "string",
|
|
2263
|
+
enum: [
|
|
2264
|
+
"booleancheckbox",
|
|
2265
|
+
"calculation_equation",
|
|
2266
|
+
"checkbox",
|
|
2267
|
+
"date",
|
|
2268
|
+
"file",
|
|
2269
|
+
"html",
|
|
2270
|
+
"number",
|
|
2271
|
+
"phonenumber",
|
|
2272
|
+
"radio",
|
|
2273
|
+
"select",
|
|
2274
|
+
"text",
|
|
2275
|
+
"textarea"
|
|
2276
|
+
]
|
|
2277
|
+
},
|
|
2278
|
+
formField: {
|
|
2279
|
+
description: "Whether or not the property can be used in a HubSpot form.",
|
|
2280
|
+
type: "boolean"
|
|
2281
|
+
},
|
|
2282
|
+
groupName: {
|
|
2283
|
+
description: "The name of the property group the property belongs to.",
|
|
2284
|
+
type: "string"
|
|
2285
|
+
},
|
|
2286
|
+
hidden: {
|
|
2287
|
+
description: "If true, the property won't be visible and can't be used in HubSpot.",
|
|
2288
|
+
type: "boolean"
|
|
2289
|
+
},
|
|
2290
|
+
label: {
|
|
2291
|
+
description: "A human-readable property label that will be shown in HubSpot.",
|
|
2292
|
+
type: "string"
|
|
2293
|
+
},
|
|
2294
|
+
numberDisplayHint: {
|
|
2295
|
+
description: "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'.",
|
|
2296
|
+
type: "string",
|
|
2297
|
+
enum: ["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
|
|
2298
|
+
},
|
|
2299
|
+
options: {
|
|
2300
|
+
description: "A list of valid options for the property.",
|
|
2301
|
+
type: "array",
|
|
2302
|
+
items: {
|
|
2303
|
+
type: "ref",
|
|
2304
|
+
ref: "OptionInput"
|
|
2305
|
+
}
|
|
2306
|
+
},
|
|
2307
|
+
showCurrencySymbol: {
|
|
2308
|
+
description: "A boolean indicating whether to display a currency symbol for number fields formatted as currency.",
|
|
2309
|
+
type: "boolean"
|
|
2310
|
+
},
|
|
2311
|
+
textDisplayHint: {
|
|
2312
|
+
description: "A string providing a hint for displaying text values. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', and 'postal_code'.",
|
|
2313
|
+
type: "string",
|
|
2314
|
+
enum: [
|
|
2315
|
+
"domain_name",
|
|
2316
|
+
"email",
|
|
2317
|
+
"ip_address",
|
|
2318
|
+
"multi_line",
|
|
2319
|
+
"phone_number",
|
|
2320
|
+
"physical_address",
|
|
2321
|
+
"postal_code",
|
|
2322
|
+
"unformatted_single_line"
|
|
2323
|
+
]
|
|
2324
|
+
},
|
|
2325
|
+
type: {
|
|
2326
|
+
description: "The data type of the property.",
|
|
2327
|
+
type: "string",
|
|
2328
|
+
enum: ["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"]
|
|
2329
|
+
}
|
|
2330
|
+
},
|
|
2331
|
+
required: []
|
|
2332
|
+
},
|
|
2333
|
+
AssociationSpecWithLabel: {
|
|
2334
|
+
description: "Defines the type, direction, and details of the relationship between two CRM objects.",
|
|
2335
|
+
type: "object",
|
|
2336
|
+
properties: {
|
|
2337
|
+
category: {
|
|
2338
|
+
description: "The category of the association, such as HUBSPOT_DEFINED, USER_DEFINED, or INTEGRATOR_DEFINED.",
|
|
2339
|
+
type: "string",
|
|
2340
|
+
enum: ["HUBSPOT_DEFINED", "INTEGRATOR_DEFINED", "USER_DEFINED", "WORK"]
|
|
2341
|
+
},
|
|
2342
|
+
fromObjectTypeId: {
|
|
2343
|
+
type: "string"
|
|
2344
|
+
},
|
|
2345
|
+
label: {
|
|
2346
|
+
description: "A label describing the association between two objects.",
|
|
2347
|
+
type: "string"
|
|
2348
|
+
},
|
|
2349
|
+
toObjectTypeId: {
|
|
2350
|
+
type: "string"
|
|
2351
|
+
},
|
|
2352
|
+
typeId: {
|
|
2353
|
+
description: "The unique identifier for the type of association.",
|
|
2354
|
+
type: "integer",
|
|
2355
|
+
format: "int32"
|
|
2356
|
+
}
|
|
2357
|
+
},
|
|
2358
|
+
required: ["category", "typeId"]
|
|
2359
|
+
},
|
|
2360
|
+
BatchInputPublicAssociationMultiArchive: {
|
|
2361
|
+
type: "object",
|
|
2362
|
+
properties: {
|
|
2363
|
+
inputs: {
|
|
2364
|
+
type: "array",
|
|
2365
|
+
items: {
|
|
2366
|
+
type: "ref",
|
|
2367
|
+
ref: "PublicAssociationMultiArchive"
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
required: ["inputs"]
|
|
2372
|
+
},
|
|
2373
|
+
BatchInputPublicAssociationMultiPost: {
|
|
2374
|
+
type: "object",
|
|
2375
|
+
properties: {
|
|
2376
|
+
inputs: {
|
|
2377
|
+
type: "array",
|
|
2378
|
+
items: {
|
|
2379
|
+
type: "ref",
|
|
2380
|
+
ref: "PublicAssociationMultiPost"
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
required: ["inputs"]
|
|
2385
|
+
},
|
|
2386
|
+
BatchInputPublicDefaultAssociationMultiPost: {
|
|
2387
|
+
type: "object",
|
|
2388
|
+
properties: {
|
|
2389
|
+
inputs: {
|
|
2390
|
+
type: "array",
|
|
2391
|
+
items: {
|
|
2392
|
+
type: "ref",
|
|
2393
|
+
ref: "PublicDefaultAssociationMultiPost"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2397
|
+
required: ["inputs"]
|
|
2398
|
+
},
|
|
2399
|
+
BatchInputPublicFetchAssociationsBatchRequest: {
|
|
2400
|
+
type: "object",
|
|
2401
|
+
properties: {
|
|
2402
|
+
inputs: {
|
|
2403
|
+
type: "array",
|
|
2404
|
+
items: {
|
|
2405
|
+
type: "ref",
|
|
2406
|
+
ref: "PublicFetchAssociationsBatchRequest"
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
required: ["inputs"]
|
|
2411
|
+
},
|
|
2412
|
+
BatchResponse: {
|
|
2413
|
+
type: "object",
|
|
2414
|
+
properties: {
|
|
2415
|
+
completedAt: {
|
|
2416
|
+
type: "string"
|
|
2417
|
+
},
|
|
2418
|
+
errors: {
|
|
2419
|
+
type: "array",
|
|
2420
|
+
items: {
|
|
2421
|
+
type: "ref",
|
|
2422
|
+
ref: "StandardError"
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
links: {
|
|
2426
|
+
type: "object",
|
|
2427
|
+
properties: {},
|
|
2428
|
+
required: [],
|
|
2429
|
+
additionalProperties: {
|
|
2430
|
+
type: "string"
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
numErrors: {
|
|
2434
|
+
type: "integer",
|
|
2435
|
+
format: "int32"
|
|
2436
|
+
},
|
|
2437
|
+
requestedAt: {
|
|
2438
|
+
type: "string"
|
|
2439
|
+
},
|
|
2440
|
+
results: {
|
|
2441
|
+
type: "array",
|
|
2442
|
+
items: {
|
|
2443
|
+
type: "object",
|
|
2444
|
+
properties: {},
|
|
2445
|
+
required: []
|
|
2446
|
+
}
|
|
2447
|
+
},
|
|
2448
|
+
startedAt: {
|
|
2449
|
+
type: "string"
|
|
2450
|
+
},
|
|
2451
|
+
status: {
|
|
2452
|
+
type: "string",
|
|
2453
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2454
|
+
}
|
|
2455
|
+
},
|
|
2456
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2457
|
+
},
|
|
2458
|
+
BatchResponseLabelsBetweenObjectPair: {
|
|
2459
|
+
type: "object",
|
|
2460
|
+
properties: {
|
|
2461
|
+
completedAt: {
|
|
2462
|
+
description: "The timestamp when the batch processing was completed, in ISO 8601 format.",
|
|
2463
|
+
type: "string"
|
|
2464
|
+
},
|
|
2465
|
+
links: {
|
|
2466
|
+
description: "An object containing relevant links related to the batch request.",
|
|
2467
|
+
type: "object",
|
|
2468
|
+
properties: {},
|
|
2469
|
+
required: [],
|
|
2470
|
+
additionalProperties: {
|
|
2471
|
+
type: "string"
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
requestedAt: {
|
|
2475
|
+
description: "The timestamp when the batch request was initially made, in ISO 8601 format.",
|
|
2476
|
+
type: "string"
|
|
2477
|
+
},
|
|
2478
|
+
results: {
|
|
2479
|
+
type: "array",
|
|
2480
|
+
items: {
|
|
2481
|
+
type: "ref",
|
|
2482
|
+
ref: "LabelsBetweenObjectPair"
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
startedAt: {
|
|
2486
|
+
description: "The timestamp when the batch processing began, in ISO 8601 format.",
|
|
2487
|
+
type: "string"
|
|
2488
|
+
},
|
|
2489
|
+
status: {
|
|
2490
|
+
description: 'The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE".',
|
|
2491
|
+
type: "string",
|
|
2492
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2496
|
+
},
|
|
2497
|
+
BatchResponseLabelsBetweenObjectPairWithErrors: {
|
|
2498
|
+
type: "object",
|
|
2499
|
+
properties: {
|
|
2500
|
+
completedAt: {
|
|
2501
|
+
type: "string"
|
|
2502
|
+
},
|
|
2503
|
+
errors: {
|
|
2504
|
+
type: "array",
|
|
2505
|
+
items: {
|
|
2506
|
+
type: "ref",
|
|
2507
|
+
ref: "StandardError"
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
links: {
|
|
2511
|
+
type: "object",
|
|
2512
|
+
properties: {},
|
|
2513
|
+
required: [],
|
|
2514
|
+
additionalProperties: {
|
|
2515
|
+
type: "string"
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2518
|
+
numErrors: {
|
|
2519
|
+
type: "integer",
|
|
2520
|
+
format: "int32"
|
|
2521
|
+
},
|
|
2522
|
+
requestedAt: {
|
|
2523
|
+
type: "string"
|
|
2524
|
+
},
|
|
2525
|
+
results: {
|
|
2526
|
+
type: "array",
|
|
2527
|
+
items: {
|
|
2528
|
+
type: "ref",
|
|
2529
|
+
ref: "LabelsBetweenObjectPair"
|
|
2530
|
+
}
|
|
2531
|
+
},
|
|
2532
|
+
startedAt: {
|
|
2533
|
+
type: "string"
|
|
2534
|
+
},
|
|
2535
|
+
status: {
|
|
2536
|
+
type: "string",
|
|
2537
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2540
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2541
|
+
},
|
|
2542
|
+
BatchResponsePublicAssociationMultiWithLabel: {
|
|
2543
|
+
type: "object",
|
|
2544
|
+
properties: {
|
|
2545
|
+
completedAt: {
|
|
2546
|
+
description: "The timestamp when the batch processing was completed, in ISO 8601 format.",
|
|
2547
|
+
type: "string"
|
|
2548
|
+
},
|
|
2549
|
+
links: {
|
|
2550
|
+
description: "An object containing relevant links related to the batch request.",
|
|
2551
|
+
type: "object",
|
|
2552
|
+
properties: {},
|
|
2553
|
+
required: [],
|
|
2554
|
+
additionalProperties: {
|
|
2555
|
+
type: "string"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
requestedAt: {
|
|
2559
|
+
description: "The timestamp when the batch request was initially made, in ISO 8601 format.",
|
|
2560
|
+
type: "string"
|
|
2561
|
+
},
|
|
2562
|
+
results: {
|
|
2563
|
+
type: "array",
|
|
2564
|
+
items: {
|
|
2565
|
+
type: "ref",
|
|
2566
|
+
ref: "PublicAssociationMultiWithLabel"
|
|
2567
|
+
}
|
|
2568
|
+
},
|
|
2569
|
+
startedAt: {
|
|
2570
|
+
description: "The timestamp when the batch processing began, in ISO 8601 format.",
|
|
2571
|
+
type: "string"
|
|
2572
|
+
},
|
|
2573
|
+
status: {
|
|
2574
|
+
description: 'The status of the batch processing request: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".',
|
|
2575
|
+
type: "string",
|
|
2576
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2577
|
+
}
|
|
2578
|
+
},
|
|
2579
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2580
|
+
},
|
|
2581
|
+
BatchResponsePublicAssociationMultiWithLabelWithErrors: {
|
|
2582
|
+
type: "object",
|
|
2583
|
+
properties: {
|
|
2584
|
+
completedAt: {
|
|
2585
|
+
type: "string"
|
|
2586
|
+
},
|
|
2587
|
+
errors: {
|
|
2588
|
+
type: "array",
|
|
2589
|
+
items: {
|
|
2590
|
+
type: "ref",
|
|
2591
|
+
ref: "StandardError"
|
|
2592
|
+
}
|
|
2593
|
+
},
|
|
2594
|
+
links: {
|
|
2595
|
+
type: "object",
|
|
2596
|
+
properties: {},
|
|
2597
|
+
required: [],
|
|
2598
|
+
additionalProperties: {
|
|
2599
|
+
type: "string"
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
numErrors: {
|
|
2603
|
+
type: "integer",
|
|
2604
|
+
format: "int32"
|
|
2605
|
+
},
|
|
2606
|
+
requestedAt: {
|
|
2607
|
+
type: "string"
|
|
2608
|
+
},
|
|
2609
|
+
results: {
|
|
2610
|
+
type: "array",
|
|
2611
|
+
items: {
|
|
2612
|
+
type: "ref",
|
|
2613
|
+
ref: "PublicAssociationMultiWithLabel"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
startedAt: {
|
|
2617
|
+
type: "string"
|
|
2618
|
+
},
|
|
2619
|
+
status: {
|
|
2620
|
+
type: "string",
|
|
2621
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2622
|
+
}
|
|
2623
|
+
},
|
|
2624
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2625
|
+
},
|
|
2626
|
+
AssociationsBatchResponsePublicDefaultAssociation: {
|
|
2627
|
+
description: "The response returned after performing a batch operation on associations.",
|
|
2628
|
+
type: "object",
|
|
2629
|
+
properties: {
|
|
2630
|
+
completedAt: {
|
|
2631
|
+
description: "The timestamp when the batch process was completed, in ISO 8601 format.",
|
|
2632
|
+
type: "string"
|
|
2633
|
+
},
|
|
2634
|
+
errors: {
|
|
2635
|
+
description: "An array of StandardError objects detailing any errors that occurred during the batch operation.",
|
|
2636
|
+
type: "array",
|
|
2637
|
+
items: {
|
|
2638
|
+
type: "ref",
|
|
2639
|
+
ref: "StandardError"
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2642
|
+
links: {
|
|
2643
|
+
description: "An object containing relevant links related to the batch request.",
|
|
2644
|
+
type: "object",
|
|
2645
|
+
properties: {},
|
|
2646
|
+
required: [],
|
|
2647
|
+
additionalProperties: {
|
|
2648
|
+
type: "string"
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
numErrors: {
|
|
2652
|
+
description: "The number of errors encountered during the batch processing.",
|
|
2653
|
+
type: "integer",
|
|
2654
|
+
format: "int32"
|
|
2655
|
+
},
|
|
2656
|
+
requestedAt: {
|
|
2657
|
+
description: "The timestamp when the batch process was initiated, in ISO 8601 format.",
|
|
2658
|
+
type: "string"
|
|
2659
|
+
},
|
|
2660
|
+
results: {
|
|
2661
|
+
description: "An array of PublicDefaultAssociation objects representing the results of the batch operation.",
|
|
2662
|
+
type: "array",
|
|
2663
|
+
items: {
|
|
2664
|
+
type: "ref",
|
|
2665
|
+
ref: "PublicDefaultAssociation_1"
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
startedAt: {
|
|
2669
|
+
description: "The timestamp when the batch process began execution, in ISO 8601 format.",
|
|
2670
|
+
type: "string"
|
|
2671
|
+
},
|
|
2672
|
+
status: {
|
|
2673
|
+
description: 'The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE".',
|
|
2674
|
+
type: "string",
|
|
2675
|
+
enum: ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"]
|
|
2676
|
+
}
|
|
2677
|
+
},
|
|
2678
|
+
required: ["completedAt", "results", "startedAt", "status"]
|
|
2679
|
+
},
|
|
2680
|
+
CollectionResponseMultiAssociatedObjectWithLabelForwardPaging: {
|
|
2681
|
+
description: "Represents a paginated collection of objects that are associated with multiple labels, including the results and pagination details. This component is used when retrieving associated objects with specific labels in a forward-paging manner.",
|
|
2682
|
+
type: "object",
|
|
2683
|
+
properties: {
|
|
2684
|
+
paging: {
|
|
2685
|
+
type: "ref",
|
|
2686
|
+
ref: "ForwardPaging"
|
|
2687
|
+
},
|
|
2688
|
+
results: {
|
|
2689
|
+
description: "The list of objects that are associated with multiple labels, returned as part of the collection.",
|
|
2690
|
+
type: "array",
|
|
2691
|
+
items: {
|
|
2692
|
+
type: "ref",
|
|
2693
|
+
ref: "MultiAssociatedObjectWithLabel"
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
required: ["results"]
|
|
2698
|
+
},
|
|
2699
|
+
DateTime: {
|
|
2700
|
+
type: "object",
|
|
2701
|
+
properties: {
|
|
2702
|
+
dateOnly: {
|
|
2703
|
+
description: "Indicates whether the DateTime value represents only a date without a time component.",
|
|
2704
|
+
type: "boolean"
|
|
2705
|
+
},
|
|
2706
|
+
timeZoneShift: {
|
|
2707
|
+
description: "The integer value representing the shift in minutes from UTC for the DateTime value.",
|
|
2708
|
+
type: "integer",
|
|
2709
|
+
format: "int32"
|
|
2710
|
+
},
|
|
2711
|
+
value: {
|
|
2712
|
+
description: "The integer value representing a specific point in time.",
|
|
2713
|
+
type: "integer",
|
|
2714
|
+
format: "int64"
|
|
2715
|
+
}
|
|
2716
|
+
},
|
|
2717
|
+
required: ["dateOnly", "timeZoneShift", "value"]
|
|
2718
|
+
},
|
|
2719
|
+
MultiAssociatedObjectWithLabel: {
|
|
2720
|
+
description: "Represents an object that is associated with multiple other objects, with optional context.",
|
|
2721
|
+
type: "object",
|
|
2722
|
+
properties: {
|
|
2723
|
+
associationTypes: {
|
|
2724
|
+
description: "An array of association types that define the relationships between this object and other objects. This property is required.",
|
|
2725
|
+
type: "array",
|
|
2726
|
+
items: {
|
|
2727
|
+
type: "ref",
|
|
2728
|
+
ref: "AssociationSpecWithLabel"
|
|
2729
|
+
}
|
|
2730
|
+
},
|
|
2731
|
+
toObjectId: {
|
|
2732
|
+
description: "The unique identifier for the target object in the association.",
|
|
2733
|
+
type: "string"
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
required: ["associationTypes", "toObjectId"]
|
|
2737
|
+
},
|
|
2738
|
+
Paging1: {
|
|
2739
|
+
description: "Represents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.",
|
|
2740
|
+
type: "object",
|
|
2741
|
+
properties: {
|
|
2742
|
+
next: {
|
|
2743
|
+
type: "ref",
|
|
2744
|
+
ref: "NextPage"
|
|
2745
|
+
},
|
|
2746
|
+
prev: {
|
|
2747
|
+
type: "ref",
|
|
2748
|
+
ref: "PreviousPage"
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
required: []
|
|
2752
|
+
},
|
|
2753
|
+
PublicAssociationMultiArchive: {
|
|
2754
|
+
type: "object",
|
|
2755
|
+
properties: {
|
|
2756
|
+
from: {
|
|
2757
|
+
type: "ref",
|
|
2758
|
+
ref: "PublicObjectId"
|
|
2759
|
+
},
|
|
2760
|
+
to: {
|
|
2761
|
+
type: "array",
|
|
2762
|
+
items: {
|
|
2763
|
+
type: "ref",
|
|
2764
|
+
ref: "PublicObjectId"
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
required: ["from", "to"]
|
|
2769
|
+
},
|
|
2770
|
+
PublicAssociationMultiPost: {
|
|
2771
|
+
type: "object",
|
|
2772
|
+
properties: {
|
|
2773
|
+
from: {
|
|
2774
|
+
type: "ref",
|
|
2775
|
+
ref: "PublicObjectId"
|
|
2776
|
+
},
|
|
2777
|
+
to: {
|
|
2778
|
+
type: "ref",
|
|
2779
|
+
ref: "PublicObjectId"
|
|
2780
|
+
},
|
|
2781
|
+
types: {
|
|
2782
|
+
type: "array",
|
|
2783
|
+
items: {
|
|
2784
|
+
type: "ref",
|
|
2785
|
+
ref: "AssociationSpec"
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
},
|
|
2789
|
+
required: ["from", "to", "types"]
|
|
2790
|
+
},
|
|
2791
|
+
PublicAssociationMultiWithLabel: {
|
|
2792
|
+
type: "object",
|
|
2793
|
+
properties: {
|
|
2794
|
+
from: {
|
|
2795
|
+
type: "ref",
|
|
2796
|
+
ref: "PublicObjectId"
|
|
2797
|
+
},
|
|
2798
|
+
paging: {
|
|
2799
|
+
type: "ref",
|
|
2800
|
+
ref: "Paging_1"
|
|
2801
|
+
},
|
|
2802
|
+
to: {
|
|
2803
|
+
type: "array",
|
|
2804
|
+
items: {
|
|
2805
|
+
type: "ref",
|
|
2806
|
+
ref: "MultiAssociatedObjectWithLabel"
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
},
|
|
2810
|
+
required: ["from", "to"]
|
|
2811
|
+
},
|
|
2812
|
+
PublicDefaultAssociationMultiPost: {
|
|
2813
|
+
type: "object",
|
|
2814
|
+
properties: {
|
|
2815
|
+
from: {
|
|
2816
|
+
type: "ref",
|
|
2817
|
+
ref: "PublicObjectId"
|
|
2818
|
+
},
|
|
2819
|
+
to: {
|
|
2820
|
+
type: "ref",
|
|
2821
|
+
ref: "PublicObjectId"
|
|
2822
|
+
}
|
|
2823
|
+
},
|
|
2824
|
+
required: ["from", "to"]
|
|
2825
|
+
},
|
|
2826
|
+
PublicDefaultAssociation1: {
|
|
2827
|
+
description: "The PublicDefaultAssociation component represents the default association configuration between two objects in HubSpot. It is used to define how objects are related to each other within the platform.",
|
|
2828
|
+
type: "object",
|
|
2829
|
+
properties: {
|
|
2830
|
+
associationSpec: {
|
|
2831
|
+
type: "ref",
|
|
2832
|
+
ref: "AssociationSpec"
|
|
2833
|
+
},
|
|
2834
|
+
from: {
|
|
2835
|
+
type: "ref",
|
|
2836
|
+
ref: "PublicObjectId"
|
|
2837
|
+
},
|
|
2838
|
+
to: {
|
|
2839
|
+
type: "ref",
|
|
2840
|
+
ref: "PublicObjectId"
|
|
2841
|
+
}
|
|
2842
|
+
},
|
|
2843
|
+
required: ["associationSpec", "from", "to"]
|
|
2844
|
+
},
|
|
2845
|
+
PublicFetchAssociationsBatchRequest: {
|
|
2846
|
+
type: "object",
|
|
2847
|
+
properties: {
|
|
2848
|
+
after: {
|
|
2849
|
+
description: "A paging cursor token used to retrieve the next set of results in a paginated response.",
|
|
2850
|
+
type: "string"
|
|
2851
|
+
},
|
|
2852
|
+
id: {
|
|
2853
|
+
description: "The unique identifier for the object whose associations are being fetched.",
|
|
2854
|
+
type: "string"
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
required: ["id"]
|
|
2858
|
+
},
|
|
2859
|
+
ReportCreationResponse: {
|
|
2860
|
+
type: "object",
|
|
2861
|
+
properties: {
|
|
2862
|
+
enqueueTime: {
|
|
2863
|
+
type: "ref",
|
|
2864
|
+
ref: "DateTime"
|
|
2865
|
+
},
|
|
2866
|
+
userEmail: {
|
|
2867
|
+
description: "Email of the user",
|
|
2868
|
+
type: "string"
|
|
2869
|
+
},
|
|
2870
|
+
userId: {
|
|
2871
|
+
description: "ID of the user",
|
|
2872
|
+
type: "integer",
|
|
2873
|
+
format: "int32"
|
|
2874
|
+
}
|
|
2875
|
+
},
|
|
2876
|
+
required: ["enqueueTime", "userEmail", "userId"]
|
|
2877
|
+
},
|
|
2878
|
+
ApiUsage: {
|
|
2879
|
+
type: "object",
|
|
2880
|
+
properties: {
|
|
2881
|
+
collectedAt: {
|
|
2882
|
+
description: "Indicates when the cache was last updated.",
|
|
2883
|
+
type: "string"
|
|
2884
|
+
},
|
|
2885
|
+
currentUsage: {
|
|
2886
|
+
description: "How many API calls an account has made for the current day.",
|
|
2887
|
+
type: "integer",
|
|
2888
|
+
format: "int32"
|
|
2889
|
+
},
|
|
2890
|
+
fetchStatus: {
|
|
2891
|
+
description: "Status of fetching the information, including if the data came from the cache.",
|
|
2892
|
+
type: "string",
|
|
2893
|
+
enum: ["CACHED", "FAILURE", "NOTFOUND", "SUCCESS", "TIMEOUT"]
|
|
2894
|
+
},
|
|
2895
|
+
name: {
|
|
2896
|
+
description: "Name of the limit type.",
|
|
2897
|
+
type: "string"
|
|
2898
|
+
},
|
|
2899
|
+
resetsAt: {
|
|
2900
|
+
description: "Time that the limit will reset.",
|
|
2901
|
+
type: "string"
|
|
2902
|
+
},
|
|
2903
|
+
usageLimit: {
|
|
2904
|
+
description: "Limits by which a single integration can consume the HubSpot public APIs.",
|
|
2905
|
+
type: "integer",
|
|
2906
|
+
format: "int32"
|
|
2907
|
+
}
|
|
2908
|
+
},
|
|
2909
|
+
required: ["collectedAt", "currentUsage", "fetchStatus", "name", "usageLimit"]
|
|
2910
|
+
},
|
|
2911
|
+
CollectionResponseApiUsageNoPaging: {
|
|
2912
|
+
type: "object",
|
|
2913
|
+
properties: {
|
|
2914
|
+
results: {
|
|
2915
|
+
type: "array",
|
|
2916
|
+
items: {
|
|
2917
|
+
type: "ref",
|
|
2918
|
+
ref: "ApiUsage"
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
},
|
|
2922
|
+
required: ["results"]
|
|
2923
|
+
},
|
|
2924
|
+
PortalInformationResponse: {
|
|
2925
|
+
type: "object",
|
|
2926
|
+
properties: {
|
|
2927
|
+
accountType: {
|
|
2928
|
+
description: "The type of account, such as APP_DEVELOPER, DEVELOPER_TEST, SANDBOX, or STANDARD.",
|
|
2929
|
+
type: "string",
|
|
2930
|
+
enum: ["APP_DEVELOPER", "DEVELOPER_TEST", "SANDBOX", "STANDARD"]
|
|
2931
|
+
},
|
|
2932
|
+
additionalCurrencies: {
|
|
2933
|
+
type: "array",
|
|
2934
|
+
items: {
|
|
2935
|
+
type: "string"
|
|
2936
|
+
}
|
|
2937
|
+
},
|
|
2938
|
+
companyCurrency: {
|
|
2939
|
+
description: "The primary currency used by the company.",
|
|
2940
|
+
type: "string"
|
|
2941
|
+
},
|
|
2942
|
+
dataHostingLocation: {
|
|
2943
|
+
description: "The location where the account's data is hosted.",
|
|
2944
|
+
type: "string"
|
|
2945
|
+
},
|
|
2946
|
+
portalId: {
|
|
2947
|
+
description: "The unique identifier for the HubSpot account.",
|
|
2948
|
+
type: "integer",
|
|
2949
|
+
format: "int32"
|
|
2950
|
+
},
|
|
2951
|
+
timeZone: {
|
|
2952
|
+
description: "The time zone in which the account operates.",
|
|
2953
|
+
type: "string"
|
|
2954
|
+
},
|
|
2955
|
+
uiDomain: {
|
|
2956
|
+
description: "The domain used for accessing the HubSpot user interface.",
|
|
2957
|
+
type: "string"
|
|
2958
|
+
},
|
|
2959
|
+
utcOffset: {
|
|
2960
|
+
description: "The time zone offset from UTC in hours and minutes.",
|
|
2961
|
+
type: "string"
|
|
2962
|
+
},
|
|
2963
|
+
utcOffsetMilliseconds: {
|
|
2964
|
+
description: "The time zone offset from UTC in milliseconds.",
|
|
2965
|
+
type: "integer",
|
|
2966
|
+
format: "int64"
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
required: [
|
|
2970
|
+
"accountType",
|
|
2971
|
+
"additionalCurrencies",
|
|
2972
|
+
"companyCurrency",
|
|
2973
|
+
"dataHostingLocation",
|
|
2974
|
+
"portalId",
|
|
2975
|
+
"timeZone",
|
|
2976
|
+
"uiDomain",
|
|
2977
|
+
"utcOffset",
|
|
2978
|
+
"utcOffsetMilliseconds"
|
|
2979
|
+
]
|
|
2980
|
+
},
|
|
2981
|
+
PutCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdRequest: {
|
|
2982
|
+
type: "array",
|
|
2983
|
+
items: {
|
|
2984
|
+
type: "ref",
|
|
2985
|
+
ref: "AssociationSpec"
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2989
|
+
export {
|
|
2990
|
+
definitions
|
|
2991
|
+
};
|