@ai-matrx/api 0.0.0-stage → 0.1.1
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 +31 -0
- package/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-5WJLKYH6.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-HER22VVH.cjs +1047 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-TSHL7Z53.js +1012 -0
- package/dist/chunk-VTZKJMSY.js +43 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +2016 -0
- package/dist/index.d.cts +2069 -0
- package/dist/index.d.ts +2069 -0
- package/dist/index.js +1746 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +419 -4
package/dist/crm.js
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { openStream } from './chunk-TSHL7Z53.js';
|
|
2
|
+
import './chunk-KIEAFMKB.js';
|
|
3
|
+
import './chunk-VTZKJMSY.js';
|
|
4
|
+
|
|
5
|
+
// src/generated/crm.ts
|
|
6
|
+
var $listSendingIdentities = { m: "GET", p: "/sending-identities", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_identities" };
|
|
7
|
+
function listSendingIdentities(api, args, options) {
|
|
8
|
+
return api.call($listSendingIdentities, args, options);
|
|
9
|
+
}
|
|
10
|
+
var $createSendingIdentity = { m: "POST", p: "/sending-identities", d: "aidream", a: "user", o: "required", n: "crm.create_sending_identity" };
|
|
11
|
+
function createSendingIdentity(api, args, options) {
|
|
12
|
+
return api.call($createSendingIdentity, args, options);
|
|
13
|
+
}
|
|
14
|
+
var $listConnectable = { m: "GET", p: "/sending-identities/connectable", d: "aidream", a: "user", o: "required", n: "crm.list_connectable" };
|
|
15
|
+
function listConnectable(api, args, options) {
|
|
16
|
+
return api.call($listConnectable, args, options);
|
|
17
|
+
}
|
|
18
|
+
var $getSendingPolicy = { m: "GET", p: "/sending-identities/policy", d: "aidream", a: "user", o: "required", n: "crm.get_sending_policy" };
|
|
19
|
+
function getSendingPolicy(api, args, options) {
|
|
20
|
+
return api.call($getSendingPolicy, args, options);
|
|
21
|
+
}
|
|
22
|
+
var $setSendingPolicy = { m: "POST", p: "/sending-identities/policy", d: "aidream", a: "user", o: "required", n: "crm.set_sending_policy" };
|
|
23
|
+
function setSendingPolicy(api, args, options) {
|
|
24
|
+
return api.call($setSendingPolicy, args, options);
|
|
25
|
+
}
|
|
26
|
+
var $getBringUpReadiness = { m: "GET", p: "/sending-identities/bring-up-readiness", d: "aidream", a: "user", o: "required", n: "crm.get_bring_up_readiness" };
|
|
27
|
+
function getBringUpReadiness(api, args, options) {
|
|
28
|
+
return api.call($getBringUpReadiness, args, options);
|
|
29
|
+
}
|
|
30
|
+
var $getSendingIdentity = { m: "GET", p: "/sending-identities/{identity_id}", d: "aidream", a: "user", o: "optional", n: "crm.get_sending_identity" };
|
|
31
|
+
function getSendingIdentity(api, args, options) {
|
|
32
|
+
return api.call($getSendingIdentity, args, options);
|
|
33
|
+
}
|
|
34
|
+
var $updateSendingIdentity = { m: "PATCH", p: "/sending-identities/{identity_id}", d: "aidream", a: "user", o: "required", n: "crm.update_sending_identity" };
|
|
35
|
+
function updateSendingIdentity(api, args, options) {
|
|
36
|
+
return api.call($updateSendingIdentity, args, options);
|
|
37
|
+
}
|
|
38
|
+
var $disableSendingIdentity = { m: "DELETE", p: "/sending-identities/{identity_id}", d: "aidream", a: "user", o: "required", n: "crm.disable_sending_identity" };
|
|
39
|
+
function disableSendingIdentity(api, args, options) {
|
|
40
|
+
return api.call($disableSendingIdentity, args, options);
|
|
41
|
+
}
|
|
42
|
+
var $checkDomain = { m: "POST", p: "/sending-identities/{identity_id}/check-domain", d: "aidream", a: "user", o: "required", n: "crm.check_domain" };
|
|
43
|
+
function checkDomain(api, args, options) {
|
|
44
|
+
return api.call($checkDomain, args, options);
|
|
45
|
+
}
|
|
46
|
+
var $checkAuthentication = { m: "POST", p: "/sending-identities/{identity_id}/check-authentication", d: "aidream", a: "user", o: "required", n: "crm.check_authentication" };
|
|
47
|
+
function checkAuthentication(api, args, options) {
|
|
48
|
+
return api.call($checkAuthentication, args, options);
|
|
49
|
+
}
|
|
50
|
+
var $startIdentityWarmup = { m: "POST", p: "/sending-identities/{identity_id}/start-warmup", d: "aidream", a: "user", o: "required", n: "crm.start_identity_warmup" };
|
|
51
|
+
function startIdentityWarmup(api, args, options) {
|
|
52
|
+
return api.call($startIdentityWarmup, args, options);
|
|
53
|
+
}
|
|
54
|
+
var $pauseSendingIdentity = { m: "POST", p: "/sending-identities/{identity_id}/pause", d: "aidream", a: "user", o: "required", n: "crm.pause_sending_identity" };
|
|
55
|
+
function pauseSendingIdentity(api, args, options) {
|
|
56
|
+
return api.call($pauseSendingIdentity, args, options);
|
|
57
|
+
}
|
|
58
|
+
var $resumeSendingIdentity = { m: "POST", p: "/sending-identities/{identity_id}/resume", d: "aidream", a: "user", o: "required", n: "crm.resume_sending_identity" };
|
|
59
|
+
function resumeSendingIdentity(api, args, options) {
|
|
60
|
+
return api.call($resumeSendingIdentity, args, options);
|
|
61
|
+
}
|
|
62
|
+
var $getReadiness = { m: "GET", p: "/sending-identities/{identity_id}/readiness", d: "aidream", a: "user", o: "optional", n: "crm.get_readiness" };
|
|
63
|
+
function getReadiness(api, args, options) {
|
|
64
|
+
return api.call($getReadiness, args, options);
|
|
65
|
+
}
|
|
66
|
+
var $listSendingEvents = { m: "GET", p: "/sending-identities/{identity_id}/events", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_events" };
|
|
67
|
+
function listSendingEvents(api, args, options) {
|
|
68
|
+
return api.call($listSendingEvents, args, options);
|
|
69
|
+
}
|
|
70
|
+
var $refreshIdentityHealth = { m: "POST", p: "/sending-identities/{identity_id}/refresh-health", d: "aidream", a: "user", o: "required", n: "crm.refresh_identity_health" };
|
|
71
|
+
function refreshIdentityHealth(api, args, options) {
|
|
72
|
+
return api.call($refreshIdentityHealth, args, options);
|
|
73
|
+
}
|
|
74
|
+
var $listOutletContactCandidates = { m: "GET", p: "/crm/parties/{outlet_party_id}/contact-candidates", d: "aidream", a: "guest", o: "optional", n: "crm.list_outlet_contact_candidates" };
|
|
75
|
+
function listOutletContactCandidates(api, args, options) {
|
|
76
|
+
return api.call($listOutletContactCandidates, args, options);
|
|
77
|
+
}
|
|
78
|
+
var $confirmOutletContactCandidate = { m: "POST", p: "/crm/parties/{outlet_party_id}/contact-candidates/confirm", d: "aidream", a: "guest", o: "required", n: "crm.confirm_outlet_contact_candidate" };
|
|
79
|
+
function confirmOutletContactCandidate(api, args, options) {
|
|
80
|
+
return api.call($confirmOutletContactCandidate, args, options);
|
|
81
|
+
}
|
|
82
|
+
var $listPartyContactCandidates = { m: "GET", p: "/crm/parties/{party_id}/contacts", d: "aidream", a: "guest", o: "optional", n: "crm.list_party_contact_candidates" };
|
|
83
|
+
function listPartyContactCandidates(api, args, options) {
|
|
84
|
+
return api.call($listPartyContactCandidates, args, options);
|
|
85
|
+
}
|
|
86
|
+
var $findPartyContacts = { m: "POST", p: "/crm/parties/{party_id}/contacts/find", d: "aidream", a: "guest", o: "required", n: "crm.find_party_contacts" };
|
|
87
|
+
function findPartyContacts(api, args, options) {
|
|
88
|
+
return api.call($findPartyContacts, args, options);
|
|
89
|
+
}
|
|
90
|
+
var $confirmPartyContactCandidate = { m: "POST", p: "/crm/parties/{party_id}/contacts/{candidate_id}/confirm", d: "aidream", a: "guest", o: "required", n: "crm.confirm_party_contact_candidate" };
|
|
91
|
+
function confirmPartyContactCandidate(api, args, options) {
|
|
92
|
+
return api.call($confirmPartyContactCandidate, args, options);
|
|
93
|
+
}
|
|
94
|
+
var $rejectPartyContactCandidate = { m: "POST", p: "/crm/parties/{party_id}/contacts/{candidate_id}/reject", d: "aidream", a: "guest", o: "required", n: "crm.reject_party_contact_candidate" };
|
|
95
|
+
function rejectPartyContactCandidate(api, args, options) {
|
|
96
|
+
return api.call($rejectPartyContactCandidate, args, options);
|
|
97
|
+
}
|
|
98
|
+
var $verifyPartyContactAddress = { m: "POST", p: "/crm/parties/{party_id}/contacts/verify", d: "aidream", a: "guest", o: "required", n: "crm.verify_party_contact_address" };
|
|
99
|
+
function verifyPartyContactAddress(api, args, options) {
|
|
100
|
+
return api.call($verifyPartyContactAddress, args, options);
|
|
101
|
+
}
|
|
102
|
+
var $checkPartyJournalistActivity = { m: "POST", p: "/crm/parties/{party_id}/journalist-activity", d: "aidream", a: "guest", o: "required", n: "crm.check_party_journalist_activity" };
|
|
103
|
+
function checkPartyJournalistActivity(api, args, options) {
|
|
104
|
+
return api.call($checkPartyJournalistActivity, args, options);
|
|
105
|
+
}
|
|
106
|
+
var $readPartyJournalistBeat = { m: "GET", p: "/crm/parties/{party_id}/journalist-beat", d: "aidream", a: "guest", o: "optional", n: "crm.read_party_journalist_beat" };
|
|
107
|
+
function readPartyJournalistBeat(api, args, options) {
|
|
108
|
+
return api.call($readPartyJournalistBeat, args, options);
|
|
109
|
+
}
|
|
110
|
+
var $derivePartyJournalistBeat = { m: "POST", p: "/crm/parties/{party_id}/journalist-beat", d: "aidream", a: "guest", o: "required", n: "crm.derive_party_journalist_beat" };
|
|
111
|
+
function derivePartyJournalistBeat(api, args, options) {
|
|
112
|
+
return api.call($derivePartyJournalistBeat, args, options);
|
|
113
|
+
}
|
|
114
|
+
var $refreshMediaListDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-refresh", d: "aidream", a: "guest", o: "required", n: "crm.refresh_media_list_door" };
|
|
115
|
+
function refreshMediaListDoor(api, args, options) {
|
|
116
|
+
return api.call($refreshMediaListDoor, args, options);
|
|
117
|
+
}
|
|
118
|
+
var $setMediaRefreshPolicyDoor = { m: "PUT", p: "/crm/outreach-lists/{list_id}/media-refresh-policy", d: "aidream", a: "guest", o: "required", n: "crm.set_media_refresh_policy_door" };
|
|
119
|
+
function setMediaRefreshPolicyDoor(api, args, options) {
|
|
120
|
+
return api.call($setMediaRefreshPolicyDoor, args, options);
|
|
121
|
+
}
|
|
122
|
+
var $mediaListSearchDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-search", d: "aidream", a: "guest", o: "required", n: "crm.media_list_search_door" };
|
|
123
|
+
function mediaListSearchDoor(api, args, options) {
|
|
124
|
+
return api.call($mediaListSearchDoor, args, options);
|
|
125
|
+
}
|
|
126
|
+
var $mediaResearchPreviewDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-research/preview", d: "aidream", a: "guest", o: "required", n: "crm.media_research_preview_door" };
|
|
127
|
+
function mediaResearchPreviewDoor(api, args, options) {
|
|
128
|
+
return api.call($mediaResearchPreviewDoor, args, options);
|
|
129
|
+
}
|
|
130
|
+
var $mediaResearchRunDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-research/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "crm.media_research_run_door" };
|
|
131
|
+
function mediaResearchRunDoor(api, args, options) {
|
|
132
|
+
return openStream(api, $mediaResearchRunDoor, args, options);
|
|
133
|
+
}
|
|
134
|
+
var $previewBulkEnrichment = { m: "POST", p: "/crm/enrichment/bulk/preview", d: "aidream", a: "guest", o: "required", n: "crm.preview_bulk_enrichment" };
|
|
135
|
+
function previewBulkEnrichment(api, args, options) {
|
|
136
|
+
return api.call($previewBulkEnrichment, args, options);
|
|
137
|
+
}
|
|
138
|
+
var $runBulkEnrichmentDoor = { m: "POST", p: "/crm/enrichment/bulk/run", d: "aidream", a: "guest", o: "required", n: "crm.run_bulk_enrichment_door" };
|
|
139
|
+
function runBulkEnrichmentDoor(api, args, options) {
|
|
140
|
+
return api.call($runBulkEnrichmentDoor, args, options);
|
|
141
|
+
}
|
|
142
|
+
var $resolvePartyDoor = { m: "POST", p: "/crm/parties/resolve", d: "aidream", a: "guest", o: "required", n: "crm.resolve_party_door" };
|
|
143
|
+
function resolvePartyDoor(api, args, options) {
|
|
144
|
+
return api.call($resolvePartyDoor, args, options);
|
|
145
|
+
}
|
|
146
|
+
var $resolvePartiesBatchDoor = { m: "POST", p: "/crm/parties/resolve-batch", d: "aidream", a: "guest", o: "required", n: "crm.resolve_parties_batch_door" };
|
|
147
|
+
function resolvePartiesBatchDoor(api, args, options) {
|
|
148
|
+
return api.call($resolvePartiesBatchDoor, args, options);
|
|
149
|
+
}
|
|
150
|
+
var $listImportConnectors = { m: "GET", p: "/crm/import/connectors", d: "aidream", a: "guest", o: "required", n: "crm.list_import_connectors" };
|
|
151
|
+
function listImportConnectors(api, args, options) {
|
|
152
|
+
return api.call($listImportConnectors, args, options);
|
|
153
|
+
}
|
|
154
|
+
var $fetchConnectorContacts = { m: "POST", p: "/crm/import/connectors/{provider_key}/fetch", d: "aidream", a: "guest", o: "required", n: "crm.fetch_connector_contacts" };
|
|
155
|
+
function fetchConnectorContacts(api, args, options) {
|
|
156
|
+
return api.call($fetchConnectorContacts, args, options);
|
|
157
|
+
}
|
|
158
|
+
var $persistConnectorCursor = { m: "POST", p: "/crm/import/connectors/{provider_key}/cursor", d: "aidream", a: "guest", o: "required", n: "crm.persist_connector_cursor" };
|
|
159
|
+
function persistConnectorCursor(api, args, options) {
|
|
160
|
+
return api.call($persistConnectorCursor, args, options);
|
|
161
|
+
}
|
|
162
|
+
var $queuePartyKindResolution = { m: "POST", p: "/crm/parties/kind-resolution/batch", d: "aidream", a: "guest", o: "required", n: "crm.queue_party_kind_resolution" };
|
|
163
|
+
function queuePartyKindResolution(api, args, options) {
|
|
164
|
+
return api.call($queuePartyKindResolution, args, options);
|
|
165
|
+
}
|
|
166
|
+
var $checkPitchAdvisoriesDoor = { m: "POST", p: "/crm/pitch-advisories", d: "aidream", a: "guest", o: "required", n: "crm.check_pitch_advisories_door" };
|
|
167
|
+
function checkPitchAdvisoriesDoor(api, args, options) {
|
|
168
|
+
return api.call($checkPitchAdvisoriesDoor, args, options);
|
|
169
|
+
}
|
|
170
|
+
var $onePerOutletDoor = { m: "POST", p: "/crm/pitch-advisories/one-per-outlet", d: "aidream", a: "guest", o: "required", n: "crm.one_per_outlet_door" };
|
|
171
|
+
function onePerOutletDoor(api, args, options) {
|
|
172
|
+
return api.call($onePerOutletDoor, args, options);
|
|
173
|
+
}
|
|
174
|
+
var $preSendCheckDoor = { m: "POST", p: "/crm/pre-send-check", d: "aidream", a: "guest", o: "required", n: "crm.pre_send_check_door" };
|
|
175
|
+
function preSendCheckDoor(api, args, options) {
|
|
176
|
+
return api.call($preSendCheckDoor, args, options);
|
|
177
|
+
}
|
|
178
|
+
var TABLE = {
|
|
179
|
+
"GET /sending-identities": $listSendingIdentities,
|
|
180
|
+
"POST /sending-identities": $createSendingIdentity,
|
|
181
|
+
"GET /sending-identities/connectable": $listConnectable,
|
|
182
|
+
"GET /sending-identities/policy": $getSendingPolicy,
|
|
183
|
+
"POST /sending-identities/policy": $setSendingPolicy,
|
|
184
|
+
"GET /sending-identities/bring-up-readiness": $getBringUpReadiness,
|
|
185
|
+
"GET /sending-identities/{identity_id}": $getSendingIdentity,
|
|
186
|
+
"PATCH /sending-identities/{identity_id}": $updateSendingIdentity,
|
|
187
|
+
"DELETE /sending-identities/{identity_id}": $disableSendingIdentity,
|
|
188
|
+
"POST /sending-identities/{identity_id}/check-domain": $checkDomain,
|
|
189
|
+
"POST /sending-identities/{identity_id}/check-authentication": $checkAuthentication,
|
|
190
|
+
"POST /sending-identities/{identity_id}/start-warmup": $startIdentityWarmup,
|
|
191
|
+
"POST /sending-identities/{identity_id}/pause": $pauseSendingIdentity,
|
|
192
|
+
"POST /sending-identities/{identity_id}/resume": $resumeSendingIdentity,
|
|
193
|
+
"GET /sending-identities/{identity_id}/readiness": $getReadiness,
|
|
194
|
+
"GET /sending-identities/{identity_id}/events": $listSendingEvents,
|
|
195
|
+
"POST /sending-identities/{identity_id}/refresh-health": $refreshIdentityHealth,
|
|
196
|
+
"GET /crm/parties/{outlet_party_id}/contact-candidates": $listOutletContactCandidates,
|
|
197
|
+
"POST /crm/parties/{outlet_party_id}/contact-candidates/confirm": $confirmOutletContactCandidate,
|
|
198
|
+
"GET /crm/parties/{party_id}/contacts": $listPartyContactCandidates,
|
|
199
|
+
"POST /crm/parties/{party_id}/contacts/find": $findPartyContacts,
|
|
200
|
+
"POST /crm/parties/{party_id}/contacts/{candidate_id}/confirm": $confirmPartyContactCandidate,
|
|
201
|
+
"POST /crm/parties/{party_id}/contacts/{candidate_id}/reject": $rejectPartyContactCandidate,
|
|
202
|
+
"POST /crm/parties/{party_id}/contacts/verify": $verifyPartyContactAddress,
|
|
203
|
+
"POST /crm/parties/{party_id}/journalist-activity": $checkPartyJournalistActivity,
|
|
204
|
+
"GET /crm/parties/{party_id}/journalist-beat": $readPartyJournalistBeat,
|
|
205
|
+
"POST /crm/parties/{party_id}/journalist-beat": $derivePartyJournalistBeat,
|
|
206
|
+
"POST /crm/outreach-lists/{list_id}/media-refresh": $refreshMediaListDoor,
|
|
207
|
+
"PUT /crm/outreach-lists/{list_id}/media-refresh-policy": $setMediaRefreshPolicyDoor,
|
|
208
|
+
"POST /crm/outreach-lists/{list_id}/media-search": $mediaListSearchDoor,
|
|
209
|
+
"POST /crm/outreach-lists/{list_id}/media-research/preview": $mediaResearchPreviewDoor,
|
|
210
|
+
"POST /crm/enrichment/bulk/preview": $previewBulkEnrichment,
|
|
211
|
+
"POST /crm/enrichment/bulk/run": $runBulkEnrichmentDoor,
|
|
212
|
+
"POST /crm/parties/resolve": $resolvePartyDoor,
|
|
213
|
+
"POST /crm/parties/resolve-batch": $resolvePartiesBatchDoor,
|
|
214
|
+
"GET /crm/import/connectors": $listImportConnectors,
|
|
215
|
+
"POST /crm/import/connectors/{provider_key}/fetch": $fetchConnectorContacts,
|
|
216
|
+
"POST /crm/import/connectors/{provider_key}/cursor": $persistConnectorCursor,
|
|
217
|
+
"POST /crm/parties/kind-resolution/batch": $queuePartyKindResolution,
|
|
218
|
+
"POST /crm/pitch-advisories": $checkPitchAdvisoriesDoor,
|
|
219
|
+
"POST /crm/pitch-advisories/one-per-outlet": $onePerOutletDoor,
|
|
220
|
+
"POST /crm/pre-send-check": $preSendCheckDoor
|
|
221
|
+
};
|
|
222
|
+
function call(api, key, args, options) {
|
|
223
|
+
return api.call(TABLE[key], args, options);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { call, checkAuthentication, checkDomain, checkPartyJournalistActivity, checkPitchAdvisoriesDoor, confirmOutletContactCandidate, confirmPartyContactCandidate, createSendingIdentity, derivePartyJournalistBeat, disableSendingIdentity, fetchConnectorContacts, findPartyContacts, getBringUpReadiness, getReadiness, getSendingIdentity, getSendingPolicy, listConnectable, listImportConnectors, listOutletContactCandidates, listPartyContactCandidates, listSendingEvents, listSendingIdentities, mediaListSearchDoor, mediaResearchPreviewDoor, mediaResearchRunDoor, onePerOutletDoor, pauseSendingIdentity, persistConnectorCursor, preSendCheckDoor, previewBulkEnrichment, queuePartyKindResolution, readPartyJournalistBeat, refreshIdentityHealth, refreshMediaListDoor, rejectPartyContactCandidate, resolvePartiesBatchDoor, resolvePartyDoor, resumeSendingIdentity, runBulkEnrichmentDoor, setMediaRefreshPolicyDoor, setSendingPolicy, startIdentityWarmup, updateSendingIdentity, verifyPartyContactAddress };
|
package/dist/data.cjs
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/generated/data.ts
|
|
4
|
+
var $schemaManifest = { m: "GET", p: "/schema/manifest", d: "aidream", a: "public", o: "exempt", n: "data.schema_manifest" };
|
|
5
|
+
function schemaManifest(api, args, options) {
|
|
6
|
+
return api.call($schemaManifest, args, options);
|
|
7
|
+
}
|
|
8
|
+
var $schemaBundle = { m: "GET", p: "/schema/bundle/{name}", d: "aidream", a: "public", o: "exempt", n: "data.schema_bundle" };
|
|
9
|
+
function schemaBundle(api, args, options) {
|
|
10
|
+
return api.call($schemaBundle, args, options);
|
|
11
|
+
}
|
|
12
|
+
var $schemaOpenapi = { m: "GET", p: "/schema/openapi", d: "aidream", a: "public", o: "exempt", n: "data.schema_openapi" };
|
|
13
|
+
function schemaOpenapi(api, args, options) {
|
|
14
|
+
return api.call($schemaOpenapi, args, options);
|
|
15
|
+
}
|
|
16
|
+
var $schemaAll = { m: "GET", p: "/schema/all", d: "aidream", a: "public", o: "exempt", n: "data.schema_all" };
|
|
17
|
+
function schemaAll(api, args, options) {
|
|
18
|
+
return api.call($schemaAll, args, options);
|
|
19
|
+
}
|
|
20
|
+
var $listTables = { m: "GET", p: "/v1/tables", d: "aidream", a: "user", o: "optional", n: "data.list_tables" };
|
|
21
|
+
function listTables(api, args, options) {
|
|
22
|
+
return api.call($listTables, args, options);
|
|
23
|
+
}
|
|
24
|
+
var $createTable = { m: "POST", p: "/v1/tables", d: "aidream", a: "user", o: "required", n: "data.create_table" };
|
|
25
|
+
function createTable(api, args, options) {
|
|
26
|
+
return api.call($createTable, args, options);
|
|
27
|
+
}
|
|
28
|
+
var $archiveTable = { m: "DELETE", p: "/v1/tables/{table}", d: "aidream", a: "user", o: "required", n: "data.archive_table" };
|
|
29
|
+
function archiveTable(api, args, options) {
|
|
30
|
+
return api.call($archiveTable, args, options);
|
|
31
|
+
}
|
|
32
|
+
var $tableColumns = { m: "GET", p: "/v1/tables/{table}/columns", d: "aidream", a: "user", o: "optional", n: "data.table_columns" };
|
|
33
|
+
function tableColumns(api, args, options) {
|
|
34
|
+
return api.call($tableColumns, args, options);
|
|
35
|
+
}
|
|
36
|
+
var $addColumn = { m: "POST", p: "/v1/tables/{table}/columns", d: "aidream", a: "user", o: "required", n: "data.add_column" };
|
|
37
|
+
function addColumn(api, args, options) {
|
|
38
|
+
return api.call($addColumn, args, options);
|
|
39
|
+
}
|
|
40
|
+
var $createView = { m: "POST", p: "/v1/tables/{table}/views", d: "aidream", a: "user", o: "required", n: "data.create_view" };
|
|
41
|
+
function createView(api, args, options) {
|
|
42
|
+
return api.call($createView, args, options);
|
|
43
|
+
}
|
|
44
|
+
var $listRowTemplates = { m: "GET", p: "/v1/tables/{table}/templates", d: "aidream", a: "user", o: "required", n: "data.list_row_templates" };
|
|
45
|
+
function listRowTemplates(api, args, options) {
|
|
46
|
+
return api.call($listRowTemplates, args, options);
|
|
47
|
+
}
|
|
48
|
+
var $declareRowTemplate = { m: "POST", p: "/v1/tables/{table}/templates", d: "aidream", a: "user", o: "required", n: "data.declare_row_template" };
|
|
49
|
+
function declareRowTemplate(api, args, options) {
|
|
50
|
+
return api.call($declareRowTemplate, args, options);
|
|
51
|
+
}
|
|
52
|
+
var $importComments = { m: "POST", p: "/v1/tables/{table}/comments", d: "aidream", a: "user", o: "required", n: "data.import_comments" };
|
|
53
|
+
function importComments(api, args, options) {
|
|
54
|
+
return api.call($importComments, args, options);
|
|
55
|
+
}
|
|
56
|
+
var $renameColumn = { m: "PATCH", p: "/v1/tables/{table}/columns/{column}", d: "aidream", a: "user", o: "required", n: "data.rename_column" };
|
|
57
|
+
function renameColumn(api, args, options) {
|
|
58
|
+
return api.call($renameColumn, args, options);
|
|
59
|
+
}
|
|
60
|
+
var $archiveColumn = { m: "DELETE", p: "/v1/tables/{table}/columns/{column}", d: "aidream", a: "user", o: "required", n: "data.archive_column" };
|
|
61
|
+
function archiveColumn(api, args, options) {
|
|
62
|
+
return api.call($archiveColumn, args, options);
|
|
63
|
+
}
|
|
64
|
+
var $backLinks = { m: "GET", p: "/v1/tables/{table}/rows/{row_id}/back_links", d: "aidream", a: "user", o: "optional", n: "data.back_links" };
|
|
65
|
+
function backLinks(api, args, options) {
|
|
66
|
+
return api.call($backLinks, args, options);
|
|
67
|
+
}
|
|
68
|
+
var $listRows = { m: "GET", p: "/v1/tables/{table}/rows", d: "aidream", a: "user", o: "optional", n: "data.list_rows" };
|
|
69
|
+
function listRows(api, args, options) {
|
|
70
|
+
return api.call($listRows, args, options);
|
|
71
|
+
}
|
|
72
|
+
var $createRow = { m: "POST", p: "/v1/tables/{table}/rows", d: "aidream", a: "user", o: "required", n: "data.create_row" };
|
|
73
|
+
function createRow(api, args, options) {
|
|
74
|
+
return api.call($createRow, args, options);
|
|
75
|
+
}
|
|
76
|
+
var $queryRows = { m: "POST", p: "/v1/tables/{table}/rows/query", d: "aidream", a: "user", o: "optional", n: "data.query_rows" };
|
|
77
|
+
function queryRows(api, args, options) {
|
|
78
|
+
return api.call($queryRows, args, options);
|
|
79
|
+
}
|
|
80
|
+
var $aggregate = { m: "POST", p: "/v1/tables/{table}/aggregate", d: "aidream", a: "user", o: "optional", n: "data.aggregate" };
|
|
81
|
+
function aggregate(api, args, options) {
|
|
82
|
+
return api.call($aggregate, args, options);
|
|
83
|
+
}
|
|
84
|
+
var $upsertRows = { m: "POST", p: "/v1/tables/{table}/rows/upsert", d: "aidream", a: "user", o: "required", n: "data.upsert_rows" };
|
|
85
|
+
function upsertRows(api, args, options) {
|
|
86
|
+
return api.call($upsertRows, args, options);
|
|
87
|
+
}
|
|
88
|
+
var $getRow = { m: "GET", p: "/v1/tables/{table}/rows/{row_id}", d: "aidream", a: "user", o: "optional", n: "data.get_row" };
|
|
89
|
+
function getRow(api, args, options) {
|
|
90
|
+
return api.call($getRow, args, options);
|
|
91
|
+
}
|
|
92
|
+
var $updateRow = { m: "PATCH", p: "/v1/tables/{table}/rows/{row_id}", d: "aidream", a: "user", o: "required", n: "data.update_row" };
|
|
93
|
+
function updateRow(api, args, options) {
|
|
94
|
+
return api.call($updateRow, args, options);
|
|
95
|
+
}
|
|
96
|
+
var $archiveRow = { m: "DELETE", p: "/v1/tables/{table}/rows/{row_id}", d: "aidream", a: "user", o: "required", n: "data.archive_row" };
|
|
97
|
+
function archiveRow(api, args, options) {
|
|
98
|
+
return api.call($archiveRow, args, options);
|
|
99
|
+
}
|
|
100
|
+
var $restoreRow = { m: "POST", p: "/v1/tables/{table}/rows/{row_id}/restore", d: "aidream", a: "user", o: "required", n: "data.restore_row" };
|
|
101
|
+
function restoreRow(api, args, options) {
|
|
102
|
+
return api.call($restoreRow, args, options);
|
|
103
|
+
}
|
|
104
|
+
var $runSql = { m: "POST", p: "/v1/sql", d: "aidream", a: "user", o: "required", n: "data.run_sql" };
|
|
105
|
+
function runSql(api, args, options) {
|
|
106
|
+
return api.call($runSql, args, options);
|
|
107
|
+
}
|
|
108
|
+
var $listTermLists = { m: "GET", p: "/term-lists", d: "aidream", a: "guest", o: "optional", n: "data.list_term_lists" };
|
|
109
|
+
function listTermLists(api, args, options) {
|
|
110
|
+
return api.call($listTermLists, args, options);
|
|
111
|
+
}
|
|
112
|
+
var $createTermList = { m: "POST", p: "/term-lists", d: "aidream", a: "guest", o: "required", n: "data.create_term_list" };
|
|
113
|
+
function createTermList(api, args, options) {
|
|
114
|
+
return api.call($createTermList, args, options);
|
|
115
|
+
}
|
|
116
|
+
var $getTermList = { m: "GET", p: "/term-lists/{term_list_id}", d: "aidream", a: "guest", o: "optional", n: "data.get_term_list" };
|
|
117
|
+
function getTermList(api, args, options) {
|
|
118
|
+
return api.call($getTermList, args, options);
|
|
119
|
+
}
|
|
120
|
+
var $updateTermList = { m: "PATCH", p: "/term-lists/{term_list_id}", d: "aidream", a: "guest", o: "required", n: "data.update_term_list" };
|
|
121
|
+
function updateTermList(api, args, options) {
|
|
122
|
+
return api.call($updateTermList, args, options);
|
|
123
|
+
}
|
|
124
|
+
var $archiveTermList = { m: "DELETE", p: "/term-lists/{term_list_id}", d: "aidream", a: "guest", o: "required", n: "data.archive_term_list" };
|
|
125
|
+
function archiveTermList(api, args, options) {
|
|
126
|
+
return api.call($archiveTermList, args, options);
|
|
127
|
+
}
|
|
128
|
+
var $previewTermLists = { m: "POST", p: "/term-lists/preview", d: "aidream", a: "guest", o: "required", n: "data.preview_term_lists" };
|
|
129
|
+
function previewTermLists(api, args, options) {
|
|
130
|
+
return api.call($previewTermLists, args, options);
|
|
131
|
+
}
|
|
132
|
+
var $makeConfidential = { m: "POST", p: "/typed-tables/confidential", d: "aidream", a: "user", o: "required", n: "data.make_confidential" };
|
|
133
|
+
function makeConfidential(api, args, options) {
|
|
134
|
+
return api.call($makeConfidential, args, options);
|
|
135
|
+
}
|
|
136
|
+
var $inspectDatabase = { m: "POST", p: "/external-databases/inspect", d: "aidream", a: "guest", o: "required", n: "data.inspect_database" };
|
|
137
|
+
function inspectDatabase(api, args, options) {
|
|
138
|
+
return api.call($inspectDatabase, args, options);
|
|
139
|
+
}
|
|
140
|
+
var $connectDatabaseTable = { m: "POST", p: "/external-databases/tables", d: "aidream", a: "guest", o: "required", n: "data.connect_database_table" };
|
|
141
|
+
function connectDatabaseTable(api, args, options) {
|
|
142
|
+
return api.call($connectDatabaseTable, args, options);
|
|
143
|
+
}
|
|
144
|
+
var $refreshSyncedTable = { m: "POST", p: "/external-databases/refresh", d: "aidream", a: "guest", o: "required", n: "data.refresh_synced_table" };
|
|
145
|
+
function refreshSyncedTable(api, args, options) {
|
|
146
|
+
return api.call($refreshSyncedTable, args, options);
|
|
147
|
+
}
|
|
148
|
+
var $descend = { m: "GET", p: "/review/descend", d: "aidream", a: "guest", o: "required", n: "data.descend" };
|
|
149
|
+
function descend(api, args, options) {
|
|
150
|
+
return api.call($descend, args, options);
|
|
151
|
+
}
|
|
152
|
+
var $findingFromWalk = { m: "POST", p: "/review/findings/from-walk", d: "aidream", a: "guest", o: "required", n: "data.finding_from_walk" };
|
|
153
|
+
function findingFromWalk(api, args, options) {
|
|
154
|
+
return api.call($findingFromWalk, args, options);
|
|
155
|
+
}
|
|
156
|
+
var $adminReviewDescend = { m: "GET", p: "/admin/review/descend", d: "aidream", a: "admin", o: "exempt", n: "data.admin_review_descend" };
|
|
157
|
+
function adminReviewDescend(api, args, options) {
|
|
158
|
+
return api.call($adminReviewDescend, args, options);
|
|
159
|
+
}
|
|
160
|
+
var $extractEndpoint = { m: "POST", p: "/dedup/processed-documents/extract", d: "aidream", a: "guest", o: "required", n: "data.extract_endpoint" };
|
|
161
|
+
function extractEndpoint(api, args, options) {
|
|
162
|
+
return api.call($extractEndpoint, args, options);
|
|
163
|
+
}
|
|
164
|
+
var $cleanEndpoint = { m: "POST", p: "/dedup/processed-documents/{processed_document_id}/clean", d: "aidream", a: "guest", o: "required", n: "data.clean_endpoint" };
|
|
165
|
+
function cleanEndpoint(api, args, options) {
|
|
166
|
+
return api.call($cleanEndpoint, args, options);
|
|
167
|
+
}
|
|
168
|
+
var $derivativeEndpoint = { m: "POST", p: "/dedup/processed-documents/{processed_document_id}/derivative", d: "aidream", a: "guest", o: "required", n: "data.derivative_endpoint" };
|
|
169
|
+
function derivativeEndpoint(api, args, options) {
|
|
170
|
+
return api.call($derivativeEndpoint, args, options);
|
|
171
|
+
}
|
|
172
|
+
var $setCanonicalExtractEndpoint = { m: "POST", p: "/dedup/files/{file_id}/set-canonical-extract", d: "aidream", a: "guest", o: "required", n: "data.set_canonical_extract_endpoint" };
|
|
173
|
+
function setCanonicalExtractEndpoint(api, args, options) {
|
|
174
|
+
return api.call($setCanonicalExtractEndpoint, args, options);
|
|
175
|
+
}
|
|
176
|
+
var $setCanonicalCleanEndpoint = { m: "POST", p: "/dedup/processed-documents/{processed_document_id}/set-canonical-clean", d: "aidream", a: "guest", o: "required", n: "data.set_canonical_clean_endpoint" };
|
|
177
|
+
function setCanonicalCleanEndpoint(api, args, options) {
|
|
178
|
+
return api.call($setCanonicalCleanEndpoint, args, options);
|
|
179
|
+
}
|
|
180
|
+
var $archiveEndpoint = { m: "POST", p: "/dedup/processed-documents/{processed_document_id}/archive", d: "aidream", a: "guest", o: "required", n: "data.archive_endpoint" };
|
|
181
|
+
function archiveEndpoint(api, args, options) {
|
|
182
|
+
return api.call($archiveEndpoint, args, options);
|
|
183
|
+
}
|
|
184
|
+
var $listModels = { m: "GET", p: "/data/models", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.list_models" };
|
|
185
|
+
function listModels(api, args, options) {
|
|
186
|
+
return api.call($listModels, args, options);
|
|
187
|
+
}
|
|
188
|
+
var $listTools = { m: "GET", p: "/data/tools", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.list_tools" };
|
|
189
|
+
function listTools(api, args, options) {
|
|
190
|
+
return api.call($listTools, args, options);
|
|
191
|
+
}
|
|
192
|
+
var $listToolsByCategory = { m: "GET", p: "/data/tools/by-category", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.list_tools_by_category" };
|
|
193
|
+
function listToolsByCategory(api, args, options) {
|
|
194
|
+
return api.call($listToolsByCategory, args, options);
|
|
195
|
+
}
|
|
196
|
+
var $listConversations = { m: "GET", p: "/data/conversations", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.list_conversations" };
|
|
197
|
+
function listConversations(api, args, options) {
|
|
198
|
+
return api.call($listConversations, args, options);
|
|
199
|
+
}
|
|
200
|
+
var $createConversation = { m: "POST", p: "/data/conversations", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.create_conversation" };
|
|
201
|
+
function createConversation(api, args, options) {
|
|
202
|
+
return api.call($createConversation, args, options);
|
|
203
|
+
}
|
|
204
|
+
var $getConversation = { m: "GET", p: "/data/conversations/{conv_id}", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.get_conversation" };
|
|
205
|
+
function getConversation(api, args, options) {
|
|
206
|
+
return api.call($getConversation, args, options);
|
|
207
|
+
}
|
|
208
|
+
var $updateConversation = { m: "PUT", p: "/data/conversations/{conv_id}", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.update_conversation" };
|
|
209
|
+
function updateConversation(api, args, options) {
|
|
210
|
+
return api.call($updateConversation, args, options);
|
|
211
|
+
}
|
|
212
|
+
var $deleteConversation = { m: "DELETE", p: "/data/conversations/{conv_id}", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.delete_conversation" };
|
|
213
|
+
function deleteConversation(api, args, options) {
|
|
214
|
+
return api.call($deleteConversation, args, options);
|
|
215
|
+
}
|
|
216
|
+
var $getConversationActivity = { m: "GET", p: "/data/conversations/{conv_id}/activity", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.get_conversation_activity" };
|
|
217
|
+
function getConversationActivity(api, args, options) {
|
|
218
|
+
return api.call($getConversationActivity, args, options);
|
|
219
|
+
}
|
|
220
|
+
var $createMessage = { m: "POST", p: "/data/conversations/{conv_id}/messages", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.create_message" };
|
|
221
|
+
function createMessage(api, args, options) {
|
|
222
|
+
return api.call($createMessage, args, options);
|
|
223
|
+
}
|
|
224
|
+
var $updateMessage = { m: "PUT", p: "/data/messages/{msg_id}", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.update_message" };
|
|
225
|
+
function updateMessage(api, args, options) {
|
|
226
|
+
return api.call($updateMessage, args, options);
|
|
227
|
+
}
|
|
228
|
+
var $importConversations = { m: "POST", p: "/data/conversations/import", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.import_conversations" };
|
|
229
|
+
function importConversations(api, args, options) {
|
|
230
|
+
return api.call($importConversations, args, options);
|
|
231
|
+
}
|
|
232
|
+
var $triggerSync = { m: "POST", p: "/data/sync", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.trigger_sync" };
|
|
233
|
+
function triggerSync(api, args, options) {
|
|
234
|
+
return api.call($triggerSync, args, options);
|
|
235
|
+
}
|
|
236
|
+
var $getSyncStatus = { m: "GET", p: "/data/sync/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.get_sync_status" };
|
|
237
|
+
function getSyncStatus(api, args, options) {
|
|
238
|
+
return api.call($getSyncStatus, args, options);
|
|
239
|
+
}
|
|
240
|
+
var $debugStateRedirect = { m: "GET", p: "/data/debug", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.debug_state_redirect" };
|
|
241
|
+
function debugStateRedirect(api, args, options) {
|
|
242
|
+
return api.call($debugStateRedirect, args, options);
|
|
243
|
+
}
|
|
244
|
+
var $recordsMirrorStatus = { m: "GET", p: "/records/mirror/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.records_mirror_status" };
|
|
245
|
+
function recordsMirrorStatus(api, args, options) {
|
|
246
|
+
return api.call($recordsMirrorStatus, args, options);
|
|
247
|
+
}
|
|
248
|
+
var $triggerRecordsMirrorSync = { m: "POST", p: "/records/mirror/sync", d: "matrx-local", a: "loopback_token", o: "exempt", n: "data.trigger_records_mirror_sync" };
|
|
249
|
+
function triggerRecordsMirrorSync(api, args, options) {
|
|
250
|
+
return api.call($triggerRecordsMirrorSync, args, options);
|
|
251
|
+
}
|
|
252
|
+
var TABLE = {
|
|
253
|
+
"GET /schema/manifest": $schemaManifest,
|
|
254
|
+
"GET /schema/bundle/{name}": $schemaBundle,
|
|
255
|
+
"GET /schema/openapi": $schemaOpenapi,
|
|
256
|
+
"GET /schema/all": $schemaAll,
|
|
257
|
+
"GET /v1/tables": $listTables,
|
|
258
|
+
"POST /v1/tables": $createTable,
|
|
259
|
+
"DELETE /v1/tables/{table}": $archiveTable,
|
|
260
|
+
"GET /v1/tables/{table}/columns": $tableColumns,
|
|
261
|
+
"POST /v1/tables/{table}/columns": $addColumn,
|
|
262
|
+
"POST /v1/tables/{table}/views": $createView,
|
|
263
|
+
"GET /v1/tables/{table}/templates": $listRowTemplates,
|
|
264
|
+
"POST /v1/tables/{table}/templates": $declareRowTemplate,
|
|
265
|
+
"POST /v1/tables/{table}/comments": $importComments,
|
|
266
|
+
"PATCH /v1/tables/{table}/columns/{column}": $renameColumn,
|
|
267
|
+
"DELETE /v1/tables/{table}/columns/{column}": $archiveColumn,
|
|
268
|
+
"GET /v1/tables/{table}/rows/{row_id}/back_links": $backLinks,
|
|
269
|
+
"GET /v1/tables/{table}/rows": $listRows,
|
|
270
|
+
"POST /v1/tables/{table}/rows": $createRow,
|
|
271
|
+
"POST /v1/tables/{table}/rows/query": $queryRows,
|
|
272
|
+
"POST /v1/tables/{table}/aggregate": $aggregate,
|
|
273
|
+
"POST /v1/tables/{table}/rows/upsert": $upsertRows,
|
|
274
|
+
"GET /v1/tables/{table}/rows/{row_id}": $getRow,
|
|
275
|
+
"PATCH /v1/tables/{table}/rows/{row_id}": $updateRow,
|
|
276
|
+
"DELETE /v1/tables/{table}/rows/{row_id}": $archiveRow,
|
|
277
|
+
"POST /v1/tables/{table}/rows/{row_id}/restore": $restoreRow,
|
|
278
|
+
"POST /v1/sql": $runSql,
|
|
279
|
+
"GET /term-lists": $listTermLists,
|
|
280
|
+
"POST /term-lists": $createTermList,
|
|
281
|
+
"GET /term-lists/{term_list_id}": $getTermList,
|
|
282
|
+
"PATCH /term-lists/{term_list_id}": $updateTermList,
|
|
283
|
+
"DELETE /term-lists/{term_list_id}": $archiveTermList,
|
|
284
|
+
"POST /term-lists/preview": $previewTermLists,
|
|
285
|
+
"POST /typed-tables/confidential": $makeConfidential,
|
|
286
|
+
"POST /external-databases/inspect": $inspectDatabase,
|
|
287
|
+
"POST /external-databases/tables": $connectDatabaseTable,
|
|
288
|
+
"POST /external-databases/refresh": $refreshSyncedTable,
|
|
289
|
+
"GET /review/descend": $descend,
|
|
290
|
+
"POST /review/findings/from-walk": $findingFromWalk,
|
|
291
|
+
"GET /admin/review/descend": $adminReviewDescend,
|
|
292
|
+
"POST /dedup/processed-documents/extract": $extractEndpoint,
|
|
293
|
+
"POST /dedup/processed-documents/{processed_document_id}/clean": $cleanEndpoint,
|
|
294
|
+
"POST /dedup/processed-documents/{processed_document_id}/derivative": $derivativeEndpoint,
|
|
295
|
+
"POST /dedup/files/{file_id}/set-canonical-extract": $setCanonicalExtractEndpoint,
|
|
296
|
+
"POST /dedup/processed-documents/{processed_document_id}/set-canonical-clean": $setCanonicalCleanEndpoint,
|
|
297
|
+
"POST /dedup/processed-documents/{processed_document_id}/archive": $archiveEndpoint,
|
|
298
|
+
"GET /data/models": $listModels,
|
|
299
|
+
"GET /data/tools": $listTools,
|
|
300
|
+
"GET /data/tools/by-category": $listToolsByCategory,
|
|
301
|
+
"GET /data/conversations": $listConversations,
|
|
302
|
+
"POST /data/conversations": $createConversation,
|
|
303
|
+
"GET /data/conversations/{conv_id}": $getConversation,
|
|
304
|
+
"PUT /data/conversations/{conv_id}": $updateConversation,
|
|
305
|
+
"DELETE /data/conversations/{conv_id}": $deleteConversation,
|
|
306
|
+
"GET /data/conversations/{conv_id}/activity": $getConversationActivity,
|
|
307
|
+
"POST /data/conversations/{conv_id}/messages": $createMessage,
|
|
308
|
+
"PUT /data/messages/{msg_id}": $updateMessage,
|
|
309
|
+
"POST /data/conversations/import": $importConversations,
|
|
310
|
+
"POST /data/sync": $triggerSync,
|
|
311
|
+
"GET /data/sync/status": $getSyncStatus,
|
|
312
|
+
"GET /data/debug": $debugStateRedirect,
|
|
313
|
+
"GET /records/mirror/status": $recordsMirrorStatus,
|
|
314
|
+
"POST /records/mirror/sync": $triggerRecordsMirrorSync
|
|
315
|
+
};
|
|
316
|
+
function call(api, key, args, options) {
|
|
317
|
+
return api.call(TABLE[key], args, options);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
exports.addColumn = addColumn;
|
|
321
|
+
exports.adminReviewDescend = adminReviewDescend;
|
|
322
|
+
exports.aggregate = aggregate;
|
|
323
|
+
exports.archiveColumn = archiveColumn;
|
|
324
|
+
exports.archiveEndpoint = archiveEndpoint;
|
|
325
|
+
exports.archiveRow = archiveRow;
|
|
326
|
+
exports.archiveTable = archiveTable;
|
|
327
|
+
exports.archiveTermList = archiveTermList;
|
|
328
|
+
exports.backLinks = backLinks;
|
|
329
|
+
exports.call = call;
|
|
330
|
+
exports.cleanEndpoint = cleanEndpoint;
|
|
331
|
+
exports.connectDatabaseTable = connectDatabaseTable;
|
|
332
|
+
exports.createConversation = createConversation;
|
|
333
|
+
exports.createMessage = createMessage;
|
|
334
|
+
exports.createRow = createRow;
|
|
335
|
+
exports.createTable = createTable;
|
|
336
|
+
exports.createTermList = createTermList;
|
|
337
|
+
exports.createView = createView;
|
|
338
|
+
exports.debugStateRedirect = debugStateRedirect;
|
|
339
|
+
exports.declareRowTemplate = declareRowTemplate;
|
|
340
|
+
exports.deleteConversation = deleteConversation;
|
|
341
|
+
exports.derivativeEndpoint = derivativeEndpoint;
|
|
342
|
+
exports.descend = descend;
|
|
343
|
+
exports.extractEndpoint = extractEndpoint;
|
|
344
|
+
exports.findingFromWalk = findingFromWalk;
|
|
345
|
+
exports.getConversation = getConversation;
|
|
346
|
+
exports.getConversationActivity = getConversationActivity;
|
|
347
|
+
exports.getRow = getRow;
|
|
348
|
+
exports.getSyncStatus = getSyncStatus;
|
|
349
|
+
exports.getTermList = getTermList;
|
|
350
|
+
exports.importComments = importComments;
|
|
351
|
+
exports.importConversations = importConversations;
|
|
352
|
+
exports.inspectDatabase = inspectDatabase;
|
|
353
|
+
exports.listConversations = listConversations;
|
|
354
|
+
exports.listModels = listModels;
|
|
355
|
+
exports.listRowTemplates = listRowTemplates;
|
|
356
|
+
exports.listRows = listRows;
|
|
357
|
+
exports.listTables = listTables;
|
|
358
|
+
exports.listTermLists = listTermLists;
|
|
359
|
+
exports.listTools = listTools;
|
|
360
|
+
exports.listToolsByCategory = listToolsByCategory;
|
|
361
|
+
exports.makeConfidential = makeConfidential;
|
|
362
|
+
exports.previewTermLists = previewTermLists;
|
|
363
|
+
exports.queryRows = queryRows;
|
|
364
|
+
exports.recordsMirrorStatus = recordsMirrorStatus;
|
|
365
|
+
exports.refreshSyncedTable = refreshSyncedTable;
|
|
366
|
+
exports.renameColumn = renameColumn;
|
|
367
|
+
exports.restoreRow = restoreRow;
|
|
368
|
+
exports.runSql = runSql;
|
|
369
|
+
exports.schemaAll = schemaAll;
|
|
370
|
+
exports.schemaBundle = schemaBundle;
|
|
371
|
+
exports.schemaManifest = schemaManifest;
|
|
372
|
+
exports.schemaOpenapi = schemaOpenapi;
|
|
373
|
+
exports.setCanonicalCleanEndpoint = setCanonicalCleanEndpoint;
|
|
374
|
+
exports.setCanonicalExtractEndpoint = setCanonicalExtractEndpoint;
|
|
375
|
+
exports.tableColumns = tableColumns;
|
|
376
|
+
exports.triggerRecordsMirrorSync = triggerRecordsMirrorSync;
|
|
377
|
+
exports.triggerSync = triggerSync;
|
|
378
|
+
exports.updateConversation = updateConversation;
|
|
379
|
+
exports.updateMessage = updateMessage;
|
|
380
|
+
exports.updateRow = updateRow;
|
|
381
|
+
exports.updateTermList = updateTermList;
|
|
382
|
+
exports.upsertRows = upsertRows;
|