@thecorporation/corp-tools 26.3.17 → 26.3.20
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/dist/index.d.ts +21 -2
- package/dist/index.js +253 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ interface CorpConfig {
|
|
|
14
14
|
email: string;
|
|
15
15
|
};
|
|
16
16
|
active_entity_id: string;
|
|
17
|
+
active_entity_ids?: Record<string, string>;
|
|
18
|
+
last_references?: Record<string, string>;
|
|
17
19
|
[key: string]: unknown;
|
|
18
20
|
}
|
|
19
21
|
interface ToolCall {
|
|
@@ -3083,6 +3085,12 @@ declare class CorpAPIClient {
|
|
|
3083
3085
|
listDigests(): Promise<DigestSummary[]>;
|
|
3084
3086
|
triggerDigest(): Promise<DigestTriggerResponse>;
|
|
3085
3087
|
getDigest(key: string): Promise<DigestSummary>;
|
|
3088
|
+
syncReferences(kind: string, items: Array<{
|
|
3089
|
+
resource_id: string;
|
|
3090
|
+
label: string;
|
|
3091
|
+
}>, entityId?: string): Promise<{
|
|
3092
|
+
references: ApiRecord[];
|
|
3093
|
+
}>;
|
|
3086
3094
|
listEntities(): Promise<ApiRecord[]>;
|
|
3087
3095
|
listContacts(entityId: string): Promise<ApiRecord[]>;
|
|
3088
3096
|
getContact(id: string, entityId: string): Promise<ApiRecord>;
|
|
@@ -3092,9 +3100,9 @@ declare class CorpAPIClient {
|
|
|
3092
3100
|
getNotificationPrefs(contactId: string): Promise<ApiRecord>;
|
|
3093
3101
|
updateNotificationPrefs(contactId: string, prefs: ApiRecord): Promise<ApiRecord>;
|
|
3094
3102
|
getCapTable(entityId: string): Promise<ApiRecord>;
|
|
3095
|
-
/** Extract SAFE instruments from the cap table (no dedicated list endpoint). */
|
|
3096
3103
|
getSafeNotes(entityId: string): Promise<ApiRecord[]>;
|
|
3097
|
-
|
|
3104
|
+
createSafeNote(data: ApiRecord): Promise<ApiRecord>;
|
|
3105
|
+
listShareTransfers(entityId: string): Promise<ApiRecord[]>;
|
|
3098
3106
|
getShareTransfers(entityId: string): Promise<ApiRecord[]>;
|
|
3099
3107
|
getValuations(entityId: string): Promise<ApiRecord[]>;
|
|
3100
3108
|
getCurrent409a(entityId: string): Promise<ApiRecord>;
|
|
@@ -3110,6 +3118,7 @@ declare class CorpAPIClient {
|
|
|
3110
3118
|
acceptEquityRound(roundId: string, data: AcceptEquityRoundRequest): Promise<EquityRoundResponse>;
|
|
3111
3119
|
previewRoundConversion(data: PreviewRoundConversionRequest): Promise<ApiRecord>;
|
|
3112
3120
|
executeRoundConversion(data: ExecuteRoundConversionRequest): Promise<ApiRecord>;
|
|
3121
|
+
listEquityRounds(entityId: string): Promise<ApiRecord[]>;
|
|
3113
3122
|
startEquityRound(data: ApiRecord): Promise<ApiRecord>;
|
|
3114
3123
|
addRoundSecurity(roundId: string, data: ApiRecord): Promise<ApiRecord>;
|
|
3115
3124
|
issueRound(roundId: string, data: ApiRecord): Promise<ApiRecord>;
|
|
@@ -3125,6 +3134,7 @@ declare class CorpAPIClient {
|
|
|
3125
3134
|
castVote(entityId: string, meetingId: string, itemId: string, data: ApiRecord): Promise<VoteResponse>;
|
|
3126
3135
|
sendNotice(meetingId: string, entityId: string): Promise<MeetingResponse>;
|
|
3127
3136
|
adjournMeeting(meetingId: string, entityId: string): Promise<MeetingResponse>;
|
|
3137
|
+
reopenMeeting(meetingId: string, entityId: string): Promise<MeetingResponse>;
|
|
3128
3138
|
cancelMeeting(meetingId: string, entityId: string): Promise<MeetingResponse>;
|
|
3129
3139
|
finalizeAgendaItem(meetingId: string, itemId: string, data: ApiRecord): Promise<AgendaItemResponse>;
|
|
3130
3140
|
computeResolution(meetingId: string, itemId: string, entityId: string, data: ApiRecord): Promise<ResolutionResponse>;
|
|
@@ -3137,12 +3147,21 @@ declare class CorpAPIClient {
|
|
|
3137
3147
|
getSigningLink(documentId: string, entityId: string): Promise<ApiRecord>;
|
|
3138
3148
|
validatePreviewPdf(entityId: string, documentId: string): Promise<ApiRecord>;
|
|
3139
3149
|
getPreviewPdfUrl(entityId: string, documentId: string): string;
|
|
3150
|
+
listInvoices(entityId: string): Promise<ApiRecord[]>;
|
|
3151
|
+
listBankAccounts(entityId: string): Promise<ApiRecord[]>;
|
|
3152
|
+
listPayments(entityId: string): Promise<ApiRecord[]>;
|
|
3153
|
+
listPayrollRuns(entityId: string): Promise<ApiRecord[]>;
|
|
3154
|
+
listDistributions(entityId: string): Promise<ApiRecord[]>;
|
|
3155
|
+
listReconciliations(entityId: string): Promise<ApiRecord[]>;
|
|
3140
3156
|
createInvoice(data: ApiRecord): Promise<ApiRecord>;
|
|
3141
3157
|
runPayroll(data: ApiRecord): Promise<ApiRecord>;
|
|
3142
3158
|
submitPayment(data: ApiRecord): Promise<ApiRecord>;
|
|
3143
3159
|
openBankAccount(data: ApiRecord): Promise<ApiRecord>;
|
|
3144
3160
|
classifyContractor(data: ApiRecord): Promise<ApiRecord>;
|
|
3145
3161
|
reconcileLedger(data: ApiRecord): Promise<ApiRecord>;
|
|
3162
|
+
listTaxFilings(entityId: string): Promise<ApiRecord[]>;
|
|
3163
|
+
listDeadlines(entityId: string): Promise<ApiRecord[]>;
|
|
3164
|
+
listContractorClassifications(entityId: string): Promise<ApiRecord[]>;
|
|
3146
3165
|
fileTaxDocument(data: ApiRecord): Promise<ApiRecord>;
|
|
3147
3166
|
trackDeadline(data: ApiRecord): Promise<ApiRecord>;
|
|
3148
3167
|
getBillingStatus(): Promise<ApiRecord>;
|