@wirecat/hubspot-cli 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/LICENSE +204 -0
- package/README.md +280 -2
- package/contracts/wirecat.json +3270 -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-GXV2OFML.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-2UOJ7DLZ.js +46 -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-3WLYWRGG.js +1395 -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-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-GPYCBYX5.js +218 -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-HZRQLAHO.js +16 -0
- package/dist/bundle/chunk-IJADZW42.js +195 -0
- package/dist/bundle/chunk-IMJQRPLN.js +92 -0
- package/dist/bundle/chunk-JLDBMEKZ.js +106 -0
- package/dist/bundle/chunk-LOBVOGOE.js +66 -0
- package/dist/bundle/chunk-LXZ66MCH.js +1328 -0
- package/dist/bundle/chunk-MFNMKHML.js +26462 -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-Q2OLOMHL.js +4045 -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-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-TLKEPUAV.js +786 -0
- package/dist/bundle/chunk-TOSCB4SO.js +1227 -0
- package/dist/bundle/chunk-TP7GDWVF.js +6848 -0
- package/dist/bundle/chunk-URX6YDUL.js +9393 -0
- package/dist/bundle/chunk-UUMUL4L3.js +72 -0
- package/dist/bundle/chunk-VOH7S5M4.js +40963 -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-X2M6NIQG.js +18 -0
- package/dist/bundle/chunk-XRREFEIW.js +372 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-YMCY7VRE.js +1846 -0
- package/dist/bundle/chunk-Z73OL5HV.js +41 -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-7TGU56B2.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-UWAFSINQ.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-XA4C44Z4.js +9374 -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-ATG5KY7K.js +207 -0
- package/dist/bundle/server-VNWVVH7A.js +77 -0
- package/dist/bundle/source-54HR4IWG.js +661 -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-DXWYNVVB.js +32 -0
- package/dist/bundle/store-maintenance-command-J57HCJYY.js +68 -0
- package/dist/bundle/writer-NLLI5YRM.js +79 -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 +70 -0
- package/dist/commands/api.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 +109 -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 +60 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +153 -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 +37 -0
- package/dist/crm/source.d.ts.map +1 -0
- package/dist/crm/source.js +366 -0
- package/dist/crm/source.js.map +1 -0
- package/dist/crm/writer.d.ts +15 -0
- package/dist/crm/writer.d.ts.map +1 -0
- package/dist/crm/writer.js +199 -0
- package/dist/crm/writer.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 +6504 -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 +81 -0
- package/dist/hubspot/transport.d.ts.map +1 -0
- package/dist/hubspot/transport.js +354 -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 +78 -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/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 +102 -0
- package/skills/hubspot-cli/references/api/api-advanced.md +51 -0
- package/skills/hubspot-cli/references/api/api-basic.md +1064 -0
- package/skills/hubspot-cli/references/api/api-batch.md +724 -0
- package/skills/hubspot-cli/references/api/api-search.md +147 -0
- package/skills/hubspot-cli/references/api.md +16 -0
|
@@ -0,0 +1,952 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
array,
|
|
5
|
+
boolean,
|
|
6
|
+
check,
|
|
7
|
+
custom,
|
|
8
|
+
lazy,
|
|
9
|
+
looseObject,
|
|
10
|
+
optional,
|
|
11
|
+
picklist,
|
|
12
|
+
pipe,
|
|
13
|
+
record,
|
|
14
|
+
string,
|
|
15
|
+
transform
|
|
16
|
+
} from "./chunk-MVA5HVKL.js";
|
|
17
|
+
import {
|
|
18
|
+
__name
|
|
19
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
22
|
+
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
23
|
+
var INTEGER = /^-?\d+$/;
|
|
24
|
+
var INT64_MIN = -(2n ** 63n);
|
|
25
|
+
var INT64_MAX = 2n ** 63n - 1n;
|
|
26
|
+
var digitsOf = /* @__PURE__ */ __name((input) => {
|
|
27
|
+
if (isLossless(input))
|
|
28
|
+
return INTEGER.test(input.value) ? input.value : void 0;
|
|
29
|
+
if (typeof input === "bigint")
|
|
30
|
+
return input.toString();
|
|
31
|
+
if (typeof input === "number" && Number.isSafeInteger(input))
|
|
32
|
+
return String(input);
|
|
33
|
+
return void 0;
|
|
34
|
+
}, "digitsOf");
|
|
35
|
+
var inRange = /* @__PURE__ */ __name((value, { minimum, maximum }) => (minimum === void 0 || value >= minimum) && (maximum === void 0 || value <= maximum), "inRange");
|
|
36
|
+
var int64 = /* @__PURE__ */ __name((range = {}) => pipe(custom((input) => digitsOf(input) !== void 0, "expected an integer"), transform((input) => digitsOf(input)), check((digits) => {
|
|
37
|
+
const value = BigInt(digits);
|
|
38
|
+
return value >= INT64_MIN && value <= INT64_MAX && inRange(value, range);
|
|
39
|
+
}, "integer out of range")), "int64");
|
|
40
|
+
var integer = /* @__PURE__ */ __name((range = {}) => pipe(custom((input) => {
|
|
41
|
+
const digits = digitsOf(input);
|
|
42
|
+
return digits !== void 0 && Number.isSafeInteger(Number(digits));
|
|
43
|
+
}, "expected an integer within \xB12^53"), transform((input) => Number(digitsOf(input))), check((value) => inRange(value, range), "integer out of range")), "integer");
|
|
44
|
+
|
|
45
|
+
// dist/generated/schemas.js
|
|
46
|
+
var AssociatedId = looseObject({
|
|
47
|
+
id: string(),
|
|
48
|
+
type: string()
|
|
49
|
+
});
|
|
50
|
+
var AssociationSpec = looseObject({
|
|
51
|
+
associationCategory: picklist(["HUBSPOT_DEFINED", "INTEGRATOR_DEFINED", "USER_DEFINED", "WORK"]),
|
|
52
|
+
associationTypeId: integer()
|
|
53
|
+
});
|
|
54
|
+
var BatchInputSimplePublicObjectBatchInput = looseObject({
|
|
55
|
+
inputs: array(lazy(() => SimplePublicObjectBatchInput))
|
|
56
|
+
});
|
|
57
|
+
var BatchInputSimplePublicObjectBatchInputForCreate = looseObject({
|
|
58
|
+
inputs: array(lazy(() => SimplePublicObjectBatchInputForCreate))
|
|
59
|
+
});
|
|
60
|
+
var BatchInputSimplePublicObjectBatchInputUpsert = looseObject({
|
|
61
|
+
inputs: array(lazy(() => SimplePublicObjectBatchInputUpsert))
|
|
62
|
+
});
|
|
63
|
+
var BatchInputSimplePublicObjectId = looseObject({
|
|
64
|
+
inputs: array(lazy(() => SimplePublicObjectId))
|
|
65
|
+
});
|
|
66
|
+
var BatchReadInputSimplePublicObjectId = looseObject({
|
|
67
|
+
idProperty: optional(string()),
|
|
68
|
+
inputs: array(lazy(() => SimplePublicObjectId)),
|
|
69
|
+
properties: array(string()),
|
|
70
|
+
propertiesWithHistory: array(string())
|
|
71
|
+
});
|
|
72
|
+
var BatchResponsePublicDefaultAssociation = looseObject({
|
|
73
|
+
completedAt: string(),
|
|
74
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
75
|
+
links: optional(record(string(), string())),
|
|
76
|
+
numErrors: optional(integer()),
|
|
77
|
+
requestedAt: optional(string()),
|
|
78
|
+
results: array(lazy(() => PublicDefaultAssociation)),
|
|
79
|
+
startedAt: string(),
|
|
80
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
81
|
+
});
|
|
82
|
+
var BatchResponseSimplePublicObject = looseObject({
|
|
83
|
+
completedAt: string(),
|
|
84
|
+
links: optional(record(string(), string())),
|
|
85
|
+
requestedAt: optional(string()),
|
|
86
|
+
results: array(lazy(() => SimplePublicObject)),
|
|
87
|
+
startedAt: string(),
|
|
88
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
89
|
+
});
|
|
90
|
+
var BatchResponseSimplePublicObjectWithErrors = looseObject({
|
|
91
|
+
completedAt: string(),
|
|
92
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
93
|
+
links: optional(record(string(), string())),
|
|
94
|
+
numErrors: optional(integer()),
|
|
95
|
+
requestedAt: optional(string()),
|
|
96
|
+
results: array(lazy(() => SimplePublicObject)),
|
|
97
|
+
startedAt: string(),
|
|
98
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
99
|
+
});
|
|
100
|
+
var BatchResponseSimplePublicUpsertObject = looseObject({
|
|
101
|
+
completedAt: string(),
|
|
102
|
+
links: optional(record(string(), string())),
|
|
103
|
+
requestedAt: optional(string()),
|
|
104
|
+
results: array(lazy(() => SimplePublicUpsertObject)),
|
|
105
|
+
startedAt: string(),
|
|
106
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
107
|
+
});
|
|
108
|
+
var BatchResponseSimplePublicUpsertObjectWithErrors = looseObject({
|
|
109
|
+
completedAt: string(),
|
|
110
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
111
|
+
links: optional(record(string(), string())),
|
|
112
|
+
numErrors: optional(integer()),
|
|
113
|
+
requestedAt: optional(string()),
|
|
114
|
+
results: array(lazy(() => SimplePublicUpsertObject)),
|
|
115
|
+
startedAt: string(),
|
|
116
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
117
|
+
});
|
|
118
|
+
var CollectionResponseAssociatedId = looseObject({
|
|
119
|
+
paging: optional(lazy(() => Paging)),
|
|
120
|
+
results: array(lazy(() => AssociatedId))
|
|
121
|
+
});
|
|
122
|
+
var CollectionResponseSimplePublicObjectWithAssociationsForwardPaging = looseObject({
|
|
123
|
+
paging: optional(lazy(() => ForwardPaging)),
|
|
124
|
+
results: array(lazy(() => SimplePublicObjectWithAssociations))
|
|
125
|
+
});
|
|
126
|
+
var CollectionResponseWithTotalSimplePublicObject = looseObject({
|
|
127
|
+
paging: optional(lazy(() => Paging)),
|
|
128
|
+
results: array(lazy(() => SimplePublicObject)),
|
|
129
|
+
total: integer()
|
|
130
|
+
});
|
|
131
|
+
var ApiError = looseObject({
|
|
132
|
+
category: string(),
|
|
133
|
+
context: optional(record(string(), array(string()))),
|
|
134
|
+
correlationId: string(),
|
|
135
|
+
errors: optional(array(lazy(() => ErrorDetail))),
|
|
136
|
+
links: optional(record(string(), string())),
|
|
137
|
+
message: string(),
|
|
138
|
+
subCategory: optional(string())
|
|
139
|
+
});
|
|
140
|
+
var ErrorDetail = looseObject({
|
|
141
|
+
code: optional(string()),
|
|
142
|
+
context: optional(record(string(), array(string()))),
|
|
143
|
+
in: optional(string()),
|
|
144
|
+
message: string(),
|
|
145
|
+
subCategory: optional(string())
|
|
146
|
+
});
|
|
147
|
+
var Filter = looseObject({
|
|
148
|
+
highValue: optional(string()),
|
|
149
|
+
operator: picklist([
|
|
150
|
+
"BETWEEN",
|
|
151
|
+
"CONTAINS_TOKEN",
|
|
152
|
+
"EQ",
|
|
153
|
+
"GT",
|
|
154
|
+
"GTE",
|
|
155
|
+
"HAS_PROPERTY",
|
|
156
|
+
"IN",
|
|
157
|
+
"LT",
|
|
158
|
+
"LTE",
|
|
159
|
+
"NEQ",
|
|
160
|
+
"NOT_CONTAINS_TOKEN",
|
|
161
|
+
"NOT_HAS_PROPERTY",
|
|
162
|
+
"NOT_IN"
|
|
163
|
+
]),
|
|
164
|
+
propertyName: string(),
|
|
165
|
+
value: optional(string()),
|
|
166
|
+
values: optional(array(string()))
|
|
167
|
+
});
|
|
168
|
+
var FilterGroup = looseObject({
|
|
169
|
+
filters: array(lazy(() => Filter))
|
|
170
|
+
});
|
|
171
|
+
var ForwardPaging = looseObject({
|
|
172
|
+
next: optional(lazy(() => NextPage))
|
|
173
|
+
});
|
|
174
|
+
var LabelsBetweenObjectPair = looseObject({
|
|
175
|
+
fromObjectId: string(),
|
|
176
|
+
fromObjectTypeId: string(),
|
|
177
|
+
labels: array(string()),
|
|
178
|
+
toObjectId: string(),
|
|
179
|
+
toObjectTypeId: string()
|
|
180
|
+
});
|
|
181
|
+
var NextPage = looseObject({
|
|
182
|
+
after: string(),
|
|
183
|
+
link: optional(string())
|
|
184
|
+
});
|
|
185
|
+
var Paging = looseObject({
|
|
186
|
+
next: optional(lazy(() => NextPage)),
|
|
187
|
+
prev: optional(lazy(() => PreviousPage))
|
|
188
|
+
});
|
|
189
|
+
var PreviousPage = looseObject({
|
|
190
|
+
before: string(),
|
|
191
|
+
link: optional(string())
|
|
192
|
+
});
|
|
193
|
+
var PublicAssociationsForObject = looseObject({
|
|
194
|
+
to: lazy(() => PublicObjectId),
|
|
195
|
+
types: array(lazy(() => AssociationSpec))
|
|
196
|
+
});
|
|
197
|
+
var PublicDefaultAssociation = looseObject({
|
|
198
|
+
associationSpec: lazy(() => AssociationSpec),
|
|
199
|
+
from: lazy(() => PublicObjectId),
|
|
200
|
+
to: lazy(() => PublicObjectId)
|
|
201
|
+
});
|
|
202
|
+
var PublicGdprDeleteInput = looseObject({
|
|
203
|
+
idProperty: optional(string()),
|
|
204
|
+
objectId: string()
|
|
205
|
+
});
|
|
206
|
+
var PublicMergeInput = looseObject({
|
|
207
|
+
objectIdToMerge: string(),
|
|
208
|
+
primaryObjectId: string()
|
|
209
|
+
});
|
|
210
|
+
var PublicObjectId = looseObject({
|
|
211
|
+
id: string()
|
|
212
|
+
});
|
|
213
|
+
var PublicObjectSearchRequest = looseObject({
|
|
214
|
+
after: optional(string()),
|
|
215
|
+
filterGroups: array(lazy(() => FilterGroup)),
|
|
216
|
+
limit: integer(),
|
|
217
|
+
properties: array(string()),
|
|
218
|
+
query: optional(string()),
|
|
219
|
+
sorts: array(looseObject({
|
|
220
|
+
propertyName: string(),
|
|
221
|
+
direction: optional(picklist(["ASCENDING", "DESCENDING"]))
|
|
222
|
+
}))
|
|
223
|
+
});
|
|
224
|
+
var PublicObjectWarning = looseObject({
|
|
225
|
+
category: string(),
|
|
226
|
+
context: record(string(), string()),
|
|
227
|
+
message: string()
|
|
228
|
+
});
|
|
229
|
+
var SimplePublicObject = looseObject({
|
|
230
|
+
archived: boolean(),
|
|
231
|
+
archivedAt: optional(string()),
|
|
232
|
+
createdAt: string(),
|
|
233
|
+
id: string(),
|
|
234
|
+
objectWriteTraceId: optional(string()),
|
|
235
|
+
properties: record(string(), string()),
|
|
236
|
+
propertiesWithHistory: optional(record(string(), array(lazy(() => ValueWithTimestamp)))),
|
|
237
|
+
updatedAt: string(),
|
|
238
|
+
url: optional(string()),
|
|
239
|
+
warnings: optional(array(lazy(() => PublicObjectWarning)))
|
|
240
|
+
});
|
|
241
|
+
var SimplePublicObjectBatchInput = looseObject({
|
|
242
|
+
id: string(),
|
|
243
|
+
idProperty: optional(string()),
|
|
244
|
+
objectWriteTraceId: optional(string()),
|
|
245
|
+
properties: record(string(), string())
|
|
246
|
+
});
|
|
247
|
+
var SimplePublicObjectBatchInputForCreate = looseObject({
|
|
248
|
+
associations: array(lazy(() => PublicAssociationsForObject)),
|
|
249
|
+
objectWriteTraceId: optional(string()),
|
|
250
|
+
properties: record(string(), string())
|
|
251
|
+
});
|
|
252
|
+
var SimplePublicObjectBatchInputUpsert = looseObject({
|
|
253
|
+
id: string(),
|
|
254
|
+
idProperty: optional(string()),
|
|
255
|
+
objectWriteTraceId: optional(string()),
|
|
256
|
+
properties: record(string(), string())
|
|
257
|
+
});
|
|
258
|
+
var SimplePublicObjectId = looseObject({
|
|
259
|
+
id: string()
|
|
260
|
+
});
|
|
261
|
+
var SimplePublicObjectInput = looseObject({
|
|
262
|
+
properties: record(string(), string())
|
|
263
|
+
});
|
|
264
|
+
var SimplePublicObjectInputForCreate = looseObject({
|
|
265
|
+
associations: array(lazy(() => PublicAssociationsForObject)),
|
|
266
|
+
properties: record(string(), string())
|
|
267
|
+
});
|
|
268
|
+
var SimplePublicObjectWithAssociations = looseObject({
|
|
269
|
+
archived: boolean(),
|
|
270
|
+
archivedAt: optional(string()),
|
|
271
|
+
associations: optional(record(string(), lazy(() => CollectionResponseAssociatedId))),
|
|
272
|
+
createdAt: string(),
|
|
273
|
+
id: string(),
|
|
274
|
+
objectWriteTraceId: optional(string()),
|
|
275
|
+
properties: record(string(), string()),
|
|
276
|
+
propertiesWithHistory: optional(record(string(), array(lazy(() => ValueWithTimestamp)))),
|
|
277
|
+
updatedAt: string(),
|
|
278
|
+
url: optional(string()),
|
|
279
|
+
warnings: optional(array(lazy(() => PublicObjectWarning)))
|
|
280
|
+
});
|
|
281
|
+
var SimplePublicUpsertObject = looseObject({
|
|
282
|
+
archived: boolean(),
|
|
283
|
+
archivedAt: optional(string()),
|
|
284
|
+
createdAt: string(),
|
|
285
|
+
id: string(),
|
|
286
|
+
new: boolean(),
|
|
287
|
+
objectWriteTraceId: optional(string()),
|
|
288
|
+
properties: record(string(), string()),
|
|
289
|
+
propertiesWithHistory: optional(record(string(), array(lazy(() => ValueWithTimestamp)))),
|
|
290
|
+
updatedAt: string(),
|
|
291
|
+
url: optional(string()),
|
|
292
|
+
warnings: optional(array(lazy(() => PublicObjectWarning)))
|
|
293
|
+
});
|
|
294
|
+
var StandardError = looseObject({
|
|
295
|
+
category: string(),
|
|
296
|
+
context: record(string(), array(string())),
|
|
297
|
+
errors: array(lazy(() => ErrorDetail)),
|
|
298
|
+
id: optional(string()),
|
|
299
|
+
links: record(string(), string()),
|
|
300
|
+
message: string(),
|
|
301
|
+
status: string(),
|
|
302
|
+
subCategory: optional(looseObject({}))
|
|
303
|
+
});
|
|
304
|
+
var ValueWithTimestamp = looseObject({
|
|
305
|
+
sourceId: optional(string()),
|
|
306
|
+
sourceLabel: optional(string()),
|
|
307
|
+
sourceType: string(),
|
|
308
|
+
timestamp: string(),
|
|
309
|
+
updatedByUserId: optional(integer()),
|
|
310
|
+
value: string()
|
|
311
|
+
});
|
|
312
|
+
var CollectionResponsePublicOwnerForwardPaging = looseObject({
|
|
313
|
+
paging: optional(lazy(() => ForwardPaging)),
|
|
314
|
+
results: array(lazy(() => PublicOwner))
|
|
315
|
+
});
|
|
316
|
+
var PublicOwner = looseObject({
|
|
317
|
+
archived: boolean(),
|
|
318
|
+
createdAt: string(),
|
|
319
|
+
email: optional(string()),
|
|
320
|
+
firstName: optional(string()),
|
|
321
|
+
id: string(),
|
|
322
|
+
lastName: optional(string()),
|
|
323
|
+
teams: optional(array(lazy(() => PublicTeam))),
|
|
324
|
+
type: picklist(["PERSON", "QUEUE"]),
|
|
325
|
+
updatedAt: string(),
|
|
326
|
+
userId: optional(integer()),
|
|
327
|
+
userIdIncludingInactive: optional(integer())
|
|
328
|
+
});
|
|
329
|
+
var PublicTeam = looseObject({
|
|
330
|
+
id: string(),
|
|
331
|
+
name: string(),
|
|
332
|
+
primary: boolean()
|
|
333
|
+
});
|
|
334
|
+
var CollectionResponsePipelineNoPaging = looseObject({
|
|
335
|
+
results: array(lazy(() => Pipeline))
|
|
336
|
+
});
|
|
337
|
+
var CollectionResponsePipelineStageNoPaging = looseObject({
|
|
338
|
+
results: array(lazy(() => PipelineStage))
|
|
339
|
+
});
|
|
340
|
+
var CollectionResponsePublicAuditInfoNoPaging = looseObject({
|
|
341
|
+
results: array(lazy(() => PublicAuditInfo))
|
|
342
|
+
});
|
|
343
|
+
var Pipeline = looseObject({
|
|
344
|
+
archived: boolean(),
|
|
345
|
+
archivedAt: optional(string()),
|
|
346
|
+
createdAt: string(),
|
|
347
|
+
displayOrder: integer(),
|
|
348
|
+
id: string(),
|
|
349
|
+
label: string(),
|
|
350
|
+
stages: array(lazy(() => PipelineStage)),
|
|
351
|
+
updatedAt: string()
|
|
352
|
+
});
|
|
353
|
+
var PipelineInput = looseObject({
|
|
354
|
+
displayOrder: integer(),
|
|
355
|
+
label: string(),
|
|
356
|
+
pipelineId: optional(string()),
|
|
357
|
+
stages: array(lazy(() => PipelineStageInput))
|
|
358
|
+
});
|
|
359
|
+
var PipelinePatchInput = looseObject({
|
|
360
|
+
archived: optional(boolean()),
|
|
361
|
+
displayOrder: optional(integer()),
|
|
362
|
+
label: optional(string())
|
|
363
|
+
});
|
|
364
|
+
var PipelineReplaceInput = looseObject({
|
|
365
|
+
displayOrder: integer(),
|
|
366
|
+
label: string(),
|
|
367
|
+
stages: array(lazy(() => PipelineStageInput))
|
|
368
|
+
});
|
|
369
|
+
var PipelineStage = looseObject({
|
|
370
|
+
archived: boolean(),
|
|
371
|
+
archivedAt: optional(string()),
|
|
372
|
+
createdAt: string(),
|
|
373
|
+
displayOrder: integer(),
|
|
374
|
+
id: string(),
|
|
375
|
+
label: string(),
|
|
376
|
+
metadata: record(string(), string()),
|
|
377
|
+
updatedAt: string(),
|
|
378
|
+
writePermissions: picklist(["CRM_PERMISSIONS_ENFORCEMENT", "INTERNAL_ONLY", "READ_ONLY"])
|
|
379
|
+
});
|
|
380
|
+
var PipelineStageInput = looseObject({
|
|
381
|
+
displayOrder: integer(),
|
|
382
|
+
label: string(),
|
|
383
|
+
metadata: record(string(), string()),
|
|
384
|
+
stageId: optional(string())
|
|
385
|
+
});
|
|
386
|
+
var PipelineStagePatchInput = looseObject({
|
|
387
|
+
archived: optional(boolean()),
|
|
388
|
+
displayOrder: optional(integer()),
|
|
389
|
+
label: optional(string()),
|
|
390
|
+
metadata: record(string(), string())
|
|
391
|
+
});
|
|
392
|
+
var PipelineStageReplaceInput = looseObject({
|
|
393
|
+
displayOrder: integer(),
|
|
394
|
+
label: string(),
|
|
395
|
+
metadata: record(string(), string())
|
|
396
|
+
});
|
|
397
|
+
var PublicAuditInfo = looseObject({
|
|
398
|
+
action: string(),
|
|
399
|
+
fromUserId: optional(integer()),
|
|
400
|
+
identifier: string(),
|
|
401
|
+
message: optional(string()),
|
|
402
|
+
portalId: integer(),
|
|
403
|
+
rawObject: optional(looseObject({})),
|
|
404
|
+
timestamp: optional(string())
|
|
405
|
+
});
|
|
406
|
+
var BatchInputPropertyCreate = looseObject({
|
|
407
|
+
inputs: array(lazy(() => PropertyCreate))
|
|
408
|
+
});
|
|
409
|
+
var BatchInputPropertyName = looseObject({
|
|
410
|
+
inputs: array(lazy(() => PropertyName))
|
|
411
|
+
});
|
|
412
|
+
var BatchReadInputPropertyName = looseObject({
|
|
413
|
+
archived: boolean(),
|
|
414
|
+
dataSensitivity: picklist(["highly_sensitive", "non_sensitive", "sensitive"]),
|
|
415
|
+
inputs: array(lazy(() => PropertyName))
|
|
416
|
+
});
|
|
417
|
+
var BatchResponseProperty = looseObject({
|
|
418
|
+
completedAt: string(),
|
|
419
|
+
links: optional(record(string(), string())),
|
|
420
|
+
requestedAt: optional(string()),
|
|
421
|
+
results: array(lazy(() => Property)),
|
|
422
|
+
startedAt: string(),
|
|
423
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
424
|
+
});
|
|
425
|
+
var BatchResponsePropertyWithErrors = looseObject({
|
|
426
|
+
completedAt: string(),
|
|
427
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
428
|
+
links: optional(record(string(), string())),
|
|
429
|
+
numErrors: optional(integer()),
|
|
430
|
+
requestedAt: optional(string()),
|
|
431
|
+
results: array(lazy(() => Property)),
|
|
432
|
+
startedAt: string(),
|
|
433
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
434
|
+
});
|
|
435
|
+
var CollectionResponsePropertyGroupNoPaging = looseObject({
|
|
436
|
+
results: array(lazy(() => PropertyGroup))
|
|
437
|
+
});
|
|
438
|
+
var CollectionResponsePropertyNoPaging = looseObject({
|
|
439
|
+
results: array(lazy(() => Property))
|
|
440
|
+
});
|
|
441
|
+
var Option = looseObject({
|
|
442
|
+
description: optional(string()),
|
|
443
|
+
displayOrder: optional(integer()),
|
|
444
|
+
hidden: boolean(),
|
|
445
|
+
label: string(),
|
|
446
|
+
value: string()
|
|
447
|
+
});
|
|
448
|
+
var OptionInput = looseObject({
|
|
449
|
+
description: optional(string()),
|
|
450
|
+
displayOrder: integer(),
|
|
451
|
+
hidden: boolean(),
|
|
452
|
+
label: string(),
|
|
453
|
+
value: string()
|
|
454
|
+
});
|
|
455
|
+
var Property = looseObject({
|
|
456
|
+
archived: optional(boolean()),
|
|
457
|
+
archivedAt: optional(string()),
|
|
458
|
+
calculated: optional(boolean()),
|
|
459
|
+
calculationFormula: optional(string()),
|
|
460
|
+
createdAt: optional(string()),
|
|
461
|
+
createdUserId: optional(string()),
|
|
462
|
+
currencyPropertyName: optional(string()),
|
|
463
|
+
dataSensitivity: optional(picklist(["highly_sensitive", "non_sensitive", "sensitive"])),
|
|
464
|
+
dateDisplayHint: optional(picklist(["absolute", "absolute_with_relative", "time_since", "time_until"])),
|
|
465
|
+
description: string(),
|
|
466
|
+
displayOrder: optional(integer()),
|
|
467
|
+
externalOptions: optional(boolean()),
|
|
468
|
+
fieldType: string(),
|
|
469
|
+
formField: optional(boolean()),
|
|
470
|
+
groupName: string(),
|
|
471
|
+
hasUniqueValue: optional(boolean()),
|
|
472
|
+
hidden: optional(boolean()),
|
|
473
|
+
hubspotDefined: optional(boolean()),
|
|
474
|
+
label: string(),
|
|
475
|
+
modificationMetadata: optional(lazy(() => PropertyModificationMetadata)),
|
|
476
|
+
name: string(),
|
|
477
|
+
numberDisplayHint: optional(picklist(["currency", "duration", "formatted", "percentage", "probability", "unformatted"])),
|
|
478
|
+
options: array(lazy(() => Option)),
|
|
479
|
+
referencedObjectType: optional(string()),
|
|
480
|
+
sensitiveDataCategories: optional(array(string())),
|
|
481
|
+
showCurrencySymbol: optional(boolean()),
|
|
482
|
+
textDisplayHint: optional(picklist([
|
|
483
|
+
"domain_name",
|
|
484
|
+
"email",
|
|
485
|
+
"ip_address",
|
|
486
|
+
"multi_line",
|
|
487
|
+
"phone_number",
|
|
488
|
+
"physical_address",
|
|
489
|
+
"postal_code",
|
|
490
|
+
"unformatted_single_line"
|
|
491
|
+
])),
|
|
492
|
+
type: string(),
|
|
493
|
+
updatedAt: optional(string()),
|
|
494
|
+
updatedUserId: optional(string())
|
|
495
|
+
});
|
|
496
|
+
var PropertyCreate = looseObject({
|
|
497
|
+
calculationFormula: optional(string()),
|
|
498
|
+
currencyPropertyName: optional(string()),
|
|
499
|
+
dataSensitivity: optional(picklist(["highly_sensitive", "non_sensitive", "sensitive"])),
|
|
500
|
+
description: optional(string()),
|
|
501
|
+
displayOrder: optional(integer()),
|
|
502
|
+
externalOptions: optional(boolean()),
|
|
503
|
+
fieldType: picklist([
|
|
504
|
+
"booleancheckbox",
|
|
505
|
+
"calculation_equation",
|
|
506
|
+
"checkbox",
|
|
507
|
+
"date",
|
|
508
|
+
"file",
|
|
509
|
+
"html",
|
|
510
|
+
"number",
|
|
511
|
+
"phonenumber",
|
|
512
|
+
"radio",
|
|
513
|
+
"select",
|
|
514
|
+
"text",
|
|
515
|
+
"textarea"
|
|
516
|
+
]),
|
|
517
|
+
formField: optional(boolean()),
|
|
518
|
+
groupName: string(),
|
|
519
|
+
hasUniqueValue: optional(boolean()),
|
|
520
|
+
hidden: optional(boolean()),
|
|
521
|
+
label: string(),
|
|
522
|
+
name: string(),
|
|
523
|
+
numberDisplayHint: optional(picklist(["currency", "duration", "formatted", "percentage", "probability", "unformatted"])),
|
|
524
|
+
options: optional(array(lazy(() => OptionInput))),
|
|
525
|
+
referencedObjectType: optional(string()),
|
|
526
|
+
showCurrencySymbol: optional(boolean()),
|
|
527
|
+
textDisplayHint: optional(picklist([
|
|
528
|
+
"domain_name",
|
|
529
|
+
"email",
|
|
530
|
+
"ip_address",
|
|
531
|
+
"multi_line",
|
|
532
|
+
"phone_number",
|
|
533
|
+
"physical_address",
|
|
534
|
+
"postal_code",
|
|
535
|
+
"unformatted_single_line"
|
|
536
|
+
])),
|
|
537
|
+
type: picklist(["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"])
|
|
538
|
+
});
|
|
539
|
+
var PropertyGroup = looseObject({
|
|
540
|
+
archived: boolean(),
|
|
541
|
+
displayOrder: optional(integer()),
|
|
542
|
+
label: string(),
|
|
543
|
+
name: string()
|
|
544
|
+
});
|
|
545
|
+
var PropertyGroupCreate = looseObject({
|
|
546
|
+
displayOrder: optional(integer()),
|
|
547
|
+
label: string(),
|
|
548
|
+
name: string()
|
|
549
|
+
});
|
|
550
|
+
var PropertyGroupUpdate = looseObject({
|
|
551
|
+
displayOrder: optional(integer()),
|
|
552
|
+
label: optional(string())
|
|
553
|
+
});
|
|
554
|
+
var PropertyModificationMetadata = looseObject({
|
|
555
|
+
archivable: boolean(),
|
|
556
|
+
readOnlyDefinition: boolean(),
|
|
557
|
+
readOnlyOptions: optional(boolean()),
|
|
558
|
+
readOnlyValue: boolean()
|
|
559
|
+
});
|
|
560
|
+
var PropertyName = looseObject({
|
|
561
|
+
name: string()
|
|
562
|
+
});
|
|
563
|
+
var PropertyUpdate = looseObject({
|
|
564
|
+
calculationFormula: optional(string()),
|
|
565
|
+
currencyPropertyName: optional(string()),
|
|
566
|
+
description: optional(string()),
|
|
567
|
+
displayOrder: optional(integer()),
|
|
568
|
+
fieldType: optional(picklist([
|
|
569
|
+
"booleancheckbox",
|
|
570
|
+
"calculation_equation",
|
|
571
|
+
"checkbox",
|
|
572
|
+
"date",
|
|
573
|
+
"file",
|
|
574
|
+
"html",
|
|
575
|
+
"number",
|
|
576
|
+
"phonenumber",
|
|
577
|
+
"radio",
|
|
578
|
+
"select",
|
|
579
|
+
"text",
|
|
580
|
+
"textarea"
|
|
581
|
+
])),
|
|
582
|
+
formField: optional(boolean()),
|
|
583
|
+
groupName: optional(string()),
|
|
584
|
+
hidden: optional(boolean()),
|
|
585
|
+
label: optional(string()),
|
|
586
|
+
numberDisplayHint: optional(picklist(["currency", "duration", "formatted", "percentage", "probability", "unformatted"])),
|
|
587
|
+
options: optional(array(lazy(() => OptionInput))),
|
|
588
|
+
showCurrencySymbol: optional(boolean()),
|
|
589
|
+
textDisplayHint: optional(picklist([
|
|
590
|
+
"domain_name",
|
|
591
|
+
"email",
|
|
592
|
+
"ip_address",
|
|
593
|
+
"multi_line",
|
|
594
|
+
"phone_number",
|
|
595
|
+
"physical_address",
|
|
596
|
+
"postal_code",
|
|
597
|
+
"unformatted_single_line"
|
|
598
|
+
])),
|
|
599
|
+
type: optional(picklist(["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"]))
|
|
600
|
+
});
|
|
601
|
+
var AssociationSpecWithLabel = looseObject({
|
|
602
|
+
category: picklist(["HUBSPOT_DEFINED", "INTEGRATOR_DEFINED", "USER_DEFINED", "WORK"]),
|
|
603
|
+
fromObjectTypeId: optional(string()),
|
|
604
|
+
label: optional(string()),
|
|
605
|
+
toObjectTypeId: optional(string()),
|
|
606
|
+
typeId: integer()
|
|
607
|
+
});
|
|
608
|
+
var BatchInputPublicAssociationMultiArchive = looseObject({
|
|
609
|
+
inputs: array(lazy(() => PublicAssociationMultiArchive))
|
|
610
|
+
});
|
|
611
|
+
var BatchInputPublicAssociationMultiPost = looseObject({
|
|
612
|
+
inputs: array(lazy(() => PublicAssociationMultiPost))
|
|
613
|
+
});
|
|
614
|
+
var BatchInputPublicDefaultAssociationMultiPost = looseObject({
|
|
615
|
+
inputs: array(lazy(() => PublicDefaultAssociationMultiPost))
|
|
616
|
+
});
|
|
617
|
+
var BatchInputPublicFetchAssociationsBatchRequest = looseObject({
|
|
618
|
+
inputs: array(lazy(() => PublicFetchAssociationsBatchRequest))
|
|
619
|
+
});
|
|
620
|
+
var BatchResponse = looseObject({
|
|
621
|
+
completedAt: string(),
|
|
622
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
623
|
+
links: optional(record(string(), string())),
|
|
624
|
+
numErrors: optional(integer()),
|
|
625
|
+
requestedAt: optional(string()),
|
|
626
|
+
results: array(looseObject({})),
|
|
627
|
+
startedAt: string(),
|
|
628
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
629
|
+
});
|
|
630
|
+
var BatchResponseLabelsBetweenObjectPair = looseObject({
|
|
631
|
+
completedAt: string(),
|
|
632
|
+
links: optional(record(string(), string())),
|
|
633
|
+
requestedAt: optional(string()),
|
|
634
|
+
results: array(lazy(() => LabelsBetweenObjectPair)),
|
|
635
|
+
startedAt: string(),
|
|
636
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
637
|
+
});
|
|
638
|
+
var BatchResponseLabelsBetweenObjectPairWithErrors = looseObject({
|
|
639
|
+
completedAt: string(),
|
|
640
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
641
|
+
links: optional(record(string(), string())),
|
|
642
|
+
numErrors: optional(integer()),
|
|
643
|
+
requestedAt: optional(string()),
|
|
644
|
+
results: array(lazy(() => LabelsBetweenObjectPair)),
|
|
645
|
+
startedAt: string(),
|
|
646
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
647
|
+
});
|
|
648
|
+
var BatchResponsePublicAssociationMultiWithLabel = looseObject({
|
|
649
|
+
completedAt: string(),
|
|
650
|
+
links: optional(record(string(), string())),
|
|
651
|
+
requestedAt: optional(string()),
|
|
652
|
+
results: array(lazy(() => PublicAssociationMultiWithLabel)),
|
|
653
|
+
startedAt: string(),
|
|
654
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
655
|
+
});
|
|
656
|
+
var BatchResponsePublicAssociationMultiWithLabelWithErrors = looseObject({
|
|
657
|
+
completedAt: string(),
|
|
658
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
659
|
+
links: optional(record(string(), string())),
|
|
660
|
+
numErrors: optional(integer()),
|
|
661
|
+
requestedAt: optional(string()),
|
|
662
|
+
results: array(lazy(() => PublicAssociationMultiWithLabel)),
|
|
663
|
+
startedAt: string(),
|
|
664
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
665
|
+
});
|
|
666
|
+
var AssociationsBatchResponsePublicDefaultAssociation = looseObject({
|
|
667
|
+
completedAt: string(),
|
|
668
|
+
errors: optional(array(lazy(() => StandardError))),
|
|
669
|
+
links: optional(record(string(), string())),
|
|
670
|
+
numErrors: optional(integer()),
|
|
671
|
+
requestedAt: optional(string()),
|
|
672
|
+
results: array(lazy(() => PublicDefaultAssociation1)),
|
|
673
|
+
startedAt: string(),
|
|
674
|
+
status: picklist(["CANCELED", "COMPLETE", "PENDING", "PROCESSING"])
|
|
675
|
+
});
|
|
676
|
+
var CollectionResponseMultiAssociatedObjectWithLabelForwardPaging = looseObject({
|
|
677
|
+
paging: optional(lazy(() => ForwardPaging)),
|
|
678
|
+
results: array(lazy(() => MultiAssociatedObjectWithLabel))
|
|
679
|
+
});
|
|
680
|
+
var DateTime = looseObject({
|
|
681
|
+
dateOnly: boolean(),
|
|
682
|
+
timeZoneShift: integer(),
|
|
683
|
+
value: int64()
|
|
684
|
+
});
|
|
685
|
+
var MultiAssociatedObjectWithLabel = looseObject({
|
|
686
|
+
associationTypes: array(lazy(() => AssociationSpecWithLabel)),
|
|
687
|
+
toObjectId: string()
|
|
688
|
+
});
|
|
689
|
+
var Paging1 = looseObject({
|
|
690
|
+
next: optional(lazy(() => NextPage)),
|
|
691
|
+
prev: optional(lazy(() => PreviousPage))
|
|
692
|
+
});
|
|
693
|
+
var PublicAssociationMultiArchive = looseObject({
|
|
694
|
+
from: lazy(() => PublicObjectId),
|
|
695
|
+
to: array(lazy(() => PublicObjectId))
|
|
696
|
+
});
|
|
697
|
+
var PublicAssociationMultiPost = looseObject({
|
|
698
|
+
from: lazy(() => PublicObjectId),
|
|
699
|
+
to: lazy(() => PublicObjectId),
|
|
700
|
+
types: array(lazy(() => AssociationSpec))
|
|
701
|
+
});
|
|
702
|
+
var PublicAssociationMultiWithLabel = looseObject({
|
|
703
|
+
from: lazy(() => PublicObjectId),
|
|
704
|
+
paging: optional(lazy(() => Paging1)),
|
|
705
|
+
to: array(lazy(() => MultiAssociatedObjectWithLabel))
|
|
706
|
+
});
|
|
707
|
+
var PublicDefaultAssociationMultiPost = looseObject({
|
|
708
|
+
from: lazy(() => PublicObjectId),
|
|
709
|
+
to: lazy(() => PublicObjectId)
|
|
710
|
+
});
|
|
711
|
+
var PublicDefaultAssociation1 = looseObject({
|
|
712
|
+
associationSpec: lazy(() => AssociationSpec),
|
|
713
|
+
from: lazy(() => PublicObjectId),
|
|
714
|
+
to: lazy(() => PublicObjectId)
|
|
715
|
+
});
|
|
716
|
+
var PublicFetchAssociationsBatchRequest = looseObject({
|
|
717
|
+
after: optional(string()),
|
|
718
|
+
id: string()
|
|
719
|
+
});
|
|
720
|
+
var ReportCreationResponse = looseObject({
|
|
721
|
+
enqueueTime: lazy(() => DateTime),
|
|
722
|
+
userEmail: string(),
|
|
723
|
+
userId: integer()
|
|
724
|
+
});
|
|
725
|
+
var ApiUsage = looseObject({
|
|
726
|
+
collectedAt: string(),
|
|
727
|
+
currentUsage: integer(),
|
|
728
|
+
fetchStatus: picklist(["CACHED", "FAILURE", "NOTFOUND", "SUCCESS", "TIMEOUT"]),
|
|
729
|
+
name: string(),
|
|
730
|
+
resetsAt: optional(string()),
|
|
731
|
+
usageLimit: integer()
|
|
732
|
+
});
|
|
733
|
+
var CollectionResponseApiUsageNoPaging = looseObject({
|
|
734
|
+
results: array(lazy(() => ApiUsage))
|
|
735
|
+
});
|
|
736
|
+
var PortalInformationResponse = looseObject({
|
|
737
|
+
accountType: picklist(["APP_DEVELOPER", "DEVELOPER_TEST", "SANDBOX", "STANDARD"]),
|
|
738
|
+
additionalCurrencies: array(string()),
|
|
739
|
+
companyCurrency: string(),
|
|
740
|
+
dataHostingLocation: string(),
|
|
741
|
+
portalId: integer(),
|
|
742
|
+
timeZone: string(),
|
|
743
|
+
uiDomain: string(),
|
|
744
|
+
utcOffset: string(),
|
|
745
|
+
utcOffsetMilliseconds: int64()
|
|
746
|
+
});
|
|
747
|
+
var PutCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdRequest = array(lazy(() => AssociationSpec));
|
|
748
|
+
var schemas = {
|
|
749
|
+
AssociatedId,
|
|
750
|
+
AssociationSpec,
|
|
751
|
+
BatchInputSimplePublicObjectBatchInput,
|
|
752
|
+
BatchInputSimplePublicObjectBatchInputForCreate,
|
|
753
|
+
BatchInputSimplePublicObjectBatchInputUpsert,
|
|
754
|
+
BatchInputSimplePublicObjectId,
|
|
755
|
+
BatchReadInputSimplePublicObjectId,
|
|
756
|
+
BatchResponsePublicDefaultAssociation,
|
|
757
|
+
BatchResponseSimplePublicObject,
|
|
758
|
+
BatchResponseSimplePublicObjectWithErrors,
|
|
759
|
+
BatchResponseSimplePublicUpsertObject,
|
|
760
|
+
BatchResponseSimplePublicUpsertObjectWithErrors,
|
|
761
|
+
CollectionResponseAssociatedId,
|
|
762
|
+
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging,
|
|
763
|
+
CollectionResponseWithTotalSimplePublicObject,
|
|
764
|
+
ApiError,
|
|
765
|
+
ErrorDetail,
|
|
766
|
+
Filter,
|
|
767
|
+
FilterGroup,
|
|
768
|
+
ForwardPaging,
|
|
769
|
+
LabelsBetweenObjectPair,
|
|
770
|
+
NextPage,
|
|
771
|
+
Paging,
|
|
772
|
+
PreviousPage,
|
|
773
|
+
PublicAssociationsForObject,
|
|
774
|
+
PublicDefaultAssociation,
|
|
775
|
+
PublicGdprDeleteInput,
|
|
776
|
+
PublicMergeInput,
|
|
777
|
+
PublicObjectId,
|
|
778
|
+
PublicObjectSearchRequest,
|
|
779
|
+
PublicObjectWarning,
|
|
780
|
+
SimplePublicObject,
|
|
781
|
+
SimplePublicObjectBatchInput,
|
|
782
|
+
SimplePublicObjectBatchInputForCreate,
|
|
783
|
+
SimplePublicObjectBatchInputUpsert,
|
|
784
|
+
SimplePublicObjectId,
|
|
785
|
+
SimplePublicObjectInput,
|
|
786
|
+
SimplePublicObjectInputForCreate,
|
|
787
|
+
SimplePublicObjectWithAssociations,
|
|
788
|
+
SimplePublicUpsertObject,
|
|
789
|
+
StandardError,
|
|
790
|
+
ValueWithTimestamp,
|
|
791
|
+
CollectionResponsePublicOwnerForwardPaging,
|
|
792
|
+
PublicOwner,
|
|
793
|
+
PublicTeam,
|
|
794
|
+
CollectionResponsePipelineNoPaging,
|
|
795
|
+
CollectionResponsePipelineStageNoPaging,
|
|
796
|
+
CollectionResponsePublicAuditInfoNoPaging,
|
|
797
|
+
Pipeline,
|
|
798
|
+
PipelineInput,
|
|
799
|
+
PipelinePatchInput,
|
|
800
|
+
PipelineReplaceInput,
|
|
801
|
+
PipelineStage,
|
|
802
|
+
PipelineStageInput,
|
|
803
|
+
PipelineStagePatchInput,
|
|
804
|
+
PipelineStageReplaceInput,
|
|
805
|
+
PublicAuditInfo,
|
|
806
|
+
BatchInputPropertyCreate,
|
|
807
|
+
BatchInputPropertyName,
|
|
808
|
+
BatchReadInputPropertyName,
|
|
809
|
+
BatchResponseProperty,
|
|
810
|
+
BatchResponsePropertyWithErrors,
|
|
811
|
+
CollectionResponsePropertyGroupNoPaging,
|
|
812
|
+
CollectionResponsePropertyNoPaging,
|
|
813
|
+
Option,
|
|
814
|
+
OptionInput,
|
|
815
|
+
Property,
|
|
816
|
+
PropertyCreate,
|
|
817
|
+
PropertyGroup,
|
|
818
|
+
PropertyGroupCreate,
|
|
819
|
+
PropertyGroupUpdate,
|
|
820
|
+
PropertyModificationMetadata,
|
|
821
|
+
PropertyName,
|
|
822
|
+
PropertyUpdate,
|
|
823
|
+
AssociationSpecWithLabel,
|
|
824
|
+
BatchInputPublicAssociationMultiArchive,
|
|
825
|
+
BatchInputPublicAssociationMultiPost,
|
|
826
|
+
BatchInputPublicDefaultAssociationMultiPost,
|
|
827
|
+
BatchInputPublicFetchAssociationsBatchRequest,
|
|
828
|
+
BatchResponse,
|
|
829
|
+
BatchResponseLabelsBetweenObjectPair,
|
|
830
|
+
BatchResponseLabelsBetweenObjectPairWithErrors,
|
|
831
|
+
BatchResponsePublicAssociationMultiWithLabel,
|
|
832
|
+
BatchResponsePublicAssociationMultiWithLabelWithErrors,
|
|
833
|
+
AssociationsBatchResponsePublicDefaultAssociation,
|
|
834
|
+
CollectionResponseMultiAssociatedObjectWithLabelForwardPaging,
|
|
835
|
+
DateTime,
|
|
836
|
+
MultiAssociatedObjectWithLabel,
|
|
837
|
+
Paging1,
|
|
838
|
+
PublicAssociationMultiArchive,
|
|
839
|
+
PublicAssociationMultiPost,
|
|
840
|
+
PublicAssociationMultiWithLabel,
|
|
841
|
+
PublicDefaultAssociationMultiPost,
|
|
842
|
+
PublicDefaultAssociation1,
|
|
843
|
+
PublicFetchAssociationsBatchRequest,
|
|
844
|
+
ReportCreationResponse,
|
|
845
|
+
ApiUsage,
|
|
846
|
+
CollectionResponseApiUsageNoPaging,
|
|
847
|
+
PortalInformationResponse,
|
|
848
|
+
PutCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdRequest
|
|
849
|
+
};
|
|
850
|
+
export {
|
|
851
|
+
ApiError,
|
|
852
|
+
ApiUsage,
|
|
853
|
+
AssociatedId,
|
|
854
|
+
AssociationSpec,
|
|
855
|
+
AssociationSpecWithLabel,
|
|
856
|
+
AssociationsBatchResponsePublicDefaultAssociation,
|
|
857
|
+
BatchInputPropertyCreate,
|
|
858
|
+
BatchInputPropertyName,
|
|
859
|
+
BatchInputPublicAssociationMultiArchive,
|
|
860
|
+
BatchInputPublicAssociationMultiPost,
|
|
861
|
+
BatchInputPublicDefaultAssociationMultiPost,
|
|
862
|
+
BatchInputPublicFetchAssociationsBatchRequest,
|
|
863
|
+
BatchInputSimplePublicObjectBatchInput,
|
|
864
|
+
BatchInputSimplePublicObjectBatchInputForCreate,
|
|
865
|
+
BatchInputSimplePublicObjectBatchInputUpsert,
|
|
866
|
+
BatchInputSimplePublicObjectId,
|
|
867
|
+
BatchReadInputPropertyName,
|
|
868
|
+
BatchReadInputSimplePublicObjectId,
|
|
869
|
+
BatchResponse,
|
|
870
|
+
BatchResponseLabelsBetweenObjectPair,
|
|
871
|
+
BatchResponseLabelsBetweenObjectPairWithErrors,
|
|
872
|
+
BatchResponseProperty,
|
|
873
|
+
BatchResponsePropertyWithErrors,
|
|
874
|
+
BatchResponsePublicAssociationMultiWithLabel,
|
|
875
|
+
BatchResponsePublicAssociationMultiWithLabelWithErrors,
|
|
876
|
+
BatchResponsePublicDefaultAssociation,
|
|
877
|
+
BatchResponseSimplePublicObject,
|
|
878
|
+
BatchResponseSimplePublicObjectWithErrors,
|
|
879
|
+
BatchResponseSimplePublicUpsertObject,
|
|
880
|
+
BatchResponseSimplePublicUpsertObjectWithErrors,
|
|
881
|
+
CollectionResponseApiUsageNoPaging,
|
|
882
|
+
CollectionResponseAssociatedId,
|
|
883
|
+
CollectionResponseMultiAssociatedObjectWithLabelForwardPaging,
|
|
884
|
+
CollectionResponsePipelineNoPaging,
|
|
885
|
+
CollectionResponsePipelineStageNoPaging,
|
|
886
|
+
CollectionResponsePropertyGroupNoPaging,
|
|
887
|
+
CollectionResponsePropertyNoPaging,
|
|
888
|
+
CollectionResponsePublicAuditInfoNoPaging,
|
|
889
|
+
CollectionResponsePublicOwnerForwardPaging,
|
|
890
|
+
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging,
|
|
891
|
+
CollectionResponseWithTotalSimplePublicObject,
|
|
892
|
+
DateTime,
|
|
893
|
+
ErrorDetail,
|
|
894
|
+
Filter,
|
|
895
|
+
FilterGroup,
|
|
896
|
+
ForwardPaging,
|
|
897
|
+
LabelsBetweenObjectPair,
|
|
898
|
+
MultiAssociatedObjectWithLabel,
|
|
899
|
+
NextPage,
|
|
900
|
+
Option,
|
|
901
|
+
OptionInput,
|
|
902
|
+
Paging,
|
|
903
|
+
Paging1,
|
|
904
|
+
Pipeline,
|
|
905
|
+
PipelineInput,
|
|
906
|
+
PipelinePatchInput,
|
|
907
|
+
PipelineReplaceInput,
|
|
908
|
+
PipelineStage,
|
|
909
|
+
PipelineStageInput,
|
|
910
|
+
PipelineStagePatchInput,
|
|
911
|
+
PipelineStageReplaceInput,
|
|
912
|
+
PortalInformationResponse,
|
|
913
|
+
PreviousPage,
|
|
914
|
+
Property,
|
|
915
|
+
PropertyCreate,
|
|
916
|
+
PropertyGroup,
|
|
917
|
+
PropertyGroupCreate,
|
|
918
|
+
PropertyGroupUpdate,
|
|
919
|
+
PropertyModificationMetadata,
|
|
920
|
+
PropertyName,
|
|
921
|
+
PropertyUpdate,
|
|
922
|
+
PublicAssociationMultiArchive,
|
|
923
|
+
PublicAssociationMultiPost,
|
|
924
|
+
PublicAssociationMultiWithLabel,
|
|
925
|
+
PublicAssociationsForObject,
|
|
926
|
+
PublicAuditInfo,
|
|
927
|
+
PublicDefaultAssociation,
|
|
928
|
+
PublicDefaultAssociation1,
|
|
929
|
+
PublicDefaultAssociationMultiPost,
|
|
930
|
+
PublicFetchAssociationsBatchRequest,
|
|
931
|
+
PublicGdprDeleteInput,
|
|
932
|
+
PublicMergeInput,
|
|
933
|
+
PublicObjectId,
|
|
934
|
+
PublicObjectSearchRequest,
|
|
935
|
+
PublicObjectWarning,
|
|
936
|
+
PublicOwner,
|
|
937
|
+
PublicTeam,
|
|
938
|
+
PutCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdCrmObjects202603ObjectTypeObjectIdAssociationsToObjectTypeToObjectIdRequest,
|
|
939
|
+
ReportCreationResponse,
|
|
940
|
+
SimplePublicObject,
|
|
941
|
+
SimplePublicObjectBatchInput,
|
|
942
|
+
SimplePublicObjectBatchInputForCreate,
|
|
943
|
+
SimplePublicObjectBatchInputUpsert,
|
|
944
|
+
SimplePublicObjectId,
|
|
945
|
+
SimplePublicObjectInput,
|
|
946
|
+
SimplePublicObjectInputForCreate,
|
|
947
|
+
SimplePublicObjectWithAssociations,
|
|
948
|
+
SimplePublicUpsertObject,
|
|
949
|
+
StandardError,
|
|
950
|
+
ValueWithTimestamp,
|
|
951
|
+
schemas
|
|
952
|
+
};
|