@thecorporation/corp-tools 26.3.20 → 26.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -338,6 +338,34 @@ type components = {
338
338
  * @enum {string}
339
339
  */
340
340
  BankAccountType: "checking" | "savings";
341
+ BillingCheckoutRequest: {
342
+ entity_id?: null | components["schemas"]["EntityId"];
343
+ plan_id: string;
344
+ };
345
+ BillingCheckoutResponse: {
346
+ checkout_url: string;
347
+ plan: string;
348
+ status: string;
349
+ };
350
+ BillingPlanResponse: {
351
+ interval: string;
352
+ name: string;
353
+ plan_id: string;
354
+ /** Format: int64 */
355
+ price_cents: number;
356
+ };
357
+ BillingPlansResponse: {
358
+ plans: components["schemas"]["BillingPlanResponse"][];
359
+ };
360
+ BillingPortalResponse: {
361
+ portal_url: string;
362
+ };
363
+ BillingStatusResponse: {
364
+ current_period_end?: string | null;
365
+ plan: string;
366
+ status: string;
367
+ workspace_id: components["schemas"]["WorkspaceId"];
368
+ };
341
369
  BindApprovalArtifactRequest: {
342
370
  approval_artifact_id: components["schemas"]["ApprovalArtifactId"];
343
371
  entity_id: components["schemas"]["EntityId"];
@@ -478,7 +506,8 @@ type components = {
478
506
  entity_id: components["schemas"]["EntityId"];
479
507
  };
480
508
  ClaimWorkItemRequest: {
481
- claimed_by: string;
509
+ claimed_by?: string | null;
510
+ claimed_by_actor?: null | components["schemas"]["WorkItemActorRefRequest"];
482
511
  /** Format: int64 */
483
512
  ttl_seconds?: number | null;
484
513
  };
@@ -501,8 +530,14 @@ type components = {
501
530
  ClassificationResult: "independent" | "employee" | "uncertain";
502
531
  ClassifyContractorRequest: {
503
532
  contractor_name: string;
533
+ /** Format: int32 */
534
+ duration_months?: number | null;
504
535
  entity_id: components["schemas"]["EntityId"];
536
+ exclusive_client?: boolean | null;
505
537
  factors?: Record<string, never>;
538
+ /** Format: int32 */
539
+ hours_per_week?: number | null;
540
+ provides_tools?: boolean | null;
506
541
  state?: string;
507
542
  };
508
543
  CompanyAddress: {
@@ -518,7 +553,8 @@ type components = {
518
553
  required_signers?: string[];
519
554
  };
520
555
  CompleteWorkItemRequest: {
521
- completed_by: string;
556
+ completed_by?: string | null;
557
+ completed_by_actor?: null | components["schemas"]["WorkItemActorRefRequest"];
522
558
  result?: string | null;
523
559
  };
524
560
  /** Format: uuid */
@@ -740,6 +776,7 @@ type components = {
740
776
  branch: string;
741
777
  };
742
778
  CreateContactRequest: {
779
+ cap_table_access?: null | components["schemas"]["CapTableAccess"];
743
780
  category: components["schemas"]["ContactCategory"];
744
781
  contact_type: components["schemas"]["ContactType"];
745
782
  email?: string | null;
@@ -747,6 +784,7 @@ type components = {
747
784
  mailing_address?: string | null;
748
785
  name: string;
749
786
  notes?: string | null;
787
+ phone?: string | null;
750
788
  };
751
789
  CreateControlLinkRequest: {
752
790
  child_legal_entity_id: components["schemas"]["LegalEntityId"];
@@ -967,6 +1005,24 @@ type components = {
967
1005
  /** Format: int64 */
968
1006
  target_raise_cents?: number | null;
969
1007
  };
1008
+ CreateSafeNoteRequest: {
1009
+ conversion_unit_type?: string | null;
1010
+ /** Format: double */
1011
+ discount_rate?: number | null;
1012
+ document_id?: null | components["schemas"]["DocumentId"];
1013
+ email?: string | null;
1014
+ entity_id: components["schemas"]["EntityId"];
1015
+ investor_contact_id?: null | components["schemas"]["ContactId"];
1016
+ investor_name: string;
1017
+ meeting_id?: null | components["schemas"]["MeetingId"];
1018
+ /** Format: int64 */
1019
+ principal_amount_cents: number;
1020
+ pro_rata_rights?: boolean;
1021
+ resolution_id?: null | components["schemas"]["ResolutionId"];
1022
+ safe_type?: null | components["schemas"]["SafeType"];
1023
+ /** Format: int64 */
1024
+ valuation_cap_cents?: number | null;
1025
+ };
970
1026
  CreateSeatRequest: {
971
1027
  /** Format: date */
972
1028
  appointed_date?: string | null;
@@ -1023,6 +1079,7 @@ type components = {
1023
1079
  asap?: boolean;
1024
1080
  category: string;
1025
1081
  created_by?: string | null;
1082
+ created_by_actor?: null | components["schemas"]["WorkItemActorRefRequest"];
1026
1083
  /** Format: date */
1027
1084
  deadline?: string | null;
1028
1085
  description?: string | null;
@@ -1095,10 +1152,13 @@ type components = {
1095
1152
  schedule: components["schemas"]["DelegationSchedule"];
1096
1153
  };
1097
1154
  DemoSeedRequest: {
1155
+ name?: string | null;
1098
1156
  scenario?: string;
1099
1157
  };
1100
1158
  DemoSeedResponse: {
1101
1159
  entities_created: number;
1160
+ entity_id: components["schemas"]["EntityId"];
1161
+ legal_name: string;
1102
1162
  message: string;
1103
1163
  scenario: string;
1104
1164
  workspace_id: components["schemas"]["WorkspaceId"];
@@ -1133,6 +1193,8 @@ type components = {
1133
1193
  name: string;
1134
1194
  };
1135
1195
  DissolveEntityRequest: {
1196
+ /** Format: date */
1197
+ effective_date?: string | null;
1136
1198
  reason?: string | null;
1137
1199
  };
1138
1200
  /** Format: uuid */
@@ -1296,12 +1358,15 @@ type components = {
1296
1358
  FinalizePendingFormationRequest: {
1297
1359
  /** Format: int64 */
1298
1360
  authorized_shares?: number | null;
1361
+ /** Format: int32 */
1362
+ board_size?: number | null;
1299
1363
  company_address?: null | components["schemas"]["Address"];
1300
1364
  fiscal_year_end?: string | null;
1301
1365
  formation_date?: string | null;
1302
1366
  incorporator_address?: string | null;
1303
1367
  incorporator_name?: string | null;
1304
1368
  par_value?: string | null;
1369
+ principal_name?: string | null;
1305
1370
  registered_agent_address?: string | null;
1306
1371
  registered_agent_name?: string | null;
1307
1372
  right_of_first_refusal?: boolean | null;
@@ -1818,6 +1883,8 @@ type components = {
1818
1883
  InvoiceStatus: "draft" | "sent" | "paid" | "voided";
1819
1884
  IssueStagedRoundRequest: {
1820
1885
  entity_id: components["schemas"]["EntityId"];
1886
+ meeting_id?: null | components["schemas"]["MeetingId"];
1887
+ resolution_id?: null | components["schemas"]["ResolutionId"];
1821
1888
  };
1822
1889
  IssueStagedRoundResponse: {
1823
1890
  agenda_item_id?: null | components["schemas"]["AgendaItemId"];
@@ -1846,9 +1913,10 @@ type components = {
1846
1913
  */
1847
1914
  JournalEntryStatus: "draft" | "posted" | "voided";
1848
1915
  /**
1849
- * @description A validated jurisdiction (e.g., "Delaware", "California").
1916
+ * @description A validated jurisdiction (e.g., "Delaware", "US-DE").
1850
1917
  *
1851
- * Guarantees: non-empty, at most 200 characters.
1918
+ * Guarantees: non-empty, at most 200 characters, and matches a supported US
1919
+ * state or DC jurisdiction name/code.
1852
1920
  */
1853
1921
  Jurisdiction: string;
1854
1922
  JwksResponse: {
@@ -2270,7 +2338,11 @@ type components = {
2270
2338
  ReconcileLedgerRequest: {
2271
2339
  /** Format: date */
2272
2340
  as_of_date?: string | null;
2341
+ /** Format: date */
2342
+ end_date?: string | null;
2273
2343
  entity_id: components["schemas"]["EntityId"];
2344
+ /** Format: date */
2345
+ start_date?: string | null;
2274
2346
  };
2275
2347
  /** Format: uuid */
2276
2348
  ReconciliationId: string;
@@ -2337,6 +2409,17 @@ type components = {
2337
2409
  * @enum {string}
2338
2410
  */
2339
2411
  Recurrence: "one_time" | "monthly" | "quarterly" | "annual";
2412
+ ReferenceHandleRecord: {
2413
+ created_at: string;
2414
+ entity_id?: null | components["schemas"]["EntityId"];
2415
+ handle: string;
2416
+ kind: components["schemas"]["ReferenceKind"];
2417
+ label: string;
2418
+ resource_id: string;
2419
+ updated_at: string;
2420
+ };
2421
+ /** @enum {string} */
2422
+ ReferenceKind: "entity" | "contact" | "share_transfer" | "invoice" | "bank_account" | "payment" | "payroll_run" | "distribution" | "reconciliation" | "tax_filing" | "deadline" | "classification" | "body" | "meeting" | "seat" | "agenda_item" | "resolution" | "document" | "work_item" | "agent" | "valuation" | "safe_note" | "instrument" | "share_class" | "round";
2340
2423
  RegisteredAgentConsentEvidenceRequest: {
2341
2424
  evidence_type?: string | null;
2342
2425
  evidence_uri: string;
@@ -2433,6 +2516,44 @@ type components = {
2433
2516
  conversion_precedence: components["schemas"]["InstrumentKind"][];
2434
2517
  rule_set_id: components["schemas"]["EquityRuleSetId"];
2435
2518
  };
2519
+ /** Format: uuid */
2520
+ SafeNoteId: string;
2521
+ SafeNoteResponse: {
2522
+ /** Format: int64 */
2523
+ conversion_price_cents?: number | null;
2524
+ /** Format: int64 */
2525
+ conversion_shares?: number | null;
2526
+ conversion_unit_type: string;
2527
+ converted_at?: string | null;
2528
+ created_at: string;
2529
+ /** Format: double */
2530
+ discount_rate?: number | null;
2531
+ document_id?: null | components["schemas"]["DocumentId"];
2532
+ entity_id: components["schemas"]["EntityId"];
2533
+ investor_contact_id?: null | components["schemas"]["ContactId"];
2534
+ investor_name: string;
2535
+ issued_at: string;
2536
+ meeting_id?: null | components["schemas"]["MeetingId"];
2537
+ /** Format: int64 */
2538
+ principal_amount_cents: number;
2539
+ pro_rata_rights: boolean;
2540
+ resolution_id?: null | components["schemas"]["ResolutionId"];
2541
+ safe_note_id: components["schemas"]["SafeNoteId"];
2542
+ safe_type: components["schemas"]["SafeType"];
2543
+ status: components["schemas"]["SafeStatus"];
2544
+ /** Format: int64 */
2545
+ valuation_cap_cents?: number | null;
2546
+ };
2547
+ /**
2548
+ * @description Lifecycle status of a SAFE note.
2549
+ * @enum {string}
2550
+ */
2551
+ SafeStatus: "issued" | "converted" | "cancelled";
2552
+ /**
2553
+ * @description Type of SAFE note.
2554
+ * @enum {string}
2555
+ */
2556
+ SafeType: "post_money" | "pre_money" | "mfn";
2436
2557
  /**
2437
2558
  * @description Per-agent sandbox (container) configuration.
2438
2559
  *
@@ -2527,6 +2648,7 @@ type components = {
2527
2648
  metadata?: Record<string, never>;
2528
2649
  };
2529
2650
  ServiceTokenResponse: {
2651
+ api_key_id: components["schemas"]["ApiKeyId"];
2530
2652
  /** Format: int64 */
2531
2653
  expires_in: number;
2532
2654
  token: string;
@@ -2661,6 +2783,18 @@ type components = {
2661
2783
  SubmitValuationForApprovalRequest: {
2662
2784
  entity_id: components["schemas"]["EntityId"];
2663
2785
  };
2786
+ SyncReferenceItem: {
2787
+ label: string;
2788
+ resource_id: string;
2789
+ };
2790
+ SyncReferencesRequest: {
2791
+ entity_id?: null | components["schemas"]["EntityId"];
2792
+ items: components["schemas"]["SyncReferenceItem"][];
2793
+ kind: components["schemas"]["ReferenceKind"];
2794
+ };
2795
+ SyncReferencesResponse: {
2796
+ references: components["schemas"]["ReferenceHandleRecord"][];
2797
+ };
2664
2798
  SystemHealth: {
2665
2799
  git_storage: string;
2666
2800
  status: string;
@@ -2903,6 +3037,17 @@ type components = {
2903
3037
  * @enum {string}
2904
3038
  */
2905
3039
  VotingMethod: "per_capita" | "per_unit";
3040
+ WorkItemActorRefRequest: {
3041
+ actor_id: string;
3042
+ actor_type: components["schemas"]["WorkItemActorTypeValue"];
3043
+ };
3044
+ WorkItemActorResponse: {
3045
+ actor_id: string;
3046
+ actor_type: components["schemas"]["WorkItemActorTypeValue"];
3047
+ label: string;
3048
+ };
3049
+ /** @enum {string} */
3050
+ WorkItemActorTypeValue: "contact" | "agent";
2906
3051
  /** Format: uuid */
2907
3052
  WorkItemId: string;
2908
3053
  WorkItemResponse: {
@@ -2912,10 +3057,13 @@ type components = {
2912
3057
  claim_ttl_seconds?: number | null;
2913
3058
  claimed_at?: string | null;
2914
3059
  claimed_by?: string | null;
3060
+ claimed_by_actor?: null | components["schemas"]["WorkItemActorResponse"];
2915
3061
  completed_at?: string | null;
2916
3062
  completed_by?: string | null;
3063
+ completed_by_actor?: null | components["schemas"]["WorkItemActorResponse"];
2917
3064
  created_at: string;
2918
3065
  created_by?: string | null;
3066
+ created_by_actor?: null | components["schemas"]["WorkItemActorResponse"];
2919
3067
  /** Format: date */
2920
3068
  deadline?: string | null;
2921
3069
  description: string;
@@ -3143,6 +3291,8 @@ declare class CorpAPIClient {
3143
3291
  listAgendaItems(meetingId: string, entityId: string): Promise<AgendaItemResponse[]>;
3144
3292
  listVotes(meetingId: string, itemId: string, entityId: string): Promise<VoteResponse[]>;
3145
3293
  getEntityDocuments(entityId: string): Promise<DocumentResponse[]>;
3294
+ getDocument(documentId: string, entityId: string): Promise<DocumentResponse>;
3295
+ signDocument(documentId: string, entityId: string, data: ApiRecord): Promise<ApiRecord>;
3146
3296
  generateContract(data: ApiRecord): Promise<ApiRecord>;
3147
3297
  getSigningLink(documentId: string, entityId: string): Promise<ApiRecord>;
3148
3298
  validatePreviewPdf(entityId: string, documentId: string): Promise<ApiRecord>;
@@ -3175,9 +3325,17 @@ declare class CorpAPIClient {
3175
3325
  createPendingEntity(data: ApiRecord): Promise<PendingFormationResponse>;
3176
3326
  addFounder(entityId: string, data: ApiRecord): Promise<AddFounderResponse>;
3177
3327
  finalizeFormation(entityId: string, data?: ApiRecord): Promise<FormationWithCapTableResponse>;
3328
+ markFormationDocumentsSigned(entityId: string): Promise<ApiRecord>;
3329
+ getFormationGates(entityId: string): Promise<ApiRecord>;
3330
+ recordFilingAttestation(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3331
+ addRegisteredAgentConsentEvidence(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3332
+ submitFiling(entityId: string): Promise<ApiRecord>;
3333
+ confirmFiling(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3334
+ applyEin(entityId: string): Promise<ApiRecord>;
3335
+ confirmEin(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3178
3336
  getHumanObligations(): Promise<ObligationResponse[]>;
3179
3337
  getSignerToken(obligationId: string): Promise<ApiRecord>;
3180
- seedDemo(name: string): Promise<ApiRecord>;
3338
+ seedDemo(data: ApiRecord): Promise<ApiRecord>;
3181
3339
  convertEntity(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3182
3340
  dissolveEntity(entityId: string, data: ApiRecord): Promise<ApiRecord>;
3183
3341
  listAgents(): Promise<ApiRecord[]>;
@@ -3384,10 +3542,16 @@ declare const ReconciliationStatus: readonly ["balanced", "discrepancy"];
3384
3542
  type ReconciliationStatus = (typeof ReconciliationStatus)[number];
3385
3543
  declare const Recurrence: readonly ["one_time", "monthly", "quarterly", "annual"];
3386
3544
  type Recurrence = (typeof Recurrence)[number];
3545
+ declare const ReferenceKind: readonly ["entity", "contact", "share_transfer", "invoice", "bank_account", "payment", "payroll_run", "distribution", "reconciliation", "tax_filing", "deadline", "classification", "body", "meeting", "seat", "agenda_item", "resolution", "document", "work_item", "agent", "valuation", "safe_note", "instrument", "share_class", "round"];
3546
+ type ReferenceKind = (typeof ReferenceKind)[number];
3387
3547
  declare const ResolutionType: readonly ["ordinary", "special", "unanimous_written_consent"];
3388
3548
  type ResolutionType = (typeof ResolutionType)[number];
3389
3549
  declare const RiskLevel: readonly ["low", "medium", "high"];
3390
3550
  type RiskLevel = (typeof RiskLevel)[number];
3551
+ declare const SafeStatus: readonly ["issued", "converted", "cancelled"];
3552
+ type SafeStatus = (typeof SafeStatus)[number];
3553
+ declare const SafeType: readonly ["post_money", "pre_money", "mfn"];
3554
+ type SafeType = (typeof SafeType)[number];
3391
3555
  declare const Scope: readonly ["formation_create", "formation_read", "formation_sign", "equity_read", "equity_write", "equity_transfer", "governance_read", "governance_write", "governance_vote", "treasury_read", "treasury_write", "treasury_approve", "contacts_read", "contacts_write", "execution_read", "execution_write", "branch_create", "branch_merge", "branch_delete", "admin", "internal_worker_read", "internal_worker_write", "secrets_manage", "all"];
3392
3556
  type Scope = (typeof Scope)[number];
3393
3557
  declare const SeatRole: readonly ["chair", "member", "officer", "observer"];
@@ -3418,9 +3582,11 @@ declare const VoteValue: readonly ["for", "against", "abstain", "recusal"];
3418
3582
  type VoteValue = (typeof VoteValue)[number];
3419
3583
  declare const VotingMethod: readonly ["per_capita", "per_unit"];
3420
3584
  type VotingMethod = (typeof VotingMethod)[number];
3585
+ declare const WorkItemActorTypeValue: readonly ["contact", "agent"];
3586
+ type WorkItemActorTypeValue = (typeof WorkItemActorTypeValue)[number];
3421
3587
  declare const WorkItemStatus: readonly ["open", "claimed", "completed", "cancelled"];
3422
3588
  type WorkItemStatus = (typeof WorkItemStatus)[number];
3423
3589
  declare const WorkflowType: readonly ["transfer", "fundraising"];
3424
3590
  type WorkflowType = (typeof WorkflowType)[number];
3425
3591
 
3426
- export { type AcceptEquityRoundRequest, type AcceptRoundRequest, AccountType, type AddFounderRequest, type AddFounderResponse, type AddSecurityRequest, type AgendaItemResponse, AgendaItemStatus, AgendaItemType, type AgentResponse, AgentStatus, AntiDilutionMethod, type ApiRecord, type ApplyEquityRoundTermsRequest, type ApplyRoundTermsRequest, AssigneeType, type AttachResolutionDocumentRequest, AuthoritySource, AuthorityTier, BankAccountStatus, BankAccountType, type BoardApproveEquityRoundRequest, type BoardApproveRoundRequest, BodyStatus, BodyType, CapTableAccess, CapTableBasis, type CapTableHolderSummary, type CapTableInstrument, type CapTableInstrumentSummary, type CapTableResponse, type CastVoteRequest, ClassificationResult, type ComputeResolutionRequest, ContactCategory, type ContactProfileResponse, type ContactResponse, ContactStatus, ContactType, ContractStatus, ContractTemplateType, ControlType, type ConveneMeetingRequest, type ConvertEntityRequest, CorpAPIClient, type CorpConfig, type CreateAgentRequest, type CreateContactRequest, type CreateEquityRoundRequest, type CreateExecutionIntentRequest, type CreateFormationRequest, type CreatePendingFormationRequest, type CreateRoundRequest, Currency, DeadlineSeverity, DeadlineStatus, type DigestSummary, type DigestTriggerResponse, type DissolveEntityRequest, DistributionStatus, DistributionType, DocumentRequestStatus, type DocumentResponse, DocumentStatus, type DocumentSummary, DocumentType, EntityType, type EquityRoundResponse, EquityRoundStatus, EscalationStatus, type ExecuteRoundConversionRequest, type FinalizeAgendaItemRequest, type FormationGatesResponse, type FormationResponse, FormationState, FormationStatus, type FormationStatusResponse, type FormationWithCapTableResponse, GENERATED_TOOL_DEFINITIONS, GlAccountCode, GovernanceAuditEventType, type GovernanceBodyResponse, GovernanceMode, type GovernanceSeatResponse, GovernanceTriggerSource, GovernanceTriggerType, GoverningDocType, GrantType, HolderType, HttpMethod, IncidentSeverity, IncidentStatus, InstrumentKind, InstrumentStatus, type IntentResponse, IntentStatus, InvestorType, type InvoiceResponse, InvoiceStatus, type IssueStagedRoundResponse, JournalEntryStatus, type LLMResponse, LegalEntityRole, type MeetingResponse, MeetingStatus, MeetingType, MemberRole, NetworkEgress, type ObligationResponse, ObligationStatus, type ObligationsSummaryResponse, OfficerTitle, PaymentMethod, PaymentStatus, PayrollStatus, type PendingFormationResponse, PositionStatus, type PreviewRoundConversionRequest, QuorumStatus, QuorumThreshold, READ_ONLY_TOOLS, ReceiptStatus, ReconciliationStatus, Recurrence, type ResolutionResponse, ResolutionType, RiskLevel, type RoundResponse, SYSTEM_PROMPT_BASE, type ScheduleMeetingRequest, Scope, SeatRole, SeatStatus, SessionExpiredError, Side, type StartStagedRoundRequest, TOOL_DEFINITIONS, TOOL_REGISTRY, TaxFilingStatus, type ToolCall, type ToolContext, TransactionPacketStatus, TransferStatus, TransferType, TransfereeRights, Transport, type UpdateAgentRequest, type UpdateContactRequest, ValuationMethodology, ValuationStatus, ValuationType, type VoteResponse, VoteValue, VotingMethod, WorkItemStatus, WorkflowType, type WorkspaceContactSummary, type WorkspaceEntitySummary, type WorkspaceStatusResponse, type WrittenConsentRequest, type WrittenConsentResponse, describeToolCall, ensureSafeInstrument, executeTool, formatConfigSection, isWriteTool, provisionWorkspace };
3592
+ export { type AcceptEquityRoundRequest, type AcceptRoundRequest, AccountType, type AddFounderRequest, type AddFounderResponse, type AddSecurityRequest, type AgendaItemResponse, AgendaItemStatus, AgendaItemType, type AgentResponse, AgentStatus, AntiDilutionMethod, type ApiRecord, type ApplyEquityRoundTermsRequest, type ApplyRoundTermsRequest, AssigneeType, type AttachResolutionDocumentRequest, AuthoritySource, AuthorityTier, BankAccountStatus, BankAccountType, type BoardApproveEquityRoundRequest, type BoardApproveRoundRequest, BodyStatus, BodyType, CapTableAccess, CapTableBasis, type CapTableHolderSummary, type CapTableInstrument, type CapTableInstrumentSummary, type CapTableResponse, type CastVoteRequest, ClassificationResult, type ComputeResolutionRequest, ContactCategory, type ContactProfileResponse, type ContactResponse, ContactStatus, ContactType, ContractStatus, ContractTemplateType, ControlType, type ConveneMeetingRequest, type ConvertEntityRequest, CorpAPIClient, type CorpConfig, type CreateAgentRequest, type CreateContactRequest, type CreateEquityRoundRequest, type CreateExecutionIntentRequest, type CreateFormationRequest, type CreatePendingFormationRequest, type CreateRoundRequest, Currency, DeadlineSeverity, DeadlineStatus, type DigestSummary, type DigestTriggerResponse, type DissolveEntityRequest, DistributionStatus, DistributionType, DocumentRequestStatus, type DocumentResponse, DocumentStatus, type DocumentSummary, DocumentType, EntityType, type EquityRoundResponse, EquityRoundStatus, EscalationStatus, type ExecuteRoundConversionRequest, type FinalizeAgendaItemRequest, type FormationGatesResponse, type FormationResponse, FormationState, FormationStatus, type FormationStatusResponse, type FormationWithCapTableResponse, GENERATED_TOOL_DEFINITIONS, GlAccountCode, GovernanceAuditEventType, type GovernanceBodyResponse, GovernanceMode, type GovernanceSeatResponse, GovernanceTriggerSource, GovernanceTriggerType, GoverningDocType, GrantType, HolderType, HttpMethod, IncidentSeverity, IncidentStatus, InstrumentKind, InstrumentStatus, type IntentResponse, IntentStatus, InvestorType, type InvoiceResponse, InvoiceStatus, type IssueStagedRoundResponse, JournalEntryStatus, type LLMResponse, LegalEntityRole, type MeetingResponse, MeetingStatus, MeetingType, MemberRole, NetworkEgress, type ObligationResponse, ObligationStatus, type ObligationsSummaryResponse, OfficerTitle, PaymentMethod, PaymentStatus, PayrollStatus, type PendingFormationResponse, PositionStatus, type PreviewRoundConversionRequest, QuorumStatus, QuorumThreshold, READ_ONLY_TOOLS, ReceiptStatus, ReconciliationStatus, Recurrence, ReferenceKind, type ResolutionResponse, ResolutionType, RiskLevel, type RoundResponse, SYSTEM_PROMPT_BASE, SafeStatus, SafeType, type ScheduleMeetingRequest, Scope, SeatRole, SeatStatus, SessionExpiredError, Side, type StartStagedRoundRequest, TOOL_DEFINITIONS, TOOL_REGISTRY, TaxFilingStatus, type ToolCall, type ToolContext, TransactionPacketStatus, TransferStatus, TransferType, TransfereeRights, Transport, type UpdateAgentRequest, type UpdateContactRequest, ValuationMethodology, ValuationStatus, ValuationType, type VoteResponse, VoteValue, VotingMethod, WorkItemActorTypeValue, WorkItemStatus, WorkflowType, type WorkspaceContactSummary, type WorkspaceEntitySummary, type WorkspaceStatusResponse, type WrittenConsentRequest, type WrittenConsentResponse, describeToolCall, ensureSafeInstrument, executeTool, formatConfigSection, isWriteTool, provisionWorkspace };
package/dist/index.js CHANGED
@@ -295,6 +295,12 @@ var CorpAPIClient = class {
295
295
  getEntityDocuments(entityId) {
296
296
  return this.get(`/v1/formations/${pathSegment(entityId)}/documents`);
297
297
  }
298
+ getDocument(documentId, entityId) {
299
+ return this.get(`/v1/documents/${pathSegment(documentId)}`, { entity_id: entityId });
300
+ }
301
+ signDocument(documentId, entityId, data) {
302
+ return this.postWithParams(`/v1/documents/${pathSegment(documentId)}/sign`, data, { entity_id: entityId });
303
+ }
298
304
  generateContract(data) {
299
305
  return this.post("/v1/contracts", data);
300
306
  }
@@ -405,6 +411,30 @@ var CorpAPIClient = class {
405
411
  finalizeFormation(entityId, data = {}) {
406
412
  return this.post(`/v1/formations/${pathSegment(entityId)}/finalize`, data);
407
413
  }
414
+ markFormationDocumentsSigned(entityId) {
415
+ return this.post(`/v1/formations/${pathSegment(entityId)}/mark-documents-signed`);
416
+ }
417
+ getFormationGates(entityId) {
418
+ return this.get(`/v1/formations/${pathSegment(entityId)}/gates`);
419
+ }
420
+ recordFilingAttestation(entityId, data) {
421
+ return this.post(`/v1/formations/${pathSegment(entityId)}/filing-attestation`, data);
422
+ }
423
+ addRegisteredAgentConsentEvidence(entityId, data) {
424
+ return this.post(`/v1/formations/${pathSegment(entityId)}/registered-agent-consent-evidence`, data);
425
+ }
426
+ submitFiling(entityId) {
427
+ return this.post(`/v1/formations/${pathSegment(entityId)}/submit-filing`);
428
+ }
429
+ confirmFiling(entityId, data) {
430
+ return this.post(`/v1/formations/${pathSegment(entityId)}/filing-confirmation`, data);
431
+ }
432
+ applyEin(entityId) {
433
+ return this.post(`/v1/formations/${pathSegment(entityId)}/apply-ein`);
434
+ }
435
+ confirmEin(entityId, data) {
436
+ return this.post(`/v1/formations/${pathSegment(entityId)}/ein-confirmation`, data);
437
+ }
408
438
  // --- Human obligations ---
409
439
  getHumanObligations() {
410
440
  return this.get(`/v1/workspaces/${pathSegment(this.workspaceId)}/human-obligations`);
@@ -413,8 +443,8 @@ var CorpAPIClient = class {
413
443
  return this.post(`/v1/human-obligations/${pathSegment(obligationId)}/signer-token`);
414
444
  }
415
445
  // --- Demo ---
416
- seedDemo(name) {
417
- return this.post("/v1/demo/seed", { name, workspace_id: this.workspaceId });
446
+ seedDemo(data) {
447
+ return this.post("/v1/demo/seed", data);
418
448
  }
419
449
  // --- Entities writes ---
420
450
  convertEntity(entityId, data) {
@@ -1921,8 +1951,11 @@ var QuorumThreshold = ["majority", "supermajority", "unanimous"];
1921
1951
  var ReceiptStatus = ["pending", "executed", "failed"];
1922
1952
  var ReconciliationStatus = ["balanced", "discrepancy"];
1923
1953
  var Recurrence = ["one_time", "monthly", "quarterly", "annual"];
1954
+ var ReferenceKind = ["entity", "contact", "share_transfer", "invoice", "bank_account", "payment", "payroll_run", "distribution", "reconciliation", "tax_filing", "deadline", "classification", "body", "meeting", "seat", "agenda_item", "resolution", "document", "work_item", "agent", "valuation", "safe_note", "instrument", "share_class", "round"];
1924
1955
  var ResolutionType = ["ordinary", "special", "unanimous_written_consent"];
1925
1956
  var RiskLevel = ["low", "medium", "high"];
1957
+ var SafeStatus = ["issued", "converted", "cancelled"];
1958
+ var SafeType = ["post_money", "pre_money", "mfn"];
1926
1959
  var Scope = ["formation_create", "formation_read", "formation_sign", "equity_read", "equity_write", "equity_transfer", "governance_read", "governance_write", "governance_vote", "treasury_read", "treasury_write", "treasury_approve", "contacts_read", "contacts_write", "execution_read", "execution_write", "branch_create", "branch_merge", "branch_delete", "admin", "internal_worker_read", "internal_worker_write", "secrets_manage", "all"];
1927
1960
  var SeatRole = ["chair", "member", "officer", "observer"];
1928
1961
  var SeatStatus = ["active", "resigned", "expired"];
@@ -1938,6 +1971,7 @@ var ValuationStatus = ["draft", "pending_approval", "approved", "expired", "supe
1938
1971
  var ValuationType = ["four_oh_nine_a", "llc_profits_interest", "fair_market_value", "gift", "estate", "other"];
1939
1972
  var VoteValue = ["for", "against", "abstain", "recusal"];
1940
1973
  var VotingMethod = ["per_capita", "per_unit"];
1974
+ var WorkItemActorTypeValue = ["contact", "agent"];
1941
1975
  var WorkItemStatus = ["open", "claimed", "completed", "cancelled"];
1942
1976
  var WorkflowType = ["transfer", "fundraising"];
1943
1977
  export {
@@ -2011,9 +2045,12 @@ export {
2011
2045
  ReceiptStatus,
2012
2046
  ReconciliationStatus,
2013
2047
  Recurrence,
2048
+ ReferenceKind,
2014
2049
  ResolutionType,
2015
2050
  RiskLevel,
2016
2051
  SYSTEM_PROMPT_BASE,
2052
+ SafeStatus,
2053
+ SafeType,
2017
2054
  Scope,
2018
2055
  SeatRole,
2019
2056
  SeatStatus,
@@ -2032,6 +2069,7 @@ export {
2032
2069
  ValuationType,
2033
2070
  VoteValue,
2034
2071
  VotingMethod,
2072
+ WorkItemActorTypeValue,
2035
2073
  WorkItemStatus,
2036
2074
  WorkflowType,
2037
2075
  describeToolCall,