@wefunder/sdk 0.1.0-beta.10 → 0.1.0-beta.12

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.cts CHANGED
@@ -76,6 +76,16 @@ interface RefreshOptions extends OAuthHostOptions {
76
76
  */
77
77
  declare function refreshToken(opts: RefreshOptions): Promise<TokenSet>;
78
78
 
79
+ /**
80
+ * The token store failed to save a rotated token set. `tokens` is the rotated set that is NOT
81
+ * yet durable and NOT yet in use: the manager keeps it pending and retries the save on the next
82
+ * call (or persist it yourself and call `markPersisted()`). Until it is saved no request uses it,
83
+ * and the consumed refresh token is never reused either.
84
+ */
85
+ declare class WefunderTokenPersistenceError extends Error {
86
+ readonly tokens: TokenSet;
87
+ constructor(tokens: TokenSet, cause: unknown);
88
+ }
79
89
  /** Pluggable persistence for the rotating token set (DB row, secrets manager, etc.). */
80
90
  interface TokenStore {
81
91
  load?(): Promise<TokenSet | undefined> | TokenSet | undefined;
@@ -98,6 +108,35 @@ interface TokenManagerOptions extends OAuthHostOptions {
98
108
  /** Refresh proactively when the access token is within this many ms of expiry. */
99
109
  expiryLeewayMs?: number;
100
110
  }
111
+ declare class TokenManager {
112
+ #private;
113
+ constructor(opts: TokenManagerOptions);
114
+ /** The durable, in-use token set. A rotated set that could not be persisted sits in `pendingTokens`. */
115
+ get current(): TokenSet;
116
+ /** True if the manager can recover an expired token (rotate a refresh token or re-mint). */
117
+ get canRefresh(): boolean;
118
+ /** A rotated set awaiting a successful `store.save` (see `WefunderTokenPersistenceError`). */
119
+ get pendingTokens(): TokenSet | undefined;
120
+ /**
121
+ * Tell the manager you persisted `tokens` (the set from a `WefunderTokenPersistenceError`)
122
+ * yourself. Publishes it only if it is still the pending set — a stale acknowledgment (the
123
+ * manager has since rotated again) is a no-op and returns false, so an older save can never
124
+ * publish a newer, unsaved set.
125
+ */
126
+ markPersisted(tokens: TokenSet): Promise<boolean>;
127
+ /**
128
+ * Returns a valid access token, refreshing proactively if it's expired/near-expiry. If a
129
+ * rotated set is pending persistence, the save is retried first — no request uses an
130
+ * undurable token.
131
+ */
132
+ getAccessToken(): Promise<string>;
133
+ /**
134
+ * Recover an expired/rejected token (e.g. after a 401): rotates the refresh token
135
+ * if there is one, otherwise re-mints (client_credentials). Coalesces concurrent
136
+ * calls into one network round-trip, then persists. Returns the new token set.
137
+ */
138
+ refresh(): Promise<TokenSet>;
139
+ }
101
140
 
102
141
  interface RetryOptions {
103
142
  maxRetries?: number;
@@ -9391,6 +9430,19 @@ type WebhookEndpointList = WebhookEndpointListEnvelope;
9391
9430
  type WebhookTestOutcome = NonNullable<WebhookEndpointTestResultEnvelope["data"]>;
9392
9431
  /** Outcome of `wf.webhookEndpoints.remove()`. */
9393
9432
  type WebhookEndpointRemoved = NonNullable<DeleteWebhookEndpointResponses[200]["data"]>;
9433
+ /** Aggregate stats for one offering, from `wf.offerings.stats()`. */
9434
+ type OfferingStats = NonNullable<OfferingStatsEnvelope["data"]>;
9435
+ /** Body for `wf.installations.create()`. */
9436
+ type CreateInstallationInput = CreateInstallationData["body"];
9437
+ /** `wf.installations.list()` envelope (`meta.count`). */
9438
+ type InstallationList = InstallationListEnvelope;
9439
+ /**
9440
+ * Result of `wf.installations.create()` / `mintToken()`: the install (`data`) plus the
9441
+ * company-owned token (`token`), which is shown once.
9442
+ */
9443
+ type InstallationWithToken = InstallationTokenEnvelope;
9444
+ /** One row of `wf.installations.eligibleTargets()`. */
9445
+ type EligibleInstallTarget = NonNullable<EligibleTargetListEnvelope["data"]>[number];
9394
9446
  /** Documented `sort` values for the offerings list, from the generated op. */
9395
9447
  type OfferingSort = NonNullable<ListOfferingsData["query"]>["sort"];
9396
9448
  /**
@@ -9414,6 +9466,17 @@ type PortfolioPositionsQuery = NonNullable<ListPortfolioPositionsData["query"]>;
9414
9466
  type PortfolioPositionsFilters = Omit<PortfolioPositionsQuery, "cursor">;
9415
9467
  /** The summary resource inside the API's data envelope. */
9416
9468
  type PortfolioSummary = NonNullable<PortfolioSummaryEnvelope["data"]>;
9469
+ /** HTTP methods accepted by the `request` escape hatch. */
9470
+ type RequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
9471
+ /** Options for the `request` escape hatch. */
9472
+ interface RawRequestOptions {
9473
+ /** Query params, serialized the same way generated ops serialize theirs. */
9474
+ query?: Record<string, unknown>;
9475
+ /** JSON request body (sets `Content-Type: application/json` unless overridden). */
9476
+ body?: unknown;
9477
+ /** Extra headers (e.g. `Idempotency-Key`), merged over the SDK defaults. */
9478
+ headers?: Record<string, string>;
9479
+ }
9417
9480
  declare const DEFAULT_API_BASE_URL = "https://api.wefunder.com";
9418
9481
  declare const DEFAULT_API_VERSION = "2025-01-15";
9419
9482
  type Mode = "live" | "test" | "unknown";
@@ -9469,6 +9532,10 @@ declare class Wefunder {
9469
9532
  now?: () => number;
9470
9533
  }): Promise<Wefunder>;
9471
9534
  /** The live token set (e.g. to persist after construction). */
9535
+ /** A rotated set awaiting a successful save (see `WefunderTokenPersistenceError`). */
9536
+ get pendingTokens(): TokenSet | undefined;
9537
+ /** Acknowledge an out-of-band save of `tokens`; false if that set is no longer pending. */
9538
+ markPersisted(tokens: TokenSet): Promise<boolean>;
9472
9539
  get tokens(): TokenSet;
9473
9540
  /**
9474
9541
  * Unwrap any generated op result (incl. `wf.raw.*`) the way the ergonomic
@@ -9477,6 +9544,18 @@ declare class Wefunder {
9477
9544
  * SDK's error handling. (Stress-test finding C.)
9478
9545
  */
9479
9546
  unwrap<T>(p: Result<T>): Promise<T>;
9547
+ /**
9548
+ * Untyped escape hatch: call ANY API path with the SDK's full envelope —
9549
+ * bearer auth (incl. refresh / client_credentials re-mint on 401), the pinned
9550
+ * `Wefunder-Version` header, the retry policy, and a typed `WefunderError` on
9551
+ * failure. For endpoints outside the generated surface: preview-tier ops
9552
+ * (e.g. partner SPVs) or ops newer than this SDK build.
9553
+ *
9554
+ * `path` is relative to the client's `baseUrl` (e.g. `"/partner/spvs"`).
9555
+ * Returns the raw response body (no `{ data }` unwrapping — envelopes vary
9556
+ * across unshipped endpoints).
9557
+ */
9558
+ request<T = unknown>(method: RequestMethod, path: string, opts?: RawRequestOptions): Promise<T>;
9480
9559
  users: {
9481
9560
  me: () => Promise<User>;
9482
9561
  };
@@ -9492,6 +9571,24 @@ declare class Wefunder {
9492
9571
  sort?: OfferingSort;
9493
9572
  }) => Promise<Offering[]>;
9494
9573
  get: (externalId: string) => Promise<Offering>;
9574
+ /** Aggregate investment stats (count / committed / raised, by status) for one offering. */
9575
+ stats: (externalId: string) => Promise<{
9576
+ offering?: string;
9577
+ company?: string;
9578
+ currency?: string | null;
9579
+ by_status?: {
9580
+ [key: string]: {
9581
+ count?: number;
9582
+ committed_cents?: number;
9583
+ raised_cents?: number;
9584
+ };
9585
+ };
9586
+ total?: {
9587
+ count?: number;
9588
+ committed_cents?: number;
9589
+ raised_cents?: number;
9590
+ };
9591
+ }>;
9495
9592
  };
9496
9593
  /**
9497
9594
  * Investments (`read:investments`). `list` is a bootstrap listing; pass `updated_since`
@@ -9579,6 +9676,42 @@ declare class Wefunder {
9579
9676
  attribution: {
9580
9677
  me: () => Promise<AttributionMe>;
9581
9678
  };
9679
+ /**
9680
+ * Installations (`/installations`, scopes `read:installations` / `write:installations`;
9681
+ * write does not imply read). An install lets your app act AS a company or syndicate:
9682
+ * `create` and `mintToken` return a company-owned token (shown once, no expiry, no
9683
+ * refresh) — build a second client with it. Installing is also what makes a company
9684
+ * or syndicate an audience for your webhooks.
9685
+ */
9686
+ installations: {
9687
+ /** Companies / syndicates the token's user may install your app on (empty for an investor). */
9688
+ eligibleTargets: (query?: {
9689
+ target_type?: "company" | "syndicate";
9690
+ }) => Promise<EligibleInstallTarget[]>;
9691
+ /** Every install of your app (`meta.count`). */
9692
+ list: () => Promise<InstallationList>;
9693
+ get: (id: string) => Promise<Installation>;
9694
+ /**
9695
+ * Install on a target. Store `token.access_token` — it is never shown again. If the
9696
+ * app is already installed there the API answers 409 `already_installed` with
9697
+ * `details.installation` = the existing id; mint a token for that instead
9698
+ * (see `installOrMintToken`).
9699
+ */
9700
+ create: (input: CreateInstallationInput) => Promise<InstallationTokenEnvelope>;
9701
+ /**
9702
+ * A fresh company-owned token for an existing install. `scopes` narrows within the
9703
+ * install's ceiling; omit it for the ceiling, and note an explicit `[]` grants nothing.
9704
+ */
9705
+ mintToken: (id: string, scopes?: string[]) => Promise<InstallationTokenEnvelope>;
9706
+ /**
9707
+ * `create`, falling back to `mintToken` for the existing install on 409
9708
+ * `already_installed`. The mint re-requests `input.scopes` so a retry never widens the
9709
+ * grant. Any other error (revoked install, missing scope) still throws.
9710
+ */
9711
+ installOrMintToken: (input: CreateInstallationInput) => Promise<InstallationWithToken>;
9712
+ /** Revoke an install: its tokens stop working at once. Returns the install, now `revoked`. */
9713
+ revoke: (id: string) => Promise<Installation>;
9714
+ };
9582
9715
  /**
9583
9716
  * Webhook endpoints (`/webhook_endpoints`, scopes `read:webhooks` / `write:webhooks`).
9584
9717
  * Endpoints belong to your application and are managed through the LIVE API —
@@ -9651,4 +9784,4 @@ declare class WefunderAuthError extends WefunderError {
9651
9784
  constructor(message: string);
9652
9785
  }
9653
9786
 
9654
- export { type AnonymizedAttribution, type ApproveSyndicateMemberData, type ApproveSyndicateMemberError, type ApproveSyndicateMemberErrors, type ApproveSyndicateMemberResponse, type ApproveSyndicateMemberResponses, type AttributedInvestmentListEnvelope, type AttributionCampaignAccess, type AttributionCampaignSummary, type AttributionCampaignSummaryListEnvelope, type AttributionMe, type AttributionMeEnvelope, type AttributionPartner, type AttributionStats, type AttributionStatsEnvelope, type AttributionUser, type AuditEvent, type AuditEventListEnvelope, type AuthorizationUrlOptions, type BulkInviteLinkCreateInput, type BulkInviteLinkEnvelope, type Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type CloseSyndicateDealResponse, type CloseSyndicateDealResponses, type CommentProposalEnvelope, type Company, type CompanyDisclosures, type CompanyDisclosuresEnvelope, type CompanyEnvelope, type CompanyPitch, type CompanyPitchEnvelope, type CompanyQuestion, type CompanyQuestionListEnvelope, type CompanyQuestionPerson, type CompanySearchResult, type CompanySearchResultListEnvelope, type CompanyTotals, type CompanyUpdate, type CompanyUpdateEnvelope, type CompanyUpdateListEnvelope, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type ConstructEventOptions, type ConvertibleNoteSecurity, type CreateInstallationData, type CreateInstallationError, type CreateInstallationErrors, type CreateInstallationResponse, type CreateInstallationResponses, type CreateInstallationTokenData, type CreateInstallationTokenError, type CreateInstallationTokenErrors, type CreateInstallationTokenResponse, type CreateInstallationTokenResponses, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookEndpointData, type CreateWebhookEndpointError, type CreateWebhookEndpointErrors, type CreateWebhookEndpointInput, type CreateWebhookEndpointResponse, type CreateWebhookEndpointResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type CurrentRaise, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DEFAULT_TOLERANCE_SECONDS, type DealInvestor, type DealInvestorListEnvelope, type DebtSecurity, type DeleteWebhookEndpointData, type DeleteWebhookEndpointError, type DeleteWebhookEndpointErrors, type DeleteWebhookEndpointResponse, type DeleteWebhookEndpointResponses, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, type DisclosureDocument, type DisclosurePerson, type EligibleTargetListEnvelope, type EndDate, type EquitySecurity, type Error$1 as Error, type ExchangeCodeOptions, type Exemption, type ExportSyndicateMembersCsvData, type ExportSyndicateMembersCsvError, type ExportSyndicateMembersCsvErrors, type ExportSyndicateMembersCsvResponse, type ExportSyndicateMembersCsvResponses, type FinalizeSyndicateDealData, type FinalizeSyndicateDealError, type FinalizeSyndicateDealErrors, type FinalizeSyndicateDealResponse, type FinalizeSyndicateDealResponses, type FiscalYearFinancials, type FollowCompanyData, type FollowCompanyError, type FollowCompanyErrors, type FollowCompanyResponse, type FollowCompanyResponses, type FollowStateEnvelope, type FollowedCompany, type FollowedCompanyListEnvelope, type FullAttribution, type FundSecurity, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCompanyData, type GetCompanyDisclosuresData, type GetCompanyDisclosuresError, type GetCompanyDisclosuresErrors, type GetCompanyDisclosuresResponse, type GetCompanyDisclosuresResponses, type GetCompanyError, type GetCompanyErrors, type GetCompanyPitchData, type GetCompanyPitchError, type GetCompanyPitchErrors, type GetCompanyPitchResponse, type GetCompanyPitchResponses, type GetCompanyResponse, type GetCompanyResponses, type GetCompanyUpdateData, type GetCompanyUpdateError, type GetCompanyUpdateErrors, type GetCompanyUpdateResponse, type GetCompanyUpdateResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetInstallationData, type GetInstallationError, type GetInstallationErrors, type GetInstallationResponse, type GetInstallationResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetInvestmentData, type GetInvestmentError, type GetInvestmentErrors, type GetInvestmentResponse, type GetInvestmentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetOfferingStatsData, type GetOfferingStatsError, type GetOfferingStatsErrors, type GetOfferingStatsResponse, type GetOfferingStatsResponses, type GetPortfolioData, type GetPortfolioError, type GetPortfolioErrors, type GetPortfolioResponse, type GetPortfolioResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicatePortfolioData, type GetSyndicatePortfolioError, type GetSyndicatePortfolioErrors, type GetSyndicatePortfolioResponse, type GetSyndicatePortfolioResponses, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookEndpointData, type GetWebhookEndpointError, type GetWebhookEndpointErrors, type GetWebhookEndpointResponse, type GetWebhookEndpointResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HeadersLike, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Installation, type InstallationEnvelope, type InstallationListEnvelope, type InstallationTokenEnvelope, type Intent, type IntentEnvelope, type IntentListEnvelope, type IntentPreviewEnvelope, type IntentReview, type IntentStatus, type Investment, type InvestmentChangeListEnvelope, type InvestmentChangedEventData, type InvestmentDeltaRecord, type InvestmentEnvelope, type InvestmentEventData, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionEventData, type InvestmentSessionId, type InvestmentSessionListEnvelope, type InvestmentsFilters, type InvestmentsQuery, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type InviteLink, type InviteLinkCreateInput, type InviteLinkEnvelope, type InviteLinkId, type InviteLinkListEnvelope, type InviteLinkUpdateInput, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, LEGACY_DELIVERY_ID_HEADER, LEGACY_EVENT_HEADER, LEGACY_SIGNATURE_HEADER, LEGACY_TIMESTAMP_HEADER, type ListActivityData, type ListActivityError, type ListActivityErrors, type ListActivityResponse, type ListActivityResponses, type ListAttributedInvestmentsData, type ListAttributedInvestmentsError, type ListAttributedInvestmentsErrors, type ListAttributedInvestmentsResponse, type ListAttributedInvestmentsResponses, type ListAttributionCampaignsData, type ListAttributionCampaignsError, type ListAttributionCampaignsErrors, type ListAttributionCampaignsResponse, type ListAttributionCampaignsResponses, type ListCampaignsData, type ListCampaignsError, type ListCampaignsErrors, type ListCampaignsResponse, type ListCampaignsResponses, type ListCompanyInvestmentChangesData, type ListCompanyInvestmentChangesError, type ListCompanyInvestmentChangesErrors, type ListCompanyInvestmentChangesResponse, type ListCompanyInvestmentChangesResponses, type ListCompanyQuestionsData, type ListCompanyQuestionsError, type ListCompanyQuestionsErrors, type ListCompanyQuestionsResponse, type ListCompanyQuestionsResponses, type ListCompanyUpdatesData, type ListCompanyUpdatesError, type ListCompanyUpdatesErrors, type ListCompanyUpdatesResponse, type ListCompanyUpdatesResponses, type ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListEligibleInstallTargetsData, type ListEligibleInstallTargetsError, type ListEligibleInstallTargetsErrors, type ListEligibleInstallTargetsResponse, type ListEligibleInstallTargetsResponses, type ListFollowedCompaniesData, type ListFollowedCompaniesError, type ListFollowedCompaniesErrors, type ListFollowedCompaniesResponse, type ListFollowedCompaniesResponses, type ListInstallationsData, type ListInstallationsError, type ListInstallationsErrors, type ListInstallationsResponse, type ListInstallationsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListMyCompaniesData, type ListMyCompaniesError, type ListMyCompaniesErrors, type ListMyCompaniesResponse, type ListMyCompaniesResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, type ListPortfolioPositionsData, type ListPortfolioPositionsError, type ListPortfolioPositionsErrors, type ListPortfolioPositionsResponse, type ListPortfolioPositionsResponses, type ListSyndicateDealInvestorsData, type ListSyndicateDealInvestorsError, type ListSyndicateDealInvestorsErrors, type ListSyndicateDealInvestorsResponse, type ListSyndicateDealInvestorsResponses, type ListSyndicateDealsData, type ListSyndicateDealsError, type ListSyndicateDealsErrors, type ListSyndicateDealsResponse, type ListSyndicateDealsResponses, type ListSyndicateMemberInvestmentsData, type ListSyndicateMemberInvestmentsError, type ListSyndicateMemberInvestmentsErrors, type ListSyndicateMemberInvestmentsResponse, type ListSyndicateMemberInvestmentsResponses, type ListSyndicateMembersData, type ListSyndicateMembersError, type ListSyndicateMembersErrors, type ListSyndicateMembersResponse, type ListSyndicateMembersResponses, type ListSyndicatePortfolioPositionsData, type ListSyndicatePortfolioPositionsError, type ListSyndicatePortfolioPositionsErrors, type ListSyndicatePortfolioPositionsResponse, type ListSyndicatePortfolioPositionsResponses, type ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookEndpointsData, type ListWebhookEndpointsError, type ListWebhookEndpointsErrors, type ListWebhookEndpointsResponse, type ListWebhookEndpointsResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type MyCompany, type MyCompanyListEnvelope, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingEventData, type OfferingListEnvelope, type OfferingSort, type OfferingStatsEnvelope, type OtherSecurity, type Page, type PageFetcher, type PaginationMeta, type ParsedSignatureHeader, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvestor, type PartnerInvestorListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type PastRound, type PerkTier, type PitchBlock, type Pkce, type PortfolioCompanyRef, type PortfolioFilters, type PortfolioHolding, type PortfolioPosition, type PortfolioPositionListEnvelope, type PortfolioPositionsFilters, type PortfolioPositionsQuery, type PortfolioSecurity, type PortfolioStatus, type PortfolioSummary, type PortfolioSummaryEnvelope, type PreviewIntentData, type PreviewIntentError, type PreviewIntentErrors, type PreviewIntentResponse, type PreviewIntentResponses, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type RawBody, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, type ReenableWebhookEndpointData, type ReenableWebhookEndpointError, type ReenableWebhookEndpointErrors, type ReenableWebhookEndpointResponse, type ReenableWebhookEndpointResponses, type RefreshOptions, type RegenerateWebhookSecretData, type RegenerateWebhookSecretError, type RegenerateWebhookSecretErrors, type RegenerateWebhookSecretResponse, type RegenerateWebhookSecretResponses, type RegisterAsPartnerData, type RegisterAsPartnerError, type RegisterAsPartnerErrors, type RegisterAsPartnerResponse, type RegisterAsPartnerResponses, type RemoveSyndicateMemberData, type RemoveSyndicateMemberError, type RemoveSyndicateMemberErrors, type ReorderSyndicateMembersData, type ReorderSyndicateMembersError, type ReorderSyndicateMembersErrors, type ReorderSyndicateMembersResponses, type ResendSyndicateInviteData, type ResendSyndicateInviteError, type ResendSyndicateInviteErrors, type ResendSyndicateInviteResponses, type RestoreSyndicateMemberData, type RestoreSyndicateMemberError, type RestoreSyndicateMemberErrors, type RestoreSyndicateMemberResponse, type RestoreSyndicateMemberResponses, type RevenueShareSecurity, type RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokeInstallationData, type RevokeInstallationError, type RevokeInstallationErrors, type RevokeInstallationResponse, type RevokeInstallationResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, type RotateWebhookEndpointSecretData, type RotateWebhookEndpointSecretError, type RotateWebhookEndpointSecretErrors, type RotateWebhookEndpointSecretResponse, type RotateWebhookEndpointSecretResponses, SANDBOX_AUTHORIZE_BASE_URL, SIGNATURE_HEADER, type SafeSecurity, type SearchCompaniesData, type SearchCompaniesError, type SearchCompaniesErrors, type SearchCompaniesResponse, type SearchCompaniesResponses, type Security, type SecuritySummary, type SignWebhookOptions, type Spv, type SpvCancelIntentEnvelope, type SpvCloseIntentEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvStatus, type SpvStatusEnvelope, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealCloseIntentEnvelope, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealFinalizeIntentEnvelope, type SyndicateDealListEnvelope, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateInvitationEventData, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberEventData, type SyndicateMemberListEnvelope, type SyndicatePortfolioSummaryEnvelope, type SyndicateStatistics, type SyndicateStatisticsEnvelope, type TagRef, type TargetCompanyInput, type TestWebhookEndpointData, type TestWebhookEndpointError, type TestWebhookEndpointErrors, type TestWebhookEndpointResponse, type TestWebhookEndpointResponses, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, type TokenManagerOptions, type TokenSet, type TokenStore, type UnfollowCompanyData, type UnfollowCompanyError, type UnfollowCompanyErrors, type UnfollowCompanyResponse, type UnfollowCompanyResponses, type UnknownWebhookEvent, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type UpdateWebhookEndpointData, type UpdateWebhookEndpointError, type UpdateWebhookEndpointErrors, type UpdateWebhookEndpointInput, type UpdateWebhookEndpointResponse, type UpdateWebhookEndpointResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyLegacyWebhookOptions, type VerifyWebhookOptions, type WebhookDelivery, type WebhookEndpoint, type WebhookEndpointEnvelope, type WebhookEndpointList, type WebhookEndpointListEnvelope, type WebhookEndpointRemoved, type WebhookEndpointTestResultEnvelope, type WebhookEvent, type WebhookEventDataMap, type WebhookEventName, type WebhookExternalId, type WebhookHandlers, type WebhookId, type WebhookInvestor, type WebhookInvestorTotals, type WebhookMode, type WebhookPersonRef, WebhookSignatureError, type WebhookSignatureFailure, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestOutcome, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, type WefunderRound, type WefunderVersion, checkWebhookSignature, clientCredentialsGrant, collect, computeWebhookSignature, constructEvent, constructEventFromRequest, createAuthorizationUrl, dispatchWebhook, exchangeCode, generatePkce, modeForToken, paginate, parseSignatureHeader, refreshToken, signWebhook, verifyWebhook };
9787
+ export { type AnonymizedAttribution, type ApproveSyndicateMemberData, type ApproveSyndicateMemberError, type ApproveSyndicateMemberErrors, type ApproveSyndicateMemberResponse, type ApproveSyndicateMemberResponses, type AttributedInvestmentListEnvelope, type AttributionCampaignAccess, type AttributionCampaignSummary, type AttributionCampaignSummaryListEnvelope, type AttributionMe, type AttributionMeEnvelope, type AttributionPartner, type AttributionStats, type AttributionStatsEnvelope, type AttributionUser, type AuditEvent, type AuditEventListEnvelope, type AuthorizationUrlOptions, type BulkInviteLinkCreateInput, type BulkInviteLinkEnvelope, type Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type CloseSyndicateDealResponse, type CloseSyndicateDealResponses, type CommentProposalEnvelope, type Company, type CompanyDisclosures, type CompanyDisclosuresEnvelope, type CompanyEnvelope, type CompanyPitch, type CompanyPitchEnvelope, type CompanyQuestion, type CompanyQuestionListEnvelope, type CompanyQuestionPerson, type CompanySearchResult, type CompanySearchResultListEnvelope, type CompanyTotals, type CompanyUpdate, type CompanyUpdateEnvelope, type CompanyUpdateListEnvelope, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type ConstructEventOptions, type ConvertibleNoteSecurity, type CreateInstallationData, type CreateInstallationError, type CreateInstallationErrors, type CreateInstallationInput, type CreateInstallationResponse, type CreateInstallationResponses, type CreateInstallationTokenData, type CreateInstallationTokenError, type CreateInstallationTokenErrors, type CreateInstallationTokenResponse, type CreateInstallationTokenResponses, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookEndpointData, type CreateWebhookEndpointError, type CreateWebhookEndpointErrors, type CreateWebhookEndpointInput, type CreateWebhookEndpointResponse, type CreateWebhookEndpointResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type CurrentRaise, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DEFAULT_TOLERANCE_SECONDS, type DealInvestor, type DealInvestorListEnvelope, type DebtSecurity, type DeleteWebhookEndpointData, type DeleteWebhookEndpointError, type DeleteWebhookEndpointErrors, type DeleteWebhookEndpointResponse, type DeleteWebhookEndpointResponses, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, type DisclosureDocument, type DisclosurePerson, type EligibleInstallTarget, type EligibleTargetListEnvelope, type EndDate, type EquitySecurity, type Error$1 as Error, type ExchangeCodeOptions, type Exemption, type ExportSyndicateMembersCsvData, type ExportSyndicateMembersCsvError, type ExportSyndicateMembersCsvErrors, type ExportSyndicateMembersCsvResponse, type ExportSyndicateMembersCsvResponses, type FinalizeSyndicateDealData, type FinalizeSyndicateDealError, type FinalizeSyndicateDealErrors, type FinalizeSyndicateDealResponse, type FinalizeSyndicateDealResponses, type FiscalYearFinancials, type FollowCompanyData, type FollowCompanyError, type FollowCompanyErrors, type FollowCompanyResponse, type FollowCompanyResponses, type FollowStateEnvelope, type FollowedCompany, type FollowedCompanyListEnvelope, type FullAttribution, type FundSecurity, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCompanyData, type GetCompanyDisclosuresData, type GetCompanyDisclosuresError, type GetCompanyDisclosuresErrors, type GetCompanyDisclosuresResponse, type GetCompanyDisclosuresResponses, type GetCompanyError, type GetCompanyErrors, type GetCompanyPitchData, type GetCompanyPitchError, type GetCompanyPitchErrors, type GetCompanyPitchResponse, type GetCompanyPitchResponses, type GetCompanyResponse, type GetCompanyResponses, type GetCompanyUpdateData, type GetCompanyUpdateError, type GetCompanyUpdateErrors, type GetCompanyUpdateResponse, type GetCompanyUpdateResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetInstallationData, type GetInstallationError, type GetInstallationErrors, type GetInstallationResponse, type GetInstallationResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetInvestmentData, type GetInvestmentError, type GetInvestmentErrors, type GetInvestmentResponse, type GetInvestmentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetOfferingStatsData, type GetOfferingStatsError, type GetOfferingStatsErrors, type GetOfferingStatsResponse, type GetOfferingStatsResponses, type GetPortfolioData, type GetPortfolioError, type GetPortfolioErrors, type GetPortfolioResponse, type GetPortfolioResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicatePortfolioData, type GetSyndicatePortfolioError, type GetSyndicatePortfolioErrors, type GetSyndicatePortfolioResponse, type GetSyndicatePortfolioResponses, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookEndpointData, type GetWebhookEndpointError, type GetWebhookEndpointErrors, type GetWebhookEndpointResponse, type GetWebhookEndpointResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HeadersLike, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Installation, type InstallationEnvelope, type InstallationList, type InstallationListEnvelope, type InstallationTokenEnvelope, type InstallationWithToken, type Intent, type IntentEnvelope, type IntentListEnvelope, type IntentPreviewEnvelope, type IntentReview, type IntentStatus, type Investment, type InvestmentChangeListEnvelope, type InvestmentChangedEventData, type InvestmentDeltaRecord, type InvestmentEnvelope, type InvestmentEventData, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionEventData, type InvestmentSessionId, type InvestmentSessionListEnvelope, type InvestmentsFilters, type InvestmentsQuery, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type InviteLink, type InviteLinkCreateInput, type InviteLinkEnvelope, type InviteLinkId, type InviteLinkListEnvelope, type InviteLinkUpdateInput, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, LEGACY_DELIVERY_ID_HEADER, LEGACY_EVENT_HEADER, LEGACY_SIGNATURE_HEADER, LEGACY_TIMESTAMP_HEADER, type ListActivityData, type ListActivityError, type ListActivityErrors, type ListActivityResponse, type ListActivityResponses, type ListAttributedInvestmentsData, type ListAttributedInvestmentsError, type ListAttributedInvestmentsErrors, type ListAttributedInvestmentsResponse, type ListAttributedInvestmentsResponses, type ListAttributionCampaignsData, type ListAttributionCampaignsError, type ListAttributionCampaignsErrors, type ListAttributionCampaignsResponse, type ListAttributionCampaignsResponses, type ListCampaignsData, type ListCampaignsError, type ListCampaignsErrors, type ListCampaignsResponse, type ListCampaignsResponses, type ListCompanyInvestmentChangesData, type ListCompanyInvestmentChangesError, type ListCompanyInvestmentChangesErrors, type ListCompanyInvestmentChangesResponse, type ListCompanyInvestmentChangesResponses, type ListCompanyQuestionsData, type ListCompanyQuestionsError, type ListCompanyQuestionsErrors, type ListCompanyQuestionsResponse, type ListCompanyQuestionsResponses, type ListCompanyUpdatesData, type ListCompanyUpdatesError, type ListCompanyUpdatesErrors, type ListCompanyUpdatesResponse, type ListCompanyUpdatesResponses, type ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListEligibleInstallTargetsData, type ListEligibleInstallTargetsError, type ListEligibleInstallTargetsErrors, type ListEligibleInstallTargetsResponse, type ListEligibleInstallTargetsResponses, type ListFollowedCompaniesData, type ListFollowedCompaniesError, type ListFollowedCompaniesErrors, type ListFollowedCompaniesResponse, type ListFollowedCompaniesResponses, type ListInstallationsData, type ListInstallationsError, type ListInstallationsErrors, type ListInstallationsResponse, type ListInstallationsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListMyCompaniesData, type ListMyCompaniesError, type ListMyCompaniesErrors, type ListMyCompaniesResponse, type ListMyCompaniesResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, type ListPortfolioPositionsData, type ListPortfolioPositionsError, type ListPortfolioPositionsErrors, type ListPortfolioPositionsResponse, type ListPortfolioPositionsResponses, type ListSyndicateDealInvestorsData, type ListSyndicateDealInvestorsError, type ListSyndicateDealInvestorsErrors, type ListSyndicateDealInvestorsResponse, type ListSyndicateDealInvestorsResponses, type ListSyndicateDealsData, type ListSyndicateDealsError, type ListSyndicateDealsErrors, type ListSyndicateDealsResponse, type ListSyndicateDealsResponses, type ListSyndicateMemberInvestmentsData, type ListSyndicateMemberInvestmentsError, type ListSyndicateMemberInvestmentsErrors, type ListSyndicateMemberInvestmentsResponse, type ListSyndicateMemberInvestmentsResponses, type ListSyndicateMembersData, type ListSyndicateMembersError, type ListSyndicateMembersErrors, type ListSyndicateMembersResponse, type ListSyndicateMembersResponses, type ListSyndicatePortfolioPositionsData, type ListSyndicatePortfolioPositionsError, type ListSyndicatePortfolioPositionsErrors, type ListSyndicatePortfolioPositionsResponse, type ListSyndicatePortfolioPositionsResponses, type ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookEndpointsData, type ListWebhookEndpointsError, type ListWebhookEndpointsErrors, type ListWebhookEndpointsResponse, type ListWebhookEndpointsResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type MyCompany, type MyCompanyListEnvelope, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingEventData, type OfferingListEnvelope, type OfferingSort, type OfferingStats, type OfferingStatsEnvelope, type OtherSecurity, type Page, type PageFetcher, type PaginationMeta, type ParsedSignatureHeader, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvestor, type PartnerInvestorListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type PastRound, type PerkTier, type PitchBlock, type Pkce, type PortfolioCompanyRef, type PortfolioFilters, type PortfolioHolding, type PortfolioPosition, type PortfolioPositionListEnvelope, type PortfolioPositionsFilters, type PortfolioPositionsQuery, type PortfolioSecurity, type PortfolioStatus, type PortfolioSummary, type PortfolioSummaryEnvelope, type PreviewIntentData, type PreviewIntentError, type PreviewIntentErrors, type PreviewIntentResponse, type PreviewIntentResponses, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type RawBody, type RawRequestOptions, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, type ReenableWebhookEndpointData, type ReenableWebhookEndpointError, type ReenableWebhookEndpointErrors, type ReenableWebhookEndpointResponse, type ReenableWebhookEndpointResponses, type RefreshOptions, type RegenerateWebhookSecretData, type RegenerateWebhookSecretError, type RegenerateWebhookSecretErrors, type RegenerateWebhookSecretResponse, type RegenerateWebhookSecretResponses, type RegisterAsPartnerData, type RegisterAsPartnerError, type RegisterAsPartnerErrors, type RegisterAsPartnerResponse, type RegisterAsPartnerResponses, type RemoveSyndicateMemberData, type RemoveSyndicateMemberError, type RemoveSyndicateMemberErrors, type ReorderSyndicateMembersData, type ReorderSyndicateMembersError, type ReorderSyndicateMembersErrors, type ReorderSyndicateMembersResponses, type RequestMethod, type ResendSyndicateInviteData, type ResendSyndicateInviteError, type ResendSyndicateInviteErrors, type ResendSyndicateInviteResponses, type RestoreSyndicateMemberData, type RestoreSyndicateMemberError, type RestoreSyndicateMemberErrors, type RestoreSyndicateMemberResponse, type RestoreSyndicateMemberResponses, type RevenueShareSecurity, type RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokeInstallationData, type RevokeInstallationError, type RevokeInstallationErrors, type RevokeInstallationResponse, type RevokeInstallationResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, type RotateWebhookEndpointSecretData, type RotateWebhookEndpointSecretError, type RotateWebhookEndpointSecretErrors, type RotateWebhookEndpointSecretResponse, type RotateWebhookEndpointSecretResponses, SANDBOX_AUTHORIZE_BASE_URL, SIGNATURE_HEADER, type SafeSecurity, type SearchCompaniesData, type SearchCompaniesError, type SearchCompaniesErrors, type SearchCompaniesResponse, type SearchCompaniesResponses, type Security, type SecuritySummary, type SignWebhookOptions, type Spv, type SpvCancelIntentEnvelope, type SpvCloseIntentEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvStatus, type SpvStatusEnvelope, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealCloseIntentEnvelope, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealFinalizeIntentEnvelope, type SyndicateDealListEnvelope, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateInvitationEventData, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberEventData, type SyndicateMemberListEnvelope, type SyndicatePortfolioSummaryEnvelope, type SyndicateStatistics, type SyndicateStatisticsEnvelope, type TagRef, type TargetCompanyInput, type TestWebhookEndpointData, type TestWebhookEndpointError, type TestWebhookEndpointErrors, type TestWebhookEndpointResponse, type TestWebhookEndpointResponses, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, TokenManager, type TokenManagerOptions, type TokenSet, type TokenStore, type UnfollowCompanyData, type UnfollowCompanyError, type UnfollowCompanyErrors, type UnfollowCompanyResponse, type UnfollowCompanyResponses, type UnknownWebhookEvent, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type UpdateWebhookEndpointData, type UpdateWebhookEndpointError, type UpdateWebhookEndpointErrors, type UpdateWebhookEndpointInput, type UpdateWebhookEndpointResponse, type UpdateWebhookEndpointResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyLegacyWebhookOptions, type VerifyWebhookOptions, type WebhookDelivery, type WebhookEndpoint, type WebhookEndpointEnvelope, type WebhookEndpointList, type WebhookEndpointListEnvelope, type WebhookEndpointRemoved, type WebhookEndpointTestResultEnvelope, type WebhookEvent, type WebhookEventDataMap, type WebhookEventName, type WebhookExternalId, type WebhookHandlers, type WebhookId, type WebhookInvestor, type WebhookInvestorTotals, type WebhookMode, type WebhookPersonRef, WebhookSignatureError, type WebhookSignatureFailure, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestOutcome, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, type WefunderRound, WefunderTokenPersistenceError, type WefunderVersion, checkWebhookSignature, clientCredentialsGrant, collect, computeWebhookSignature, constructEvent, constructEventFromRequest, createAuthorizationUrl, dispatchWebhook, exchangeCode, generatePkce, modeForToken, paginate, parseSignatureHeader, refreshToken, signWebhook, verifyWebhook };
package/dist/index.d.ts CHANGED
@@ -76,6 +76,16 @@ interface RefreshOptions extends OAuthHostOptions {
76
76
  */
77
77
  declare function refreshToken(opts: RefreshOptions): Promise<TokenSet>;
78
78
 
79
+ /**
80
+ * The token store failed to save a rotated token set. `tokens` is the rotated set that is NOT
81
+ * yet durable and NOT yet in use: the manager keeps it pending and retries the save on the next
82
+ * call (or persist it yourself and call `markPersisted()`). Until it is saved no request uses it,
83
+ * and the consumed refresh token is never reused either.
84
+ */
85
+ declare class WefunderTokenPersistenceError extends Error {
86
+ readonly tokens: TokenSet;
87
+ constructor(tokens: TokenSet, cause: unknown);
88
+ }
79
89
  /** Pluggable persistence for the rotating token set (DB row, secrets manager, etc.). */
80
90
  interface TokenStore {
81
91
  load?(): Promise<TokenSet | undefined> | TokenSet | undefined;
@@ -98,6 +108,35 @@ interface TokenManagerOptions extends OAuthHostOptions {
98
108
  /** Refresh proactively when the access token is within this many ms of expiry. */
99
109
  expiryLeewayMs?: number;
100
110
  }
111
+ declare class TokenManager {
112
+ #private;
113
+ constructor(opts: TokenManagerOptions);
114
+ /** The durable, in-use token set. A rotated set that could not be persisted sits in `pendingTokens`. */
115
+ get current(): TokenSet;
116
+ /** True if the manager can recover an expired token (rotate a refresh token or re-mint). */
117
+ get canRefresh(): boolean;
118
+ /** A rotated set awaiting a successful `store.save` (see `WefunderTokenPersistenceError`). */
119
+ get pendingTokens(): TokenSet | undefined;
120
+ /**
121
+ * Tell the manager you persisted `tokens` (the set from a `WefunderTokenPersistenceError`)
122
+ * yourself. Publishes it only if it is still the pending set — a stale acknowledgment (the
123
+ * manager has since rotated again) is a no-op and returns false, so an older save can never
124
+ * publish a newer, unsaved set.
125
+ */
126
+ markPersisted(tokens: TokenSet): Promise<boolean>;
127
+ /**
128
+ * Returns a valid access token, refreshing proactively if it's expired/near-expiry. If a
129
+ * rotated set is pending persistence, the save is retried first — no request uses an
130
+ * undurable token.
131
+ */
132
+ getAccessToken(): Promise<string>;
133
+ /**
134
+ * Recover an expired/rejected token (e.g. after a 401): rotates the refresh token
135
+ * if there is one, otherwise re-mints (client_credentials). Coalesces concurrent
136
+ * calls into one network round-trip, then persists. Returns the new token set.
137
+ */
138
+ refresh(): Promise<TokenSet>;
139
+ }
101
140
 
102
141
  interface RetryOptions {
103
142
  maxRetries?: number;
@@ -9391,6 +9430,19 @@ type WebhookEndpointList = WebhookEndpointListEnvelope;
9391
9430
  type WebhookTestOutcome = NonNullable<WebhookEndpointTestResultEnvelope["data"]>;
9392
9431
  /** Outcome of `wf.webhookEndpoints.remove()`. */
9393
9432
  type WebhookEndpointRemoved = NonNullable<DeleteWebhookEndpointResponses[200]["data"]>;
9433
+ /** Aggregate stats for one offering, from `wf.offerings.stats()`. */
9434
+ type OfferingStats = NonNullable<OfferingStatsEnvelope["data"]>;
9435
+ /** Body for `wf.installations.create()`. */
9436
+ type CreateInstallationInput = CreateInstallationData["body"];
9437
+ /** `wf.installations.list()` envelope (`meta.count`). */
9438
+ type InstallationList = InstallationListEnvelope;
9439
+ /**
9440
+ * Result of `wf.installations.create()` / `mintToken()`: the install (`data`) plus the
9441
+ * company-owned token (`token`), which is shown once.
9442
+ */
9443
+ type InstallationWithToken = InstallationTokenEnvelope;
9444
+ /** One row of `wf.installations.eligibleTargets()`. */
9445
+ type EligibleInstallTarget = NonNullable<EligibleTargetListEnvelope["data"]>[number];
9394
9446
  /** Documented `sort` values for the offerings list, from the generated op. */
9395
9447
  type OfferingSort = NonNullable<ListOfferingsData["query"]>["sort"];
9396
9448
  /**
@@ -9414,6 +9466,17 @@ type PortfolioPositionsQuery = NonNullable<ListPortfolioPositionsData["query"]>;
9414
9466
  type PortfolioPositionsFilters = Omit<PortfolioPositionsQuery, "cursor">;
9415
9467
  /** The summary resource inside the API's data envelope. */
9416
9468
  type PortfolioSummary = NonNullable<PortfolioSummaryEnvelope["data"]>;
9469
+ /** HTTP methods accepted by the `request` escape hatch. */
9470
+ type RequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
9471
+ /** Options for the `request` escape hatch. */
9472
+ interface RawRequestOptions {
9473
+ /** Query params, serialized the same way generated ops serialize theirs. */
9474
+ query?: Record<string, unknown>;
9475
+ /** JSON request body (sets `Content-Type: application/json` unless overridden). */
9476
+ body?: unknown;
9477
+ /** Extra headers (e.g. `Idempotency-Key`), merged over the SDK defaults. */
9478
+ headers?: Record<string, string>;
9479
+ }
9417
9480
  declare const DEFAULT_API_BASE_URL = "https://api.wefunder.com";
9418
9481
  declare const DEFAULT_API_VERSION = "2025-01-15";
9419
9482
  type Mode = "live" | "test" | "unknown";
@@ -9469,6 +9532,10 @@ declare class Wefunder {
9469
9532
  now?: () => number;
9470
9533
  }): Promise<Wefunder>;
9471
9534
  /** The live token set (e.g. to persist after construction). */
9535
+ /** A rotated set awaiting a successful save (see `WefunderTokenPersistenceError`). */
9536
+ get pendingTokens(): TokenSet | undefined;
9537
+ /** Acknowledge an out-of-band save of `tokens`; false if that set is no longer pending. */
9538
+ markPersisted(tokens: TokenSet): Promise<boolean>;
9472
9539
  get tokens(): TokenSet;
9473
9540
  /**
9474
9541
  * Unwrap any generated op result (incl. `wf.raw.*`) the way the ergonomic
@@ -9477,6 +9544,18 @@ declare class Wefunder {
9477
9544
  * SDK's error handling. (Stress-test finding C.)
9478
9545
  */
9479
9546
  unwrap<T>(p: Result<T>): Promise<T>;
9547
+ /**
9548
+ * Untyped escape hatch: call ANY API path with the SDK's full envelope —
9549
+ * bearer auth (incl. refresh / client_credentials re-mint on 401), the pinned
9550
+ * `Wefunder-Version` header, the retry policy, and a typed `WefunderError` on
9551
+ * failure. For endpoints outside the generated surface: preview-tier ops
9552
+ * (e.g. partner SPVs) or ops newer than this SDK build.
9553
+ *
9554
+ * `path` is relative to the client's `baseUrl` (e.g. `"/partner/spvs"`).
9555
+ * Returns the raw response body (no `{ data }` unwrapping — envelopes vary
9556
+ * across unshipped endpoints).
9557
+ */
9558
+ request<T = unknown>(method: RequestMethod, path: string, opts?: RawRequestOptions): Promise<T>;
9480
9559
  users: {
9481
9560
  me: () => Promise<User>;
9482
9561
  };
@@ -9492,6 +9571,24 @@ declare class Wefunder {
9492
9571
  sort?: OfferingSort;
9493
9572
  }) => Promise<Offering[]>;
9494
9573
  get: (externalId: string) => Promise<Offering>;
9574
+ /** Aggregate investment stats (count / committed / raised, by status) for one offering. */
9575
+ stats: (externalId: string) => Promise<{
9576
+ offering?: string;
9577
+ company?: string;
9578
+ currency?: string | null;
9579
+ by_status?: {
9580
+ [key: string]: {
9581
+ count?: number;
9582
+ committed_cents?: number;
9583
+ raised_cents?: number;
9584
+ };
9585
+ };
9586
+ total?: {
9587
+ count?: number;
9588
+ committed_cents?: number;
9589
+ raised_cents?: number;
9590
+ };
9591
+ }>;
9495
9592
  };
9496
9593
  /**
9497
9594
  * Investments (`read:investments`). `list` is a bootstrap listing; pass `updated_since`
@@ -9579,6 +9676,42 @@ declare class Wefunder {
9579
9676
  attribution: {
9580
9677
  me: () => Promise<AttributionMe>;
9581
9678
  };
9679
+ /**
9680
+ * Installations (`/installations`, scopes `read:installations` / `write:installations`;
9681
+ * write does not imply read). An install lets your app act AS a company or syndicate:
9682
+ * `create` and `mintToken` return a company-owned token (shown once, no expiry, no
9683
+ * refresh) — build a second client with it. Installing is also what makes a company
9684
+ * or syndicate an audience for your webhooks.
9685
+ */
9686
+ installations: {
9687
+ /** Companies / syndicates the token's user may install your app on (empty for an investor). */
9688
+ eligibleTargets: (query?: {
9689
+ target_type?: "company" | "syndicate";
9690
+ }) => Promise<EligibleInstallTarget[]>;
9691
+ /** Every install of your app (`meta.count`). */
9692
+ list: () => Promise<InstallationList>;
9693
+ get: (id: string) => Promise<Installation>;
9694
+ /**
9695
+ * Install on a target. Store `token.access_token` — it is never shown again. If the
9696
+ * app is already installed there the API answers 409 `already_installed` with
9697
+ * `details.installation` = the existing id; mint a token for that instead
9698
+ * (see `installOrMintToken`).
9699
+ */
9700
+ create: (input: CreateInstallationInput) => Promise<InstallationTokenEnvelope>;
9701
+ /**
9702
+ * A fresh company-owned token for an existing install. `scopes` narrows within the
9703
+ * install's ceiling; omit it for the ceiling, and note an explicit `[]` grants nothing.
9704
+ */
9705
+ mintToken: (id: string, scopes?: string[]) => Promise<InstallationTokenEnvelope>;
9706
+ /**
9707
+ * `create`, falling back to `mintToken` for the existing install on 409
9708
+ * `already_installed`. The mint re-requests `input.scopes` so a retry never widens the
9709
+ * grant. Any other error (revoked install, missing scope) still throws.
9710
+ */
9711
+ installOrMintToken: (input: CreateInstallationInput) => Promise<InstallationWithToken>;
9712
+ /** Revoke an install: its tokens stop working at once. Returns the install, now `revoked`. */
9713
+ revoke: (id: string) => Promise<Installation>;
9714
+ };
9582
9715
  /**
9583
9716
  * Webhook endpoints (`/webhook_endpoints`, scopes `read:webhooks` / `write:webhooks`).
9584
9717
  * Endpoints belong to your application and are managed through the LIVE API —
@@ -9651,4 +9784,4 @@ declare class WefunderAuthError extends WefunderError {
9651
9784
  constructor(message: string);
9652
9785
  }
9653
9786
 
9654
- export { type AnonymizedAttribution, type ApproveSyndicateMemberData, type ApproveSyndicateMemberError, type ApproveSyndicateMemberErrors, type ApproveSyndicateMemberResponse, type ApproveSyndicateMemberResponses, type AttributedInvestmentListEnvelope, type AttributionCampaignAccess, type AttributionCampaignSummary, type AttributionCampaignSummaryListEnvelope, type AttributionMe, type AttributionMeEnvelope, type AttributionPartner, type AttributionStats, type AttributionStatsEnvelope, type AttributionUser, type AuditEvent, type AuditEventListEnvelope, type AuthorizationUrlOptions, type BulkInviteLinkCreateInput, type BulkInviteLinkEnvelope, type Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type CloseSyndicateDealResponse, type CloseSyndicateDealResponses, type CommentProposalEnvelope, type Company, type CompanyDisclosures, type CompanyDisclosuresEnvelope, type CompanyEnvelope, type CompanyPitch, type CompanyPitchEnvelope, type CompanyQuestion, type CompanyQuestionListEnvelope, type CompanyQuestionPerson, type CompanySearchResult, type CompanySearchResultListEnvelope, type CompanyTotals, type CompanyUpdate, type CompanyUpdateEnvelope, type CompanyUpdateListEnvelope, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type ConstructEventOptions, type ConvertibleNoteSecurity, type CreateInstallationData, type CreateInstallationError, type CreateInstallationErrors, type CreateInstallationResponse, type CreateInstallationResponses, type CreateInstallationTokenData, type CreateInstallationTokenError, type CreateInstallationTokenErrors, type CreateInstallationTokenResponse, type CreateInstallationTokenResponses, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookEndpointData, type CreateWebhookEndpointError, type CreateWebhookEndpointErrors, type CreateWebhookEndpointInput, type CreateWebhookEndpointResponse, type CreateWebhookEndpointResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type CurrentRaise, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DEFAULT_TOLERANCE_SECONDS, type DealInvestor, type DealInvestorListEnvelope, type DebtSecurity, type DeleteWebhookEndpointData, type DeleteWebhookEndpointError, type DeleteWebhookEndpointErrors, type DeleteWebhookEndpointResponse, type DeleteWebhookEndpointResponses, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, type DisclosureDocument, type DisclosurePerson, type EligibleTargetListEnvelope, type EndDate, type EquitySecurity, type Error$1 as Error, type ExchangeCodeOptions, type Exemption, type ExportSyndicateMembersCsvData, type ExportSyndicateMembersCsvError, type ExportSyndicateMembersCsvErrors, type ExportSyndicateMembersCsvResponse, type ExportSyndicateMembersCsvResponses, type FinalizeSyndicateDealData, type FinalizeSyndicateDealError, type FinalizeSyndicateDealErrors, type FinalizeSyndicateDealResponse, type FinalizeSyndicateDealResponses, type FiscalYearFinancials, type FollowCompanyData, type FollowCompanyError, type FollowCompanyErrors, type FollowCompanyResponse, type FollowCompanyResponses, type FollowStateEnvelope, type FollowedCompany, type FollowedCompanyListEnvelope, type FullAttribution, type FundSecurity, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCompanyData, type GetCompanyDisclosuresData, type GetCompanyDisclosuresError, type GetCompanyDisclosuresErrors, type GetCompanyDisclosuresResponse, type GetCompanyDisclosuresResponses, type GetCompanyError, type GetCompanyErrors, type GetCompanyPitchData, type GetCompanyPitchError, type GetCompanyPitchErrors, type GetCompanyPitchResponse, type GetCompanyPitchResponses, type GetCompanyResponse, type GetCompanyResponses, type GetCompanyUpdateData, type GetCompanyUpdateError, type GetCompanyUpdateErrors, type GetCompanyUpdateResponse, type GetCompanyUpdateResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetInstallationData, type GetInstallationError, type GetInstallationErrors, type GetInstallationResponse, type GetInstallationResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetInvestmentData, type GetInvestmentError, type GetInvestmentErrors, type GetInvestmentResponse, type GetInvestmentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetOfferingStatsData, type GetOfferingStatsError, type GetOfferingStatsErrors, type GetOfferingStatsResponse, type GetOfferingStatsResponses, type GetPortfolioData, type GetPortfolioError, type GetPortfolioErrors, type GetPortfolioResponse, type GetPortfolioResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicatePortfolioData, type GetSyndicatePortfolioError, type GetSyndicatePortfolioErrors, type GetSyndicatePortfolioResponse, type GetSyndicatePortfolioResponses, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookEndpointData, type GetWebhookEndpointError, type GetWebhookEndpointErrors, type GetWebhookEndpointResponse, type GetWebhookEndpointResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HeadersLike, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Installation, type InstallationEnvelope, type InstallationListEnvelope, type InstallationTokenEnvelope, type Intent, type IntentEnvelope, type IntentListEnvelope, type IntentPreviewEnvelope, type IntentReview, type IntentStatus, type Investment, type InvestmentChangeListEnvelope, type InvestmentChangedEventData, type InvestmentDeltaRecord, type InvestmentEnvelope, type InvestmentEventData, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionEventData, type InvestmentSessionId, type InvestmentSessionListEnvelope, type InvestmentsFilters, type InvestmentsQuery, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type InviteLink, type InviteLinkCreateInput, type InviteLinkEnvelope, type InviteLinkId, type InviteLinkListEnvelope, type InviteLinkUpdateInput, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, LEGACY_DELIVERY_ID_HEADER, LEGACY_EVENT_HEADER, LEGACY_SIGNATURE_HEADER, LEGACY_TIMESTAMP_HEADER, type ListActivityData, type ListActivityError, type ListActivityErrors, type ListActivityResponse, type ListActivityResponses, type ListAttributedInvestmentsData, type ListAttributedInvestmentsError, type ListAttributedInvestmentsErrors, type ListAttributedInvestmentsResponse, type ListAttributedInvestmentsResponses, type ListAttributionCampaignsData, type ListAttributionCampaignsError, type ListAttributionCampaignsErrors, type ListAttributionCampaignsResponse, type ListAttributionCampaignsResponses, type ListCampaignsData, type ListCampaignsError, type ListCampaignsErrors, type ListCampaignsResponse, type ListCampaignsResponses, type ListCompanyInvestmentChangesData, type ListCompanyInvestmentChangesError, type ListCompanyInvestmentChangesErrors, type ListCompanyInvestmentChangesResponse, type ListCompanyInvestmentChangesResponses, type ListCompanyQuestionsData, type ListCompanyQuestionsError, type ListCompanyQuestionsErrors, type ListCompanyQuestionsResponse, type ListCompanyQuestionsResponses, type ListCompanyUpdatesData, type ListCompanyUpdatesError, type ListCompanyUpdatesErrors, type ListCompanyUpdatesResponse, type ListCompanyUpdatesResponses, type ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListEligibleInstallTargetsData, type ListEligibleInstallTargetsError, type ListEligibleInstallTargetsErrors, type ListEligibleInstallTargetsResponse, type ListEligibleInstallTargetsResponses, type ListFollowedCompaniesData, type ListFollowedCompaniesError, type ListFollowedCompaniesErrors, type ListFollowedCompaniesResponse, type ListFollowedCompaniesResponses, type ListInstallationsData, type ListInstallationsError, type ListInstallationsErrors, type ListInstallationsResponse, type ListInstallationsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListMyCompaniesData, type ListMyCompaniesError, type ListMyCompaniesErrors, type ListMyCompaniesResponse, type ListMyCompaniesResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, type ListPortfolioPositionsData, type ListPortfolioPositionsError, type ListPortfolioPositionsErrors, type ListPortfolioPositionsResponse, type ListPortfolioPositionsResponses, type ListSyndicateDealInvestorsData, type ListSyndicateDealInvestorsError, type ListSyndicateDealInvestorsErrors, type ListSyndicateDealInvestorsResponse, type ListSyndicateDealInvestorsResponses, type ListSyndicateDealsData, type ListSyndicateDealsError, type ListSyndicateDealsErrors, type ListSyndicateDealsResponse, type ListSyndicateDealsResponses, type ListSyndicateMemberInvestmentsData, type ListSyndicateMemberInvestmentsError, type ListSyndicateMemberInvestmentsErrors, type ListSyndicateMemberInvestmentsResponse, type ListSyndicateMemberInvestmentsResponses, type ListSyndicateMembersData, type ListSyndicateMembersError, type ListSyndicateMembersErrors, type ListSyndicateMembersResponse, type ListSyndicateMembersResponses, type ListSyndicatePortfolioPositionsData, type ListSyndicatePortfolioPositionsError, type ListSyndicatePortfolioPositionsErrors, type ListSyndicatePortfolioPositionsResponse, type ListSyndicatePortfolioPositionsResponses, type ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookEndpointsData, type ListWebhookEndpointsError, type ListWebhookEndpointsErrors, type ListWebhookEndpointsResponse, type ListWebhookEndpointsResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type MyCompany, type MyCompanyListEnvelope, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingEventData, type OfferingListEnvelope, type OfferingSort, type OfferingStatsEnvelope, type OtherSecurity, type Page, type PageFetcher, type PaginationMeta, type ParsedSignatureHeader, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvestor, type PartnerInvestorListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type PastRound, type PerkTier, type PitchBlock, type Pkce, type PortfolioCompanyRef, type PortfolioFilters, type PortfolioHolding, type PortfolioPosition, type PortfolioPositionListEnvelope, type PortfolioPositionsFilters, type PortfolioPositionsQuery, type PortfolioSecurity, type PortfolioStatus, type PortfolioSummary, type PortfolioSummaryEnvelope, type PreviewIntentData, type PreviewIntentError, type PreviewIntentErrors, type PreviewIntentResponse, type PreviewIntentResponses, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type RawBody, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, type ReenableWebhookEndpointData, type ReenableWebhookEndpointError, type ReenableWebhookEndpointErrors, type ReenableWebhookEndpointResponse, type ReenableWebhookEndpointResponses, type RefreshOptions, type RegenerateWebhookSecretData, type RegenerateWebhookSecretError, type RegenerateWebhookSecretErrors, type RegenerateWebhookSecretResponse, type RegenerateWebhookSecretResponses, type RegisterAsPartnerData, type RegisterAsPartnerError, type RegisterAsPartnerErrors, type RegisterAsPartnerResponse, type RegisterAsPartnerResponses, type RemoveSyndicateMemberData, type RemoveSyndicateMemberError, type RemoveSyndicateMemberErrors, type ReorderSyndicateMembersData, type ReorderSyndicateMembersError, type ReorderSyndicateMembersErrors, type ReorderSyndicateMembersResponses, type ResendSyndicateInviteData, type ResendSyndicateInviteError, type ResendSyndicateInviteErrors, type ResendSyndicateInviteResponses, type RestoreSyndicateMemberData, type RestoreSyndicateMemberError, type RestoreSyndicateMemberErrors, type RestoreSyndicateMemberResponse, type RestoreSyndicateMemberResponses, type RevenueShareSecurity, type RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokeInstallationData, type RevokeInstallationError, type RevokeInstallationErrors, type RevokeInstallationResponse, type RevokeInstallationResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, type RotateWebhookEndpointSecretData, type RotateWebhookEndpointSecretError, type RotateWebhookEndpointSecretErrors, type RotateWebhookEndpointSecretResponse, type RotateWebhookEndpointSecretResponses, SANDBOX_AUTHORIZE_BASE_URL, SIGNATURE_HEADER, type SafeSecurity, type SearchCompaniesData, type SearchCompaniesError, type SearchCompaniesErrors, type SearchCompaniesResponse, type SearchCompaniesResponses, type Security, type SecuritySummary, type SignWebhookOptions, type Spv, type SpvCancelIntentEnvelope, type SpvCloseIntentEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvStatus, type SpvStatusEnvelope, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealCloseIntentEnvelope, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealFinalizeIntentEnvelope, type SyndicateDealListEnvelope, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateInvitationEventData, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberEventData, type SyndicateMemberListEnvelope, type SyndicatePortfolioSummaryEnvelope, type SyndicateStatistics, type SyndicateStatisticsEnvelope, type TagRef, type TargetCompanyInput, type TestWebhookEndpointData, type TestWebhookEndpointError, type TestWebhookEndpointErrors, type TestWebhookEndpointResponse, type TestWebhookEndpointResponses, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, type TokenManagerOptions, type TokenSet, type TokenStore, type UnfollowCompanyData, type UnfollowCompanyError, type UnfollowCompanyErrors, type UnfollowCompanyResponse, type UnfollowCompanyResponses, type UnknownWebhookEvent, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type UpdateWebhookEndpointData, type UpdateWebhookEndpointError, type UpdateWebhookEndpointErrors, type UpdateWebhookEndpointInput, type UpdateWebhookEndpointResponse, type UpdateWebhookEndpointResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyLegacyWebhookOptions, type VerifyWebhookOptions, type WebhookDelivery, type WebhookEndpoint, type WebhookEndpointEnvelope, type WebhookEndpointList, type WebhookEndpointListEnvelope, type WebhookEndpointRemoved, type WebhookEndpointTestResultEnvelope, type WebhookEvent, type WebhookEventDataMap, type WebhookEventName, type WebhookExternalId, type WebhookHandlers, type WebhookId, type WebhookInvestor, type WebhookInvestorTotals, type WebhookMode, type WebhookPersonRef, WebhookSignatureError, type WebhookSignatureFailure, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestOutcome, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, type WefunderRound, type WefunderVersion, checkWebhookSignature, clientCredentialsGrant, collect, computeWebhookSignature, constructEvent, constructEventFromRequest, createAuthorizationUrl, dispatchWebhook, exchangeCode, generatePkce, modeForToken, paginate, parseSignatureHeader, refreshToken, signWebhook, verifyWebhook };
9787
+ export { type AnonymizedAttribution, type ApproveSyndicateMemberData, type ApproveSyndicateMemberError, type ApproveSyndicateMemberErrors, type ApproveSyndicateMemberResponse, type ApproveSyndicateMemberResponses, type AttributedInvestmentListEnvelope, type AttributionCampaignAccess, type AttributionCampaignSummary, type AttributionCampaignSummaryListEnvelope, type AttributionMe, type AttributionMeEnvelope, type AttributionPartner, type AttributionStats, type AttributionStatsEnvelope, type AttributionUser, type AuditEvent, type AuditEventListEnvelope, type AuthorizationUrlOptions, type BulkInviteLinkCreateInput, type BulkInviteLinkEnvelope, type Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type CloseSyndicateDealResponse, type CloseSyndicateDealResponses, type CommentProposalEnvelope, type Company, type CompanyDisclosures, type CompanyDisclosuresEnvelope, type CompanyEnvelope, type CompanyPitch, type CompanyPitchEnvelope, type CompanyQuestion, type CompanyQuestionListEnvelope, type CompanyQuestionPerson, type CompanySearchResult, type CompanySearchResultListEnvelope, type CompanyTotals, type CompanyUpdate, type CompanyUpdateEnvelope, type CompanyUpdateListEnvelope, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type ConstructEventOptions, type ConvertibleNoteSecurity, type CreateInstallationData, type CreateInstallationError, type CreateInstallationErrors, type CreateInstallationInput, type CreateInstallationResponse, type CreateInstallationResponses, type CreateInstallationTokenData, type CreateInstallationTokenError, type CreateInstallationTokenErrors, type CreateInstallationTokenResponse, type CreateInstallationTokenResponses, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookEndpointData, type CreateWebhookEndpointError, type CreateWebhookEndpointErrors, type CreateWebhookEndpointInput, type CreateWebhookEndpointResponse, type CreateWebhookEndpointResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type CurrentRaise, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DEFAULT_TOLERANCE_SECONDS, type DealInvestor, type DealInvestorListEnvelope, type DebtSecurity, type DeleteWebhookEndpointData, type DeleteWebhookEndpointError, type DeleteWebhookEndpointErrors, type DeleteWebhookEndpointResponse, type DeleteWebhookEndpointResponses, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, type DisclosureDocument, type DisclosurePerson, type EligibleInstallTarget, type EligibleTargetListEnvelope, type EndDate, type EquitySecurity, type Error$1 as Error, type ExchangeCodeOptions, type Exemption, type ExportSyndicateMembersCsvData, type ExportSyndicateMembersCsvError, type ExportSyndicateMembersCsvErrors, type ExportSyndicateMembersCsvResponse, type ExportSyndicateMembersCsvResponses, type FinalizeSyndicateDealData, type FinalizeSyndicateDealError, type FinalizeSyndicateDealErrors, type FinalizeSyndicateDealResponse, type FinalizeSyndicateDealResponses, type FiscalYearFinancials, type FollowCompanyData, type FollowCompanyError, type FollowCompanyErrors, type FollowCompanyResponse, type FollowCompanyResponses, type FollowStateEnvelope, type FollowedCompany, type FollowedCompanyListEnvelope, type FullAttribution, type FundSecurity, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCompanyData, type GetCompanyDisclosuresData, type GetCompanyDisclosuresError, type GetCompanyDisclosuresErrors, type GetCompanyDisclosuresResponse, type GetCompanyDisclosuresResponses, type GetCompanyError, type GetCompanyErrors, type GetCompanyPitchData, type GetCompanyPitchError, type GetCompanyPitchErrors, type GetCompanyPitchResponse, type GetCompanyPitchResponses, type GetCompanyResponse, type GetCompanyResponses, type GetCompanyUpdateData, type GetCompanyUpdateError, type GetCompanyUpdateErrors, type GetCompanyUpdateResponse, type GetCompanyUpdateResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetInstallationData, type GetInstallationError, type GetInstallationErrors, type GetInstallationResponse, type GetInstallationResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetInvestmentData, type GetInvestmentError, type GetInvestmentErrors, type GetInvestmentResponse, type GetInvestmentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetOfferingStatsData, type GetOfferingStatsError, type GetOfferingStatsErrors, type GetOfferingStatsResponse, type GetOfferingStatsResponses, type GetPortfolioData, type GetPortfolioError, type GetPortfolioErrors, type GetPortfolioResponse, type GetPortfolioResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicatePortfolioData, type GetSyndicatePortfolioError, type GetSyndicatePortfolioErrors, type GetSyndicatePortfolioResponse, type GetSyndicatePortfolioResponses, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookEndpointData, type GetWebhookEndpointError, type GetWebhookEndpointErrors, type GetWebhookEndpointResponse, type GetWebhookEndpointResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HeadersLike, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Installation, type InstallationEnvelope, type InstallationList, type InstallationListEnvelope, type InstallationTokenEnvelope, type InstallationWithToken, type Intent, type IntentEnvelope, type IntentListEnvelope, type IntentPreviewEnvelope, type IntentReview, type IntentStatus, type Investment, type InvestmentChangeListEnvelope, type InvestmentChangedEventData, type InvestmentDeltaRecord, type InvestmentEnvelope, type InvestmentEventData, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionEventData, type InvestmentSessionId, type InvestmentSessionListEnvelope, type InvestmentsFilters, type InvestmentsQuery, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type InviteLink, type InviteLinkCreateInput, type InviteLinkEnvelope, type InviteLinkId, type InviteLinkListEnvelope, type InviteLinkUpdateInput, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, LEGACY_DELIVERY_ID_HEADER, LEGACY_EVENT_HEADER, LEGACY_SIGNATURE_HEADER, LEGACY_TIMESTAMP_HEADER, type ListActivityData, type ListActivityError, type ListActivityErrors, type ListActivityResponse, type ListActivityResponses, type ListAttributedInvestmentsData, type ListAttributedInvestmentsError, type ListAttributedInvestmentsErrors, type ListAttributedInvestmentsResponse, type ListAttributedInvestmentsResponses, type ListAttributionCampaignsData, type ListAttributionCampaignsError, type ListAttributionCampaignsErrors, type ListAttributionCampaignsResponse, type ListAttributionCampaignsResponses, type ListCampaignsData, type ListCampaignsError, type ListCampaignsErrors, type ListCampaignsResponse, type ListCampaignsResponses, type ListCompanyInvestmentChangesData, type ListCompanyInvestmentChangesError, type ListCompanyInvestmentChangesErrors, type ListCompanyInvestmentChangesResponse, type ListCompanyInvestmentChangesResponses, type ListCompanyQuestionsData, type ListCompanyQuestionsError, type ListCompanyQuestionsErrors, type ListCompanyQuestionsResponse, type ListCompanyQuestionsResponses, type ListCompanyUpdatesData, type ListCompanyUpdatesError, type ListCompanyUpdatesErrors, type ListCompanyUpdatesResponse, type ListCompanyUpdatesResponses, type ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListEligibleInstallTargetsData, type ListEligibleInstallTargetsError, type ListEligibleInstallTargetsErrors, type ListEligibleInstallTargetsResponse, type ListEligibleInstallTargetsResponses, type ListFollowedCompaniesData, type ListFollowedCompaniesError, type ListFollowedCompaniesErrors, type ListFollowedCompaniesResponse, type ListFollowedCompaniesResponses, type ListInstallationsData, type ListInstallationsError, type ListInstallationsErrors, type ListInstallationsResponse, type ListInstallationsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListMyCompaniesData, type ListMyCompaniesError, type ListMyCompaniesErrors, type ListMyCompaniesResponse, type ListMyCompaniesResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, type ListPortfolioPositionsData, type ListPortfolioPositionsError, type ListPortfolioPositionsErrors, type ListPortfolioPositionsResponse, type ListPortfolioPositionsResponses, type ListSyndicateDealInvestorsData, type ListSyndicateDealInvestorsError, type ListSyndicateDealInvestorsErrors, type ListSyndicateDealInvestorsResponse, type ListSyndicateDealInvestorsResponses, type ListSyndicateDealsData, type ListSyndicateDealsError, type ListSyndicateDealsErrors, type ListSyndicateDealsResponse, type ListSyndicateDealsResponses, type ListSyndicateMemberInvestmentsData, type ListSyndicateMemberInvestmentsError, type ListSyndicateMemberInvestmentsErrors, type ListSyndicateMemberInvestmentsResponse, type ListSyndicateMemberInvestmentsResponses, type ListSyndicateMembersData, type ListSyndicateMembersError, type ListSyndicateMembersErrors, type ListSyndicateMembersResponse, type ListSyndicateMembersResponses, type ListSyndicatePortfolioPositionsData, type ListSyndicatePortfolioPositionsError, type ListSyndicatePortfolioPositionsErrors, type ListSyndicatePortfolioPositionsResponse, type ListSyndicatePortfolioPositionsResponses, type ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookEndpointsData, type ListWebhookEndpointsError, type ListWebhookEndpointsErrors, type ListWebhookEndpointsResponse, type ListWebhookEndpointsResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type MyCompany, type MyCompanyListEnvelope, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingEventData, type OfferingListEnvelope, type OfferingSort, type OfferingStats, type OfferingStatsEnvelope, type OtherSecurity, type Page, type PageFetcher, type PaginationMeta, type ParsedSignatureHeader, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvestor, type PartnerInvestorListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type PastRound, type PerkTier, type PitchBlock, type Pkce, type PortfolioCompanyRef, type PortfolioFilters, type PortfolioHolding, type PortfolioPosition, type PortfolioPositionListEnvelope, type PortfolioPositionsFilters, type PortfolioPositionsQuery, type PortfolioSecurity, type PortfolioStatus, type PortfolioSummary, type PortfolioSummaryEnvelope, type PreviewIntentData, type PreviewIntentError, type PreviewIntentErrors, type PreviewIntentResponse, type PreviewIntentResponses, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type RawBody, type RawRequestOptions, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, type ReenableWebhookEndpointData, type ReenableWebhookEndpointError, type ReenableWebhookEndpointErrors, type ReenableWebhookEndpointResponse, type ReenableWebhookEndpointResponses, type RefreshOptions, type RegenerateWebhookSecretData, type RegenerateWebhookSecretError, type RegenerateWebhookSecretErrors, type RegenerateWebhookSecretResponse, type RegenerateWebhookSecretResponses, type RegisterAsPartnerData, type RegisterAsPartnerError, type RegisterAsPartnerErrors, type RegisterAsPartnerResponse, type RegisterAsPartnerResponses, type RemoveSyndicateMemberData, type RemoveSyndicateMemberError, type RemoveSyndicateMemberErrors, type ReorderSyndicateMembersData, type ReorderSyndicateMembersError, type ReorderSyndicateMembersErrors, type ReorderSyndicateMembersResponses, type RequestMethod, type ResendSyndicateInviteData, type ResendSyndicateInviteError, type ResendSyndicateInviteErrors, type ResendSyndicateInviteResponses, type RestoreSyndicateMemberData, type RestoreSyndicateMemberError, type RestoreSyndicateMemberErrors, type RestoreSyndicateMemberResponse, type RestoreSyndicateMemberResponses, type RevenueShareSecurity, type RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokeInstallationData, type RevokeInstallationError, type RevokeInstallationErrors, type RevokeInstallationResponse, type RevokeInstallationResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, type RotateWebhookEndpointSecretData, type RotateWebhookEndpointSecretError, type RotateWebhookEndpointSecretErrors, type RotateWebhookEndpointSecretResponse, type RotateWebhookEndpointSecretResponses, SANDBOX_AUTHORIZE_BASE_URL, SIGNATURE_HEADER, type SafeSecurity, type SearchCompaniesData, type SearchCompaniesError, type SearchCompaniesErrors, type SearchCompaniesResponse, type SearchCompaniesResponses, type Security, type SecuritySummary, type SignWebhookOptions, type Spv, type SpvCancelIntentEnvelope, type SpvCloseIntentEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvStatus, type SpvStatusEnvelope, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealCloseIntentEnvelope, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealFinalizeIntentEnvelope, type SyndicateDealListEnvelope, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateInvitationEventData, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberEventData, type SyndicateMemberListEnvelope, type SyndicatePortfolioSummaryEnvelope, type SyndicateStatistics, type SyndicateStatisticsEnvelope, type TagRef, type TargetCompanyInput, type TestWebhookEndpointData, type TestWebhookEndpointError, type TestWebhookEndpointErrors, type TestWebhookEndpointResponse, type TestWebhookEndpointResponses, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, TokenManager, type TokenManagerOptions, type TokenSet, type TokenStore, type UnfollowCompanyData, type UnfollowCompanyError, type UnfollowCompanyErrors, type UnfollowCompanyResponse, type UnfollowCompanyResponses, type UnknownWebhookEvent, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type UpdateWebhookEndpointData, type UpdateWebhookEndpointError, type UpdateWebhookEndpointErrors, type UpdateWebhookEndpointInput, type UpdateWebhookEndpointResponse, type UpdateWebhookEndpointResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyLegacyWebhookOptions, type VerifyWebhookOptions, type WebhookDelivery, type WebhookEndpoint, type WebhookEndpointEnvelope, type WebhookEndpointList, type WebhookEndpointListEnvelope, type WebhookEndpointRemoved, type WebhookEndpointTestResultEnvelope, type WebhookEvent, type WebhookEventDataMap, type WebhookEventName, type WebhookExternalId, type WebhookHandlers, type WebhookId, type WebhookInvestor, type WebhookInvestorTotals, type WebhookMode, type WebhookPersonRef, WebhookSignatureError, type WebhookSignatureFailure, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestOutcome, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, type WefunderRound, WefunderTokenPersistenceError, type WefunderVersion, checkWebhookSignature, clientCredentialsGrant, collect, computeWebhookSignature, constructEvent, constructEventFromRequest, createAuthorizationUrl, dispatchWebhook, exchangeCode, generatePkce, modeForToken, paginate, parseSignatureHeader, refreshToken, signWebhook, verifyWebhook };