@wefunder/sdk 0.1.0-beta.1 → 0.1.0-beta.3
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/README.md +29 -2
- package/dist/index.cjs +1087 -613
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +631 -261
- package/dist/index.d.ts +631 -261
- package/dist/index.js +1086 -612
- package/dist/index.js.map +1 -1
- package/package.json +5 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
2
|
-
import { TDataShape, Options as Options$1, Client } from '@hey-api/client-fetch';
|
|
3
|
-
|
|
4
1
|
/** Host for the browser /authorize redirect. Stays on wefunder.com. */
|
|
5
2
|
declare const DEFAULT_AUTHORIZE_BASE_URL = "https://wefunder.com/oauth";
|
|
6
3
|
declare const DEFAULT_TOKEN_BASE_URL = "https://wefunder.com/oauth";
|
|
@@ -122,6 +119,335 @@ declare function paginate<T>(fetchPage: PageFetcher<T>): AsyncGenerator<T>;
|
|
|
122
119
|
/** Collect all items into an array. Convenience over `paginate` for small result sets. */
|
|
123
120
|
declare function collect<T>(fetchPage: PageFetcher<T>): Promise<T[]>;
|
|
124
121
|
|
|
122
|
+
type AuthToken = string | undefined;
|
|
123
|
+
interface Auth {
|
|
124
|
+
/**
|
|
125
|
+
* Which part of the request do we use to send the auth?
|
|
126
|
+
*
|
|
127
|
+
* @default 'header'
|
|
128
|
+
*/
|
|
129
|
+
in?: "header" | "query" | "cookie";
|
|
130
|
+
/**
|
|
131
|
+
* A unique identifier for the security scheme.
|
|
132
|
+
*
|
|
133
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
134
|
+
* shape would otherwise be identical.
|
|
135
|
+
*/
|
|
136
|
+
key?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Header or query parameter name.
|
|
139
|
+
*
|
|
140
|
+
* @default 'Authorization'
|
|
141
|
+
*/
|
|
142
|
+
name?: string;
|
|
143
|
+
scheme?: "basic" | "bearer";
|
|
144
|
+
type: "apiKey" | "http";
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface SerializerOptions<T> {
|
|
148
|
+
/**
|
|
149
|
+
* @default true
|
|
150
|
+
*/
|
|
151
|
+
explode: boolean;
|
|
152
|
+
style: T;
|
|
153
|
+
}
|
|
154
|
+
type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
|
|
155
|
+
type ObjectStyle = "form" | "deepObject";
|
|
156
|
+
|
|
157
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
158
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
159
|
+
type QuerySerializerOptionsObject = {
|
|
160
|
+
allowReserved?: boolean;
|
|
161
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
162
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
163
|
+
};
|
|
164
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
165
|
+
/**
|
|
166
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
167
|
+
* override the global array/object settings for specific parameter names.
|
|
168
|
+
*/
|
|
169
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
173
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
174
|
+
/**
|
|
175
|
+
* Returns the final request URL.
|
|
176
|
+
*/
|
|
177
|
+
buildUrl: BuildUrlFn;
|
|
178
|
+
getConfig: () => Config;
|
|
179
|
+
request: RequestFn;
|
|
180
|
+
setConfig: (config: Config) => Config;
|
|
181
|
+
} & {
|
|
182
|
+
[K in HttpMethod]: MethodFn;
|
|
183
|
+
} & ([SseFn] extends [never] ? {
|
|
184
|
+
sse?: never;
|
|
185
|
+
} : {
|
|
186
|
+
sse: {
|
|
187
|
+
[K in HttpMethod]: SseFn;
|
|
188
|
+
};
|
|
189
|
+
});
|
|
190
|
+
interface Config$1 {
|
|
191
|
+
/**
|
|
192
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
193
|
+
* added to the request payload as defined by its `security` array.
|
|
194
|
+
*/
|
|
195
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
196
|
+
/**
|
|
197
|
+
* A function for serializing request body parameter. By default,
|
|
198
|
+
* {@link JSON.stringify()} will be used.
|
|
199
|
+
*/
|
|
200
|
+
bodySerializer?: BodySerializer | null;
|
|
201
|
+
/**
|
|
202
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
203
|
+
* `Headers` object with.
|
|
204
|
+
*
|
|
205
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
206
|
+
*/
|
|
207
|
+
headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
208
|
+
/**
|
|
209
|
+
* The request method.
|
|
210
|
+
*
|
|
211
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
212
|
+
*/
|
|
213
|
+
method?: Uppercase<HttpMethod>;
|
|
214
|
+
/**
|
|
215
|
+
* A function for serializing request query parameters. By default, arrays
|
|
216
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
217
|
+
* style, and reserved characters are percent-encoded.
|
|
218
|
+
*
|
|
219
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
220
|
+
* API function is used.
|
|
221
|
+
*
|
|
222
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
223
|
+
*/
|
|
224
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
225
|
+
/**
|
|
226
|
+
* A function validating request data. This is useful if you want to ensure
|
|
227
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
228
|
+
* the server.
|
|
229
|
+
*/
|
|
230
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
231
|
+
/**
|
|
232
|
+
* A function transforming response data before it's returned. This is useful
|
|
233
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
234
|
+
*/
|
|
235
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
236
|
+
/**
|
|
237
|
+
* A function validating response data. This is useful if you want to ensure
|
|
238
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
239
|
+
* the transformers and returned to the user.
|
|
240
|
+
*/
|
|
241
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
245
|
+
*/
|
|
246
|
+
interface ClientMeta {
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$1, "method" | "responseTransformer" | "responseValidator"> & {
|
|
250
|
+
/**
|
|
251
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
252
|
+
* fetch instance.
|
|
253
|
+
*
|
|
254
|
+
* @default globalThis.fetch
|
|
255
|
+
*/
|
|
256
|
+
fetch?: typeof fetch;
|
|
257
|
+
/**
|
|
258
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
259
|
+
*/
|
|
260
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
261
|
+
/**
|
|
262
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
263
|
+
*
|
|
264
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
265
|
+
*
|
|
266
|
+
* @param error The error that occurred.
|
|
267
|
+
*/
|
|
268
|
+
onSseError?: (error: unknown) => void;
|
|
269
|
+
/**
|
|
270
|
+
* Callback invoked when an event is streamed from the server.
|
|
271
|
+
*
|
|
272
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
273
|
+
*
|
|
274
|
+
* @param event Event streamed from the server.
|
|
275
|
+
* @returns Nothing (void).
|
|
276
|
+
*/
|
|
277
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
278
|
+
serializedBody?: RequestInit["body"];
|
|
279
|
+
/**
|
|
280
|
+
* Default retry delay in milliseconds.
|
|
281
|
+
*
|
|
282
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
283
|
+
*
|
|
284
|
+
* @default 3000
|
|
285
|
+
*/
|
|
286
|
+
sseDefaultRetryDelay?: number;
|
|
287
|
+
/**
|
|
288
|
+
* Maximum number of retry attempts before giving up.
|
|
289
|
+
*/
|
|
290
|
+
sseMaxRetryAttempts?: number;
|
|
291
|
+
/**
|
|
292
|
+
* Maximum retry delay in milliseconds.
|
|
293
|
+
*
|
|
294
|
+
* Applies only when exponential backoff is used.
|
|
295
|
+
*
|
|
296
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
297
|
+
*
|
|
298
|
+
* @default 30000
|
|
299
|
+
*/
|
|
300
|
+
sseMaxRetryDelay?: number;
|
|
301
|
+
/**
|
|
302
|
+
* Optional sleep function for retry backoff.
|
|
303
|
+
*
|
|
304
|
+
* Defaults to using `setTimeout`.
|
|
305
|
+
*/
|
|
306
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
307
|
+
url: string;
|
|
308
|
+
};
|
|
309
|
+
interface StreamEvent<TData = unknown> {
|
|
310
|
+
data: TData;
|
|
311
|
+
event?: string;
|
|
312
|
+
id?: string;
|
|
313
|
+
retry?: number;
|
|
314
|
+
}
|
|
315
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
316
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
320
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
321
|
+
response: Res | undefined,
|
|
322
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
323
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
324
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
325
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
326
|
+
declare class Interceptors<Interceptor> {
|
|
327
|
+
fns: Array<Interceptor | null>;
|
|
328
|
+
clear(): void;
|
|
329
|
+
eject(id: number | Interceptor): void;
|
|
330
|
+
exists(id: number | Interceptor): boolean;
|
|
331
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
332
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
333
|
+
use(fn: Interceptor): number;
|
|
334
|
+
}
|
|
335
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
336
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
337
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
338
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
type ResponseStyle = "data" | "fields";
|
|
342
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, "body" | "headers" | "method">, Config$1 {
|
|
343
|
+
/**
|
|
344
|
+
* Base URL for all requests made by this client.
|
|
345
|
+
*/
|
|
346
|
+
baseUrl?: T["baseUrl"];
|
|
347
|
+
/**
|
|
348
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
349
|
+
* fetch instance.
|
|
350
|
+
*
|
|
351
|
+
* @default globalThis.fetch
|
|
352
|
+
*/
|
|
353
|
+
fetch?: typeof fetch;
|
|
354
|
+
/**
|
|
355
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
356
|
+
* options won't have any effect.
|
|
357
|
+
*
|
|
358
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
359
|
+
*/
|
|
360
|
+
next?: never;
|
|
361
|
+
/**
|
|
362
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
363
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
364
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
365
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
366
|
+
*
|
|
367
|
+
* @default 'auto'
|
|
368
|
+
*/
|
|
369
|
+
parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
|
|
370
|
+
/**
|
|
371
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
372
|
+
*
|
|
373
|
+
* @default 'fields'
|
|
374
|
+
*/
|
|
375
|
+
responseStyle?: ResponseStyle;
|
|
376
|
+
/**
|
|
377
|
+
* Throw an error instead of returning it in the response?
|
|
378
|
+
*
|
|
379
|
+
* @default false
|
|
380
|
+
*/
|
|
381
|
+
throwOnError?: T["throwOnError"];
|
|
382
|
+
}
|
|
383
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
384
|
+
responseStyle: TResponseStyle;
|
|
385
|
+
throwOnError: ThrowOnError;
|
|
386
|
+
}>, Pick<ServerSentEventsOptions<TData>, "onRequest" | "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
|
|
387
|
+
/**
|
|
388
|
+
* Any body that you want to add to your request.
|
|
389
|
+
*
|
|
390
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
391
|
+
*/
|
|
392
|
+
body?: unknown;
|
|
393
|
+
path?: Record<string, unknown>;
|
|
394
|
+
query?: Record<string, unknown>;
|
|
395
|
+
/**
|
|
396
|
+
* Security mechanism(s) to use for the request.
|
|
397
|
+
*/
|
|
398
|
+
security?: ReadonlyArray<Auth>;
|
|
399
|
+
url: Url;
|
|
400
|
+
}
|
|
401
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
402
|
+
headers: Headers;
|
|
403
|
+
serializedBody?: string;
|
|
404
|
+
}
|
|
405
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
406
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
407
|
+
request: Request;
|
|
408
|
+
response: Response;
|
|
409
|
+
}> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
410
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
411
|
+
error: undefined;
|
|
412
|
+
} | {
|
|
413
|
+
data: undefined;
|
|
414
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
415
|
+
}) & {
|
|
416
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
417
|
+
request?: Request;
|
|
418
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
419
|
+
response?: Response;
|
|
420
|
+
}>;
|
|
421
|
+
interface ClientOptions$1 {
|
|
422
|
+
baseUrl?: string;
|
|
423
|
+
responseStyle?: ResponseStyle;
|
|
424
|
+
throwOnError?: boolean;
|
|
425
|
+
}
|
|
426
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
427
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData>>;
|
|
428
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
429
|
+
type BuildUrlFn = <TData extends {
|
|
430
|
+
body?: unknown;
|
|
431
|
+
path?: Record<string, unknown>;
|
|
432
|
+
query?: Record<string, unknown>;
|
|
433
|
+
url: string;
|
|
434
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
435
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
436
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
437
|
+
};
|
|
438
|
+
interface TDataShape {
|
|
439
|
+
body?: unknown;
|
|
440
|
+
headers?: unknown;
|
|
441
|
+
path?: unknown;
|
|
442
|
+
query?: unknown;
|
|
443
|
+
url: string;
|
|
444
|
+
}
|
|
445
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
446
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
|
|
447
|
+
|
|
448
|
+
type ClientOptions = {
|
|
449
|
+
baseUrl: "https://{environment}.wefunder.com/api/v2" | (string & {});
|
|
450
|
+
};
|
|
125
451
|
type AttributedInvestmentListEnvelope = {
|
|
126
452
|
/**
|
|
127
453
|
* Returns AnonymizedAttribution or FullAttribution objects
|
|
@@ -133,7 +459,7 @@ type AttributedInvestmentListEnvelope = {
|
|
|
133
459
|
/**
|
|
134
460
|
* The detail level returned in this response
|
|
135
461
|
*/
|
|
136
|
-
detail_level?:
|
|
462
|
+
detail_level?: "anonymized" | "full";
|
|
137
463
|
/**
|
|
138
464
|
* Whether the user can request full details
|
|
139
465
|
*/
|
|
@@ -162,7 +488,7 @@ type AttributionPartner = {
|
|
|
162
488
|
id?: number;
|
|
163
489
|
company_name?: string;
|
|
164
490
|
website?: string;
|
|
165
|
-
status?:
|
|
491
|
+
status?: "pending" | "approved" | "rejected";
|
|
166
492
|
} | null;
|
|
167
493
|
type AttributionCampaignAccess = {
|
|
168
494
|
id?: number;
|
|
@@ -488,7 +814,7 @@ type Offering = {
|
|
|
488
814
|
* The offering's SEC exemption, in market vocabulary.
|
|
489
815
|
*/
|
|
490
816
|
type Exemption = {
|
|
491
|
-
family?:
|
|
817
|
+
family?: "reg_cf" | "reg_d" | "reg_a" | "reg_s" | "ecsp";
|
|
492
818
|
/**
|
|
493
819
|
* Sub-type/flavor — `506b` or `506c` for the `reg_d` family, otherwise null.
|
|
494
820
|
*/
|
|
@@ -551,7 +877,7 @@ type PaginationMeta = {
|
|
|
551
877
|
has_more?: boolean;
|
|
552
878
|
next_cursor?: number | null;
|
|
553
879
|
};
|
|
554
|
-
type
|
|
880
|
+
type Error$1 = {
|
|
555
881
|
error?: {
|
|
556
882
|
type?: string;
|
|
557
883
|
message?: string;
|
|
@@ -650,7 +976,7 @@ type AnonymizedAttribution = {
|
|
|
650
976
|
* Ranges: small ($1-999), medium ($1,000-9,999), large ($10,000+)
|
|
651
977
|
*
|
|
652
978
|
*/
|
|
653
|
-
amount_tier?:
|
|
979
|
+
amount_tier?: "small" | "medium" | "large";
|
|
654
980
|
/**
|
|
655
981
|
* When the investment was applied
|
|
656
982
|
*/
|
|
@@ -662,7 +988,7 @@ type AnonymizedAttribution = {
|
|
|
662
988
|
/**
|
|
663
989
|
* Investment processing stage (matches /manage page)
|
|
664
990
|
*/
|
|
665
|
-
bucket?:
|
|
991
|
+
bucket?: "draft" | "no_payment_yet" | "pending" | "is_ready" | "confirmed" | "canceled";
|
|
666
992
|
/**
|
|
667
993
|
* Whether the investment appears on founder progress bar (likely to complete)
|
|
668
994
|
*/
|
|
@@ -683,11 +1009,11 @@ type AnonymizedAttribution = {
|
|
|
683
1009
|
/**
|
|
684
1010
|
* Time from click to investment
|
|
685
1011
|
*/
|
|
686
|
-
time_to_invest_bucket?:
|
|
1012
|
+
time_to_invest_bucket?: "direct" | "assisted" | "delayed";
|
|
687
1013
|
/**
|
|
688
1014
|
* Attribution quality assessment
|
|
689
1015
|
*/
|
|
690
|
-
quality_score?:
|
|
1016
|
+
quality_score?: "high" | "medium" | "low" | "suspicious";
|
|
691
1017
|
/**
|
|
692
1018
|
* Number of other UTM sources in the attribution window
|
|
693
1019
|
*/
|
|
@@ -701,7 +1027,7 @@ type WebhookSubscription = {
|
|
|
701
1027
|
id?: number;
|
|
702
1028
|
campaign_id?: number;
|
|
703
1029
|
target_url?: string;
|
|
704
|
-
events?: Array<
|
|
1030
|
+
events?: Array<"investment.applied" | "investment.confirmed" | "investment.canceled">;
|
|
705
1031
|
/**
|
|
706
1032
|
* Whether the subscription is active
|
|
707
1033
|
*/
|
|
@@ -726,7 +1052,7 @@ type WebhookDelivery = {
|
|
|
726
1052
|
* The event that triggered this delivery
|
|
727
1053
|
*/
|
|
728
1054
|
event_type?: string;
|
|
729
|
-
status?:
|
|
1055
|
+
status?: "pending" | "delivered" | "failed";
|
|
730
1056
|
/**
|
|
731
1057
|
* Number of delivery attempts
|
|
732
1058
|
*/
|
|
@@ -746,7 +1072,7 @@ type MarketingPartner = {
|
|
|
746
1072
|
user_id?: number;
|
|
747
1073
|
company_name?: string;
|
|
748
1074
|
website?: string | null;
|
|
749
|
-
status?:
|
|
1075
|
+
status?: "pending" | "approved" | "rejected";
|
|
750
1076
|
created_at?: string;
|
|
751
1077
|
};
|
|
752
1078
|
/**
|
|
@@ -761,8 +1087,8 @@ type PartnerInvite = {
|
|
|
761
1087
|
/**
|
|
762
1088
|
* Who initiated the invite
|
|
763
1089
|
*/
|
|
764
|
-
direction?:
|
|
765
|
-
status?:
|
|
1090
|
+
direction?: "partner_to_founder" | "founder_to_partner";
|
|
1091
|
+
status?: "pending" | "accepted" | "expired" | "revoked";
|
|
766
1092
|
/**
|
|
767
1093
|
* Access level granted on acceptance (1=anonymized, 2=detailed)
|
|
768
1094
|
*/
|
|
@@ -812,7 +1138,7 @@ type FullAttribution = {
|
|
|
812
1138
|
amount?: number;
|
|
813
1139
|
invested_at?: string;
|
|
814
1140
|
status?: {
|
|
815
|
-
bucket?:
|
|
1141
|
+
bucket?: "draft" | "no_payment_yet" | "pending" | "is_ready" | "confirmed" | "canceled";
|
|
816
1142
|
progress_bar?: boolean;
|
|
817
1143
|
};
|
|
818
1144
|
/**
|
|
@@ -824,8 +1150,8 @@ type FullAttribution = {
|
|
|
824
1150
|
utm_medium?: string | null;
|
|
825
1151
|
utm_content?: string | null;
|
|
826
1152
|
clicked_at?: string;
|
|
827
|
-
time_to_invest_bucket?:
|
|
828
|
-
quality_score?:
|
|
1153
|
+
time_to_invest_bucket?: "direct" | "assisted" | "delayed";
|
|
1154
|
+
quality_score?: "high" | "medium" | "low" | "suspicious";
|
|
829
1155
|
competing_sources?: number;
|
|
830
1156
|
};
|
|
831
1157
|
};
|
|
@@ -897,7 +1223,7 @@ type SyndicateMember = {
|
|
|
897
1223
|
/**
|
|
898
1224
|
* Permission level within the syndicate
|
|
899
1225
|
*/
|
|
900
|
-
syndicate_permission?:
|
|
1226
|
+
syndicate_permission?: "full_access" | "operator";
|
|
901
1227
|
/**
|
|
902
1228
|
* Custom title for the member
|
|
903
1229
|
*/
|
|
@@ -1069,7 +1395,7 @@ type SyndicatePortfolio = {
|
|
|
1069
1395
|
amount_cents?: number;
|
|
1070
1396
|
structure?: string;
|
|
1071
1397
|
invested_at?: string;
|
|
1072
|
-
status?:
|
|
1398
|
+
status?: "active" | "exited";
|
|
1073
1399
|
};
|
|
1074
1400
|
valuation?: {
|
|
1075
1401
|
basis_cents?: number;
|
|
@@ -1202,7 +1528,7 @@ type Intent = {
|
|
|
1202
1528
|
type?: string;
|
|
1203
1529
|
attributes?: {
|
|
1204
1530
|
action?: string;
|
|
1205
|
-
status?:
|
|
1531
|
+
status?: "pending" | "approved" | "executing" | "executed" | "expired" | "rejected" | "failed";
|
|
1206
1532
|
resource_type?: string;
|
|
1207
1533
|
resource_id?: number;
|
|
1208
1534
|
impact_summary?: string;
|
|
@@ -1261,7 +1587,7 @@ type AuditEvent = {
|
|
|
1261
1587
|
* List of field names that changed
|
|
1262
1588
|
*/
|
|
1263
1589
|
changed_fields?: Array<string> | null;
|
|
1264
|
-
status?:
|
|
1590
|
+
status?: "success" | "failure" | "denied";
|
|
1265
1591
|
error_message?: string | null;
|
|
1266
1592
|
/**
|
|
1267
1593
|
* Associated intent ID if this event was triggered by an intent
|
|
@@ -1316,11 +1642,11 @@ type ValidationError = {
|
|
|
1316
1642
|
* Investment terms for an SPV.
|
|
1317
1643
|
*/
|
|
1318
1644
|
type SpvTerms = {
|
|
1319
|
-
structure:
|
|
1645
|
+
structure: "safe" | "convertible_note" | "equity";
|
|
1320
1646
|
/**
|
|
1321
1647
|
* Required when `structure` is `safe`.
|
|
1322
1648
|
*/
|
|
1323
|
-
safe_type?:
|
|
1649
|
+
safe_type?: "post_money" | "pre_money";
|
|
1324
1650
|
valuation_cap_cents: number;
|
|
1325
1651
|
/**
|
|
1326
1652
|
* Discount percentage (e.g. 20 for 20%).
|
|
@@ -1334,7 +1660,7 @@ type SpvSettings = {
|
|
|
1334
1660
|
/**
|
|
1335
1661
|
* `self_attestation` (506b) or `verified` (506c).
|
|
1336
1662
|
*/
|
|
1337
|
-
accreditation_type?:
|
|
1663
|
+
accreditation_type?: "self_attestation" | "verified";
|
|
1338
1664
|
/**
|
|
1339
1665
|
* Automatically begin closing when the target raise is reached.
|
|
1340
1666
|
*/
|
|
@@ -1378,7 +1704,7 @@ type Spv = {
|
|
|
1378
1704
|
type?: string;
|
|
1379
1705
|
attributes?: {
|
|
1380
1706
|
name?: string;
|
|
1381
|
-
status?:
|
|
1707
|
+
status?: "draft" | "open" | "closing" | "closed" | "canceled" | "dissolved";
|
|
1382
1708
|
series_name?: string;
|
|
1383
1709
|
invest_url?: string | null;
|
|
1384
1710
|
target_company?: {
|
|
@@ -1398,10 +1724,10 @@ type Spv = {
|
|
|
1398
1724
|
};
|
|
1399
1725
|
type SpvCloseStatus = {
|
|
1400
1726
|
spv_id?: string;
|
|
1401
|
-
status?:
|
|
1727
|
+
status?: "closing" | "closed";
|
|
1402
1728
|
steps?: Array<{
|
|
1403
|
-
name?:
|
|
1404
|
-
status?:
|
|
1729
|
+
name?: "investment_cutoff" | "pending_resolution" | "final_tally" | "disbursement" | "cap_table";
|
|
1730
|
+
status?: "pending" | "in_progress" | "complete";
|
|
1405
1731
|
completed_at?: string | null;
|
|
1406
1732
|
pending_count?: number | null;
|
|
1407
1733
|
}>;
|
|
@@ -1426,7 +1752,7 @@ type Invite = {
|
|
|
1426
1752
|
type?: string;
|
|
1427
1753
|
attributes?: {
|
|
1428
1754
|
email?: string;
|
|
1429
|
-
status?:
|
|
1755
|
+
status?: "pending" | "opened" | "invested" | "expired" | "revoked";
|
|
1430
1756
|
allocation_cents?: number | null;
|
|
1431
1757
|
invest_url?: string;
|
|
1432
1758
|
investment_id?: string | null;
|
|
@@ -1476,7 +1802,7 @@ type InvestmentSession = {
|
|
|
1476
1802
|
id?: string;
|
|
1477
1803
|
type?: string;
|
|
1478
1804
|
attributes?: {
|
|
1479
|
-
status?:
|
|
1805
|
+
status?: "pending" | "in_progress" | "completed" | "abandoned" | "expired" | "canceled";
|
|
1480
1806
|
/**
|
|
1481
1807
|
* The hosted URL the recipient opens to begin the flow.
|
|
1482
1808
|
*/
|
|
@@ -1484,8 +1810,8 @@ type InvestmentSession = {
|
|
|
1484
1810
|
spv_id?: string;
|
|
1485
1811
|
email?: string | null;
|
|
1486
1812
|
allocation_cents?: number | null;
|
|
1487
|
-
kyc_status?:
|
|
1488
|
-
funding_status?:
|
|
1813
|
+
kyc_status?: "pending" | "passed" | "failed";
|
|
1814
|
+
funding_status?: "pending" | "succeeded" | "card_declined" | "insufficient_funds";
|
|
1489
1815
|
/**
|
|
1490
1816
|
* Populated once the session completes successfully.
|
|
1491
1817
|
*/
|
|
@@ -1499,12 +1825,12 @@ type PartnerInvestment = {
|
|
|
1499
1825
|
type?: string;
|
|
1500
1826
|
attributes?: {
|
|
1501
1827
|
amount_cents?: number;
|
|
1502
|
-
status?:
|
|
1828
|
+
status?: "pending" | "awaiting_payment" | "pending_accreditation" | "confirmed" | "canceled";
|
|
1503
1829
|
spv_id?: string;
|
|
1504
1830
|
investor_id?: string | null;
|
|
1505
1831
|
accreditation?: {
|
|
1506
|
-
type?:
|
|
1507
|
-
status?:
|
|
1832
|
+
type?: "self_attestation" | "verified";
|
|
1833
|
+
status?: "pending" | "passed" | "failed" | "expired";
|
|
1508
1834
|
basis?: string | null;
|
|
1509
1835
|
submitted_at?: string | null;
|
|
1510
1836
|
} | null;
|
|
@@ -1669,9 +1995,9 @@ type ListOfferingsData = {
|
|
|
1669
1995
|
* - `most_investors` — highest investor count first
|
|
1670
1996
|
*
|
|
1671
1997
|
*/
|
|
1672
|
-
sort?:
|
|
1998
|
+
sort?: "most_raised" | "closing_soon" | "newest" | "most_investors";
|
|
1673
1999
|
};
|
|
1674
|
-
url:
|
|
2000
|
+
url: "/explore";
|
|
1675
2001
|
};
|
|
1676
2002
|
type ListOfferingsErrors = {
|
|
1677
2003
|
/**
|
|
@@ -1684,7 +2010,7 @@ type ListOfferingsErrors = {
|
|
|
1684
2010
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1685
2011
|
*
|
|
1686
2012
|
*/
|
|
1687
|
-
401:
|
|
2013
|
+
401: Error$1;
|
|
1688
2014
|
/**
|
|
1689
2015
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1690
2016
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1694,7 +2020,7 @@ type ListOfferingsErrors = {
|
|
|
1694
2020
|
* Consider implementing exponential backoff in your application.
|
|
1695
2021
|
*
|
|
1696
2022
|
*/
|
|
1697
|
-
429:
|
|
2023
|
+
429: Error$1;
|
|
1698
2024
|
};
|
|
1699
2025
|
type ListOfferingsError = ListOfferingsErrors[keyof ListOfferingsErrors];
|
|
1700
2026
|
type ListOfferingsResponses = {
|
|
@@ -1713,7 +2039,7 @@ type GetOfferingData = {
|
|
|
1713
2039
|
external_id: string;
|
|
1714
2040
|
};
|
|
1715
2041
|
query?: never;
|
|
1716
|
-
url:
|
|
2042
|
+
url: "/offerings/{external_id}";
|
|
1717
2043
|
};
|
|
1718
2044
|
type GetOfferingErrors = {
|
|
1719
2045
|
/**
|
|
@@ -1726,11 +2052,11 @@ type GetOfferingErrors = {
|
|
|
1726
2052
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1727
2053
|
*
|
|
1728
2054
|
*/
|
|
1729
|
-
401:
|
|
2055
|
+
401: Error$1;
|
|
1730
2056
|
/**
|
|
1731
2057
|
* The requested resource does not exist or is not visible to this token.
|
|
1732
2058
|
*/
|
|
1733
|
-
404:
|
|
2059
|
+
404: Error$1;
|
|
1734
2060
|
/**
|
|
1735
2061
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1736
2062
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1740,7 +2066,7 @@ type GetOfferingErrors = {
|
|
|
1740
2066
|
* Consider implementing exponential backoff in your application.
|
|
1741
2067
|
*
|
|
1742
2068
|
*/
|
|
1743
|
-
429:
|
|
2069
|
+
429: Error$1;
|
|
1744
2070
|
};
|
|
1745
2071
|
type GetOfferingError = GetOfferingErrors[keyof GetOfferingErrors];
|
|
1746
2072
|
type GetOfferingResponses = {
|
|
@@ -1754,7 +2080,7 @@ type GetCurrentUserData = {
|
|
|
1754
2080
|
body?: never;
|
|
1755
2081
|
path?: never;
|
|
1756
2082
|
query?: never;
|
|
1757
|
-
url:
|
|
2083
|
+
url: "/users/me";
|
|
1758
2084
|
};
|
|
1759
2085
|
type GetCurrentUserErrors = {
|
|
1760
2086
|
/**
|
|
@@ -1767,7 +2093,7 @@ type GetCurrentUserErrors = {
|
|
|
1767
2093
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1768
2094
|
*
|
|
1769
2095
|
*/
|
|
1770
|
-
401:
|
|
2096
|
+
401: Error$1;
|
|
1771
2097
|
/**
|
|
1772
2098
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1773
2099
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1777,7 +2103,7 @@ type GetCurrentUserErrors = {
|
|
|
1777
2103
|
* Consider implementing exponential backoff in your application.
|
|
1778
2104
|
*
|
|
1779
2105
|
*/
|
|
1780
|
-
429:
|
|
2106
|
+
429: Error$1;
|
|
1781
2107
|
};
|
|
1782
2108
|
type GetCurrentUserError = GetCurrentUserErrors[keyof GetCurrentUserErrors];
|
|
1783
2109
|
type GetCurrentUserResponses = {
|
|
@@ -1799,7 +2125,7 @@ type ListInvestmentsData = {
|
|
|
1799
2125
|
*/
|
|
1800
2126
|
cursor?: number;
|
|
1801
2127
|
};
|
|
1802
|
-
url:
|
|
2128
|
+
url: "/investments";
|
|
1803
2129
|
};
|
|
1804
2130
|
type ListInvestmentsErrors = {
|
|
1805
2131
|
/**
|
|
@@ -1812,7 +2138,7 @@ type ListInvestmentsErrors = {
|
|
|
1812
2138
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1813
2139
|
*
|
|
1814
2140
|
*/
|
|
1815
|
-
401:
|
|
2141
|
+
401: Error$1;
|
|
1816
2142
|
/**
|
|
1817
2143
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1818
2144
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1822,7 +2148,7 @@ type ListInvestmentsErrors = {
|
|
|
1822
2148
|
* Consider implementing exponential backoff in your application.
|
|
1823
2149
|
*
|
|
1824
2150
|
*/
|
|
1825
|
-
429:
|
|
2151
|
+
429: Error$1;
|
|
1826
2152
|
};
|
|
1827
2153
|
type ListInvestmentsError = ListInvestmentsErrors[keyof ListInvestmentsErrors];
|
|
1828
2154
|
type ListInvestmentsResponses = {
|
|
@@ -1844,7 +2170,7 @@ type ListCampaignsData = {
|
|
|
1844
2170
|
*/
|
|
1845
2171
|
cursor?: number;
|
|
1846
2172
|
};
|
|
1847
|
-
url:
|
|
2173
|
+
url: "/campaigns";
|
|
1848
2174
|
};
|
|
1849
2175
|
type ListCampaignsErrors = {
|
|
1850
2176
|
/**
|
|
@@ -1857,7 +2183,7 @@ type ListCampaignsErrors = {
|
|
|
1857
2183
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1858
2184
|
*
|
|
1859
2185
|
*/
|
|
1860
|
-
401:
|
|
2186
|
+
401: Error$1;
|
|
1861
2187
|
/**
|
|
1862
2188
|
* The authenticated user does not have permission to access this resource.
|
|
1863
2189
|
* This typically means:
|
|
@@ -1868,7 +2194,7 @@ type ListCampaignsErrors = {
|
|
|
1868
2194
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
1869
2195
|
*
|
|
1870
2196
|
*/
|
|
1871
|
-
403:
|
|
2197
|
+
403: Error$1;
|
|
1872
2198
|
/**
|
|
1873
2199
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1874
2200
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1878,7 +2204,7 @@ type ListCampaignsErrors = {
|
|
|
1878
2204
|
* Consider implementing exponential backoff in your application.
|
|
1879
2205
|
*
|
|
1880
2206
|
*/
|
|
1881
|
-
429:
|
|
2207
|
+
429: Error$1;
|
|
1882
2208
|
};
|
|
1883
2209
|
type ListCampaignsError = ListCampaignsErrors[keyof ListCampaignsErrors];
|
|
1884
2210
|
type ListCampaignsResponses = {
|
|
@@ -1901,7 +2227,7 @@ type ListSyndicatesData = {
|
|
|
1901
2227
|
*/
|
|
1902
2228
|
limit?: number;
|
|
1903
2229
|
};
|
|
1904
|
-
url:
|
|
2230
|
+
url: "/syndicates";
|
|
1905
2231
|
};
|
|
1906
2232
|
type ListSyndicatesErrors = {
|
|
1907
2233
|
/**
|
|
@@ -1914,7 +2240,7 @@ type ListSyndicatesErrors = {
|
|
|
1914
2240
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1915
2241
|
*
|
|
1916
2242
|
*/
|
|
1917
|
-
401:
|
|
2243
|
+
401: Error$1;
|
|
1918
2244
|
/**
|
|
1919
2245
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
1920
2246
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -1924,7 +2250,7 @@ type ListSyndicatesErrors = {
|
|
|
1924
2250
|
* Consider implementing exponential backoff in your application.
|
|
1925
2251
|
*
|
|
1926
2252
|
*/
|
|
1927
|
-
429:
|
|
2253
|
+
429: Error$1;
|
|
1928
2254
|
};
|
|
1929
2255
|
type ListSyndicatesError = ListSyndicatesErrors[keyof ListSyndicatesErrors];
|
|
1930
2256
|
type ListSyndicatesResponses = {
|
|
@@ -1943,7 +2269,7 @@ type GetSyndicateData = {
|
|
|
1943
2269
|
syndicate_id: number;
|
|
1944
2270
|
};
|
|
1945
2271
|
query?: never;
|
|
1946
|
-
url:
|
|
2272
|
+
url: "/syndicates/{syndicate_id}";
|
|
1947
2273
|
};
|
|
1948
2274
|
type GetSyndicateErrors = {
|
|
1949
2275
|
/**
|
|
@@ -1956,7 +2282,7 @@ type GetSyndicateErrors = {
|
|
|
1956
2282
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
1957
2283
|
*
|
|
1958
2284
|
*/
|
|
1959
|
-
401:
|
|
2285
|
+
401: Error$1;
|
|
1960
2286
|
/**
|
|
1961
2287
|
* The authenticated user does not have permission to access this resource.
|
|
1962
2288
|
* This typically means:
|
|
@@ -1967,11 +2293,11 @@ type GetSyndicateErrors = {
|
|
|
1967
2293
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
1968
2294
|
*
|
|
1969
2295
|
*/
|
|
1970
|
-
403:
|
|
2296
|
+
403: Error$1;
|
|
1971
2297
|
/**
|
|
1972
2298
|
* Syndicate not found
|
|
1973
2299
|
*/
|
|
1974
|
-
404:
|
|
2300
|
+
404: Error$1;
|
|
1975
2301
|
};
|
|
1976
2302
|
type GetSyndicateError = GetSyndicateErrors[keyof GetSyndicateErrors];
|
|
1977
2303
|
type GetSyndicateResponses = {
|
|
@@ -1996,7 +2322,7 @@ type UpdateSyndicateData = {
|
|
|
1996
2322
|
syndicate_id: number;
|
|
1997
2323
|
};
|
|
1998
2324
|
query?: never;
|
|
1999
|
-
url:
|
|
2325
|
+
url: "/syndicates/{syndicate_id}";
|
|
2000
2326
|
};
|
|
2001
2327
|
type UpdateSyndicateErrors = {
|
|
2002
2328
|
/**
|
|
@@ -2009,7 +2335,7 @@ type UpdateSyndicateErrors = {
|
|
|
2009
2335
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2010
2336
|
*
|
|
2011
2337
|
*/
|
|
2012
|
-
401:
|
|
2338
|
+
401: Error$1;
|
|
2013
2339
|
/**
|
|
2014
2340
|
* The authenticated user does not have permission to access this resource.
|
|
2015
2341
|
* This typically means:
|
|
@@ -2020,11 +2346,11 @@ type UpdateSyndicateErrors = {
|
|
|
2020
2346
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2021
2347
|
*
|
|
2022
2348
|
*/
|
|
2023
|
-
403:
|
|
2349
|
+
403: Error$1;
|
|
2024
2350
|
/**
|
|
2025
2351
|
* Validation error
|
|
2026
2352
|
*/
|
|
2027
|
-
422:
|
|
2353
|
+
422: Error$1;
|
|
2028
2354
|
};
|
|
2029
2355
|
type UpdateSyndicateError = UpdateSyndicateErrors[keyof UpdateSyndicateErrors];
|
|
2030
2356
|
type UpdateSyndicateResponses = {
|
|
@@ -2050,7 +2376,7 @@ type ListSyndicateMembersData = {
|
|
|
2050
2376
|
/**
|
|
2051
2377
|
* Filter by syndicate permission level
|
|
2052
2378
|
*/
|
|
2053
|
-
permission?:
|
|
2379
|
+
permission?: "full_access" | "operator";
|
|
2054
2380
|
/**
|
|
2055
2381
|
* Search by name or email
|
|
2056
2382
|
*/
|
|
@@ -2058,21 +2384,21 @@ type ListSyndicateMembersData = {
|
|
|
2058
2384
|
/**
|
|
2059
2385
|
* Sort order for results
|
|
2060
2386
|
*/
|
|
2061
|
-
sort?:
|
|
2387
|
+
sort?: "relevance" | "newest" | "oldest" | "alphabetical" | "last_activity";
|
|
2062
2388
|
/**
|
|
2063
2389
|
* Filter by whether the member has invested in any syndicate deal
|
|
2064
2390
|
*/
|
|
2065
|
-
has_invested?:
|
|
2391
|
+
has_invested?: "true" | "false";
|
|
2066
2392
|
/**
|
|
2067
2393
|
* Filter to accredited members only
|
|
2068
2394
|
*/
|
|
2069
|
-
accredited?:
|
|
2395
|
+
accredited?: "true";
|
|
2070
2396
|
/**
|
|
2071
2397
|
* Filter by 'can help with' tag (ILIKE match)
|
|
2072
2398
|
*/
|
|
2073
2399
|
tag?: string;
|
|
2074
2400
|
};
|
|
2075
|
-
url:
|
|
2401
|
+
url: "/syndicates/{syndicate_id}/members";
|
|
2076
2402
|
};
|
|
2077
2403
|
type ListSyndicateMembersErrors = {
|
|
2078
2404
|
/**
|
|
@@ -2085,7 +2411,7 @@ type ListSyndicateMembersErrors = {
|
|
|
2085
2411
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2086
2412
|
*
|
|
2087
2413
|
*/
|
|
2088
|
-
401:
|
|
2414
|
+
401: Error$1;
|
|
2089
2415
|
/**
|
|
2090
2416
|
* The authenticated user does not have permission to access this resource.
|
|
2091
2417
|
* This typically means:
|
|
@@ -2096,7 +2422,7 @@ type ListSyndicateMembersErrors = {
|
|
|
2096
2422
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2097
2423
|
*
|
|
2098
2424
|
*/
|
|
2099
|
-
403:
|
|
2425
|
+
403: Error$1;
|
|
2100
2426
|
};
|
|
2101
2427
|
type ListSyndicateMembersError = ListSyndicateMembersErrors[keyof ListSyndicateMembersErrors];
|
|
2102
2428
|
type ListSyndicateMembersResponses = {
|
|
@@ -2116,7 +2442,7 @@ type InviteSyndicateMemberData = {
|
|
|
2116
2442
|
/**
|
|
2117
2443
|
* Permission level. Only the syndicate creator can assign full_access (admin).
|
|
2118
2444
|
*/
|
|
2119
|
-
syndicate_permission?:
|
|
2445
|
+
syndicate_permission?: "full_access" | "operator";
|
|
2120
2446
|
};
|
|
2121
2447
|
path: {
|
|
2122
2448
|
/**
|
|
@@ -2125,7 +2451,7 @@ type InviteSyndicateMemberData = {
|
|
|
2125
2451
|
syndicate_id: number;
|
|
2126
2452
|
};
|
|
2127
2453
|
query?: never;
|
|
2128
|
-
url:
|
|
2454
|
+
url: "/syndicates/{syndicate_id}/members/invite";
|
|
2129
2455
|
};
|
|
2130
2456
|
type InviteSyndicateMemberErrors = {
|
|
2131
2457
|
/**
|
|
@@ -2138,7 +2464,7 @@ type InviteSyndicateMemberErrors = {
|
|
|
2138
2464
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2139
2465
|
*
|
|
2140
2466
|
*/
|
|
2141
|
-
401:
|
|
2467
|
+
401: Error$1;
|
|
2142
2468
|
/**
|
|
2143
2469
|
* The authenticated user does not have permission to access this resource.
|
|
2144
2470
|
* This typically means:
|
|
@@ -2149,11 +2475,11 @@ type InviteSyndicateMemberErrors = {
|
|
|
2149
2475
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2150
2476
|
*
|
|
2151
2477
|
*/
|
|
2152
|
-
403:
|
|
2478
|
+
403: Error$1;
|
|
2153
2479
|
/**
|
|
2154
2480
|
* Validation error (e.g. already a member)
|
|
2155
2481
|
*/
|
|
2156
|
-
422:
|
|
2482
|
+
422: Error$1;
|
|
2157
2483
|
};
|
|
2158
2484
|
type InviteSyndicateMemberError = InviteSyndicateMemberErrors[keyof InviteSyndicateMemberErrors];
|
|
2159
2485
|
type InviteSyndicateMemberResponses = {
|
|
@@ -2176,13 +2502,13 @@ type RemoveSyndicateMemberData = {
|
|
|
2176
2502
|
member_id: string;
|
|
2177
2503
|
};
|
|
2178
2504
|
query?: never;
|
|
2179
|
-
url:
|
|
2505
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}";
|
|
2180
2506
|
};
|
|
2181
2507
|
type RemoveSyndicateMemberErrors = {
|
|
2182
2508
|
/**
|
|
2183
2509
|
* Use intents for this action
|
|
2184
2510
|
*/
|
|
2185
|
-
422:
|
|
2511
|
+
422: Error$1;
|
|
2186
2512
|
};
|
|
2187
2513
|
type RemoveSyndicateMemberError = RemoveSyndicateMemberErrors[keyof RemoveSyndicateMemberErrors];
|
|
2188
2514
|
type UpdateSyndicateMemberData = {
|
|
@@ -2203,7 +2529,7 @@ type UpdateSyndicateMemberData = {
|
|
|
2203
2529
|
member_id: string;
|
|
2204
2530
|
};
|
|
2205
2531
|
query?: never;
|
|
2206
|
-
url:
|
|
2532
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}";
|
|
2207
2533
|
};
|
|
2208
2534
|
type UpdateSyndicateMemberErrors = {
|
|
2209
2535
|
/**
|
|
@@ -2216,7 +2542,7 @@ type UpdateSyndicateMemberErrors = {
|
|
|
2216
2542
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2217
2543
|
*
|
|
2218
2544
|
*/
|
|
2219
|
-
401:
|
|
2545
|
+
401: Error$1;
|
|
2220
2546
|
/**
|
|
2221
2547
|
* The authenticated user does not have permission to access this resource.
|
|
2222
2548
|
* This typically means:
|
|
@@ -2227,7 +2553,7 @@ type UpdateSyndicateMemberErrors = {
|
|
|
2227
2553
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2228
2554
|
*
|
|
2229
2555
|
*/
|
|
2230
|
-
403:
|
|
2556
|
+
403: Error$1;
|
|
2231
2557
|
};
|
|
2232
2558
|
type UpdateSyndicateMemberError = UpdateSyndicateMemberErrors[keyof UpdateSyndicateMemberErrors];
|
|
2233
2559
|
type UpdateSyndicateMemberResponses = {
|
|
@@ -2250,7 +2576,7 @@ type ApproveSyndicateMemberData = {
|
|
|
2250
2576
|
member_id: string;
|
|
2251
2577
|
};
|
|
2252
2578
|
query?: never;
|
|
2253
|
-
url:
|
|
2579
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/approve";
|
|
2254
2580
|
};
|
|
2255
2581
|
type ApproveSyndicateMemberErrors = {
|
|
2256
2582
|
/**
|
|
@@ -2263,7 +2589,7 @@ type ApproveSyndicateMemberErrors = {
|
|
|
2263
2589
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2264
2590
|
*
|
|
2265
2591
|
*/
|
|
2266
|
-
401:
|
|
2592
|
+
401: Error$1;
|
|
2267
2593
|
/**
|
|
2268
2594
|
* The authenticated user does not have permission to access this resource.
|
|
2269
2595
|
* This typically means:
|
|
@@ -2274,7 +2600,7 @@ type ApproveSyndicateMemberErrors = {
|
|
|
2274
2600
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2275
2601
|
*
|
|
2276
2602
|
*/
|
|
2277
|
-
403:
|
|
2603
|
+
403: Error$1;
|
|
2278
2604
|
};
|
|
2279
2605
|
type ApproveSyndicateMemberError = ApproveSyndicateMemberErrors[keyof ApproveSyndicateMemberErrors];
|
|
2280
2606
|
type ApproveSyndicateMemberResponses = {
|
|
@@ -2297,7 +2623,7 @@ type HideSyndicateMemberData = {
|
|
|
2297
2623
|
member_id: string;
|
|
2298
2624
|
};
|
|
2299
2625
|
query?: never;
|
|
2300
|
-
url:
|
|
2626
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/hide";
|
|
2301
2627
|
};
|
|
2302
2628
|
type HideSyndicateMemberErrors = {
|
|
2303
2629
|
/**
|
|
@@ -2310,7 +2636,7 @@ type HideSyndicateMemberErrors = {
|
|
|
2310
2636
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2311
2637
|
*
|
|
2312
2638
|
*/
|
|
2313
|
-
401:
|
|
2639
|
+
401: Error$1;
|
|
2314
2640
|
/**
|
|
2315
2641
|
* The authenticated user does not have permission to access this resource.
|
|
2316
2642
|
* This typically means:
|
|
@@ -2321,7 +2647,7 @@ type HideSyndicateMemberErrors = {
|
|
|
2321
2647
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2322
2648
|
*
|
|
2323
2649
|
*/
|
|
2324
|
-
403:
|
|
2650
|
+
403: Error$1;
|
|
2325
2651
|
};
|
|
2326
2652
|
type HideSyndicateMemberError = HideSyndicateMemberErrors[keyof HideSyndicateMemberErrors];
|
|
2327
2653
|
type HideSyndicateMemberResponses = {
|
|
@@ -2344,7 +2670,7 @@ type PromoteSyndicateMemberData = {
|
|
|
2344
2670
|
member_id: string;
|
|
2345
2671
|
};
|
|
2346
2672
|
query?: never;
|
|
2347
|
-
url:
|
|
2673
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/promote";
|
|
2348
2674
|
};
|
|
2349
2675
|
type PromoteSyndicateMemberErrors = {
|
|
2350
2676
|
/**
|
|
@@ -2357,7 +2683,7 @@ type PromoteSyndicateMemberErrors = {
|
|
|
2357
2683
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2358
2684
|
*
|
|
2359
2685
|
*/
|
|
2360
|
-
401:
|
|
2686
|
+
401: Error$1;
|
|
2361
2687
|
/**
|
|
2362
2688
|
* The authenticated user does not have permission to access this resource.
|
|
2363
2689
|
* This typically means:
|
|
@@ -2368,7 +2694,7 @@ type PromoteSyndicateMemberErrors = {
|
|
|
2368
2694
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2369
2695
|
*
|
|
2370
2696
|
*/
|
|
2371
|
-
403:
|
|
2697
|
+
403: Error$1;
|
|
2372
2698
|
};
|
|
2373
2699
|
type PromoteSyndicateMemberError = PromoteSyndicateMemberErrors[keyof PromoteSyndicateMemberErrors];
|
|
2374
2700
|
type PromoteSyndicateMemberResponses = {
|
|
@@ -2391,7 +2717,7 @@ type DemoteSyndicateMemberData = {
|
|
|
2391
2717
|
member_id: string;
|
|
2392
2718
|
};
|
|
2393
2719
|
query?: never;
|
|
2394
|
-
url:
|
|
2720
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/demote";
|
|
2395
2721
|
};
|
|
2396
2722
|
type DemoteSyndicateMemberErrors = {
|
|
2397
2723
|
/**
|
|
@@ -2404,7 +2730,7 @@ type DemoteSyndicateMemberErrors = {
|
|
|
2404
2730
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2405
2731
|
*
|
|
2406
2732
|
*/
|
|
2407
|
-
401:
|
|
2733
|
+
401: Error$1;
|
|
2408
2734
|
/**
|
|
2409
2735
|
* The authenticated user does not have permission to access this resource.
|
|
2410
2736
|
* This typically means:
|
|
@@ -2415,7 +2741,7 @@ type DemoteSyndicateMemberErrors = {
|
|
|
2415
2741
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2416
2742
|
*
|
|
2417
2743
|
*/
|
|
2418
|
-
403:
|
|
2744
|
+
403: Error$1;
|
|
2419
2745
|
};
|
|
2420
2746
|
type DemoteSyndicateMemberError = DemoteSyndicateMemberErrors[keyof DemoteSyndicateMemberErrors];
|
|
2421
2747
|
type DemoteSyndicateMemberResponses = {
|
|
@@ -2438,7 +2764,7 @@ type RestoreSyndicateMemberData = {
|
|
|
2438
2764
|
member_id: string;
|
|
2439
2765
|
};
|
|
2440
2766
|
query?: never;
|
|
2441
|
-
url:
|
|
2767
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/restore";
|
|
2442
2768
|
};
|
|
2443
2769
|
type RestoreSyndicateMemberErrors = {
|
|
2444
2770
|
/**
|
|
@@ -2451,7 +2777,7 @@ type RestoreSyndicateMemberErrors = {
|
|
|
2451
2777
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2452
2778
|
*
|
|
2453
2779
|
*/
|
|
2454
|
-
401:
|
|
2780
|
+
401: Error$1;
|
|
2455
2781
|
/**
|
|
2456
2782
|
* The authenticated user does not have permission to access this resource.
|
|
2457
2783
|
* This typically means:
|
|
@@ -2462,7 +2788,7 @@ type RestoreSyndicateMemberErrors = {
|
|
|
2462
2788
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2463
2789
|
*
|
|
2464
2790
|
*/
|
|
2465
|
-
403:
|
|
2791
|
+
403: Error$1;
|
|
2466
2792
|
};
|
|
2467
2793
|
type RestoreSyndicateMemberError = RestoreSyndicateMemberErrors[keyof RestoreSyndicateMemberErrors];
|
|
2468
2794
|
type RestoreSyndicateMemberResponses = {
|
|
@@ -2485,7 +2811,7 @@ type ResendSyndicateInviteData = {
|
|
|
2485
2811
|
member_id: string;
|
|
2486
2812
|
};
|
|
2487
2813
|
query?: never;
|
|
2488
|
-
url:
|
|
2814
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/resend_invite";
|
|
2489
2815
|
};
|
|
2490
2816
|
type ResendSyndicateInviteErrors = {
|
|
2491
2817
|
/**
|
|
@@ -2498,7 +2824,7 @@ type ResendSyndicateInviteErrors = {
|
|
|
2498
2824
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2499
2825
|
*
|
|
2500
2826
|
*/
|
|
2501
|
-
401:
|
|
2827
|
+
401: Error$1;
|
|
2502
2828
|
/**
|
|
2503
2829
|
* The authenticated user does not have permission to access this resource.
|
|
2504
2830
|
* This typically means:
|
|
@@ -2509,7 +2835,7 @@ type ResendSyndicateInviteErrors = {
|
|
|
2509
2835
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2510
2836
|
*
|
|
2511
2837
|
*/
|
|
2512
|
-
403:
|
|
2838
|
+
403: Error$1;
|
|
2513
2839
|
};
|
|
2514
2840
|
type ResendSyndicateInviteError = ResendSyndicateInviteErrors[keyof ResendSyndicateInviteErrors];
|
|
2515
2841
|
type ResendSyndicateInviteResponses = {
|
|
@@ -2529,7 +2855,7 @@ type ReorderSyndicateMembersData = {
|
|
|
2529
2855
|
syndicate_id: number;
|
|
2530
2856
|
};
|
|
2531
2857
|
query?: never;
|
|
2532
|
-
url:
|
|
2858
|
+
url: "/syndicates/{syndicate_id}/members/reorder";
|
|
2533
2859
|
};
|
|
2534
2860
|
type ReorderSyndicateMembersErrors = {
|
|
2535
2861
|
/**
|
|
@@ -2542,7 +2868,7 @@ type ReorderSyndicateMembersErrors = {
|
|
|
2542
2868
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2543
2869
|
*
|
|
2544
2870
|
*/
|
|
2545
|
-
401:
|
|
2871
|
+
401: Error$1;
|
|
2546
2872
|
/**
|
|
2547
2873
|
* The authenticated user does not have permission to access this resource.
|
|
2548
2874
|
* This typically means:
|
|
@@ -2553,7 +2879,7 @@ type ReorderSyndicateMembersErrors = {
|
|
|
2553
2879
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2554
2880
|
*
|
|
2555
2881
|
*/
|
|
2556
|
-
403:
|
|
2882
|
+
403: Error$1;
|
|
2557
2883
|
};
|
|
2558
2884
|
type ReorderSyndicateMembersError = ReorderSyndicateMembersErrors[keyof ReorderSyndicateMembersErrors];
|
|
2559
2885
|
type ReorderSyndicateMembersResponses = {
|
|
@@ -2571,7 +2897,7 @@ type ExportSyndicateMembersCsvData = {
|
|
|
2571
2897
|
syndicate_id: number;
|
|
2572
2898
|
};
|
|
2573
2899
|
query?: never;
|
|
2574
|
-
url:
|
|
2900
|
+
url: "/syndicates/{syndicate_id}/members/export_csv";
|
|
2575
2901
|
};
|
|
2576
2902
|
type ExportSyndicateMembersCsvErrors = {
|
|
2577
2903
|
/**
|
|
@@ -2584,7 +2910,7 @@ type ExportSyndicateMembersCsvErrors = {
|
|
|
2584
2910
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2585
2911
|
*
|
|
2586
2912
|
*/
|
|
2587
|
-
401:
|
|
2913
|
+
401: Error$1;
|
|
2588
2914
|
/**
|
|
2589
2915
|
* The authenticated user does not have permission to access this resource.
|
|
2590
2916
|
* This typically means:
|
|
@@ -2595,7 +2921,7 @@ type ExportSyndicateMembersCsvErrors = {
|
|
|
2595
2921
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2596
2922
|
*
|
|
2597
2923
|
*/
|
|
2598
|
-
403:
|
|
2924
|
+
403: Error$1;
|
|
2599
2925
|
};
|
|
2600
2926
|
type ExportSyndicateMembersCsvError = ExportSyndicateMembersCsvErrors[keyof ExportSyndicateMembersCsvErrors];
|
|
2601
2927
|
type ExportSyndicateMembersCsvResponses = {
|
|
@@ -2614,7 +2940,7 @@ type ListSyndicateDealsData = {
|
|
|
2614
2940
|
syndicate_id: number;
|
|
2615
2941
|
};
|
|
2616
2942
|
query?: never;
|
|
2617
|
-
url:
|
|
2943
|
+
url: "/syndicates/{syndicate_id}/deals";
|
|
2618
2944
|
};
|
|
2619
2945
|
type ListSyndicateDealsErrors = {
|
|
2620
2946
|
/**
|
|
@@ -2627,7 +2953,7 @@ type ListSyndicateDealsErrors = {
|
|
|
2627
2953
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2628
2954
|
*
|
|
2629
2955
|
*/
|
|
2630
|
-
401:
|
|
2956
|
+
401: Error$1;
|
|
2631
2957
|
/**
|
|
2632
2958
|
* The authenticated user does not have permission to access this resource.
|
|
2633
2959
|
* This typically means:
|
|
@@ -2638,7 +2964,7 @@ type ListSyndicateDealsErrors = {
|
|
|
2638
2964
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2639
2965
|
*
|
|
2640
2966
|
*/
|
|
2641
|
-
403:
|
|
2967
|
+
403: Error$1;
|
|
2642
2968
|
};
|
|
2643
2969
|
type ListSyndicateDealsError = ListSyndicateDealsErrors[keyof ListSyndicateDealsErrors];
|
|
2644
2970
|
type ListSyndicateDealsResponses = {
|
|
@@ -2661,7 +2987,7 @@ type GetSyndicateDealData = {
|
|
|
2661
2987
|
fundraise_id: number;
|
|
2662
2988
|
};
|
|
2663
2989
|
query?: never;
|
|
2664
|
-
url:
|
|
2990
|
+
url: "/syndicates/{syndicate_id}/deals/{fundraise_id}";
|
|
2665
2991
|
};
|
|
2666
2992
|
type GetSyndicateDealErrors = {
|
|
2667
2993
|
/**
|
|
@@ -2674,7 +3000,7 @@ type GetSyndicateDealErrors = {
|
|
|
2674
3000
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2675
3001
|
*
|
|
2676
3002
|
*/
|
|
2677
|
-
401:
|
|
3003
|
+
401: Error$1;
|
|
2678
3004
|
/**
|
|
2679
3005
|
* The authenticated user does not have permission to access this resource.
|
|
2680
3006
|
* This typically means:
|
|
@@ -2685,11 +3011,11 @@ type GetSyndicateDealErrors = {
|
|
|
2685
3011
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2686
3012
|
*
|
|
2687
3013
|
*/
|
|
2688
|
-
403:
|
|
3014
|
+
403: Error$1;
|
|
2689
3015
|
/**
|
|
2690
3016
|
* Deal not found
|
|
2691
3017
|
*/
|
|
2692
|
-
404:
|
|
3018
|
+
404: Error$1;
|
|
2693
3019
|
};
|
|
2694
3020
|
type GetSyndicateDealError = GetSyndicateDealErrors[keyof GetSyndicateDealErrors];
|
|
2695
3021
|
type GetSyndicateDealResponses = {
|
|
@@ -2721,7 +3047,7 @@ type ListSyndicateDealInvestorsData = {
|
|
|
2721
3047
|
*/
|
|
2722
3048
|
limit?: number;
|
|
2723
3049
|
};
|
|
2724
|
-
url:
|
|
3050
|
+
url: "/syndicates/{syndicate_id}/deals/{fundraise_id}/investors";
|
|
2725
3051
|
};
|
|
2726
3052
|
type ListSyndicateDealInvestorsErrors = {
|
|
2727
3053
|
/**
|
|
@@ -2734,7 +3060,7 @@ type ListSyndicateDealInvestorsErrors = {
|
|
|
2734
3060
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2735
3061
|
*
|
|
2736
3062
|
*/
|
|
2737
|
-
401:
|
|
3063
|
+
401: Error$1;
|
|
2738
3064
|
/**
|
|
2739
3065
|
* The authenticated user does not have permission to access this resource.
|
|
2740
3066
|
* This typically means:
|
|
@@ -2745,11 +3071,11 @@ type ListSyndicateDealInvestorsErrors = {
|
|
|
2745
3071
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2746
3072
|
*
|
|
2747
3073
|
*/
|
|
2748
|
-
403:
|
|
3074
|
+
403: Error$1;
|
|
2749
3075
|
/**
|
|
2750
3076
|
* Deal not found
|
|
2751
3077
|
*/
|
|
2752
|
-
404:
|
|
3078
|
+
404: Error$1;
|
|
2753
3079
|
};
|
|
2754
3080
|
type ListSyndicateDealInvestorsError = ListSyndicateDealInvestorsErrors[keyof ListSyndicateDealInvestorsErrors];
|
|
2755
3081
|
type ListSyndicateDealInvestorsResponses = {
|
|
@@ -2772,7 +3098,7 @@ type ListSyndicateMemberInvestmentsData = {
|
|
|
2772
3098
|
member_id: string;
|
|
2773
3099
|
};
|
|
2774
3100
|
query?: never;
|
|
2775
|
-
url:
|
|
3101
|
+
url: "/syndicates/{syndicate_id}/members/{member_id}/investments";
|
|
2776
3102
|
};
|
|
2777
3103
|
type ListSyndicateMemberInvestmentsErrors = {
|
|
2778
3104
|
/**
|
|
@@ -2785,7 +3111,7 @@ type ListSyndicateMemberInvestmentsErrors = {
|
|
|
2785
3111
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2786
3112
|
*
|
|
2787
3113
|
*/
|
|
2788
|
-
401:
|
|
3114
|
+
401: Error$1;
|
|
2789
3115
|
/**
|
|
2790
3116
|
* The authenticated user does not have permission to access this resource.
|
|
2791
3117
|
* This typically means:
|
|
@@ -2796,11 +3122,11 @@ type ListSyndicateMemberInvestmentsErrors = {
|
|
|
2796
3122
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2797
3123
|
*
|
|
2798
3124
|
*/
|
|
2799
|
-
403:
|
|
3125
|
+
403: Error$1;
|
|
2800
3126
|
/**
|
|
2801
3127
|
* Member not found
|
|
2802
3128
|
*/
|
|
2803
|
-
404:
|
|
3129
|
+
404: Error$1;
|
|
2804
3130
|
};
|
|
2805
3131
|
type ListSyndicateMemberInvestmentsError = ListSyndicateMemberInvestmentsErrors[keyof ListSyndicateMemberInvestmentsErrors];
|
|
2806
3132
|
type ListSyndicateMemberInvestmentsResponses = {
|
|
@@ -2819,7 +3145,7 @@ type GetSyndicateStatisticsData = {
|
|
|
2819
3145
|
syndicate_id: number;
|
|
2820
3146
|
};
|
|
2821
3147
|
query?: never;
|
|
2822
|
-
url:
|
|
3148
|
+
url: "/syndicates/{syndicate_id}/statistics";
|
|
2823
3149
|
};
|
|
2824
3150
|
type GetSyndicateStatisticsErrors = {
|
|
2825
3151
|
/**
|
|
@@ -2832,7 +3158,7 @@ type GetSyndicateStatisticsErrors = {
|
|
|
2832
3158
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2833
3159
|
*
|
|
2834
3160
|
*/
|
|
2835
|
-
401:
|
|
3161
|
+
401: Error$1;
|
|
2836
3162
|
/**
|
|
2837
3163
|
* The authenticated user does not have permission to access this resource.
|
|
2838
3164
|
* This typically means:
|
|
@@ -2843,11 +3169,11 @@ type GetSyndicateStatisticsErrors = {
|
|
|
2843
3169
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2844
3170
|
*
|
|
2845
3171
|
*/
|
|
2846
|
-
403:
|
|
3172
|
+
403: Error$1;
|
|
2847
3173
|
/**
|
|
2848
3174
|
* Syndicate not found
|
|
2849
3175
|
*/
|
|
2850
|
-
404:
|
|
3176
|
+
404: Error$1;
|
|
2851
3177
|
};
|
|
2852
3178
|
type GetSyndicateStatisticsError = GetSyndicateStatisticsErrors[keyof GetSyndicateStatisticsErrors];
|
|
2853
3179
|
type GetSyndicateStatisticsResponses = {
|
|
@@ -2870,13 +3196,13 @@ type CloseSyndicateDealData = {
|
|
|
2870
3196
|
fundraise_id: number;
|
|
2871
3197
|
};
|
|
2872
3198
|
query?: never;
|
|
2873
|
-
url:
|
|
3199
|
+
url: "/syndicates/{syndicate_id}/deals/{fundraise_id}/close";
|
|
2874
3200
|
};
|
|
2875
3201
|
type CloseSyndicateDealErrors = {
|
|
2876
3202
|
/**
|
|
2877
3203
|
* Use intents for this action
|
|
2878
3204
|
*/
|
|
2879
|
-
422:
|
|
3205
|
+
422: Error$1;
|
|
2880
3206
|
};
|
|
2881
3207
|
type CloseSyndicateDealError = CloseSyndicateDealErrors[keyof CloseSyndicateDealErrors];
|
|
2882
3208
|
type FinalizeSyndicateDealData = {
|
|
@@ -2892,26 +3218,26 @@ type FinalizeSyndicateDealData = {
|
|
|
2892
3218
|
fundraise_id: number;
|
|
2893
3219
|
};
|
|
2894
3220
|
query?: never;
|
|
2895
|
-
url:
|
|
3221
|
+
url: "/syndicates/{syndicate_id}/deals/{fundraise_id}/finalize";
|
|
2896
3222
|
};
|
|
2897
3223
|
type FinalizeSyndicateDealErrors = {
|
|
2898
3224
|
/**
|
|
2899
3225
|
* Use intents for this action
|
|
2900
3226
|
*/
|
|
2901
|
-
422:
|
|
3227
|
+
422: Error$1;
|
|
2902
3228
|
};
|
|
2903
3229
|
type FinalizeSyndicateDealError = FinalizeSyndicateDealErrors[keyof FinalizeSyndicateDealErrors];
|
|
2904
3230
|
type ListIntentsData = {
|
|
2905
3231
|
body?: never;
|
|
2906
3232
|
path?: never;
|
|
2907
3233
|
query?: {
|
|
2908
|
-
status?:
|
|
3234
|
+
status?: "pending" | "approved" | "executed" | "expired" | "rejected" | "failed";
|
|
2909
3235
|
resource_type?: string;
|
|
2910
3236
|
resource_id?: number;
|
|
2911
3237
|
cursor?: string;
|
|
2912
3238
|
limit?: number;
|
|
2913
3239
|
};
|
|
2914
|
-
url:
|
|
3240
|
+
url: "/intents";
|
|
2915
3241
|
};
|
|
2916
3242
|
type ListIntentsErrors = {
|
|
2917
3243
|
/**
|
|
@@ -2924,7 +3250,7 @@ type ListIntentsErrors = {
|
|
|
2924
3250
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2925
3251
|
*
|
|
2926
3252
|
*/
|
|
2927
|
-
401:
|
|
3253
|
+
401: Error$1;
|
|
2928
3254
|
};
|
|
2929
3255
|
type ListIntentsError = ListIntentsErrors[keyof ListIntentsErrors];
|
|
2930
3256
|
type ListIntentsResponses = {
|
|
@@ -2939,7 +3265,7 @@ type CreateIntentData = {
|
|
|
2939
3265
|
/**
|
|
2940
3266
|
* The action to perform
|
|
2941
3267
|
*/
|
|
2942
|
-
action_name:
|
|
3268
|
+
action_name: "syndicates.close_deal" | "syndicates.finalize_deal" | "syndicates.publish" | "syndicates.remove_member" | "syndicates.delete_draft";
|
|
2943
3269
|
/**
|
|
2944
3270
|
* The model class name of the resource
|
|
2945
3271
|
*/
|
|
@@ -2962,7 +3288,7 @@ type CreateIntentData = {
|
|
|
2962
3288
|
};
|
|
2963
3289
|
path?: never;
|
|
2964
3290
|
query?: never;
|
|
2965
|
-
url:
|
|
3291
|
+
url: "/intents";
|
|
2966
3292
|
};
|
|
2967
3293
|
type CreateIntentErrors = {
|
|
2968
3294
|
/**
|
|
@@ -2975,7 +3301,7 @@ type CreateIntentErrors = {
|
|
|
2975
3301
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
2976
3302
|
*
|
|
2977
3303
|
*/
|
|
2978
|
-
401:
|
|
3304
|
+
401: Error$1;
|
|
2979
3305
|
/**
|
|
2980
3306
|
* The authenticated user does not have permission to access this resource.
|
|
2981
3307
|
* This typically means:
|
|
@@ -2986,7 +3312,7 @@ type CreateIntentErrors = {
|
|
|
2986
3312
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
2987
3313
|
*
|
|
2988
3314
|
*/
|
|
2989
|
-
403:
|
|
3315
|
+
403: Error$1;
|
|
2990
3316
|
/**
|
|
2991
3317
|
* Duplicate idempotency key (returns existing intent)
|
|
2992
3318
|
*/
|
|
@@ -2994,7 +3320,7 @@ type CreateIntentErrors = {
|
|
|
2994
3320
|
/**
|
|
2995
3321
|
* Invalid action or parameters
|
|
2996
3322
|
*/
|
|
2997
|
-
422:
|
|
3323
|
+
422: Error$1;
|
|
2998
3324
|
};
|
|
2999
3325
|
type CreateIntentError = CreateIntentErrors[keyof CreateIntentErrors];
|
|
3000
3326
|
type CreateIntentResponses = {
|
|
@@ -3013,7 +3339,7 @@ type GetIntentData = {
|
|
|
3013
3339
|
intent_id: string;
|
|
3014
3340
|
};
|
|
3015
3341
|
query?: never;
|
|
3016
|
-
url:
|
|
3342
|
+
url: "/intents/{intent_id}";
|
|
3017
3343
|
};
|
|
3018
3344
|
type GetIntentErrors = {
|
|
3019
3345
|
/**
|
|
@@ -3026,11 +3352,11 @@ type GetIntentErrors = {
|
|
|
3026
3352
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3027
3353
|
*
|
|
3028
3354
|
*/
|
|
3029
|
-
401:
|
|
3355
|
+
401: Error$1;
|
|
3030
3356
|
/**
|
|
3031
3357
|
* Intent not found
|
|
3032
3358
|
*/
|
|
3033
|
-
404:
|
|
3359
|
+
404: Error$1;
|
|
3034
3360
|
};
|
|
3035
3361
|
type GetIntentError = GetIntentErrors[keyof GetIntentErrors];
|
|
3036
3362
|
type GetIntentResponses = {
|
|
@@ -3060,13 +3386,13 @@ type ListActivityData = {
|
|
|
3060
3386
|
* Filter by specific resource ID. Must be used with resource_type.
|
|
3061
3387
|
*/
|
|
3062
3388
|
resource_id?: number;
|
|
3063
|
-
status?:
|
|
3389
|
+
status?: "success" | "failure" | "denied";
|
|
3064
3390
|
since?: string;
|
|
3065
3391
|
until?: string;
|
|
3066
3392
|
cursor?: string;
|
|
3067
3393
|
limit?: number;
|
|
3068
3394
|
};
|
|
3069
|
-
url:
|
|
3395
|
+
url: "/activity";
|
|
3070
3396
|
};
|
|
3071
3397
|
type ListActivityErrors = {
|
|
3072
3398
|
/**
|
|
@@ -3079,7 +3405,7 @@ type ListActivityErrors = {
|
|
|
3079
3405
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3080
3406
|
*
|
|
3081
3407
|
*/
|
|
3082
|
-
401:
|
|
3408
|
+
401: Error$1;
|
|
3083
3409
|
};
|
|
3084
3410
|
type ListActivityError = ListActivityErrors[keyof ListActivityErrors];
|
|
3085
3411
|
type ListActivityResponses = {
|
|
@@ -3093,7 +3419,7 @@ type ListConnectedAppsData = {
|
|
|
3093
3419
|
body?: never;
|
|
3094
3420
|
path?: never;
|
|
3095
3421
|
query?: never;
|
|
3096
|
-
url:
|
|
3422
|
+
url: "/connected-apps";
|
|
3097
3423
|
};
|
|
3098
3424
|
type ListConnectedAppsErrors = {
|
|
3099
3425
|
/**
|
|
@@ -3106,7 +3432,7 @@ type ListConnectedAppsErrors = {
|
|
|
3106
3432
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3107
3433
|
*
|
|
3108
3434
|
*/
|
|
3109
|
-
401:
|
|
3435
|
+
401: Error$1;
|
|
3110
3436
|
};
|
|
3111
3437
|
type ListConnectedAppsError = ListConnectedAppsErrors[keyof ListConnectedAppsErrors];
|
|
3112
3438
|
type ListConnectedAppsResponses = {
|
|
@@ -3122,7 +3448,7 @@ type RevokeConnectedAppData = {
|
|
|
3122
3448
|
app_id: number;
|
|
3123
3449
|
};
|
|
3124
3450
|
query?: never;
|
|
3125
|
-
url:
|
|
3451
|
+
url: "/connected-apps/{app_id}";
|
|
3126
3452
|
};
|
|
3127
3453
|
type RevokeConnectedAppErrors = {
|
|
3128
3454
|
/**
|
|
@@ -3135,11 +3461,11 @@ type RevokeConnectedAppErrors = {
|
|
|
3135
3461
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3136
3462
|
*
|
|
3137
3463
|
*/
|
|
3138
|
-
401:
|
|
3464
|
+
401: Error$1;
|
|
3139
3465
|
/**
|
|
3140
3466
|
* App not found
|
|
3141
3467
|
*/
|
|
3142
|
-
404:
|
|
3468
|
+
404: Error$1;
|
|
3143
3469
|
};
|
|
3144
3470
|
type RevokeConnectedAppError = RevokeConnectedAppErrors[keyof RevokeConnectedAppErrors];
|
|
3145
3471
|
type RevokeConnectedAppResponses = {
|
|
@@ -3179,7 +3505,7 @@ type GetAttributionStatsData = {
|
|
|
3179
3505
|
*/
|
|
3180
3506
|
utm_campaign?: string;
|
|
3181
3507
|
};
|
|
3182
|
-
url:
|
|
3508
|
+
url: "/campaigns/{campaign_id}/attribution/stats";
|
|
3183
3509
|
};
|
|
3184
3510
|
type GetAttributionStatsErrors = {
|
|
3185
3511
|
/**
|
|
@@ -3192,7 +3518,7 @@ type GetAttributionStatsErrors = {
|
|
|
3192
3518
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3193
3519
|
*
|
|
3194
3520
|
*/
|
|
3195
|
-
401:
|
|
3521
|
+
401: Error$1;
|
|
3196
3522
|
/**
|
|
3197
3523
|
* The authenticated user does not have permission to access this resource.
|
|
3198
3524
|
* This typically means:
|
|
@@ -3203,7 +3529,7 @@ type GetAttributionStatsErrors = {
|
|
|
3203
3529
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3204
3530
|
*
|
|
3205
3531
|
*/
|
|
3206
|
-
403:
|
|
3532
|
+
403: Error$1;
|
|
3207
3533
|
/**
|
|
3208
3534
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
3209
3535
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -3213,7 +3539,7 @@ type GetAttributionStatsErrors = {
|
|
|
3213
3539
|
* Consider implementing exponential backoff in your application.
|
|
3214
3540
|
*
|
|
3215
3541
|
*/
|
|
3216
|
-
429:
|
|
3542
|
+
429: Error$1;
|
|
3217
3543
|
};
|
|
3218
3544
|
type GetAttributionStatsError = GetAttributionStatsErrors[keyof GetAttributionStatsErrors];
|
|
3219
3545
|
type GetAttributionStatsResponses = {
|
|
@@ -3267,9 +3593,9 @@ type ListAttributedInvestmentsData = {
|
|
|
3267
3593
|
* Marketing partners always receive anonymized data regardless of this parameter.
|
|
3268
3594
|
*
|
|
3269
3595
|
*/
|
|
3270
|
-
detail_level?:
|
|
3596
|
+
detail_level?: "anonymized" | "full";
|
|
3271
3597
|
};
|
|
3272
|
-
url:
|
|
3598
|
+
url: "/campaigns/{campaign_id}/attribution/investments";
|
|
3273
3599
|
};
|
|
3274
3600
|
type ListAttributedInvestmentsErrors = {
|
|
3275
3601
|
/**
|
|
@@ -3282,7 +3608,7 @@ type ListAttributedInvestmentsErrors = {
|
|
|
3282
3608
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3283
3609
|
*
|
|
3284
3610
|
*/
|
|
3285
|
-
401:
|
|
3611
|
+
401: Error$1;
|
|
3286
3612
|
/**
|
|
3287
3613
|
* Access denied. This typically means:
|
|
3288
3614
|
* - Your OAuth application hasn't been approved for Tier 1 access
|
|
@@ -3291,7 +3617,7 @@ type ListAttributedInvestmentsErrors = {
|
|
|
3291
3617
|
* To request Tier 1 access, visit https://wefunder.com/api/request-access
|
|
3292
3618
|
*
|
|
3293
3619
|
*/
|
|
3294
|
-
403:
|
|
3620
|
+
403: Error$1;
|
|
3295
3621
|
/**
|
|
3296
3622
|
* Too many requests in a short time period. The API enforces rate limits to ensure
|
|
3297
3623
|
* fair usage and system stability. When you exceed the limit, you'll receive this
|
|
@@ -3301,7 +3627,7 @@ type ListAttributedInvestmentsErrors = {
|
|
|
3301
3627
|
* Consider implementing exponential backoff in your application.
|
|
3302
3628
|
*
|
|
3303
3629
|
*/
|
|
3304
|
-
429:
|
|
3630
|
+
429: Error$1;
|
|
3305
3631
|
};
|
|
3306
3632
|
type ListAttributedInvestmentsError = ListAttributedInvestmentsErrors[keyof ListAttributedInvestmentsErrors];
|
|
3307
3633
|
type ListAttributedInvestmentsResponses = {
|
|
@@ -3320,7 +3646,7 @@ type ListWebhookSubscriptionsData = {
|
|
|
3320
3646
|
campaign_id: number;
|
|
3321
3647
|
};
|
|
3322
3648
|
query?: never;
|
|
3323
|
-
url:
|
|
3649
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks";
|
|
3324
3650
|
};
|
|
3325
3651
|
type ListWebhookSubscriptionsErrors = {
|
|
3326
3652
|
/**
|
|
@@ -3333,7 +3659,7 @@ type ListWebhookSubscriptionsErrors = {
|
|
|
3333
3659
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3334
3660
|
*
|
|
3335
3661
|
*/
|
|
3336
|
-
401:
|
|
3662
|
+
401: Error$1;
|
|
3337
3663
|
/**
|
|
3338
3664
|
* The authenticated user does not have permission to access this resource.
|
|
3339
3665
|
* This typically means:
|
|
@@ -3344,7 +3670,7 @@ type ListWebhookSubscriptionsErrors = {
|
|
|
3344
3670
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3345
3671
|
*
|
|
3346
3672
|
*/
|
|
3347
|
-
403:
|
|
3673
|
+
403: Error$1;
|
|
3348
3674
|
};
|
|
3349
3675
|
type ListWebhookSubscriptionsError = ListWebhookSubscriptionsErrors[keyof ListWebhookSubscriptionsErrors];
|
|
3350
3676
|
type ListWebhookSubscriptionsResponses = {
|
|
@@ -3363,7 +3689,7 @@ type CreateWebhookSubscriptionData = {
|
|
|
3363
3689
|
/**
|
|
3364
3690
|
* Events to subscribe to
|
|
3365
3691
|
*/
|
|
3366
|
-
events: Array<
|
|
3692
|
+
events: Array<"investment.applied" | "investment.confirmed" | "investment.canceled">;
|
|
3367
3693
|
};
|
|
3368
3694
|
path: {
|
|
3369
3695
|
/**
|
|
@@ -3372,7 +3698,7 @@ type CreateWebhookSubscriptionData = {
|
|
|
3372
3698
|
campaign_id: number;
|
|
3373
3699
|
};
|
|
3374
3700
|
query?: never;
|
|
3375
|
-
url:
|
|
3701
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks";
|
|
3376
3702
|
};
|
|
3377
3703
|
type CreateWebhookSubscriptionErrors = {
|
|
3378
3704
|
/**
|
|
@@ -3385,7 +3711,7 @@ type CreateWebhookSubscriptionErrors = {
|
|
|
3385
3711
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3386
3712
|
*
|
|
3387
3713
|
*/
|
|
3388
|
-
401:
|
|
3714
|
+
401: Error$1;
|
|
3389
3715
|
/**
|
|
3390
3716
|
* The authenticated user does not have permission to access this resource.
|
|
3391
3717
|
* This typically means:
|
|
@@ -3396,11 +3722,11 @@ type CreateWebhookSubscriptionErrors = {
|
|
|
3396
3722
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3397
3723
|
*
|
|
3398
3724
|
*/
|
|
3399
|
-
403:
|
|
3725
|
+
403: Error$1;
|
|
3400
3726
|
/**
|
|
3401
3727
|
* Validation error (invalid URL, events, or limit reached)
|
|
3402
3728
|
*/
|
|
3403
|
-
422:
|
|
3729
|
+
422: Error$1;
|
|
3404
3730
|
};
|
|
3405
3731
|
type CreateWebhookSubscriptionError = CreateWebhookSubscriptionErrors[keyof CreateWebhookSubscriptionErrors];
|
|
3406
3732
|
type CreateWebhookSubscriptionResponses = {
|
|
@@ -3423,7 +3749,7 @@ type DeleteWebhookSubscriptionData = {
|
|
|
3423
3749
|
webhook_id: number;
|
|
3424
3750
|
};
|
|
3425
3751
|
query?: never;
|
|
3426
|
-
url:
|
|
3752
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks/{webhook_id}";
|
|
3427
3753
|
};
|
|
3428
3754
|
type DeleteWebhookSubscriptionErrors = {
|
|
3429
3755
|
/**
|
|
@@ -3436,7 +3762,7 @@ type DeleteWebhookSubscriptionErrors = {
|
|
|
3436
3762
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3437
3763
|
*
|
|
3438
3764
|
*/
|
|
3439
|
-
401:
|
|
3765
|
+
401: Error$1;
|
|
3440
3766
|
/**
|
|
3441
3767
|
* The authenticated user does not have permission to access this resource.
|
|
3442
3768
|
* This typically means:
|
|
@@ -3447,11 +3773,11 @@ type DeleteWebhookSubscriptionErrors = {
|
|
|
3447
3773
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3448
3774
|
*
|
|
3449
3775
|
*/
|
|
3450
|
-
403:
|
|
3776
|
+
403: Error$1;
|
|
3451
3777
|
/**
|
|
3452
3778
|
* Subscription not found
|
|
3453
3779
|
*/
|
|
3454
|
-
404:
|
|
3780
|
+
404: Error$1;
|
|
3455
3781
|
};
|
|
3456
3782
|
type DeleteWebhookSubscriptionError = DeleteWebhookSubscriptionErrors[keyof DeleteWebhookSubscriptionErrors];
|
|
3457
3783
|
type DeleteWebhookSubscriptionResponses = {
|
|
@@ -3474,7 +3800,7 @@ type GetWebhookSubscriptionData = {
|
|
|
3474
3800
|
webhook_id: number;
|
|
3475
3801
|
};
|
|
3476
3802
|
query?: never;
|
|
3477
|
-
url:
|
|
3803
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks/{webhook_id}";
|
|
3478
3804
|
};
|
|
3479
3805
|
type GetWebhookSubscriptionErrors = {
|
|
3480
3806
|
/**
|
|
@@ -3487,7 +3813,7 @@ type GetWebhookSubscriptionErrors = {
|
|
|
3487
3813
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3488
3814
|
*
|
|
3489
3815
|
*/
|
|
3490
|
-
401:
|
|
3816
|
+
401: Error$1;
|
|
3491
3817
|
/**
|
|
3492
3818
|
* The authenticated user does not have permission to access this resource.
|
|
3493
3819
|
* This typically means:
|
|
@@ -3498,11 +3824,11 @@ type GetWebhookSubscriptionErrors = {
|
|
|
3498
3824
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3499
3825
|
*
|
|
3500
3826
|
*/
|
|
3501
|
-
403:
|
|
3827
|
+
403: Error$1;
|
|
3502
3828
|
/**
|
|
3503
3829
|
* Subscription not found
|
|
3504
3830
|
*/
|
|
3505
|
-
404:
|
|
3831
|
+
404: Error$1;
|
|
3506
3832
|
};
|
|
3507
3833
|
type GetWebhookSubscriptionError = GetWebhookSubscriptionErrors[keyof GetWebhookSubscriptionErrors];
|
|
3508
3834
|
type GetWebhookSubscriptionResponses = {
|
|
@@ -3525,7 +3851,7 @@ type TestWebhookSubscriptionData = {
|
|
|
3525
3851
|
webhook_id: number;
|
|
3526
3852
|
};
|
|
3527
3853
|
query?: never;
|
|
3528
|
-
url:
|
|
3854
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks/{webhook_id}/test";
|
|
3529
3855
|
};
|
|
3530
3856
|
type TestWebhookSubscriptionErrors = {
|
|
3531
3857
|
/**
|
|
@@ -3538,7 +3864,7 @@ type TestWebhookSubscriptionErrors = {
|
|
|
3538
3864
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3539
3865
|
*
|
|
3540
3866
|
*/
|
|
3541
|
-
401:
|
|
3867
|
+
401: Error$1;
|
|
3542
3868
|
/**
|
|
3543
3869
|
* The authenticated user does not have permission to access this resource.
|
|
3544
3870
|
* This typically means:
|
|
@@ -3549,15 +3875,15 @@ type TestWebhookSubscriptionErrors = {
|
|
|
3549
3875
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3550
3876
|
*
|
|
3551
3877
|
*/
|
|
3552
|
-
403:
|
|
3878
|
+
403: Error$1;
|
|
3553
3879
|
/**
|
|
3554
3880
|
* Subscription not found
|
|
3555
3881
|
*/
|
|
3556
|
-
404:
|
|
3882
|
+
404: Error$1;
|
|
3557
3883
|
/**
|
|
3558
3884
|
* Subscription is inactive
|
|
3559
3885
|
*/
|
|
3560
|
-
422:
|
|
3886
|
+
422: Error$1;
|
|
3561
3887
|
};
|
|
3562
3888
|
type TestWebhookSubscriptionError = TestWebhookSubscriptionErrors[keyof TestWebhookSubscriptionErrors];
|
|
3563
3889
|
type TestWebhookSubscriptionResponses = {
|
|
@@ -3580,7 +3906,7 @@ type RegenerateWebhookSecretData = {
|
|
|
3580
3906
|
webhook_id: number;
|
|
3581
3907
|
};
|
|
3582
3908
|
query?: never;
|
|
3583
|
-
url:
|
|
3909
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks/{webhook_id}/regenerate_secret";
|
|
3584
3910
|
};
|
|
3585
3911
|
type RegenerateWebhookSecretErrors = {
|
|
3586
3912
|
/**
|
|
@@ -3593,7 +3919,7 @@ type RegenerateWebhookSecretErrors = {
|
|
|
3593
3919
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3594
3920
|
*
|
|
3595
3921
|
*/
|
|
3596
|
-
401:
|
|
3922
|
+
401: Error$1;
|
|
3597
3923
|
/**
|
|
3598
3924
|
* The authenticated user does not have permission to access this resource.
|
|
3599
3925
|
* This typically means:
|
|
@@ -3604,11 +3930,11 @@ type RegenerateWebhookSecretErrors = {
|
|
|
3604
3930
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3605
3931
|
*
|
|
3606
3932
|
*/
|
|
3607
|
-
403:
|
|
3933
|
+
403: Error$1;
|
|
3608
3934
|
/**
|
|
3609
3935
|
* Subscription not found
|
|
3610
3936
|
*/
|
|
3611
|
-
404:
|
|
3937
|
+
404: Error$1;
|
|
3612
3938
|
};
|
|
3613
3939
|
type RegenerateWebhookSecretError = RegenerateWebhookSecretErrors[keyof RegenerateWebhookSecretErrors];
|
|
3614
3940
|
type RegenerateWebhookSecretResponses = {
|
|
@@ -3631,7 +3957,7 @@ type ReactivateWebhookSubscriptionData = {
|
|
|
3631
3957
|
webhook_id: number;
|
|
3632
3958
|
};
|
|
3633
3959
|
query?: never;
|
|
3634
|
-
url:
|
|
3960
|
+
url: "/campaigns/{campaign_id}/attribution/webhooks/{webhook_id}/reactivate";
|
|
3635
3961
|
};
|
|
3636
3962
|
type ReactivateWebhookSubscriptionErrors = {
|
|
3637
3963
|
/**
|
|
@@ -3644,7 +3970,7 @@ type ReactivateWebhookSubscriptionErrors = {
|
|
|
3644
3970
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3645
3971
|
*
|
|
3646
3972
|
*/
|
|
3647
|
-
401:
|
|
3973
|
+
401: Error$1;
|
|
3648
3974
|
/**
|
|
3649
3975
|
* The authenticated user does not have permission to access this resource.
|
|
3650
3976
|
* This typically means:
|
|
@@ -3655,15 +3981,15 @@ type ReactivateWebhookSubscriptionErrors = {
|
|
|
3655
3981
|
* Check that your OAuth token includes the necessary scopes for this endpoint.
|
|
3656
3982
|
*
|
|
3657
3983
|
*/
|
|
3658
|
-
403:
|
|
3984
|
+
403: Error$1;
|
|
3659
3985
|
/**
|
|
3660
3986
|
* Subscription not found
|
|
3661
3987
|
*/
|
|
3662
|
-
404:
|
|
3988
|
+
404: Error$1;
|
|
3663
3989
|
/**
|
|
3664
3990
|
* Webhook is already active
|
|
3665
3991
|
*/
|
|
3666
|
-
422:
|
|
3992
|
+
422: Error$1;
|
|
3667
3993
|
};
|
|
3668
3994
|
type ReactivateWebhookSubscriptionError = ReactivateWebhookSubscriptionErrors[keyof ReactivateWebhookSubscriptionErrors];
|
|
3669
3995
|
type ReactivateWebhookSubscriptionResponses = {
|
|
@@ -3677,7 +4003,7 @@ type GetAttributionMeData = {
|
|
|
3677
4003
|
body?: never;
|
|
3678
4004
|
path?: never;
|
|
3679
4005
|
query?: never;
|
|
3680
|
-
url:
|
|
4006
|
+
url: "/attribution/me";
|
|
3681
4007
|
};
|
|
3682
4008
|
type GetAttributionMeErrors = {
|
|
3683
4009
|
/**
|
|
@@ -3690,7 +4016,7 @@ type GetAttributionMeErrors = {
|
|
|
3690
4016
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3691
4017
|
*
|
|
3692
4018
|
*/
|
|
3693
|
-
401:
|
|
4019
|
+
401: Error$1;
|
|
3694
4020
|
};
|
|
3695
4021
|
type GetAttributionMeError = GetAttributionMeErrors[keyof GetAttributionMeErrors];
|
|
3696
4022
|
type GetAttributionMeResponses = {
|
|
@@ -3704,7 +4030,7 @@ type ListAttributionCampaignsData = {
|
|
|
3704
4030
|
body?: never;
|
|
3705
4031
|
path?: never;
|
|
3706
4032
|
query?: never;
|
|
3707
|
-
url:
|
|
4033
|
+
url: "/attribution/campaigns";
|
|
3708
4034
|
};
|
|
3709
4035
|
type ListAttributionCampaignsErrors = {
|
|
3710
4036
|
/**
|
|
@@ -3717,7 +4043,7 @@ type ListAttributionCampaignsErrors = {
|
|
|
3717
4043
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3718
4044
|
*
|
|
3719
4045
|
*/
|
|
3720
|
-
401:
|
|
4046
|
+
401: Error$1;
|
|
3721
4047
|
};
|
|
3722
4048
|
type ListAttributionCampaignsError = ListAttributionCampaignsErrors[keyof ListAttributionCampaignsErrors];
|
|
3723
4049
|
type ListAttributionCampaignsResponses = {
|
|
@@ -3740,7 +4066,7 @@ type RegisterAsPartnerData = {
|
|
|
3740
4066
|
};
|
|
3741
4067
|
path?: never;
|
|
3742
4068
|
query?: never;
|
|
3743
|
-
url:
|
|
4069
|
+
url: "/attribution/partners/register";
|
|
3744
4070
|
};
|
|
3745
4071
|
type RegisterAsPartnerErrors = {
|
|
3746
4072
|
/**
|
|
@@ -3753,11 +4079,11 @@ type RegisterAsPartnerErrors = {
|
|
|
3753
4079
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3754
4080
|
*
|
|
3755
4081
|
*/
|
|
3756
|
-
401:
|
|
4082
|
+
401: Error$1;
|
|
3757
4083
|
/**
|
|
3758
4084
|
* Already registered or validation error
|
|
3759
4085
|
*/
|
|
3760
|
-
422:
|
|
4086
|
+
422: Error$1;
|
|
3761
4087
|
};
|
|
3762
4088
|
type RegisterAsPartnerError = RegisterAsPartnerErrors[keyof RegisterAsPartnerErrors];
|
|
3763
4089
|
type RegisterAsPartnerResponses = {
|
|
@@ -3771,7 +4097,7 @@ type ListPartnerInvitesData = {
|
|
|
3771
4097
|
body?: never;
|
|
3772
4098
|
path?: never;
|
|
3773
4099
|
query?: never;
|
|
3774
|
-
url:
|
|
4100
|
+
url: "/attribution/invites";
|
|
3775
4101
|
};
|
|
3776
4102
|
type ListPartnerInvitesErrors = {
|
|
3777
4103
|
/**
|
|
@@ -3784,7 +4110,7 @@ type ListPartnerInvitesErrors = {
|
|
|
3784
4110
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3785
4111
|
*
|
|
3786
4112
|
*/
|
|
3787
|
-
401:
|
|
4113
|
+
401: Error$1;
|
|
3788
4114
|
};
|
|
3789
4115
|
type ListPartnerInvitesError = ListPartnerInvitesErrors[keyof ListPartnerInvitesErrors];
|
|
3790
4116
|
type ListPartnerInvitesResponses = {
|
|
@@ -3796,7 +4122,7 @@ type ListPartnerInvitesResponses = {
|
|
|
3796
4122
|
type ListPartnerInvitesResponse = ListPartnerInvitesResponses[keyof ListPartnerInvitesResponses];
|
|
3797
4123
|
type CreatePartnerInviteData = {
|
|
3798
4124
|
body: {
|
|
3799
|
-
direction:
|
|
4125
|
+
direction: "partner_to_founder" | "founder_to_partner";
|
|
3800
4126
|
/**
|
|
3801
4127
|
* Required for founder_to_partner direction
|
|
3802
4128
|
*/
|
|
@@ -3812,7 +4138,7 @@ type CreatePartnerInviteData = {
|
|
|
3812
4138
|
};
|
|
3813
4139
|
path?: never;
|
|
3814
4140
|
query?: never;
|
|
3815
|
-
url:
|
|
4141
|
+
url: "/attribution/invites";
|
|
3816
4142
|
};
|
|
3817
4143
|
type CreatePartnerInviteErrors = {
|
|
3818
4144
|
/**
|
|
@@ -3825,15 +4151,15 @@ type CreatePartnerInviteErrors = {
|
|
|
3825
4151
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3826
4152
|
*
|
|
3827
4153
|
*/
|
|
3828
|
-
401:
|
|
4154
|
+
401: Error$1;
|
|
3829
4155
|
/**
|
|
3830
4156
|
* Not authorized to create this invite
|
|
3831
4157
|
*/
|
|
3832
|
-
403:
|
|
4158
|
+
403: Error$1;
|
|
3833
4159
|
/**
|
|
3834
4160
|
* Validation error
|
|
3835
4161
|
*/
|
|
3836
|
-
422:
|
|
4162
|
+
422: Error$1;
|
|
3837
4163
|
};
|
|
3838
4164
|
type CreatePartnerInviteError = CreatePartnerInviteErrors[keyof CreatePartnerInviteErrors];
|
|
3839
4165
|
type CreatePartnerInviteResponses = {
|
|
@@ -3852,7 +4178,7 @@ type RevokePartnerInviteData = {
|
|
|
3852
4178
|
token: string;
|
|
3853
4179
|
};
|
|
3854
4180
|
query?: never;
|
|
3855
|
-
url:
|
|
4181
|
+
url: "/attribution/invites/{token}";
|
|
3856
4182
|
};
|
|
3857
4183
|
type RevokePartnerInviteErrors = {
|
|
3858
4184
|
/**
|
|
@@ -3865,15 +4191,15 @@ type RevokePartnerInviteErrors = {
|
|
|
3865
4191
|
* To resolve: Obtain a new access token using the OAuth 2.0 flow.
|
|
3866
4192
|
*
|
|
3867
4193
|
*/
|
|
3868
|
-
401:
|
|
4194
|
+
401: Error$1;
|
|
3869
4195
|
/**
|
|
3870
4196
|
* Not authorized to revoke this invite
|
|
3871
4197
|
*/
|
|
3872
|
-
403:
|
|
4198
|
+
403: Error$1;
|
|
3873
4199
|
/**
|
|
3874
4200
|
* Invite not found
|
|
3875
4201
|
*/
|
|
3876
|
-
404:
|
|
4202
|
+
404: Error$1;
|
|
3877
4203
|
};
|
|
3878
4204
|
type RevokePartnerInviteError = RevokePartnerInviteErrors[keyof RevokePartnerInviteErrors];
|
|
3879
4205
|
type RevokePartnerInviteResponses = {
|
|
@@ -3883,11 +4209,8 @@ type RevokePartnerInviteResponses = {
|
|
|
3883
4209
|
204: void;
|
|
3884
4210
|
};
|
|
3885
4211
|
type RevokePartnerInviteResponse = RevokePartnerInviteResponses[keyof RevokePartnerInviteResponses];
|
|
3886
|
-
type ClientOptions = {
|
|
3887
|
-
baseUrl: 'https://{environment}.wefunder.com/api/v2' | (string & {});
|
|
3888
|
-
};
|
|
3889
4212
|
|
|
3890
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
4213
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
3891
4214
|
/**
|
|
3892
4215
|
* You can provide a client instance returned by `createClient()` instead of
|
|
3893
4216
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -3898,10 +4221,11 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
3898
4221
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
3899
4222
|
* used to access values that aren't defined as part of the SDK function.
|
|
3900
4223
|
*/
|
|
3901
|
-
meta?: Record<string, unknown
|
|
4224
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
3902
4225
|
};
|
|
3903
4226
|
/**
|
|
3904
4227
|
* List public offerings
|
|
4228
|
+
*
|
|
3905
4229
|
* Returns the offerings shown on wefunder.com/explore — the curated set of companies that
|
|
3906
4230
|
* meet Wefunder's discoverability bar (a soft-confirmed traction threshold plus approval),
|
|
3907
4231
|
* **one offering per company**. An "offering" is a fundraise, addressed by its `ofr_`
|
|
@@ -3920,18 +4244,20 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
3920
4244
|
* - Build deal aggregators and public listings
|
|
3921
4245
|
*
|
|
3922
4246
|
*/
|
|
3923
|
-
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) =>
|
|
4247
|
+
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => RequestResult<ListOfferingsResponses, ListOfferingsErrors, ThrowOnError>;
|
|
3924
4248
|
/**
|
|
3925
4249
|
* Get a public offering
|
|
4250
|
+
*
|
|
3926
4251
|
* Retrieves a single public offering by its `ofr_` external id.
|
|
3927
4252
|
*
|
|
3928
4253
|
* A valid id for a non-public offering (e.g. a private Reg D 506(b) round) returns `404` —
|
|
3929
4254
|
* having an id does not make an offering publicly resolvable.
|
|
3930
4255
|
*
|
|
3931
4256
|
*/
|
|
3932
|
-
declare const getOffering: <ThrowOnError extends boolean = false>(options: Options<GetOfferingData, ThrowOnError>) =>
|
|
4257
|
+
declare const getOffering: <ThrowOnError extends boolean = false>(options: Options<GetOfferingData, ThrowOnError>) => RequestResult<GetOfferingResponses, GetOfferingErrors, ThrowOnError>;
|
|
3933
4258
|
/**
|
|
3934
4259
|
* Get current user profile
|
|
4260
|
+
*
|
|
3935
4261
|
* Retrieves the profile information for the currently authenticated user. This endpoint returns
|
|
3936
4262
|
* basic user details including name, email, and account status.
|
|
3937
4263
|
*
|
|
@@ -3943,9 +4269,10 @@ declare const getOffering: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
3943
4269
|
* The response includes the user's unique ID which can be used to reference the user in other API calls.
|
|
3944
4270
|
*
|
|
3945
4271
|
*/
|
|
3946
|
-
declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) =>
|
|
4272
|
+
declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError>;
|
|
3947
4273
|
/**
|
|
3948
4274
|
* List user investments
|
|
4275
|
+
*
|
|
3949
4276
|
* Retrieves a paginated list of all investments made by the authenticated user. Each investment
|
|
3950
4277
|
* includes details about the amount invested, the company, investment date, and current status.
|
|
3951
4278
|
*
|
|
@@ -3959,9 +4286,10 @@ declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: O
|
|
|
3959
4286
|
* campaign details and current valuation information.
|
|
3960
4287
|
*
|
|
3961
4288
|
*/
|
|
3962
|
-
declare const listInvestments: <ThrowOnError extends boolean = false>(options?: Options<ListInvestmentsData, ThrowOnError>) =>
|
|
4289
|
+
declare const listInvestments: <ThrowOnError extends boolean = false>(options?: Options<ListInvestmentsData, ThrowOnError>) => RequestResult<ListInvestmentsResponses, ListInvestmentsErrors, ThrowOnError>;
|
|
3963
4290
|
/**
|
|
3964
4291
|
* List founder campaigns
|
|
4292
|
+
*
|
|
3965
4293
|
* Retrieves all fundraising campaigns for companies where the authenticated user is a founder.
|
|
3966
4294
|
* This endpoint returns comprehensive campaign data including funding progress, investor counts,
|
|
3967
4295
|
* and campaign status.
|
|
@@ -3976,104 +4304,121 @@ declare const listInvestments: <ThrowOnError extends boolean = false>(options?:
|
|
|
3976
4304
|
* both active and closed campaigns, with detailed metrics for each.
|
|
3977
4305
|
*
|
|
3978
4306
|
*/
|
|
3979
|
-
declare const listCampaigns: <ThrowOnError extends boolean = false>(options?: Options<ListCampaignsData, ThrowOnError>) =>
|
|
4307
|
+
declare const listCampaigns: <ThrowOnError extends boolean = false>(options?: Options<ListCampaignsData, ThrowOnError>) => RequestResult<ListCampaignsResponses, ListCampaignsErrors, ThrowOnError>;
|
|
3980
4308
|
/**
|
|
3981
4309
|
* List syndicates
|
|
4310
|
+
*
|
|
3982
4311
|
* Returns syndicates the authenticated user can manage, based on their roles.
|
|
3983
4312
|
* Results can be filtered by status and sorted by name or creation date.
|
|
3984
4313
|
*
|
|
3985
4314
|
*/
|
|
3986
|
-
declare const listSyndicates: <ThrowOnError extends boolean = false>(options?: Options<ListSyndicatesData, ThrowOnError>) =>
|
|
4315
|
+
declare const listSyndicates: <ThrowOnError extends boolean = false>(options?: Options<ListSyndicatesData, ThrowOnError>) => RequestResult<ListSyndicatesResponses, ListSyndicatesErrors, ThrowOnError>;
|
|
3987
4316
|
/**
|
|
3988
4317
|
* Get syndicate details
|
|
4318
|
+
*
|
|
3989
4319
|
* Returns full details for a specific syndicate including settings, team configuration, and summary metrics.
|
|
3990
4320
|
*/
|
|
3991
|
-
declare const getSyndicate: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateData, ThrowOnError>) =>
|
|
4321
|
+
declare const getSyndicate: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateData, ThrowOnError>) => RequestResult<GetSyndicateResponses, GetSyndicateErrors, ThrowOnError>;
|
|
3992
4322
|
/**
|
|
3993
4323
|
* Update syndicate settings
|
|
4324
|
+
*
|
|
3994
4325
|
* Update syndicate configuration. Currently supports name, description, and tagline.
|
|
3995
4326
|
* Requires `write:syndicates` scope and at least operator permission.
|
|
3996
4327
|
*
|
|
3997
4328
|
*/
|
|
3998
|
-
declare const updateSyndicate: <ThrowOnError extends boolean = false>(options: Options<UpdateSyndicateData, ThrowOnError>) =>
|
|
4329
|
+
declare const updateSyndicate: <ThrowOnError extends boolean = false>(options: Options<UpdateSyndicateData, ThrowOnError>) => RequestResult<UpdateSyndicateResponses, UpdateSyndicateErrors, ThrowOnError>;
|
|
3999
4330
|
/**
|
|
4000
4331
|
* List members
|
|
4332
|
+
*
|
|
4001
4333
|
* Returns the member directory for a syndicate with role, status, tags, sidebar notes,
|
|
4002
4334
|
* and investment history summaries. Supports filtering, sorting, search, and pagination.
|
|
4003
4335
|
*
|
|
4004
4336
|
*/
|
|
4005
|
-
declare const listSyndicateMembers: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateMembersData, ThrowOnError>) =>
|
|
4337
|
+
declare const listSyndicateMembers: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateMembersData, ThrowOnError>) => RequestResult<ListSyndicateMembersResponses, ListSyndicateMembersErrors, ThrowOnError>;
|
|
4006
4338
|
/**
|
|
4007
4339
|
* Invite member
|
|
4340
|
+
*
|
|
4008
4341
|
* Send an invitation to join the syndicate by email.
|
|
4009
4342
|
*/
|
|
4010
|
-
declare const inviteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<InviteSyndicateMemberData, ThrowOnError>) =>
|
|
4343
|
+
declare const inviteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<InviteSyndicateMemberData, ThrowOnError>) => RequestResult<InviteSyndicateMemberResponses, InviteSyndicateMemberErrors, ThrowOnError>;
|
|
4011
4344
|
/**
|
|
4012
4345
|
* Remove member (requires intent)
|
|
4346
|
+
*
|
|
4013
4347
|
* Removing a member is irreversible and requires human approval through the Intent system.
|
|
4014
4348
|
* This endpoint always returns 422 with a `use_intents` error directing you to
|
|
4015
4349
|
* `POST /v2/intents` with action `syndicates.remove_member`.
|
|
4016
4350
|
*
|
|
4017
4351
|
*/
|
|
4018
|
-
declare const removeSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<RemoveSyndicateMemberData, ThrowOnError>) =>
|
|
4352
|
+
declare const removeSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<RemoveSyndicateMemberData, ThrowOnError>) => RequestResult<unknown, RemoveSyndicateMemberErrors, ThrowOnError>;
|
|
4019
4353
|
/**
|
|
4020
4354
|
* Update member
|
|
4355
|
+
*
|
|
4021
4356
|
* Update title and carry override for a member. Requires operator permission.
|
|
4022
4357
|
*/
|
|
4023
|
-
declare const updateSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<UpdateSyndicateMemberData, ThrowOnError>) =>
|
|
4358
|
+
declare const updateSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<UpdateSyndicateMemberData, ThrowOnError>) => RequestResult<UpdateSyndicateMemberResponses, UpdateSyndicateMemberErrors, ThrowOnError>;
|
|
4024
4359
|
/**
|
|
4025
4360
|
* Approve applicant
|
|
4361
|
+
*
|
|
4026
4362
|
* Approve a pending applicant. Only applicants can be approved via API; invitees must accept their invite link.
|
|
4027
4363
|
*/
|
|
4028
|
-
declare const approveSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<ApproveSyndicateMemberData, ThrowOnError>) =>
|
|
4364
|
+
declare const approveSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<ApproveSyndicateMemberData, ThrowOnError>) => RequestResult<ApproveSyndicateMemberResponses, ApproveSyndicateMemberErrors, ThrowOnError>;
|
|
4029
4365
|
/**
|
|
4030
4366
|
* Exile member
|
|
4367
|
+
*
|
|
4031
4368
|
* Exile (hide) a member from the syndicate. Sets their role to exiled.
|
|
4032
4369
|
*/
|
|
4033
|
-
declare const hideSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<HideSyndicateMemberData, ThrowOnError>) =>
|
|
4370
|
+
declare const hideSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<HideSyndicateMemberData, ThrowOnError>) => RequestResult<HideSyndicateMemberResponses, HideSyndicateMemberErrors, ThrowOnError>;
|
|
4034
4371
|
/**
|
|
4035
4372
|
* Promote member to admin
|
|
4373
|
+
*
|
|
4036
4374
|
* Promote a member to full_access (admin) role. Only the syndicate creator can promote members.
|
|
4037
4375
|
*/
|
|
4038
|
-
declare const promoteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<PromoteSyndicateMemberData, ThrowOnError>) =>
|
|
4376
|
+
declare const promoteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<PromoteSyndicateMemberData, ThrowOnError>) => RequestResult<PromoteSyndicateMemberResponses, PromoteSyndicateMemberErrors, ThrowOnError>;
|
|
4039
4377
|
/**
|
|
4040
4378
|
* Demote member to operator
|
|
4379
|
+
*
|
|
4041
4380
|
* Demote a member from full_access (admin) to operator permission.
|
|
4042
4381
|
*/
|
|
4043
|
-
declare const demoteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<DemoteSyndicateMemberData, ThrowOnError>) =>
|
|
4382
|
+
declare const demoteSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<DemoteSyndicateMemberData, ThrowOnError>) => RequestResult<DemoteSyndicateMemberResponses, DemoteSyndicateMemberErrors, ThrowOnError>;
|
|
4044
4383
|
/**
|
|
4045
4384
|
* Restore exiled or resigned member
|
|
4385
|
+
*
|
|
4046
4386
|
* Restore a member who was previously exiled or resigned. Sets their role back to member.
|
|
4047
4387
|
*/
|
|
4048
|
-
declare const restoreSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<RestoreSyndicateMemberData, ThrowOnError>) =>
|
|
4388
|
+
declare const restoreSyndicateMember: <ThrowOnError extends boolean = false>(options: Options<RestoreSyndicateMemberData, ThrowOnError>) => RequestResult<RestoreSyndicateMemberResponses, RestoreSyndicateMemberErrors, ThrowOnError>;
|
|
4049
4389
|
/**
|
|
4050
4390
|
* Resend invitation
|
|
4051
4391
|
*/
|
|
4052
|
-
declare const resendSyndicateInvite: <ThrowOnError extends boolean = false>(options: Options<ResendSyndicateInviteData, ThrowOnError>) =>
|
|
4392
|
+
declare const resendSyndicateInvite: <ThrowOnError extends boolean = false>(options: Options<ResendSyndicateInviteData, ThrowOnError>) => RequestResult<ResendSyndicateInviteResponses, ResendSyndicateInviteErrors, ThrowOnError>;
|
|
4053
4393
|
/**
|
|
4054
4394
|
* Reorder members
|
|
4395
|
+
*
|
|
4055
4396
|
* Set the display order for the member directory.
|
|
4056
4397
|
*/
|
|
4057
|
-
declare const reorderSyndicateMembers: <ThrowOnError extends boolean = false>(options: Options<ReorderSyndicateMembersData, ThrowOnError>) =>
|
|
4398
|
+
declare const reorderSyndicateMembers: <ThrowOnError extends boolean = false>(options: Options<ReorderSyndicateMembersData, ThrowOnError>) => RequestResult<ReorderSyndicateMembersResponses, ReorderSyndicateMembersErrors, ThrowOnError>;
|
|
4058
4399
|
/**
|
|
4059
4400
|
* Export members CSV
|
|
4401
|
+
*
|
|
4060
4402
|
* Generate a CSV export of the member directory. Returns the CSV data directly
|
|
4061
4403
|
* with Content-Type text/csv. Requires operator permission.
|
|
4062
4404
|
*
|
|
4063
4405
|
*/
|
|
4064
|
-
declare const exportSyndicateMembersCsv: <ThrowOnError extends boolean = false>(options: Options<ExportSyndicateMembersCsvData, ThrowOnError>) =>
|
|
4406
|
+
declare const exportSyndicateMembersCsv: <ThrowOnError extends boolean = false>(options: Options<ExportSyndicateMembersCsvData, ThrowOnError>) => RequestResult<ExportSyndicateMembersCsvResponses, ExportSyndicateMembersCsvErrors, ThrowOnError>;
|
|
4065
4407
|
/**
|
|
4066
4408
|
* List deals
|
|
4409
|
+
*
|
|
4067
4410
|
* Returns all deals (fundraises) within a syndicate with status, terms, and metrics.
|
|
4068
4411
|
*/
|
|
4069
|
-
declare const listSyndicateDeals: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateDealsData, ThrowOnError>) =>
|
|
4412
|
+
declare const listSyndicateDeals: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateDealsData, ThrowOnError>) => RequestResult<ListSyndicateDealsResponses, ListSyndicateDealsErrors, ThrowOnError>;
|
|
4070
4413
|
/**
|
|
4071
4414
|
* Get deal details
|
|
4415
|
+
*
|
|
4072
4416
|
* Returns full details for a specific deal including investor breakdown.
|
|
4073
4417
|
*/
|
|
4074
|
-
declare const getSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateDealData, ThrowOnError>) =>
|
|
4418
|
+
declare const getSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateDealData, ThrowOnError>) => RequestResult<GetSyndicateDealResponses, GetSyndicateDealErrors, ThrowOnError>;
|
|
4075
4419
|
/**
|
|
4076
4420
|
* List deal investors
|
|
4421
|
+
*
|
|
4077
4422
|
* Returns syndicate members who invested in this deal. Results are scoped to
|
|
4078
4423
|
* syndicate member user IDs only and sorted by amount descending.
|
|
4079
4424
|
*
|
|
@@ -4083,18 +4428,20 @@ declare const getSyndicateDeal: <ThrowOnError extends boolean = false>(options:
|
|
|
4083
4428
|
* All monetary values are strings representing cents to avoid floating-point precision issues.
|
|
4084
4429
|
*
|
|
4085
4430
|
*/
|
|
4086
|
-
declare const listSyndicateDealInvestors: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateDealInvestorsData, ThrowOnError>) =>
|
|
4431
|
+
declare const listSyndicateDealInvestors: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateDealInvestorsData, ThrowOnError>) => RequestResult<ListSyndicateDealInvestorsResponses, ListSyndicateDealInvestorsErrors, ThrowOnError>;
|
|
4087
4432
|
/**
|
|
4088
4433
|
* List member investments
|
|
4434
|
+
*
|
|
4089
4435
|
* Returns this member's investments in syndicate deals. Scoped to the syndicate's
|
|
4090
4436
|
* selected deals (one per company, matching directory semantics).
|
|
4091
4437
|
*
|
|
4092
4438
|
* All monetary values are strings representing cents to avoid floating-point precision issues.
|
|
4093
4439
|
*
|
|
4094
4440
|
*/
|
|
4095
|
-
declare const listSyndicateMemberInvestments: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateMemberInvestmentsData, ThrowOnError>) =>
|
|
4441
|
+
declare const listSyndicateMemberInvestments: <ThrowOnError extends boolean = false>(options: Options<ListSyndicateMemberInvestmentsData, ThrowOnError>) => RequestResult<ListSyndicateMemberInvestmentsResponses, ListSyndicateMemberInvestmentsErrors, ThrowOnError>;
|
|
4096
4442
|
/**
|
|
4097
4443
|
* Get syndicate statistics
|
|
4444
|
+
*
|
|
4098
4445
|
* Returns aggregate metrics for a syndicate including member counts, deal counts,
|
|
4099
4446
|
* total raised, and recent activity.
|
|
4100
4447
|
*
|
|
@@ -4104,30 +4451,34 @@ declare const listSyndicateMemberInvestments: <ThrowOnError extends boolean = fa
|
|
|
4104
4451
|
* All monetary values are strings representing cents to avoid floating-point precision issues.
|
|
4105
4452
|
*
|
|
4106
4453
|
*/
|
|
4107
|
-
declare const getSyndicateStatistics: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateStatisticsData, ThrowOnError>) =>
|
|
4454
|
+
declare const getSyndicateStatistics: <ThrowOnError extends boolean = false>(options: Options<GetSyndicateStatisticsData, ThrowOnError>) => RequestResult<GetSyndicateStatisticsResponses, GetSyndicateStatisticsErrors, ThrowOnError>;
|
|
4108
4455
|
/**
|
|
4109
4456
|
* Close deal (requires intent)
|
|
4457
|
+
*
|
|
4110
4458
|
* Closing a deal is irreversible and requires human approval through the Intent system.
|
|
4111
4459
|
* This endpoint always returns 422 with a `use_intents` error directing you to
|
|
4112
4460
|
* `POST /v2/intents` with action `syndicates.close_deal`.
|
|
4113
4461
|
*
|
|
4114
4462
|
*/
|
|
4115
|
-
declare const closeSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<CloseSyndicateDealData, ThrowOnError>) =>
|
|
4463
|
+
declare const closeSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<CloseSyndicateDealData, ThrowOnError>) => RequestResult<unknown, CloseSyndicateDealErrors, ThrowOnError>;
|
|
4116
4464
|
/**
|
|
4117
4465
|
* Finalize deal (requires intent)
|
|
4466
|
+
*
|
|
4118
4467
|
* Finalizing a deal triggers disbursement and is irreversible. It requires human approval
|
|
4119
4468
|
* through the Intent system. This endpoint always returns 422 with a `use_intents` error
|
|
4120
4469
|
* directing you to `POST /v2/intents` with action `syndicates.finalize_deal`.
|
|
4121
4470
|
*
|
|
4122
4471
|
*/
|
|
4123
|
-
declare const finalizeSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<FinalizeSyndicateDealData, ThrowOnError>) =>
|
|
4472
|
+
declare const finalizeSyndicateDeal: <ThrowOnError extends boolean = false>(options: Options<FinalizeSyndicateDealData, ThrowOnError>) => RequestResult<unknown, FinalizeSyndicateDealErrors, ThrowOnError>;
|
|
4124
4473
|
/**
|
|
4125
4474
|
* List intents
|
|
4475
|
+
*
|
|
4126
4476
|
* List intents created by the current token, optionally filtered by status or resource.
|
|
4127
4477
|
*/
|
|
4128
|
-
declare const listIntents: <ThrowOnError extends boolean = false>(options?: Options<ListIntentsData, ThrowOnError>) =>
|
|
4478
|
+
declare const listIntents: <ThrowOnError extends boolean = false>(options?: Options<ListIntentsData, ThrowOnError>) => RequestResult<ListIntentsResponses, ListIntentsErrors, ThrowOnError>;
|
|
4129
4479
|
/**
|
|
4130
4480
|
* Propose an intent
|
|
4481
|
+
*
|
|
4131
4482
|
* Propose a dangerous or irreversible action for human approval. Returns a `review_url`
|
|
4132
4483
|
* where a human must review the impact and approve before the action executes.
|
|
4133
4484
|
*
|
|
@@ -4137,34 +4488,39 @@ declare const listIntents: <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
4137
4488
|
* See [Intents documentation](/concepts/intents) for the full pattern.
|
|
4138
4489
|
*
|
|
4139
4490
|
*/
|
|
4140
|
-
declare const createIntent: <ThrowOnError extends boolean = false>(options: Options<CreateIntentData, ThrowOnError>) =>
|
|
4491
|
+
declare const createIntent: <ThrowOnError extends boolean = false>(options: Options<CreateIntentData, ThrowOnError>) => RequestResult<CreateIntentResponses, CreateIntentErrors, ThrowOnError>;
|
|
4141
4492
|
/**
|
|
4142
4493
|
* Get intent status
|
|
4494
|
+
*
|
|
4143
4495
|
* Check the current status of an intent. Use this to poll for approval
|
|
4144
4496
|
* after proposing an intent, or subscribe to `intent.*` webhook events instead.
|
|
4145
4497
|
*
|
|
4146
4498
|
*/
|
|
4147
|
-
declare const getIntent: <ThrowOnError extends boolean = false>(options: Options<GetIntentData, ThrowOnError>) =>
|
|
4499
|
+
declare const getIntent: <ThrowOnError extends boolean = false>(options: Options<GetIntentData, ThrowOnError>) => RequestResult<GetIntentResponses, GetIntentErrors, ThrowOnError>;
|
|
4148
4500
|
/**
|
|
4149
4501
|
* List activity events
|
|
4502
|
+
*
|
|
4150
4503
|
* Returns actions taken by OAuth apps authorized by the current user.
|
|
4151
4504
|
* This is the API backing the user-facing activity feed at Settings > Activity.
|
|
4152
4505
|
*
|
|
4153
4506
|
*/
|
|
4154
|
-
declare const listActivity: <ThrowOnError extends boolean = false>(options?: Options<ListActivityData, ThrowOnError>) =>
|
|
4507
|
+
declare const listActivity: <ThrowOnError extends boolean = false>(options?: Options<ListActivityData, ThrowOnError>) => RequestResult<ListActivityResponses, ListActivityErrors, ThrowOnError>;
|
|
4155
4508
|
/**
|
|
4156
4509
|
* List connected apps
|
|
4510
|
+
*
|
|
4157
4511
|
* Returns all OAuth apps the user has authorized, with summary stats.
|
|
4158
4512
|
*/
|
|
4159
|
-
declare const listConnectedApps: <ThrowOnError extends boolean = false>(options?: Options<ListConnectedAppsData, ThrowOnError>) =>
|
|
4513
|
+
declare const listConnectedApps: <ThrowOnError extends boolean = false>(options?: Options<ListConnectedAppsData, ThrowOnError>) => RequestResult<ListConnectedAppsResponses, ListConnectedAppsErrors, ThrowOnError>;
|
|
4160
4514
|
/**
|
|
4161
4515
|
* Revoke connected app
|
|
4516
|
+
*
|
|
4162
4517
|
* Revoke all tokens for this app. Any pending intents from this app are automatically expired.
|
|
4163
4518
|
*
|
|
4164
4519
|
*/
|
|
4165
|
-
declare const revokeConnectedApp: <ThrowOnError extends boolean = false>(options: Options<RevokeConnectedAppData, ThrowOnError>) =>
|
|
4520
|
+
declare const revokeConnectedApp: <ThrowOnError extends boolean = false>(options: Options<RevokeConnectedAppData, ThrowOnError>) => RequestResult<RevokeConnectedAppResponses, RevokeConnectedAppErrors, ThrowOnError>;
|
|
4166
4521
|
/**
|
|
4167
4522
|
* Get aggregate attribution statistics
|
|
4523
|
+
*
|
|
4168
4524
|
* Returns aggregate attribution statistics for a campaign. This is a **Tier 0** endpoint
|
|
4169
4525
|
* available to all OAuth applications with the `read:attribution:aggregate` scope.
|
|
4170
4526
|
*
|
|
@@ -4181,9 +4537,10 @@ declare const revokeConnectedApp: <ThrowOnError extends boolean = false>(options
|
|
|
4181
4537
|
* information is exposed.
|
|
4182
4538
|
*
|
|
4183
4539
|
*/
|
|
4184
|
-
declare const getAttributionStats: <ThrowOnError extends boolean = false>(options: Options<GetAttributionStatsData, ThrowOnError>) =>
|
|
4540
|
+
declare const getAttributionStats: <ThrowOnError extends boolean = false>(options: Options<GetAttributionStatsData, ThrowOnError>) => RequestResult<GetAttributionStatsResponses, GetAttributionStatsErrors, ThrowOnError>;
|
|
4185
4541
|
/**
|
|
4186
4542
|
* List attributed investments
|
|
4543
|
+
*
|
|
4187
4544
|
* Returns a list of attributed investments. The detail level depends on your access:
|
|
4188
4545
|
*
|
|
4189
4546
|
* **Tier 1 (Marketing Partners)** - Anonymized data:
|
|
@@ -4200,9 +4557,10 @@ declare const getAttributionStats: <ThrowOnError extends boolean = false>(option
|
|
|
4200
4557
|
* **Access**: Requires Tier 1+ access approval from Wefunder admin.
|
|
4201
4558
|
*
|
|
4202
4559
|
*/
|
|
4203
|
-
declare const listAttributedInvestments: <ThrowOnError extends boolean = false>(options: Options<ListAttributedInvestmentsData, ThrowOnError>) =>
|
|
4560
|
+
declare const listAttributedInvestments: <ThrowOnError extends boolean = false>(options: Options<ListAttributedInvestmentsData, ThrowOnError>) => RequestResult<ListAttributedInvestmentsResponses, ListAttributedInvestmentsErrors, ThrowOnError>;
|
|
4204
4561
|
/**
|
|
4205
4562
|
* List attribution webhook subscriptions
|
|
4563
|
+
*
|
|
4206
4564
|
* Returns all active webhook subscriptions for this campaign belonging to
|
|
4207
4565
|
* your OAuth application.
|
|
4208
4566
|
*
|
|
@@ -4210,9 +4568,10 @@ declare const listAttributedInvestments: <ThrowOnError extends boolean = false>(
|
|
|
4210
4568
|
* `read:attribution:anonymized` scope.
|
|
4211
4569
|
*
|
|
4212
4570
|
*/
|
|
4213
|
-
declare const listWebhookSubscriptions: <ThrowOnError extends boolean = false>(options: Options<ListWebhookSubscriptionsData, ThrowOnError>) =>
|
|
4571
|
+
declare const listWebhookSubscriptions: <ThrowOnError extends boolean = false>(options: Options<ListWebhookSubscriptionsData, ThrowOnError>) => RequestResult<ListWebhookSubscriptionsResponses, ListWebhookSubscriptionsErrors, ThrowOnError>;
|
|
4214
4572
|
/**
|
|
4215
4573
|
* Create webhook subscription
|
|
4574
|
+
*
|
|
4216
4575
|
* Creates a new webhook subscription for this campaign. When attributed
|
|
4217
4576
|
* investments change state, we'll POST a JSON payload to your target URL.
|
|
4218
4577
|
*
|
|
@@ -4243,78 +4602,88 @@ declare const listWebhookSubscriptions: <ThrowOnError extends boolean = false>(o
|
|
|
4243
4602
|
* - Timestamp is more than 5 minutes old (replay protection)
|
|
4244
4603
|
*
|
|
4245
4604
|
*/
|
|
4246
|
-
declare const createWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookSubscriptionData, ThrowOnError>) =>
|
|
4605
|
+
declare const createWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookSubscriptionData, ThrowOnError>) => RequestResult<CreateWebhookSubscriptionResponses, CreateWebhookSubscriptionErrors, ThrowOnError>;
|
|
4247
4606
|
/**
|
|
4248
4607
|
* Delete webhook subscription
|
|
4608
|
+
*
|
|
4249
4609
|
* Deactivates a webhook subscription. The subscription will stop receiving
|
|
4250
4610
|
* events but historical delivery data is retained for 7 days.
|
|
4251
4611
|
*
|
|
4252
4612
|
*/
|
|
4253
|
-
declare const deleteWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookSubscriptionData, ThrowOnError>) =>
|
|
4613
|
+
declare const deleteWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookSubscriptionData, ThrowOnError>) => RequestResult<DeleteWebhookSubscriptionResponses, DeleteWebhookSubscriptionErrors, ThrowOnError>;
|
|
4254
4614
|
/**
|
|
4255
4615
|
* Get webhook subscription details
|
|
4616
|
+
*
|
|
4256
4617
|
* Returns details for a specific webhook subscription including recent
|
|
4257
4618
|
* delivery history.
|
|
4258
4619
|
*
|
|
4259
4620
|
*/
|
|
4260
|
-
declare const getWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<GetWebhookSubscriptionData, ThrowOnError>) =>
|
|
4621
|
+
declare const getWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<GetWebhookSubscriptionData, ThrowOnError>) => RequestResult<GetWebhookSubscriptionResponses, GetWebhookSubscriptionErrors, ThrowOnError>;
|
|
4261
4622
|
/**
|
|
4262
4623
|
* Send test webhook
|
|
4624
|
+
*
|
|
4263
4625
|
* Sends a test webhook to verify your endpoint is working correctly.
|
|
4264
4626
|
* The test payload includes a `"event": "test"` field to distinguish
|
|
4265
4627
|
* it from real events.
|
|
4266
4628
|
*
|
|
4267
4629
|
*/
|
|
4268
|
-
declare const testWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<TestWebhookSubscriptionData, ThrowOnError>) =>
|
|
4630
|
+
declare const testWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<TestWebhookSubscriptionData, ThrowOnError>) => RequestResult<TestWebhookSubscriptionResponses, TestWebhookSubscriptionErrors, ThrowOnError>;
|
|
4269
4631
|
/**
|
|
4270
4632
|
* Regenerate webhook signing secret
|
|
4633
|
+
*
|
|
4271
4634
|
* Generates a new HMAC signing secret for the webhook subscription.
|
|
4272
4635
|
* The old secret is immediately invalidated.
|
|
4273
4636
|
*
|
|
4274
4637
|
* **Important**: Store the new secret securely - it cannot be retrieved later.
|
|
4275
4638
|
*
|
|
4276
4639
|
*/
|
|
4277
|
-
declare const regenerateWebhookSecret: <ThrowOnError extends boolean = false>(options: Options<RegenerateWebhookSecretData, ThrowOnError>) =>
|
|
4640
|
+
declare const regenerateWebhookSecret: <ThrowOnError extends boolean = false>(options: Options<RegenerateWebhookSecretData, ThrowOnError>) => RequestResult<RegenerateWebhookSecretResponses, RegenerateWebhookSecretErrors, ThrowOnError>;
|
|
4278
4641
|
/**
|
|
4279
4642
|
* Reactivate disabled webhook
|
|
4643
|
+
*
|
|
4280
4644
|
* Reactivates a webhook subscription that was auto-disabled after
|
|
4281
4645
|
* consecutive failures. Resets the failure counter to 0.
|
|
4282
4646
|
*
|
|
4283
4647
|
* Use this after fixing issues with your webhook endpoint.
|
|
4284
4648
|
*
|
|
4285
4649
|
*/
|
|
4286
|
-
declare const reactivateWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<ReactivateWebhookSubscriptionData, ThrowOnError>) =>
|
|
4650
|
+
declare const reactivateWebhookSubscription: <ThrowOnError extends boolean = false>(options: Options<ReactivateWebhookSubscriptionData, ThrowOnError>) => RequestResult<ReactivateWebhookSubscriptionResponses, ReactivateWebhookSubscriptionErrors, ThrowOnError>;
|
|
4287
4651
|
/**
|
|
4288
4652
|
* Get current user's attribution profile
|
|
4653
|
+
*
|
|
4289
4654
|
* Returns the authenticated user's marketing partner profile and connected campaigns.
|
|
4290
4655
|
* If the user is not registered as a marketing partner, returns partner info as null.
|
|
4291
4656
|
*
|
|
4292
4657
|
*/
|
|
4293
|
-
declare const getAttributionMe: <ThrowOnError extends boolean = false>(options?: Options<GetAttributionMeData, ThrowOnError>) =>
|
|
4658
|
+
declare const getAttributionMe: <ThrowOnError extends boolean = false>(options?: Options<GetAttributionMeData, ThrowOnError>) => RequestResult<GetAttributionMeResponses, GetAttributionMeErrors, ThrowOnError>;
|
|
4294
4659
|
/**
|
|
4295
4660
|
* List campaigns accessible to the current user
|
|
4661
|
+
*
|
|
4296
4662
|
* Returns all campaigns the authenticated user can access for attribution data.
|
|
4297
4663
|
* For founders, this includes their own campaigns.
|
|
4298
4664
|
* For marketing partners, this includes campaigns they've been granted access to.
|
|
4299
4665
|
*
|
|
4300
4666
|
*/
|
|
4301
|
-
declare const listAttributionCampaigns: <ThrowOnError extends boolean = false>(options?: Options<ListAttributionCampaignsData, ThrowOnError>) =>
|
|
4667
|
+
declare const listAttributionCampaigns: <ThrowOnError extends boolean = false>(options?: Options<ListAttributionCampaignsData, ThrowOnError>) => RequestResult<ListAttributionCampaignsResponses, ListAttributionCampaignsErrors, ThrowOnError>;
|
|
4302
4668
|
/**
|
|
4303
4669
|
* Register as a marketing partner
|
|
4670
|
+
*
|
|
4304
4671
|
* Registers the authenticated user as a marketing partner.
|
|
4305
4672
|
* After registration, the partner can create invites to request access to campaigns.
|
|
4306
4673
|
*
|
|
4307
4674
|
*/
|
|
4308
|
-
declare const registerAsPartner: <ThrowOnError extends boolean = false>(options: Options<RegisterAsPartnerData, ThrowOnError>) =>
|
|
4675
|
+
declare const registerAsPartner: <ThrowOnError extends boolean = false>(options: Options<RegisterAsPartnerData, ThrowOnError>) => RequestResult<RegisterAsPartnerResponses, RegisterAsPartnerErrors, ThrowOnError>;
|
|
4309
4676
|
/**
|
|
4310
4677
|
* List partner invites
|
|
4678
|
+
*
|
|
4311
4679
|
* Returns all invites created by or sent to the authenticated user.
|
|
4312
4680
|
* Includes both pending and accepted invites.
|
|
4313
4681
|
*
|
|
4314
4682
|
*/
|
|
4315
|
-
declare const listPartnerInvites: <ThrowOnError extends boolean = false>(options?: Options<ListPartnerInvitesData, ThrowOnError>) =>
|
|
4683
|
+
declare const listPartnerInvites: <ThrowOnError extends boolean = false>(options?: Options<ListPartnerInvitesData, ThrowOnError>) => RequestResult<ListPartnerInvitesResponses, ListPartnerInvitesErrors, ThrowOnError>;
|
|
4316
4684
|
/**
|
|
4317
4685
|
* Create a partner invite
|
|
4686
|
+
*
|
|
4318
4687
|
* Creates an invite to establish a partner-company connection.
|
|
4319
4688
|
*
|
|
4320
4689
|
* **Directions**:
|
|
@@ -4325,16 +4694,17 @@ declare const listPartnerInvites: <ThrowOnError extends boolean = false>(options
|
|
|
4325
4694
|
* For `founder_to_partner`: Sends an email to the partner.
|
|
4326
4695
|
*
|
|
4327
4696
|
*/
|
|
4328
|
-
declare const createPartnerInvite: <ThrowOnError extends boolean = false>(options: Options<CreatePartnerInviteData, ThrowOnError>) =>
|
|
4697
|
+
declare const createPartnerInvite: <ThrowOnError extends boolean = false>(options: Options<CreatePartnerInviteData, ThrowOnError>) => RequestResult<CreatePartnerInviteResponses, CreatePartnerInviteErrors, ThrowOnError>;
|
|
4329
4698
|
/**
|
|
4330
4699
|
* Revoke a partner invite
|
|
4700
|
+
*
|
|
4331
4701
|
* Revokes a pending invite. Only the creator can revoke an invite.
|
|
4332
4702
|
* Accepted invites cannot be revoked (delete the connection instead).
|
|
4333
4703
|
*
|
|
4334
4704
|
*/
|
|
4335
|
-
declare const revokePartnerInvite: <ThrowOnError extends boolean = false>(options: Options<RevokePartnerInviteData, ThrowOnError>) =>
|
|
4705
|
+
declare const revokePartnerInvite: <ThrowOnError extends boolean = false>(options: Options<RevokePartnerInviteData, ThrowOnError>) => RequestResult<RevokePartnerInviteResponses, RevokePartnerInviteErrors, ThrowOnError>;
|
|
4336
4706
|
|
|
4337
|
-
type ops_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
4707
|
+
type ops_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options<TData, ThrowOnError, TResponse>;
|
|
4338
4708
|
declare const ops_approveSyndicateMember: typeof approveSyndicateMember;
|
|
4339
4709
|
declare const ops_closeSyndicateDeal: typeof closeSyndicateDeal;
|
|
4340
4710
|
declare const ops_createIntent: typeof createIntent;
|
|
@@ -4564,4 +4934,4 @@ declare function constructEvent<T = unknown>(payload: string, headers: Headers |
|
|
|
4564
4934
|
now?: () => number;
|
|
4565
4935
|
}): ParsedWebhook<T>;
|
|
4566
4936
|
|
|
4567
|
-
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 Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DELIVERY_ID_HEADER, type DealInvestor, type DealInvestorListEnvelope, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, EVENT_HEADER, type EndDate, type ExchangeCodeOptions, type Exemption, type ExportSyndicateMembersCsvData, type ExportSyndicateMembersCsvError, type ExportSyndicateMembersCsvErrors, type ExportSyndicateMembersCsvResponse, type ExportSyndicateMembersCsvResponses, type FinalizeSyndicateDealData, type FinalizeSyndicateDealError, type FinalizeSyndicateDealErrors, type FullAttribution, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Intent, type IntentEnvelope, type IntentListEnvelope, type Investment, type InvestmentLink, type InvestmentLinkCreateInput, type InvestmentLinkEnvelope, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionId, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type Invite, type InviteCreateInput, type InviteEnvelope, type InviteId, type InviteListEnvelope, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, 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 ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, 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 ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingListEnvelope, type OfferingSort, type Page, type PageFetcher, type PaginationMeta, type ParsedWebhook, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type Pkce, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, 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 RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, SIGNATURE_HEADER, type Spv, type SpvCloseStatus, type SpvCloseStatusEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealDetail, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealListEnvelope, type SyndicateDetail, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberListEnvelope, type SyndicatePortfolio, type SyndicateStatistics, type SyndicateStatisticsEnvelope, TIMESTAMP_HEADER, type TargetCompanyInput, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, type TokenManagerOptions, type TokenSet, type TokenStore, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyWebhookOptions, type WebhookDelivery, type WebhookId, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, type _Error, clientCredentialsGrant, collect, constructEvent, createAuthorizationUrl, exchangeCode, generatePkce, modeForToken, paginate, refreshToken, verifyWebhook };
|
|
4937
|
+
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 Campaign, type CampaignId, type CampaignListEnvelope, type ClientCredentialsOptions, type ClientOptions, type CloseSyndicateDealData, type CloseSyndicateDealError, type CloseSyndicateDealErrors, type ConnectedApp, type ConnectedAppListEnvelope, type ConnectedAppRevocation, type ConnectedAppRevocationEnvelope, type CreateIntentData, type CreateIntentError, type CreateIntentErrors, type CreateIntentResponse, type CreateIntentResponses, type CreatePartnerInviteData, type CreatePartnerInviteError, type CreatePartnerInviteErrors, type CreatePartnerInviteResponse, type CreatePartnerInviteResponses, type CreateWebhookSubscriptionData, type CreateWebhookSubscriptionError, type CreateWebhookSubscriptionErrors, type CreateWebhookSubscriptionResponse, type CreateWebhookSubscriptionResponses, type Cursor, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_AUTHORIZE_BASE_URL, DEFAULT_OAUTH_BASE_URL, DEFAULT_TOKEN_BASE_URL, DELIVERY_ID_HEADER, type DealInvestor, type DealInvestorListEnvelope, type DeleteWebhookSubscriptionData, type DeleteWebhookSubscriptionError, type DeleteWebhookSubscriptionErrors, type DeleteWebhookSubscriptionResponse, type DeleteWebhookSubscriptionResponses, type DemoteSyndicateMemberData, type DemoteSyndicateMemberError, type DemoteSyndicateMemberErrors, type DemoteSyndicateMemberResponse, type DemoteSyndicateMemberResponses, EVENT_HEADER, type EndDate, 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 FullAttribution, type FundraiseId, type GetAttributionMeData, type GetAttributionMeError, type GetAttributionMeErrors, type GetAttributionMeResponse, type GetAttributionMeResponses, type GetAttributionStatsData, type GetAttributionStatsError, type GetAttributionStatsErrors, type GetAttributionStatsResponse, type GetAttributionStatsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetIntentData, type GetIntentError, type GetIntentErrors, type GetIntentResponse, type GetIntentResponses, type GetOfferingData, type GetOfferingError, type GetOfferingErrors, type GetOfferingResponse, type GetOfferingResponses, type GetSyndicateData, type GetSyndicateDealData, type GetSyndicateDealError, type GetSyndicateDealErrors, type GetSyndicateDealResponse, type GetSyndicateDealResponses, type GetSyndicateError, type GetSyndicateErrors, type GetSyndicateResponse, type GetSyndicateResponses, type GetSyndicateStatisticsData, type GetSyndicateStatisticsError, type GetSyndicateStatisticsErrors, type GetSyndicateStatisticsResponse, type GetSyndicateStatisticsResponses, type GetWebhookSubscriptionData, type GetWebhookSubscriptionError, type GetWebhookSubscriptionErrors, type GetWebhookSubscriptionResponse, type GetWebhookSubscriptionResponses, type HideSyndicateMemberData, type HideSyndicateMemberError, type HideSyndicateMemberErrors, type HideSyndicateMemberResponse, type HideSyndicateMemberResponses, type IdempotencyKey, type Intent, type IntentEnvelope, type IntentListEnvelope, type Investment, type InvestmentLink, type InvestmentLinkCreateInput, type InvestmentLinkEnvelope, type InvestmentListEnvelope, type InvestmentSession, type InvestmentSessionCreateInput, type InvestmentSessionEnvelope, type InvestmentSessionId, type Investor, type InvestorEnvelope, type InvestorListEnvelope, type Invite, type InviteCreateInput, type InviteEnvelope, type InviteId, type InviteListEnvelope, type InviteSyndicateMemberData, type InviteSyndicateMemberError, type InviteSyndicateMemberErrors, type InviteSyndicateMemberResponse, type InviteSyndicateMemberResponses, 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 ListConnectedAppsData, type ListConnectedAppsError, type ListConnectedAppsErrors, type ListConnectedAppsResponse, type ListConnectedAppsResponses, type ListIntentsData, type ListIntentsError, type ListIntentsErrors, type ListIntentsResponse, type ListIntentsResponses, type ListInvestmentsData, type ListInvestmentsError, type ListInvestmentsErrors, type ListInvestmentsResponse, type ListInvestmentsResponses, type ListOfferingsData, type ListOfferingsError, type ListOfferingsErrors, type ListOfferingsResponse, type ListOfferingsResponses, type ListPartnerInvitesData, type ListPartnerInvitesError, type ListPartnerInvitesErrors, type ListPartnerInvitesResponse, type ListPartnerInvitesResponses, 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 ListSyndicatesData, type ListSyndicatesError, type ListSyndicatesErrors, type ListSyndicatesResponse, type ListSyndicatesResponses, type ListWebhookSubscriptionsData, type ListWebhookSubscriptionsError, type ListWebhookSubscriptionsErrors, type ListWebhookSubscriptionsResponse, type ListWebhookSubscriptionsResponses, type MarketingPartner, type MarketingPartnerEnvelope, type MemberId, type MemberInvestment, type MemberInvestmentListEnvelope, type Mode, type OAuthHostOptions, type Offering, type OfferingEnvelope, type OfferingListEnvelope, type OfferingSort, type Page, type PageFetcher, type PaginationMeta, type ParsedWebhook, type PartnerInvestment, type PartnerInvestmentEnvelope, type PartnerInvestmentId, type PartnerInvestmentListEnvelope, type PartnerInvite, type PartnerInviteEnvelope, type PartnerInviteListEnvelope, type PartnerWebhookEvent, type PartnerWebhookEventEnvelope, type PartnerWebhookSubscription, type PartnerWebhookSubscriptionCreateInput, type PartnerWebhookSubscriptionEnvelope, type PartnerWebhookSubscriptionListEnvelope, type PartnerWebhookSubscriptionWithSecret, type PartnerWebhookSubscriptionWithSecretEnvelope, type Pkce, type PromoteSyndicateMemberData, type PromoteSyndicateMemberError, type PromoteSyndicateMemberErrors, type PromoteSyndicateMemberResponse, type PromoteSyndicateMemberResponses, REQUEST_ID_HEADER, type ReactivateWebhookSubscriptionData, type ReactivateWebhookSubscriptionError, type ReactivateWebhookSubscriptionErrors, type ReactivateWebhookSubscriptionResponse, type ReactivateWebhookSubscriptionResponses, 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 RevokeConnectedAppData, type RevokeConnectedAppError, type RevokeConnectedAppErrors, type RevokeConnectedAppResponse, type RevokeConnectedAppResponses, type RevokePartnerInviteData, type RevokePartnerInviteError, type RevokePartnerInviteErrors, type RevokePartnerInviteResponse, type RevokePartnerInviteResponses, SIGNATURE_HEADER, type Spv, type SpvCloseStatus, type SpvCloseStatusEnvelope, type SpvCreateInput, type SpvEnvelope, type SpvId, type SpvListEnvelope, type SpvMetrics, type SpvSettings, type SpvTerms, type SpvWithMetaEnvelope, type StartDate, type Syndicate, type SyndicateDeal, type SyndicateDealDetail, type SyndicateDealDetailEnvelope, type SyndicateDealEnvelope, type SyndicateDealListEnvelope, type SyndicateDetail, type SyndicateDetailEnvelope, type SyndicateId, type SyndicateListEnvelope, type SyndicateMember, type SyndicateMemberEnvelope, type SyndicateMemberListEnvelope, type SyndicatePortfolio, type SyndicateStatistics, type SyndicateStatisticsEnvelope, TIMESTAMP_HEADER, type TargetCompanyInput, type TestWebhookSubscriptionData, type TestWebhookSubscriptionError, type TestWebhookSubscriptionErrors, type TestWebhookSubscriptionResponse, type TestWebhookSubscriptionResponses, type TokenManagerOptions, type TokenSet, type TokenStore, type UpdateSyndicateData, type UpdateSyndicateError, type UpdateSyndicateErrors, type UpdateSyndicateMemberData, type UpdateSyndicateMemberError, type UpdateSyndicateMemberErrors, type UpdateSyndicateMemberResponse, type UpdateSyndicateMemberResponses, type UpdateSyndicateResponse, type UpdateSyndicateResponses, type User, type UserEnvelope, type UtmCampaign, type UtmSource, type ValidationError, type VerifyWebhookOptions, type WebhookDelivery, type WebhookId, type WebhookSubscription, type WebhookSubscriptionEnvelope, type WebhookSubscriptionId, type WebhookSubscriptionListEnvelope, type WebhookSubscriptionWithRecentDeliveriesEnvelope, type WebhookSubscriptionWithSecret2Envelope, type WebhookSubscriptionWithSecretEnvelope, type WebhookTestResult, type WebhookTestResultEnvelope, Wefunder, WefunderAuthError, WefunderError, type WefunderOptions, clientCredentialsGrant, collect, constructEvent, createAuthorizationUrl, exchangeCode, generatePkce, modeForToken, paginate, refreshToken, verifyWebhook };
|