@crvouga/mockingbird-runtime 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +131 -2
  2. package/dist/adapter-node.d.ts +2521 -0
  3. package/dist/adapter-node.js +6920 -0
  4. package/dist/adapter-node.js.map +7 -0
  5. package/dist/admin-ui.js +25 -0
  6. package/dist/admin-ui.js.map +7 -0
  7. package/dist/chunk-2KDYLZXC.js +118 -0
  8. package/dist/chunk-2KDYLZXC.js.map +7 -0
  9. package/dist/chunk-2Y25NPCV.js +1289 -0
  10. package/dist/chunk-2Y25NPCV.js.map +7 -0
  11. package/dist/chunk-4SAK6MQT.js +246 -0
  12. package/dist/chunk-4SAK6MQT.js.map +7 -0
  13. package/dist/chunk-ANCCZFF2.js +778 -0
  14. package/dist/chunk-ANCCZFF2.js.map +7 -0
  15. package/dist/chunk-EBGYPQPA.js +198 -0
  16. package/dist/chunk-EBGYPQPA.js.map +7 -0
  17. package/dist/chunk-EQLY2YOA.js +274 -0
  18. package/dist/chunk-EQLY2YOA.js.map +7 -0
  19. package/dist/chunk-G62YDIIJ.js +7664 -0
  20. package/dist/chunk-G62YDIIJ.js.map +7 -0
  21. package/dist/chunk-HU6IOAFC.js +437 -0
  22. package/dist/chunk-HU6IOAFC.js.map +7 -0
  23. package/dist/chunk-RNAHPNUJ.js +97 -0
  24. package/dist/chunk-RNAHPNUJ.js.map +7 -0
  25. package/dist/chunk-UP4QOSFD.js +87 -0
  26. package/dist/chunk-UP4QOSFD.js.map +7 -0
  27. package/dist/chunk-XNS34BPF.js +2489 -0
  28. package/dist/chunk-XNS34BPF.js.map +7 -0
  29. package/dist/core.d.ts +356 -0
  30. package/dist/core.js +51 -0
  31. package/dist/core.js.map +7 -0
  32. package/dist/crypto-XS5XCMRJ.js +21 -0
  33. package/dist/crypto-XS5XCMRJ.js.map +7 -0
  34. package/dist/helpers-UD7CG4WQ.js +18 -0
  35. package/dist/helpers-UD7CG4WQ.js.map +7 -0
  36. package/dist/http-codec.d.ts +72 -0
  37. package/dist/http-codec.js +25 -0
  38. package/dist/http-codec.js.map +7 -0
  39. package/dist/http-provider.d.ts +3243 -0
  40. package/dist/http-provider.js +37920 -0
  41. package/dist/http-provider.js.map +7 -0
  42. package/dist/index.d.ts +10 -0
  43. package/dist/index.js +23 -0
  44. package/dist/index.js.map +7 -0
  45. package/dist/mqtt-broker/node.d.ts +632 -0
  46. package/dist/mqtt-broker/node.js +355 -0
  47. package/dist/mqtt-broker/node.js.map +7 -0
  48. package/dist/mqtt-broker.d.ts +990 -0
  49. package/dist/mqtt-broker.js +913 -0
  50. package/dist/mqtt-broker.js.map +7 -0
  51. package/dist/openapi-metadata.d.ts +290 -0
  52. package/dist/openapi-metadata.js +28 -0
  53. package/dist/openapi-metadata.js.map +7 -0
  54. package/dist/openapi.d.ts +252 -0
  55. package/dist/openapi.js +45 -0
  56. package/dist/openapi.js.map +7 -0
  57. package/dist/preview/artifacts.d.ts +19 -0
  58. package/dist/preview/artifacts.js +40 -0
  59. package/dist/preview/artifacts.js.map +7 -0
  60. package/dist/preview/bridge.d.ts +21 -0
  61. package/dist/preview/bridge.js +9 -0
  62. package/dist/preview/bridge.js.map +7 -0
  63. package/dist/preview/harness.d.ts +12 -0
  64. package/dist/preview/harness.js +65 -0
  65. package/dist/preview/harness.js.map +7 -0
  66. package/dist/preview/host.d.ts +30 -0
  67. package/dist/preview/host.js +70 -0
  68. package/dist/preview/host.js.map +7 -0
  69. package/dist/service/admin.d.ts +106 -0
  70. package/dist/service/admin.js +340 -0
  71. package/dist/service/admin.js.map +7 -0
  72. package/dist/service.d.ts +2665 -0
  73. package/dist/service.js +264 -0
  74. package/dist/service.js.map +7 -0
  75. package/dist/sqlite.d.ts +69 -0
  76. package/dist/sqlite.js +19 -0
  77. package/dist/sqlite.js.map +7 -0
  78. package/dist/ui.d.ts +37 -0
  79. package/dist/ui.js +702 -0
  80. package/dist/ui.js.map +7 -0
  81. package/package.json +135 -4
@@ -0,0 +1,3243 @@
1
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2
+ /*!
3
+ * This HTTP compatibility layer builds on Hono's API and design.
4
+ * https://github.com/honojs/hono
5
+ * Copyright (c) 2021 - present, Yusuke Wada and Hono contributors
6
+ * MIT license: see THIRD_PARTY_NOTICES.md in the repository and npm packages.
7
+ */
8
+ type BodyInit = ConstructorParameters<typeof Response>[0];
9
+ type HeadersInit = ConstructorParameters<typeof Headers>[0];
10
+ type FormDataEntryValue = string | File;
11
+ type ContentfulStatusCode = number;
12
+ type Next = () => Promise<void>;
13
+ type VariablesOf<E> = unknown extends E ? Record<string, any> : E extends {
14
+ Variables: infer V;
15
+ } ? V : Record<string, any>;
16
+ type HandlerResult = Response | void | Promise<Response | void>;
17
+ type Handler<E = unknown, P extends string = string> = (c: Context<E, P>, next: Next) => HandlerResult;
18
+ type ErrorHandler<E = unknown> = (err: unknown, c: Context<E>) => Response | Promise<Response>;
19
+ interface HttpOptions {
20
+ strictRoutes?: boolean;
21
+ strictJson?: boolean;
22
+ onError?: (error: unknown, request: Request) => void;
23
+ }
24
+ interface RouteInfo {
25
+ method: string;
26
+ path: string;
27
+ source?: string;
28
+ }
29
+ declare class HonoRequest<P extends string = string> {
30
+ private readonly params;
31
+ private readonly strictJson;
32
+ readonly raw: Request;
33
+ readonly url: string;
34
+ readonly method: string;
35
+ readonly path: string;
36
+ constructor(request: Request, params: Record<string, string>, strictJson?: boolean);
37
+ header(): Record<string, string>;
38
+ header(name: string): string | undefined;
39
+ query(name: string): string | undefined;
40
+ queries(name: string): string[] | undefined;
41
+ param(): Record<string, string>;
42
+ param(name: string): string;
43
+ json<T = any>(): Promise<T>;
44
+ text(): Promise<string>;
45
+ arrayBuffer(): Promise<ArrayBuffer>;
46
+ parseBody(): Promise<Record<string, FormDataEntryValue | FormDataEntryValue[]>>;
47
+ }
48
+ declare class Context<E = unknown, P extends string = string> {
49
+ private readonly notFoundHandler;
50
+ readonly req: HonoRequest<P>;
51
+ private readonly vars;
52
+ private readonly responseHeaders;
53
+ private readonly headerOperations;
54
+ private readonly appliedHeaders;
55
+ private responseStatus;
56
+ constructor(request: Request, params: Record<string, string>, notFoundHandler: (c: Context<E>) => Response | Promise<Response>, strictJson?: boolean);
57
+ get<K extends keyof VariablesOf<E> & string>(key: K): VariablesOf<E>[K] | undefined;
58
+ set<K extends keyof VariablesOf<E> & string>(key: K, value: VariablesOf<E>[K]): void;
59
+ header(name: string, value: string, options?: {
60
+ append?: boolean;
61
+ }): void;
62
+ status(status: number): void;
63
+ json(data: unknown, status?: ContentfulStatusCode, headers?: HeadersInit): Response;
64
+ text(text: string, status?: ContentfulStatusCode, headers?: HeadersInit): Response;
65
+ html(html: string, status?: ContentfulStatusCode, headers?: HeadersInit): Response;
66
+ body(body: BodyInit | null, status?: ContentfulStatusCode, headers?: HeadersInit): Response;
67
+ redirect(location: string, status?: ContentfulStatusCode): Response;
68
+ notFound(): Response | Promise<Response>;
69
+ finalize(response: Response): Response;
70
+ private response;
71
+ }
72
+ declare class Hono<E = unknown> {
73
+ private readonly options;
74
+ constructor(options?: HttpOptions);
75
+ get routeTable(): RouteInfo[];
76
+ matchedRoute(method: string, path: string): RouteInfo | undefined;
77
+ private readonly middleware;
78
+ private readonly routes;
79
+ private errorHandler;
80
+ private notFoundHandler;
81
+ use<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
82
+ use(...handlers: Handler<E>[]): this;
83
+ on<P extends string = string>(method: string, path: string, ...handlers: Handler<E, P>[]): this;
84
+ get<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
85
+ post<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
86
+ put<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
87
+ patch<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
88
+ delete<P extends string = string>(path: string, ...handlers: Handler<E, P>[]): this;
89
+ onError(handler: ErrorHandler<E>): this;
90
+ notFound(handler: (c: Context<E>) => Response | Promise<Response>): this;
91
+ request(input: string | Request, init?: RequestInit): Promise<Response>;
92
+ fetch: (request: Request) => Promise<Response>;
93
+ private match;
94
+ private dispatch;
95
+ }
96
+
97
+ /**
98
+ * The slice of OpenAPI 3.1 (and JSON Schema 2020-12) Mockingbird understands.
99
+ * Unknown keys (including `x-*` extensions) are preserved on every object.
100
+ */
101
+ type JsonPrimitive = string | number | boolean | null;
102
+ type JsonValue = JsonPrimitive | JsonValue[] | {
103
+ [key: string]: JsonValue;
104
+ };
105
+ type ReferenceObject = {
106
+ $ref: string;
107
+ description?: string;
108
+ summary?: string;
109
+ };
110
+ type SchemaType = "string" | "number" | "integer" | "boolean" | "object" | "array" | "null";
111
+ type SchemaObject = {
112
+ $ref?: string;
113
+ type?: SchemaType | SchemaType[];
114
+ title?: string;
115
+ description?: string;
116
+ format?: string;
117
+ enum?: JsonValue[];
118
+ const?: JsonValue;
119
+ default?: JsonValue;
120
+ example?: JsonValue;
121
+ examples?: JsonValue[];
122
+ nullable?: boolean;
123
+ deprecated?: boolean;
124
+ readOnly?: boolean;
125
+ writeOnly?: boolean;
126
+ minimum?: number;
127
+ maximum?: number;
128
+ exclusiveMinimum?: number;
129
+ exclusiveMaximum?: number;
130
+ multipleOf?: number;
131
+ minLength?: number;
132
+ maxLength?: number;
133
+ pattern?: string;
134
+ minItems?: number;
135
+ maxItems?: number;
136
+ uniqueItems?: boolean;
137
+ items?: SchemaObject;
138
+ prefixItems?: SchemaObject[];
139
+ minProperties?: number;
140
+ maxProperties?: number;
141
+ required?: string[];
142
+ properties?: Record<string, SchemaObject>;
143
+ additionalProperties?: boolean | SchemaObject;
144
+ propertyNames?: SchemaObject;
145
+ oneOf?: SchemaObject[];
146
+ anyOf?: SchemaObject[];
147
+ allOf?: SchemaObject[];
148
+ not?: SchemaObject;
149
+ discriminator?: {
150
+ propertyName: string;
151
+ mapping?: Record<string, string>;
152
+ };
153
+ [extension: `x-${string}`]: unknown;
154
+ };
155
+ type ParameterLocation = "path" | "query" | "header" | "cookie";
156
+ type ParameterObject = {
157
+ name: string;
158
+ in: ParameterLocation;
159
+ description?: string;
160
+ required?: boolean;
161
+ deprecated?: boolean;
162
+ style?: string;
163
+ explode?: boolean;
164
+ schema?: SchemaObject;
165
+ content?: Record<string, MediaTypeObject>;
166
+ example?: JsonValue;
167
+ [extension: `x-${string}`]: unknown;
168
+ };
169
+ type MediaTypeObject = {
170
+ schema?: SchemaObject;
171
+ example?: JsonValue;
172
+ examples?: Record<string, unknown>;
173
+ encoding?: Record<string, unknown>;
174
+ [extension: `x-${string}`]: unknown;
175
+ };
176
+ type RequestBodyObject = {
177
+ description?: string;
178
+ required?: boolean;
179
+ content: Record<string, MediaTypeObject>;
180
+ [extension: `x-${string}`]: unknown;
181
+ };
182
+ type HeaderObject = {
183
+ description?: string;
184
+ required?: boolean;
185
+ schema?: SchemaObject;
186
+ [extension: `x-${string}`]: unknown;
187
+ };
188
+ type ResponseObject = {
189
+ description: string;
190
+ headers?: Record<string, HeaderObject | ReferenceObject>;
191
+ content?: Record<string, MediaTypeObject>;
192
+ [extension: `x-${string}`]: unknown;
193
+ };
194
+ type ResponsesObject = Record<string, ResponseObject | ReferenceObject>;
195
+ type SecurityRequirementObject = Record<string, string[]>;
196
+ type OperationObject = {
197
+ operationId?: string;
198
+ summary?: string;
199
+ description?: string;
200
+ tags?: string[];
201
+ deprecated?: boolean;
202
+ parameters?: Array<ParameterObject | ReferenceObject>;
203
+ requestBody?: RequestBodyObject | ReferenceObject;
204
+ responses: ResponsesObject;
205
+ security?: SecurityRequirementObject[];
206
+ [extension: `x-${string}`]: unknown;
207
+ };
208
+ declare const HTTP_METHODS: readonly ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
209
+ type HttpMethod = (typeof HTTP_METHODS)[number];
210
+ type PathItemObject = {
211
+ summary?: string;
212
+ description?: string;
213
+ parameters?: Array<ParameterObject | ReferenceObject>;
214
+ [extension: `x-${string}`]: unknown;
215
+ } & Partial<Record<HttpMethod, OperationObject>>;
216
+ type SecuritySchemeObject = {
217
+ type: "apiKey" | "http" | "oauth2" | "openIdConnect" | "mutualTLS";
218
+ description?: string;
219
+ name?: string;
220
+ in?: ParameterLocation;
221
+ scheme?: string;
222
+ bearerFormat?: string;
223
+ flows?: Record<string, unknown>;
224
+ openIdConnectUrl?: string;
225
+ [extension: `x-${string}`]: unknown;
226
+ };
227
+ type ComponentsObject = {
228
+ schemas?: Record<string, SchemaObject>;
229
+ responses?: Record<string, ResponseObject>;
230
+ parameters?: Record<string, ParameterObject>;
231
+ requestBodies?: Record<string, RequestBodyObject>;
232
+ headers?: Record<string, HeaderObject>;
233
+ securitySchemes?: Record<string, SecuritySchemeObject>;
234
+ [extension: `x-${string}`]: unknown;
235
+ };
236
+ type ServerObject = {
237
+ url: string;
238
+ description?: string;
239
+ variables?: Record<string, unknown>;
240
+ [extension: `x-${string}`]: unknown;
241
+ };
242
+ type InfoObject = {
243
+ title: string;
244
+ version: string;
245
+ description?: string;
246
+ [extension: `x-${string}`]: unknown;
247
+ };
248
+ type OpenAPIDocument = {
249
+ openapi: string;
250
+ info: InfoObject;
251
+ servers?: ServerObject[];
252
+ paths: Record<string, PathItemObject>;
253
+ components?: ComponentsObject;
254
+ security?: SecurityRequirementObject[];
255
+ tags?: Array<{
256
+ name: string;
257
+ description?: string;
258
+ }>;
259
+ [extension: `x-${string}`]: unknown;
260
+ };
261
+
262
+ /** Bind values accepted by Mockingbird's SQLite port (matches sqlite-mem / better-sqlite3). */
263
+ type SqliteValue$1 = null | number | bigint | string | Uint8Array | boolean;
264
+ /** Mutation counters returned by {@link SqliteStatement.run}. */
265
+ type SqliteRunResult$1 = {
266
+ changes: number;
267
+ lastInsertRowid: number | bigint;
268
+ };
269
+ /**
270
+ * Prepared statement bound to a {@link SqliteClient}.
271
+ *
272
+ * Pass bind values as rest arguments on each call (no sticky `bind()`).
273
+ */
274
+ interface SqliteStatement$1 {
275
+ run(...params: SqliteValue$1[]): SqliteRunResult$1;
276
+ all<T = Record<string, unknown>>(...params: SqliteValue$1[]): T[];
277
+ get<T = Record<string, unknown>>(...params: SqliteValue$1[]): T | undefined;
278
+ }
279
+ /**
280
+ * Sync SQLite client port owned by Mockingbird.
281
+ *
282
+ * Duck-typed so `@crvouga/mockingbird-service-sqlite` `Database`, better-sqlite3, and wrapped
283
+ * `bun:sqlite` instances all work when they expose this surface.
284
+ */
285
+ interface SqliteClient$1 {
286
+ exec(sql: string): void;
287
+ prepare(sql: string): SqliteStatement$1;
288
+ transaction<T>(fn: () => T): T;
289
+ }
290
+
291
+ /** Options every provider constructor accepts. */
292
+ type APIOptions = {
293
+ /** Sync SQLite client. Defaults to `@crvouga/mockingbird-service-sqlite`. */
294
+ sqlite?: SqliteClient$1;
295
+ /** Clock used for `created`-style fields. Default `Date.now`. */
296
+ now?: () => number;
297
+ /**
298
+ * Storage namespace for this instance's records. Instances sharing one SQLite
299
+ * client stay isolated when their namespaces differ. Defaults to the service name.
300
+ */
301
+ namespace?: string;
302
+ };
303
+
304
+ /** Every stored record carries a monotonically increasing sequence for stable ordering. */
305
+ type Stored<T> = {
306
+ seq: number;
307
+ value: T;
308
+ };
309
+ type ListRecordsOptions<T> = {
310
+ /** Keep only records passing the predicate. */
311
+ where?: (value: T, seq: number) => boolean;
312
+ /** Sort order; default newest first. */
313
+ order?: "newest" | "oldest";
314
+ };
315
+ /**
316
+ * A SQLite-backed table of JSON records addressed by id. Ordering is by insertion
317
+ * sequence, never by id lexicographic order, so list semantics stay stable.
318
+ */
319
+ declare class Collection$1<T> {
320
+ private readonly sqlite;
321
+ /** Storage namespace. Admin introspection uses this to ignore another namespace's tables. */
322
+ readonly namespace: string;
323
+ /** Table name inside the namespace. Stable across resets of the rows themselves. */
324
+ readonly collectionName: string;
325
+ private readonly statements;
326
+ private prepare;
327
+ constructor(sqlite: SqliteClient$1,
328
+ /** Storage namespace. Admin introspection uses this to ignore another namespace's tables. */
329
+ namespace: string,
330
+ /** Table name inside the namespace. Stable across resets of the rows themselves. */
331
+ collectionName: string);
332
+ private bumpCollectionSeq;
333
+ nextSequence(): number;
334
+ get(id: string): T | undefined;
335
+ has(id: string): boolean;
336
+ /** Insert a new record, assigning it the next sequence number. */
337
+ insert(id: string, value: T): Stored<T>;
338
+ /** Replace an existing record's value, keeping its position. */
339
+ update(id: string, value: T): Stored<T> | undefined;
340
+ delete(id: string): boolean;
341
+ /** How many records the collection holds, without reading them. */
342
+ count(): number;
343
+ list(options?: ListRecordsOptions<T>): Array<Stored<T> & {
344
+ id: string;
345
+ }>;
346
+ }
347
+
348
+ /** Bind values accepted by Mockingbird's SQLite port (matches sqlite-mem / better-sqlite3). */
349
+ type SqliteValue = null | number | bigint | string | Uint8Array | boolean;
350
+ /** Mutation counters returned by {@link SqliteStatement.run}. */
351
+ type SqliteRunResult = {
352
+ changes: number;
353
+ lastInsertRowid: number | bigint;
354
+ };
355
+ /**
356
+ * Prepared statement bound to a {@link SqliteClient}.
357
+ *
358
+ * Pass bind values as rest arguments on each call (no sticky `bind()`).
359
+ */
360
+ interface SqliteStatement {
361
+ run(...params: SqliteValue[]): SqliteRunResult;
362
+ all<T = Record<string, unknown>>(...params: SqliteValue[]): T[];
363
+ get<T = Record<string, unknown>>(...params: SqliteValue[]): T | undefined;
364
+ }
365
+ /**
366
+ * Sync SQLite client port owned by Mockingbird.
367
+ *
368
+ * Duck-typed so `@crvouga/mockingbird-service-sqlite` `Database`, better-sqlite3, and wrapped
369
+ * `bun:sqlite` instances all work when they expose this surface.
370
+ */
371
+ interface SqliteClient {
372
+ exec(sql: string): void;
373
+ prepare(sql: string): SqliteStatement;
374
+ transaction<T>(fn: () => T): T;
375
+ }
376
+
377
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
378
+
379
+ interface Entity {
380
+ id: number;
381
+ created_at: string;
382
+ updated_at: string;
383
+ }
384
+ type InsertInput<T extends Entity> = Omit<T, "id" | "created_at" | "updated_at"> & {
385
+ id?: number;
386
+ };
387
+ type FilterFn<T> = (item: T) => boolean;
388
+ type SortFn<T> = (a: T, b: T) => number;
389
+ interface QueryOptions<T> {
390
+ filter?: FilterFn<T>;
391
+ sort?: SortFn<T>;
392
+ page?: number;
393
+ per_page?: number;
394
+ }
395
+ interface PaginatedResult<T> {
396
+ items: T[];
397
+ total_count: number;
398
+ page: number;
399
+ per_page: number;
400
+ has_next: boolean;
401
+ has_prev: boolean;
402
+ }
403
+ /** Provider entities live in the same namespace and history as every native service. */
404
+ declare class Collection<T extends Entity> {
405
+ readonly store: Store;
406
+ readonly name: string;
407
+ readonly fieldNames: string[];
408
+ private readonly records;
409
+ constructor(store: Store, name: string, fields?: (keyof T)[]);
410
+ insert(data: InsertInput<T>): T;
411
+ get(id: number): T | undefined;
412
+ findBy(field: keyof T, value: T[keyof T] | string | number): T[];
413
+ findOneBy(field: keyof T, value: T[keyof T] | string | number): T | undefined;
414
+ update(id: number, data: Partial<T>): T | undefined;
415
+ delete(id: number): boolean;
416
+ all(): T[];
417
+ count(filter?: FilterFn<T>): number;
418
+ clear(): void;
419
+ query(options?: QueryOptions<T>): PaginatedResult<T>;
420
+ }
421
+ declare class Store {
422
+ readonly sqlite: SqliteClient;
423
+ readonly namespace: string;
424
+ readonly now: () => number;
425
+ readonly meta: Collection$1<unknown>;
426
+ private readonly collections;
427
+ private readonly data;
428
+ constructor(sqlite?: SqliteClient, namespace?: string, now?: () => number);
429
+ isoNow(): string;
430
+ collection<T extends Entity>(name: string, fields?: (keyof T)[]): Collection<T>;
431
+ getData<V>(key: string): V | undefined;
432
+ setData<V>(key: string, value: V): void;
433
+ /** Drop request caches so checkout/reset and namespace selection always read SQLite. */
434
+ begin(): void;
435
+ flush(): void;
436
+ reset(): void;
437
+ }
438
+
439
+ interface WebhookSubscription {
440
+ id: number;
441
+ url: string;
442
+ events: string[];
443
+ active: boolean;
444
+ secret?: string;
445
+ owner: string;
446
+ repo?: string;
447
+ }
448
+ interface WebhookDelivery {
449
+ id: number;
450
+ hook_id: number;
451
+ event: string;
452
+ action?: string;
453
+ payload: unknown;
454
+ status_code: number | null;
455
+ delivered_at: string;
456
+ duration: number | null;
457
+ success: boolean;
458
+ }
459
+ interface WebhookHeaderContext {
460
+ event: string;
461
+ action?: string;
462
+ body: string;
463
+ subscription: Readonly<WebhookSubscription>;
464
+ deliveryId: number;
465
+ }
466
+ type WebhookHeaderFactory = (context: WebhookHeaderContext) => Record<string, string>;
467
+ declare class WebhookDispatcher {
468
+ private readonly options;
469
+ private readonly records;
470
+ private readonly now;
471
+ private headerFactory;
472
+ constructor(options?: {
473
+ signal?: AbortSignal;
474
+ neutral?: boolean;
475
+ store?: Store;
476
+ });
477
+ private load;
478
+ private save;
479
+ setHeaderFactory(factory: WebhookHeaderFactory): void;
480
+ register(sub: Omit<WebhookSubscription, "id"> & {
481
+ id?: number;
482
+ }): WebhookSubscription;
483
+ unregister(id: number): boolean;
484
+ getSubscription(id: number): WebhookSubscription | undefined;
485
+ getSubscriptions(owner?: string, repo?: string): WebhookSubscription[];
486
+ updateSubscription(id: number, data: Partial<Pick<WebhookSubscription, "url" | "events" | "active" | "secret">>): WebhookSubscription | undefined;
487
+ dispatch(event: string, action: string | undefined, payload: unknown, owner: string, repo?: string): Promise<void>;
488
+ getDeliveries(hookId?: number): WebhookDelivery[];
489
+ clear(): void;
490
+ }
491
+
492
+ interface AuthUser {
493
+ login: string;
494
+ id: number;
495
+ scopes: string[];
496
+ installation?: AuthInstallation;
497
+ }
498
+ interface AuthApp {
499
+ appId: number;
500
+ slug: string;
501
+ name: string;
502
+ }
503
+ interface AuthInstallation {
504
+ installationId: number;
505
+ appId: number;
506
+ accountId: number;
507
+ accountType: "User" | "Organization";
508
+ permissions: Record<string, string>;
509
+ repositoryIds: number[];
510
+ repositorySelection: "all" | "selected";
511
+ }
512
+ type TokenMap = Map<string, AuthUser>;
513
+ type AppEnv = {
514
+ Variables: {
515
+ authUser?: AuthUser;
516
+ authApp?: AuthApp;
517
+ authToken?: string;
518
+ authScopes?: string[];
519
+ docsUrl?: string;
520
+ };
521
+ };
522
+ interface AuthFallback {
523
+ login: string;
524
+ id: number;
525
+ scopes: string[];
526
+ }
527
+
528
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
529
+
530
+ interface ServicePlugin {
531
+ name: string;
532
+ register(app: Hono<AppEnv>, store: Store, webhooks: WebhookDispatcher, baseUrl: string, tokenMap?: TokenMap): void;
533
+ seed?(store: Store, baseUrl: string): void;
534
+ }
535
+
536
+ interface AppleSeedConfig {
537
+ users?: Array<{
538
+ email: string;
539
+ name?: string;
540
+ given_name?: string;
541
+ family_name?: string;
542
+ is_private_email?: boolean;
543
+ }>;
544
+ oauth_clients?: Array<{
545
+ client_id: string;
546
+ team_id: string;
547
+ key_id?: string;
548
+ name: string;
549
+ redirect_uris: string[];
550
+ }>;
551
+ }
552
+ declare function seedFromConfig$c(store: Store, _baseUrl: string, config: AppleSeedConfig): void;
553
+ declare const applePlugin: ServicePlugin;
554
+
555
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
556
+
557
+ interface S3Bucket extends Entity {
558
+ bucket_name: string;
559
+ region: string;
560
+ creation_date: string;
561
+ acl: "private" | "public-read" | "public-read-write";
562
+ versioning_enabled: boolean;
563
+ }
564
+ interface S3Object extends Entity {
565
+ bucket_name: string;
566
+ key: string;
567
+ body_base64?: string;
568
+ /** Legacy snapshots may contain UTF-8 object data in this field. */
569
+ body?: string;
570
+ content_type: string;
571
+ content_length: number;
572
+ etag: string;
573
+ last_modified: string;
574
+ metadata: Record<string, string>;
575
+ version_id?: string;
576
+ }
577
+ interface SqsQueue extends Entity {
578
+ queue_name: string;
579
+ queue_url: string;
580
+ arn: string;
581
+ visibility_timeout: number;
582
+ delay_seconds: number;
583
+ max_message_size: number;
584
+ message_retention_period: number;
585
+ receive_message_wait_time: number;
586
+ fifo: boolean;
587
+ }
588
+ interface SqsMessage extends Entity {
589
+ queue_name: string;
590
+ message_id: string;
591
+ receipt_handle: string;
592
+ body: string;
593
+ md5_of_body: string;
594
+ attributes: Record<string, string>;
595
+ message_attributes: Record<string, {
596
+ DataType: string;
597
+ StringValue?: string;
598
+ BinaryValue?: string;
599
+ }>;
600
+ visible_after: number;
601
+ sent_timestamp: number;
602
+ receive_count: number;
603
+ }
604
+ interface IamUser extends Entity {
605
+ user_name: string;
606
+ user_id: string;
607
+ arn: string;
608
+ path: string;
609
+ access_keys: Array<{
610
+ access_key_id: string;
611
+ secret_access_key: string;
612
+ status: "Active" | "Inactive";
613
+ }>;
614
+ }
615
+ interface IamRole extends Entity {
616
+ role_name: string;
617
+ role_id: string;
618
+ arn: string;
619
+ path: string;
620
+ assume_role_policy_document: string;
621
+ description: string;
622
+ }
623
+
624
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
625
+
626
+ interface AwsStore {
627
+ s3Buckets: Collection<S3Bucket>;
628
+ s3Objects: Collection<S3Object>;
629
+ sqsQueues: Collection<SqsQueue>;
630
+ sqsMessages: Collection<SqsMessage>;
631
+ iamUsers: Collection<IamUser>;
632
+ iamRoles: Collection<IamRole>;
633
+ }
634
+ declare function getAwsStore(store: Store): AwsStore;
635
+
636
+ interface AwsSeedConfig {
637
+ port?: number;
638
+ region?: string;
639
+ account_id?: string;
640
+ s3?: {
641
+ buckets?: Array<{
642
+ name: string;
643
+ region?: string;
644
+ }>;
645
+ };
646
+ sqs?: {
647
+ queues?: Array<{
648
+ name: string;
649
+ fifo?: boolean;
650
+ visibility_timeout?: number;
651
+ }>;
652
+ };
653
+ iam?: {
654
+ users?: Array<{
655
+ user_name: string;
656
+ path?: string;
657
+ create_access_key?: boolean;
658
+ }>;
659
+ roles?: Array<{
660
+ role_name: string;
661
+ path?: string;
662
+ description?: string;
663
+ assume_role_policy?: string;
664
+ }>;
665
+ };
666
+ }
667
+ declare function seedFromConfig$b(store: Store, baseUrl: string, config: AwsSeedConfig): void;
668
+ declare const awsPlugin: ServicePlugin;
669
+
670
+ interface ClerkSeedConfig {
671
+ users?: Array<{
672
+ clerk_id?: string;
673
+ email_addresses: string[];
674
+ first_name?: string;
675
+ last_name?: string;
676
+ username?: string;
677
+ password?: string;
678
+ external_id?: string;
679
+ public_metadata?: Record<string, unknown>;
680
+ private_metadata?: Record<string, unknown>;
681
+ unsafe_metadata?: Record<string, unknown>;
682
+ }>;
683
+ organizations?: Array<{
684
+ clerk_id?: string;
685
+ name: string;
686
+ slug?: string;
687
+ max_allowed_memberships?: number;
688
+ public_metadata?: Record<string, unknown>;
689
+ private_metadata?: Record<string, unknown>;
690
+ members?: Array<{
691
+ email: string;
692
+ role: string;
693
+ }>;
694
+ }>;
695
+ oauth_applications?: Array<{
696
+ client_id: string;
697
+ client_secret?: string;
698
+ name: string;
699
+ redirect_uris: string[];
700
+ scopes?: string[];
701
+ public?: boolean;
702
+ }>;
703
+ }
704
+ declare function seedFromConfig$a(store: Store, _baseUrl: string, config: ClerkSeedConfig): void;
705
+ declare const clerkPlugin: ServicePlugin;
706
+
707
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
708
+
709
+ interface GitHubUser extends Entity {
710
+ login: string;
711
+ node_id: string;
712
+ avatar_url: string;
713
+ gravatar_id: string;
714
+ type: "User" | "Organization" | "Bot";
715
+ site_admin: boolean;
716
+ name: string | null;
717
+ company: string | null;
718
+ blog: string;
719
+ location: string | null;
720
+ email: string | null;
721
+ hireable: boolean | null;
722
+ bio: string | null;
723
+ twitter_username: string | null;
724
+ public_repos: number;
725
+ public_gists: number;
726
+ followers: number;
727
+ following: number;
728
+ }
729
+ interface GitHubOrg extends Entity {
730
+ login: string;
731
+ node_id: string;
732
+ description: string | null;
733
+ name: string | null;
734
+ company: string | null;
735
+ blog: string;
736
+ location: string | null;
737
+ email: string | null;
738
+ twitter_username: string | null;
739
+ is_verified: boolean;
740
+ has_organization_projects: boolean;
741
+ has_repository_projects: boolean;
742
+ public_repos: number;
743
+ public_gists: number;
744
+ followers: number;
745
+ following: number;
746
+ members_can_create_repositories: boolean;
747
+ default_repository_permission: string;
748
+ billing_email: string | null;
749
+ }
750
+ interface GitHubTeam extends Entity {
751
+ node_id: string;
752
+ name: string;
753
+ slug: string;
754
+ description: string | null;
755
+ privacy: "closed" | "secret";
756
+ permission: string;
757
+ org_id: number;
758
+ parent_id: number | null;
759
+ members_count: number;
760
+ repos_count: number;
761
+ }
762
+ interface GitHubTeamMember extends Entity {
763
+ team_id: number;
764
+ user_id: number;
765
+ role: "member" | "maintainer";
766
+ }
767
+ interface GitHubTeamRepo extends Entity {
768
+ team_id: number;
769
+ repo_id: number;
770
+ }
771
+ interface GitHubRepo extends Entity {
772
+ node_id: string;
773
+ name: string;
774
+ full_name: string;
775
+ owner_id: number;
776
+ owner_type: "User" | "Organization";
777
+ private: boolean;
778
+ description: string | null;
779
+ fork: boolean;
780
+ forked_from_id: number | null;
781
+ homepage: string | null;
782
+ language: string | null;
783
+ languages: Record<string, number>;
784
+ forks_count: number;
785
+ stargazers_count: number;
786
+ watchers_count: number;
787
+ size: number;
788
+ default_branch: string;
789
+ open_issues_count: number;
790
+ topics: string[];
791
+ has_issues: boolean;
792
+ has_projects: boolean;
793
+ has_wiki: boolean;
794
+ has_pages: boolean;
795
+ has_downloads: boolean;
796
+ has_discussions: boolean;
797
+ archived: boolean;
798
+ disabled: boolean;
799
+ visibility: "public" | "private" | "internal";
800
+ pushed_at: string | null;
801
+ allow_rebase_merge: boolean;
802
+ allow_squash_merge: boolean;
803
+ allow_merge_commit: boolean;
804
+ allow_auto_merge: boolean;
805
+ delete_branch_on_merge: boolean;
806
+ allow_forking: boolean;
807
+ is_template: boolean;
808
+ license: {
809
+ key: string;
810
+ name: string;
811
+ spdx_id: string;
812
+ } | null;
813
+ }
814
+ interface GitHubCollaborator extends Entity {
815
+ repo_id: number;
816
+ user_id: number;
817
+ permission: "pull" | "triage" | "push" | "maintain" | "admin";
818
+ }
819
+ interface GitHubIssue extends Entity {
820
+ node_id: string;
821
+ number: number;
822
+ repo_id: number;
823
+ title: string;
824
+ body: string | null;
825
+ state: "open" | "closed";
826
+ state_reason: "completed" | "not_planned" | "reopened" | null;
827
+ locked: boolean;
828
+ active_lock_reason: string | null;
829
+ user_id: number;
830
+ assignee_ids: number[];
831
+ label_ids: number[];
832
+ milestone_id: number | null;
833
+ comments: number;
834
+ closed_at: string | null;
835
+ closed_by_id: number | null;
836
+ is_pull_request: boolean;
837
+ }
838
+ interface GitHubPullRequest extends Entity {
839
+ node_id: string;
840
+ number: number;
841
+ repo_id: number;
842
+ title: string;
843
+ body: string | null;
844
+ state: "open" | "closed";
845
+ locked: boolean;
846
+ user_id: number;
847
+ assignee_ids: number[];
848
+ label_ids: number[];
849
+ milestone_id: number | null;
850
+ head_ref: string;
851
+ head_sha: string;
852
+ head_repo_id: number;
853
+ base_ref: string;
854
+ base_sha: string;
855
+ base_repo_id: number;
856
+ merged: boolean;
857
+ merged_at: string | null;
858
+ merged_by_id: number | null;
859
+ merge_commit_sha: string | null;
860
+ mergeable: boolean | null;
861
+ mergeable_state: string;
862
+ comments: number;
863
+ review_comments: number;
864
+ commits: number;
865
+ additions: number;
866
+ deletions: number;
867
+ changed_files: number;
868
+ draft: boolean;
869
+ requested_reviewer_ids: number[];
870
+ requested_team_ids: number[];
871
+ closed_at: string | null;
872
+ auto_merge: null;
873
+ }
874
+ interface GitHubLabel extends Entity {
875
+ node_id: string;
876
+ repo_id: number;
877
+ name: string;
878
+ description: string | null;
879
+ color: string;
880
+ default: boolean;
881
+ }
882
+ interface GitHubMilestone extends Entity {
883
+ node_id: string;
884
+ repo_id: number;
885
+ number: number;
886
+ title: string;
887
+ description: string | null;
888
+ state: "open" | "closed";
889
+ open_issues: number;
890
+ closed_issues: number;
891
+ due_on: string | null;
892
+ closed_at: string | null;
893
+ creator_id: number;
894
+ }
895
+ interface GitHubComment extends Entity {
896
+ node_id: string;
897
+ repo_id: number;
898
+ issue_number: number | null;
899
+ pull_number: number | null;
900
+ commit_sha: string | null;
901
+ body: string;
902
+ user_id: number;
903
+ in_reply_to_id: number | null;
904
+ path: string | null;
905
+ position: number | null;
906
+ line: number | null;
907
+ side: "LEFT" | "RIGHT" | null;
908
+ subject_type: "line" | "file" | null;
909
+ comment_type: "issue" | "review" | "commit";
910
+ /** Set for line comments created as part of a pull request review. */
911
+ review_id: number | null;
912
+ }
913
+ interface GitHubReview extends Entity {
914
+ node_id: string;
915
+ repo_id: number;
916
+ pull_number: number;
917
+ user_id: number;
918
+ body: string | null;
919
+ state: "PENDING" | "APPROVED" | "CHANGES_REQUESTED" | "COMMENTED" | "DISMISSED";
920
+ commit_id: string;
921
+ submitted_at: string | null;
922
+ }
923
+ interface GitHubIssueEvent extends Entity {
924
+ node_id: string;
925
+ repo_id: number;
926
+ issue_number: number;
927
+ event: string;
928
+ actor_id: number;
929
+ commit_id: string | null;
930
+ commit_url: string | null;
931
+ label_name: string | null;
932
+ assignee_id: number | null;
933
+ milestone_title: string | null;
934
+ rename: {
935
+ from: string;
936
+ to: string;
937
+ } | null;
938
+ }
939
+ interface GitHubBranch extends Entity {
940
+ repo_id: number;
941
+ name: string;
942
+ sha: string;
943
+ protected: boolean;
944
+ }
945
+ interface GitHubBranchProtection extends Entity {
946
+ repo_id: number;
947
+ branch_name: string;
948
+ required_status_checks: {
949
+ strict: boolean;
950
+ contexts: string[];
951
+ } | null;
952
+ enforce_admins: boolean;
953
+ required_pull_request_reviews: {
954
+ required_approving_review_count: number;
955
+ dismiss_stale_reviews: boolean;
956
+ require_code_owner_reviews: boolean;
957
+ } | null;
958
+ restrictions: {
959
+ users: string[];
960
+ teams: string[];
961
+ } | null;
962
+ required_linear_history: boolean;
963
+ allow_force_pushes: boolean;
964
+ allow_deletions: boolean;
965
+ required_signatures: boolean;
966
+ }
967
+ interface GitHubRef extends Entity {
968
+ repo_id: number;
969
+ ref: string;
970
+ sha: string;
971
+ node_id: string;
972
+ }
973
+ interface GitHubCommit extends Entity {
974
+ repo_id: number;
975
+ sha: string;
976
+ node_id: string;
977
+ message: string;
978
+ author_name: string;
979
+ author_email: string;
980
+ author_date: string;
981
+ committer_name: string;
982
+ committer_email: string;
983
+ committer_date: string;
984
+ tree_sha: string;
985
+ parent_shas: string[];
986
+ user_id: number | null;
987
+ }
988
+ interface GitHubTree extends Entity {
989
+ repo_id: number;
990
+ sha: string;
991
+ node_id: string;
992
+ tree: Array<{
993
+ path: string;
994
+ mode: string;
995
+ type: "blob" | "tree" | "commit";
996
+ sha: string;
997
+ size?: number;
998
+ }>;
999
+ truncated: boolean;
1000
+ }
1001
+ interface GitHubBlob extends Entity {
1002
+ repo_id: number;
1003
+ sha: string;
1004
+ node_id: string;
1005
+ content: string;
1006
+ encoding: "base64" | "utf-8";
1007
+ size: number;
1008
+ }
1009
+ interface GitHubTag extends Entity {
1010
+ repo_id: number;
1011
+ tag: string;
1012
+ sha: string;
1013
+ node_id: string;
1014
+ message: string;
1015
+ tagger_name: string;
1016
+ tagger_email: string;
1017
+ tagger_date: string;
1018
+ object_type: string;
1019
+ object_sha: string;
1020
+ }
1021
+ interface GitHubRelease extends Entity {
1022
+ node_id: string;
1023
+ repo_id: number;
1024
+ tag_name: string;
1025
+ target_commitish: string;
1026
+ name: string | null;
1027
+ body: string | null;
1028
+ draft: boolean;
1029
+ prerelease: boolean;
1030
+ author_id: number;
1031
+ published_at: string | null;
1032
+ }
1033
+ interface GitHubReleaseAsset extends Entity {
1034
+ node_id: string;
1035
+ release_id: number;
1036
+ repo_id: number;
1037
+ name: string;
1038
+ label: string | null;
1039
+ state: "uploaded" | "open";
1040
+ content_type: string;
1041
+ size: number;
1042
+ download_count: number;
1043
+ uploader_id: number;
1044
+ }
1045
+ interface GitHubWebhook extends Entity {
1046
+ repo_id: number | null;
1047
+ org_id: number | null;
1048
+ name: string;
1049
+ active: boolean;
1050
+ events: string[];
1051
+ config: {
1052
+ url: string;
1053
+ content_type: string;
1054
+ secret?: string;
1055
+ insecure_ssl: string;
1056
+ };
1057
+ last_response: {
1058
+ code: number | null;
1059
+ status: string;
1060
+ message: string | null;
1061
+ };
1062
+ }
1063
+ interface GitHubWorkflow extends Entity {
1064
+ node_id: string;
1065
+ repo_id: number;
1066
+ name: string;
1067
+ path: string;
1068
+ state: "active" | "disabled_manually" | "disabled_inactivity";
1069
+ badge_url: string;
1070
+ }
1071
+ interface GitHubWorkflowRun extends Entity {
1072
+ node_id: string;
1073
+ repo_id: number;
1074
+ workflow_id: number;
1075
+ name: string;
1076
+ head_branch: string;
1077
+ head_sha: string;
1078
+ run_number: number;
1079
+ event: string;
1080
+ status: "queued" | "in_progress" | "completed";
1081
+ conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
1082
+ actor_id: number;
1083
+ run_attempt: number;
1084
+ run_started_at: string;
1085
+ }
1086
+ interface GitHubJob extends Entity {
1087
+ node_id: string;
1088
+ repo_id: number;
1089
+ run_id: number;
1090
+ name: string;
1091
+ status: "queued" | "in_progress" | "completed";
1092
+ conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
1093
+ started_at: string | null;
1094
+ completed_at: string | null;
1095
+ runner_id: number | null;
1096
+ runner_name: string | null;
1097
+ steps: Array<{
1098
+ name: string;
1099
+ status: string;
1100
+ conclusion: string | null;
1101
+ number: number;
1102
+ started_at: string | null;
1103
+ completed_at: string | null;
1104
+ }>;
1105
+ }
1106
+ interface GitHubArtifact extends Entity {
1107
+ node_id: string;
1108
+ repo_id: number;
1109
+ run_id: number;
1110
+ name: string;
1111
+ size_in_bytes: number;
1112
+ expired: boolean;
1113
+ expires_at: string;
1114
+ }
1115
+ interface GitHubSecret extends Entity {
1116
+ repo_id: number | null;
1117
+ org_id: number | null;
1118
+ name: string;
1119
+ visibility: "all" | "private" | "selected";
1120
+ }
1121
+ interface GitHubCheckAnnotation {
1122
+ path: string;
1123
+ start_line: number;
1124
+ end_line: number;
1125
+ annotation_level: string;
1126
+ message: string;
1127
+ }
1128
+ interface GitHubCheckRun extends Entity {
1129
+ node_id: string;
1130
+ repo_id: number;
1131
+ head_sha: string;
1132
+ name: string;
1133
+ status: "queued" | "in_progress" | "completed";
1134
+ conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
1135
+ started_at: string | null;
1136
+ completed_at: string | null;
1137
+ external_id: string;
1138
+ details_url: string | null;
1139
+ actions: {
1140
+ id: string;
1141
+ label: string;
1142
+ description: string;
1143
+ }[] | null;
1144
+ output: {
1145
+ title: string | null;
1146
+ summary: string | null;
1147
+ text: string | null;
1148
+ annotations_count: number;
1149
+ annotations: GitHubCheckAnnotation[];
1150
+ };
1151
+ check_suite_id: number | null;
1152
+ app_id: number | null;
1153
+ }
1154
+ interface GitHubCheckSuite extends Entity {
1155
+ node_id: string;
1156
+ repo_id: number;
1157
+ head_branch: string;
1158
+ head_sha: string;
1159
+ status: "queued" | "in_progress" | "completed";
1160
+ conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
1161
+ before: string;
1162
+ after: string;
1163
+ app_id: number | null;
1164
+ }
1165
+ interface GitHubOAuthApp extends Entity {
1166
+ client_id: string;
1167
+ client_secret: string;
1168
+ name: string;
1169
+ redirect_uris: string[];
1170
+ }
1171
+ interface GitHubApp extends Entity {
1172
+ app_id: number;
1173
+ slug: string;
1174
+ name: string;
1175
+ private_key: string;
1176
+ permissions: Record<string, string>;
1177
+ events: string[];
1178
+ webhook_url: string | null;
1179
+ webhook_secret: string | null;
1180
+ description: string | null;
1181
+ }
1182
+ interface GitHubAppInstallation extends Entity {
1183
+ installation_id: number;
1184
+ app_id: number;
1185
+ account_type: "User" | "Organization";
1186
+ account_id: number;
1187
+ account_login: string;
1188
+ repository_selection: "all" | "selected";
1189
+ repository_ids: number[];
1190
+ permissions: Record<string, string>;
1191
+ events: string[];
1192
+ suspended_at: string | null;
1193
+ }
1194
+ interface GitHubInstallationTokenMetadata extends Entity {
1195
+ app_id: number;
1196
+ app_slug: string;
1197
+ app_name: string;
1198
+ installation_id: number;
1199
+ account_id: number;
1200
+ account_login: string;
1201
+ account_type: "User" | "Organization";
1202
+ permissions: Record<string, string>;
1203
+ repository_ids: number[];
1204
+ repository_selection: "all" | "selected";
1205
+ issued_at: string;
1206
+ expires_at: string;
1207
+ }
1208
+ interface GitHubOAuthGrant extends Entity {
1209
+ user_id: number;
1210
+ oauth_app_id: number;
1211
+ client_id: string;
1212
+ scopes: string[];
1213
+ org_access: Record<string, "granted" | "denied" | "requested">;
1214
+ }
1215
+
1216
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
1217
+
1218
+ interface GitHubStore {
1219
+ users: Collection<GitHubUser>;
1220
+ orgs: Collection<GitHubOrg>;
1221
+ teams: Collection<GitHubTeam>;
1222
+ teamMembers: Collection<GitHubTeamMember>;
1223
+ teamRepos: Collection<GitHubTeamRepo>;
1224
+ repos: Collection<GitHubRepo>;
1225
+ collaborators: Collection<GitHubCollaborator>;
1226
+ issues: Collection<GitHubIssue>;
1227
+ pullRequests: Collection<GitHubPullRequest>;
1228
+ labels: Collection<GitHubLabel>;
1229
+ milestones: Collection<GitHubMilestone>;
1230
+ comments: Collection<GitHubComment>;
1231
+ reviews: Collection<GitHubReview>;
1232
+ issueEvents: Collection<GitHubIssueEvent>;
1233
+ branches: Collection<GitHubBranch>;
1234
+ branchProtections: Collection<GitHubBranchProtection>;
1235
+ refs: Collection<GitHubRef>;
1236
+ commits: Collection<GitHubCommit>;
1237
+ trees: Collection<GitHubTree>;
1238
+ blobs: Collection<GitHubBlob>;
1239
+ tags: Collection<GitHubTag>;
1240
+ releases: Collection<GitHubRelease>;
1241
+ releaseAssets: Collection<GitHubReleaseAsset>;
1242
+ webhooks: Collection<GitHubWebhook>;
1243
+ workflows: Collection<GitHubWorkflow>;
1244
+ workflowRuns: Collection<GitHubWorkflowRun>;
1245
+ jobs: Collection<GitHubJob>;
1246
+ artifacts: Collection<GitHubArtifact>;
1247
+ secrets: Collection<GitHubSecret>;
1248
+ checkRuns: Collection<GitHubCheckRun>;
1249
+ checkSuites: Collection<GitHubCheckSuite>;
1250
+ oauthApps: Collection<GitHubOAuthApp>;
1251
+ apps: Collection<GitHubApp>;
1252
+ appInstallations: Collection<GitHubAppInstallation>;
1253
+ installationTokenMetadata: Collection<GitHubInstallationTokenMetadata>;
1254
+ oauthGrants: Collection<GitHubOAuthGrant>;
1255
+ }
1256
+ declare function getGitHubStore(store: Store): GitHubStore;
1257
+
1258
+ declare function generateNodeId(type: string, id: number): string;
1259
+ declare function formatRepo(repo: GitHubRepo, store: GitHubStore, baseUrl: string, authUserId?: number): {
1260
+ id: number;
1261
+ node_id: string;
1262
+ name: string;
1263
+ full_name: string;
1264
+ private: boolean;
1265
+ owner: {
1266
+ login: string;
1267
+ id: number;
1268
+ node_id: string;
1269
+ avatar_url: string;
1270
+ gravatar_id: string;
1271
+ url: string;
1272
+ html_url: string;
1273
+ followers_url: string;
1274
+ following_url: string;
1275
+ gists_url: string;
1276
+ starred_url: string;
1277
+ subscriptions_url: string;
1278
+ organizations_url: string;
1279
+ repos_url: string;
1280
+ events_url: string;
1281
+ received_events_url: string;
1282
+ type: "User" | "Organization" | "Bot";
1283
+ site_admin: boolean;
1284
+ user_view_type: string;
1285
+ } | {
1286
+ login: string;
1287
+ id: number;
1288
+ node_id: string;
1289
+ url: string;
1290
+ html_url: string;
1291
+ repos_url: string;
1292
+ events_url: string;
1293
+ hooks_url: string;
1294
+ issues_url: string;
1295
+ members_url: string;
1296
+ public_members_url: string;
1297
+ avatar_url: string;
1298
+ description: string | null;
1299
+ type: string;
1300
+ site_admin: boolean;
1301
+ user_view_type: string;
1302
+ } | null;
1303
+ html_url: string;
1304
+ description: string | null;
1305
+ fork: boolean;
1306
+ url: string;
1307
+ forks_url: string;
1308
+ keys_url: string;
1309
+ collaborators_url: string;
1310
+ teams_url: string;
1311
+ hooks_url: string;
1312
+ issue_events_url: string;
1313
+ events_url: string;
1314
+ assignees_url: string;
1315
+ branches_url: string;
1316
+ tags_url: string;
1317
+ blobs_url: string;
1318
+ git_tags_url: string;
1319
+ git_refs_url: string;
1320
+ trees_url: string;
1321
+ statuses_url: string;
1322
+ languages_url: string;
1323
+ stargazers_url: string;
1324
+ contributors_url: string;
1325
+ subscribers_url: string;
1326
+ subscription_url: string;
1327
+ commits_url: string;
1328
+ git_commits_url: string;
1329
+ comments_url: string;
1330
+ issue_comment_url: string;
1331
+ contents_url: string;
1332
+ compare_url: string;
1333
+ merges_url: string;
1334
+ archive_url: string;
1335
+ downloads_url: string;
1336
+ issues_url: string;
1337
+ pulls_url: string;
1338
+ milestones_url: string;
1339
+ notifications_url: string;
1340
+ labels_url: string;
1341
+ releases_url: string;
1342
+ deployments_url: string;
1343
+ created_at: string;
1344
+ updated_at: string;
1345
+ pushed_at: string | null;
1346
+ git_url: string;
1347
+ ssh_url: string;
1348
+ clone_url: string;
1349
+ svn_url: string;
1350
+ homepage: string | null;
1351
+ size: number;
1352
+ stargazers_count: number;
1353
+ watchers_count: number;
1354
+ language: string | null;
1355
+ has_issues: boolean;
1356
+ has_projects: boolean;
1357
+ has_downloads: boolean;
1358
+ has_wiki: boolean;
1359
+ has_pages: boolean;
1360
+ has_discussions: boolean;
1361
+ forks_count: number;
1362
+ mirror_url: null;
1363
+ archived: boolean;
1364
+ disabled: boolean;
1365
+ open_issues_count: number;
1366
+ license: {
1367
+ key: string;
1368
+ name: string;
1369
+ spdx_id: string;
1370
+ } | null;
1371
+ allow_forking: boolean;
1372
+ is_template: boolean;
1373
+ topics: string[];
1374
+ visibility: "private" | "public" | "internal";
1375
+ forks: number;
1376
+ open_issues: number;
1377
+ watchers: number;
1378
+ default_branch: string;
1379
+ permissions: {
1380
+ admin: boolean;
1381
+ maintain: boolean;
1382
+ push: boolean;
1383
+ triage: boolean;
1384
+ pull: boolean;
1385
+ };
1386
+ allow_rebase_merge: boolean;
1387
+ allow_squash_merge: boolean;
1388
+ allow_merge_commit: boolean;
1389
+ allow_auto_merge: boolean;
1390
+ delete_branch_on_merge: boolean;
1391
+ };
1392
+ declare function formatPullRequest(pr: GitHubPullRequest, store: GitHubStore, baseUrl: string): {
1393
+ url: string;
1394
+ id: number;
1395
+ node_id: string;
1396
+ html_url: string;
1397
+ diff_url: string;
1398
+ patch_url: string;
1399
+ issue_url: string;
1400
+ number: number;
1401
+ state: "closed" | "open";
1402
+ locked: boolean;
1403
+ title: string;
1404
+ user: {
1405
+ login: string;
1406
+ id: number;
1407
+ node_id: string;
1408
+ avatar_url: string;
1409
+ gravatar_id: string;
1410
+ url: string;
1411
+ html_url: string;
1412
+ followers_url: string;
1413
+ following_url: string;
1414
+ gists_url: string;
1415
+ starred_url: string;
1416
+ subscriptions_url: string;
1417
+ organizations_url: string;
1418
+ repos_url: string;
1419
+ events_url: string;
1420
+ received_events_url: string;
1421
+ type: "User" | "Organization" | "Bot";
1422
+ site_admin: boolean;
1423
+ user_view_type: string;
1424
+ } | null;
1425
+ body: string | null;
1426
+ created_at: string;
1427
+ updated_at: string;
1428
+ closed_at: string | null;
1429
+ merged_at: string | null;
1430
+ merge_commit_sha: string | null;
1431
+ assignee: {
1432
+ login: string;
1433
+ id: number;
1434
+ node_id: string;
1435
+ avatar_url: string;
1436
+ gravatar_id: string;
1437
+ url: string;
1438
+ html_url: string;
1439
+ followers_url: string;
1440
+ following_url: string;
1441
+ gists_url: string;
1442
+ starred_url: string;
1443
+ subscriptions_url: string;
1444
+ organizations_url: string;
1445
+ repos_url: string;
1446
+ events_url: string;
1447
+ received_events_url: string;
1448
+ type: "User" | "Organization" | "Bot";
1449
+ site_admin: boolean;
1450
+ user_view_type: string;
1451
+ };
1452
+ assignees: {
1453
+ login: string;
1454
+ id: number;
1455
+ node_id: string;
1456
+ avatar_url: string;
1457
+ gravatar_id: string;
1458
+ url: string;
1459
+ html_url: string;
1460
+ followers_url: string;
1461
+ following_url: string;
1462
+ gists_url: string;
1463
+ starred_url: string;
1464
+ subscriptions_url: string;
1465
+ organizations_url: string;
1466
+ repos_url: string;
1467
+ events_url: string;
1468
+ received_events_url: string;
1469
+ type: "User" | "Organization" | "Bot";
1470
+ site_admin: boolean;
1471
+ user_view_type: string;
1472
+ }[];
1473
+ requested_reviewers: {
1474
+ login: string;
1475
+ id: number;
1476
+ node_id: string;
1477
+ avatar_url: string;
1478
+ gravatar_id: string;
1479
+ url: string;
1480
+ html_url: string;
1481
+ followers_url: string;
1482
+ following_url: string;
1483
+ gists_url: string;
1484
+ starred_url: string;
1485
+ subscriptions_url: string;
1486
+ organizations_url: string;
1487
+ repos_url: string;
1488
+ events_url: string;
1489
+ received_events_url: string;
1490
+ type: "User" | "Organization" | "Bot";
1491
+ site_admin: boolean;
1492
+ user_view_type: string;
1493
+ }[];
1494
+ requested_teams: {
1495
+ id: number;
1496
+ node_id: string;
1497
+ url: string;
1498
+ html_url: string;
1499
+ name: string;
1500
+ slug: string;
1501
+ description: string | null;
1502
+ privacy: "secret" | "closed";
1503
+ permission: string;
1504
+ members_url: string;
1505
+ repositories_url: string;
1506
+ }[];
1507
+ labels: {
1508
+ id: number;
1509
+ node_id: string;
1510
+ url: string;
1511
+ name: string;
1512
+ description: string | null;
1513
+ color: string;
1514
+ default: boolean;
1515
+ }[];
1516
+ milestone: {
1517
+ url: string;
1518
+ html_url: string;
1519
+ labels_url: string;
1520
+ id: number;
1521
+ node_id: string;
1522
+ number: number;
1523
+ title: string;
1524
+ description: string | null;
1525
+ creator: {
1526
+ login: string;
1527
+ id: number;
1528
+ node_id: string;
1529
+ avatar_url: string;
1530
+ gravatar_id: string;
1531
+ url: string;
1532
+ html_url: string;
1533
+ followers_url: string;
1534
+ following_url: string;
1535
+ gists_url: string;
1536
+ starred_url: string;
1537
+ subscriptions_url: string;
1538
+ organizations_url: string;
1539
+ repos_url: string;
1540
+ events_url: string;
1541
+ received_events_url: string;
1542
+ type: "User" | "Organization" | "Bot";
1543
+ site_admin: boolean;
1544
+ user_view_type: string;
1545
+ } | null;
1546
+ open_issues: number;
1547
+ closed_issues: number;
1548
+ state: "closed" | "open";
1549
+ created_at: string;
1550
+ updated_at: string;
1551
+ due_on: string | null;
1552
+ closed_at: string | null;
1553
+ } | null;
1554
+ draft: boolean;
1555
+ commits_url: string;
1556
+ review_comments_url: string;
1557
+ review_comment_url: string;
1558
+ comments_url: string;
1559
+ statuses_url: string;
1560
+ head: {
1561
+ label: string;
1562
+ ref: string;
1563
+ sha: string;
1564
+ user: {
1565
+ login: string;
1566
+ id: number;
1567
+ node_id: string;
1568
+ avatar_url: string;
1569
+ gravatar_id: string;
1570
+ url: string;
1571
+ html_url: string;
1572
+ followers_url: string;
1573
+ following_url: string;
1574
+ gists_url: string;
1575
+ starred_url: string;
1576
+ subscriptions_url: string;
1577
+ organizations_url: string;
1578
+ repos_url: string;
1579
+ events_url: string;
1580
+ received_events_url: string;
1581
+ type: "User" | "Organization" | "Bot";
1582
+ site_admin: boolean;
1583
+ user_view_type: string;
1584
+ } | {
1585
+ login: string;
1586
+ id: number;
1587
+ node_id: string;
1588
+ url: string;
1589
+ html_url: string;
1590
+ repos_url: string;
1591
+ events_url: string;
1592
+ hooks_url: string;
1593
+ issues_url: string;
1594
+ members_url: string;
1595
+ public_members_url: string;
1596
+ avatar_url: string;
1597
+ description: string | null;
1598
+ type: string;
1599
+ site_admin: boolean;
1600
+ user_view_type: string;
1601
+ } | null;
1602
+ repo: {
1603
+ id: number;
1604
+ node_id: string;
1605
+ name: string;
1606
+ full_name: string;
1607
+ private: boolean;
1608
+ owner: {
1609
+ login: string;
1610
+ id: number;
1611
+ node_id: string;
1612
+ avatar_url: string;
1613
+ gravatar_id: string;
1614
+ url: string;
1615
+ html_url: string;
1616
+ followers_url: string;
1617
+ following_url: string;
1618
+ gists_url: string;
1619
+ starred_url: string;
1620
+ subscriptions_url: string;
1621
+ organizations_url: string;
1622
+ repos_url: string;
1623
+ events_url: string;
1624
+ received_events_url: string;
1625
+ type: "User" | "Organization" | "Bot";
1626
+ site_admin: boolean;
1627
+ user_view_type: string;
1628
+ } | {
1629
+ login: string;
1630
+ id: number;
1631
+ node_id: string;
1632
+ url: string;
1633
+ html_url: string;
1634
+ repos_url: string;
1635
+ events_url: string;
1636
+ hooks_url: string;
1637
+ issues_url: string;
1638
+ members_url: string;
1639
+ public_members_url: string;
1640
+ avatar_url: string;
1641
+ description: string | null;
1642
+ type: string;
1643
+ site_admin: boolean;
1644
+ user_view_type: string;
1645
+ } | null;
1646
+ html_url: string;
1647
+ description: string | null;
1648
+ fork: boolean;
1649
+ url: string;
1650
+ forks_url: string;
1651
+ keys_url: string;
1652
+ collaborators_url: string;
1653
+ teams_url: string;
1654
+ hooks_url: string;
1655
+ issue_events_url: string;
1656
+ events_url: string;
1657
+ assignees_url: string;
1658
+ branches_url: string;
1659
+ tags_url: string;
1660
+ blobs_url: string;
1661
+ git_tags_url: string;
1662
+ git_refs_url: string;
1663
+ trees_url: string;
1664
+ statuses_url: string;
1665
+ languages_url: string;
1666
+ stargazers_url: string;
1667
+ contributors_url: string;
1668
+ subscribers_url: string;
1669
+ subscription_url: string;
1670
+ commits_url: string;
1671
+ git_commits_url: string;
1672
+ comments_url: string;
1673
+ issue_comment_url: string;
1674
+ contents_url: string;
1675
+ compare_url: string;
1676
+ merges_url: string;
1677
+ archive_url: string;
1678
+ downloads_url: string;
1679
+ issues_url: string;
1680
+ pulls_url: string;
1681
+ milestones_url: string;
1682
+ notifications_url: string;
1683
+ labels_url: string;
1684
+ releases_url: string;
1685
+ deployments_url: string;
1686
+ created_at: string;
1687
+ updated_at: string;
1688
+ pushed_at: string | null;
1689
+ git_url: string;
1690
+ ssh_url: string;
1691
+ clone_url: string;
1692
+ svn_url: string;
1693
+ homepage: string | null;
1694
+ size: number;
1695
+ stargazers_count: number;
1696
+ watchers_count: number;
1697
+ language: string | null;
1698
+ has_issues: boolean;
1699
+ has_projects: boolean;
1700
+ has_downloads: boolean;
1701
+ has_wiki: boolean;
1702
+ has_pages: boolean;
1703
+ has_discussions: boolean;
1704
+ forks_count: number;
1705
+ mirror_url: null;
1706
+ archived: boolean;
1707
+ disabled: boolean;
1708
+ open_issues_count: number;
1709
+ license: {
1710
+ key: string;
1711
+ name: string;
1712
+ spdx_id: string;
1713
+ } | null;
1714
+ allow_forking: boolean;
1715
+ is_template: boolean;
1716
+ topics: string[];
1717
+ visibility: "private" | "public" | "internal";
1718
+ forks: number;
1719
+ open_issues: number;
1720
+ watchers: number;
1721
+ default_branch: string;
1722
+ permissions: {
1723
+ admin: boolean;
1724
+ maintain: boolean;
1725
+ push: boolean;
1726
+ triage: boolean;
1727
+ pull: boolean;
1728
+ };
1729
+ allow_rebase_merge: boolean;
1730
+ allow_squash_merge: boolean;
1731
+ allow_merge_commit: boolean;
1732
+ allow_auto_merge: boolean;
1733
+ delete_branch_on_merge: boolean;
1734
+ } | null;
1735
+ };
1736
+ base: {
1737
+ label: string;
1738
+ ref: string;
1739
+ sha: string;
1740
+ user: {
1741
+ login: string;
1742
+ id: number;
1743
+ node_id: string;
1744
+ avatar_url: string;
1745
+ gravatar_id: string;
1746
+ url: string;
1747
+ html_url: string;
1748
+ followers_url: string;
1749
+ following_url: string;
1750
+ gists_url: string;
1751
+ starred_url: string;
1752
+ subscriptions_url: string;
1753
+ organizations_url: string;
1754
+ repos_url: string;
1755
+ events_url: string;
1756
+ received_events_url: string;
1757
+ type: "User" | "Organization" | "Bot";
1758
+ site_admin: boolean;
1759
+ user_view_type: string;
1760
+ } | {
1761
+ login: string;
1762
+ id: number;
1763
+ node_id: string;
1764
+ url: string;
1765
+ html_url: string;
1766
+ repos_url: string;
1767
+ events_url: string;
1768
+ hooks_url: string;
1769
+ issues_url: string;
1770
+ members_url: string;
1771
+ public_members_url: string;
1772
+ avatar_url: string;
1773
+ description: string | null;
1774
+ type: string;
1775
+ site_admin: boolean;
1776
+ user_view_type: string;
1777
+ } | null;
1778
+ repo: {
1779
+ id: number;
1780
+ node_id: string;
1781
+ name: string;
1782
+ full_name: string;
1783
+ private: boolean;
1784
+ owner: {
1785
+ login: string;
1786
+ id: number;
1787
+ node_id: string;
1788
+ avatar_url: string;
1789
+ gravatar_id: string;
1790
+ url: string;
1791
+ html_url: string;
1792
+ followers_url: string;
1793
+ following_url: string;
1794
+ gists_url: string;
1795
+ starred_url: string;
1796
+ subscriptions_url: string;
1797
+ organizations_url: string;
1798
+ repos_url: string;
1799
+ events_url: string;
1800
+ received_events_url: string;
1801
+ type: "User" | "Organization" | "Bot";
1802
+ site_admin: boolean;
1803
+ user_view_type: string;
1804
+ } | {
1805
+ login: string;
1806
+ id: number;
1807
+ node_id: string;
1808
+ url: string;
1809
+ html_url: string;
1810
+ repos_url: string;
1811
+ events_url: string;
1812
+ hooks_url: string;
1813
+ issues_url: string;
1814
+ members_url: string;
1815
+ public_members_url: string;
1816
+ avatar_url: string;
1817
+ description: string | null;
1818
+ type: string;
1819
+ site_admin: boolean;
1820
+ user_view_type: string;
1821
+ } | null;
1822
+ html_url: string;
1823
+ description: string | null;
1824
+ fork: boolean;
1825
+ url: string;
1826
+ forks_url: string;
1827
+ keys_url: string;
1828
+ collaborators_url: string;
1829
+ teams_url: string;
1830
+ hooks_url: string;
1831
+ issue_events_url: string;
1832
+ events_url: string;
1833
+ assignees_url: string;
1834
+ branches_url: string;
1835
+ tags_url: string;
1836
+ blobs_url: string;
1837
+ git_tags_url: string;
1838
+ git_refs_url: string;
1839
+ trees_url: string;
1840
+ statuses_url: string;
1841
+ languages_url: string;
1842
+ stargazers_url: string;
1843
+ contributors_url: string;
1844
+ subscribers_url: string;
1845
+ subscription_url: string;
1846
+ commits_url: string;
1847
+ git_commits_url: string;
1848
+ comments_url: string;
1849
+ issue_comment_url: string;
1850
+ contents_url: string;
1851
+ compare_url: string;
1852
+ merges_url: string;
1853
+ archive_url: string;
1854
+ downloads_url: string;
1855
+ issues_url: string;
1856
+ pulls_url: string;
1857
+ milestones_url: string;
1858
+ notifications_url: string;
1859
+ labels_url: string;
1860
+ releases_url: string;
1861
+ deployments_url: string;
1862
+ created_at: string;
1863
+ updated_at: string;
1864
+ pushed_at: string | null;
1865
+ git_url: string;
1866
+ ssh_url: string;
1867
+ clone_url: string;
1868
+ svn_url: string;
1869
+ homepage: string | null;
1870
+ size: number;
1871
+ stargazers_count: number;
1872
+ watchers_count: number;
1873
+ language: string | null;
1874
+ has_issues: boolean;
1875
+ has_projects: boolean;
1876
+ has_downloads: boolean;
1877
+ has_wiki: boolean;
1878
+ has_pages: boolean;
1879
+ has_discussions: boolean;
1880
+ forks_count: number;
1881
+ mirror_url: null;
1882
+ archived: boolean;
1883
+ disabled: boolean;
1884
+ open_issues_count: number;
1885
+ license: {
1886
+ key: string;
1887
+ name: string;
1888
+ spdx_id: string;
1889
+ } | null;
1890
+ allow_forking: boolean;
1891
+ is_template: boolean;
1892
+ topics: string[];
1893
+ visibility: "private" | "public" | "internal";
1894
+ forks: number;
1895
+ open_issues: number;
1896
+ watchers: number;
1897
+ default_branch: string;
1898
+ permissions: {
1899
+ admin: boolean;
1900
+ maintain: boolean;
1901
+ push: boolean;
1902
+ triage: boolean;
1903
+ pull: boolean;
1904
+ };
1905
+ allow_rebase_merge: boolean;
1906
+ allow_squash_merge: boolean;
1907
+ allow_merge_commit: boolean;
1908
+ allow_auto_merge: boolean;
1909
+ delete_branch_on_merge: boolean;
1910
+ } | null;
1911
+ };
1912
+ _links: {
1913
+ self: {
1914
+ href: string;
1915
+ };
1916
+ html: {
1917
+ href: string;
1918
+ };
1919
+ issue: {
1920
+ href: string;
1921
+ };
1922
+ comments: {
1923
+ href: string;
1924
+ };
1925
+ review_comments: {
1926
+ href: string;
1927
+ };
1928
+ review_comment: {
1929
+ href: string;
1930
+ };
1931
+ commits: {
1932
+ href: string;
1933
+ };
1934
+ statuses: {
1935
+ href: string;
1936
+ };
1937
+ };
1938
+ author_association: string;
1939
+ auto_merge: null;
1940
+ merged: boolean;
1941
+ mergeable: boolean | null;
1942
+ rebaseable: boolean;
1943
+ mergeable_state: string;
1944
+ merged_by: {
1945
+ login: string;
1946
+ id: number;
1947
+ node_id: string;
1948
+ avatar_url: string;
1949
+ gravatar_id: string;
1950
+ url: string;
1951
+ html_url: string;
1952
+ followers_url: string;
1953
+ following_url: string;
1954
+ gists_url: string;
1955
+ starred_url: string;
1956
+ subscriptions_url: string;
1957
+ organizations_url: string;
1958
+ repos_url: string;
1959
+ events_url: string;
1960
+ received_events_url: string;
1961
+ type: "User" | "Organization" | "Bot";
1962
+ site_admin: boolean;
1963
+ user_view_type: string;
1964
+ } | null;
1965
+ comments: number;
1966
+ review_comments: number;
1967
+ maintainer_can_modify: boolean;
1968
+ commits: number;
1969
+ additions: number;
1970
+ deletions: number;
1971
+ changed_files: number;
1972
+ } | null;
1973
+
1974
+ interface GitHubSeedConfig {
1975
+ port?: number;
1976
+ users?: Array<{
1977
+ login: string;
1978
+ name?: string;
1979
+ email?: string;
1980
+ bio?: string;
1981
+ company?: string;
1982
+ location?: string;
1983
+ blog?: string;
1984
+ twitter_username?: string;
1985
+ site_admin?: boolean;
1986
+ }>;
1987
+ orgs?: Array<{
1988
+ login: string;
1989
+ name?: string;
1990
+ description?: string;
1991
+ email?: string;
1992
+ members?: Array<{
1993
+ login: string;
1994
+ role?: "member" | "admin";
1995
+ }>;
1996
+ }>;
1997
+ tokens?: Record<string, {
1998
+ login: string;
1999
+ scopes?: string[];
2000
+ }>;
2001
+ repos?: Array<{
2002
+ owner: string;
2003
+ name: string;
2004
+ description?: string;
2005
+ private?: boolean;
2006
+ language?: string;
2007
+ topics?: string[];
2008
+ default_branch?: string;
2009
+ auto_init?: boolean;
2010
+ }>;
2011
+ oauth_apps?: Array<{
2012
+ client_id: string;
2013
+ client_secret: string;
2014
+ name: string;
2015
+ redirect_uris: string[];
2016
+ }>;
2017
+ apps?: Array<{
2018
+ app_id: number;
2019
+ slug: string;
2020
+ name: string;
2021
+ private_key?: string;
2022
+ permissions?: Record<string, string>;
2023
+ events?: string[];
2024
+ webhook_url?: string;
2025
+ webhook_secret?: string;
2026
+ description?: string;
2027
+ installations?: Array<{
2028
+ installation_id: number;
2029
+ account: string;
2030
+ repository_selection?: "all" | "selected";
2031
+ repositories?: string[];
2032
+ permissions?: Record<string, string>;
2033
+ events?: string[];
2034
+ }>;
2035
+ }>;
2036
+ }
2037
+ interface GeneratedGitHubAppPrivateKey {
2038
+ app_id: number;
2039
+ slug: string;
2040
+ name: string;
2041
+ private_key: string;
2042
+ }
2043
+ interface MaterializedGitHubSeedConfig {
2044
+ config: GitHubSeedConfig;
2045
+ generatedPrivateKeys: GeneratedGitHubAppPrivateKey[];
2046
+ }
2047
+ declare function materializeGitHubSeedConfig(config: GitHubSeedConfig): Promise<MaterializedGitHubSeedConfig>;
2048
+ declare function seedFromConfig$9(store: Store, baseUrl: string, config: GitHubSeedConfig): void;
2049
+ declare const githubPlugin: ServicePlugin;
2050
+
2051
+ interface GoogleSeedUser {
2052
+ email: string;
2053
+ name?: string;
2054
+ given_name?: string;
2055
+ family_name?: string;
2056
+ picture?: string;
2057
+ locale?: string;
2058
+ email_verified?: boolean;
2059
+ hd?: string;
2060
+ }
2061
+ interface GoogleSeedLabel {
2062
+ id?: string;
2063
+ user_email?: string;
2064
+ name: string;
2065
+ type?: "system" | "user";
2066
+ message_list_visibility?: string;
2067
+ label_list_visibility?: string;
2068
+ color_background?: string;
2069
+ color_text?: string;
2070
+ }
2071
+ interface GoogleSeedMessage {
2072
+ id?: string;
2073
+ thread_id?: string;
2074
+ user_email?: string;
2075
+ raw?: string;
2076
+ from?: string;
2077
+ to?: string;
2078
+ cc?: string;
2079
+ bcc?: string;
2080
+ reply_to?: string;
2081
+ subject?: string;
2082
+ snippet?: string;
2083
+ body_text?: string;
2084
+ body_html?: string;
2085
+ label_ids?: string[];
2086
+ date?: string;
2087
+ internal_date?: string;
2088
+ message_id?: string;
2089
+ references?: string;
2090
+ in_reply_to?: string;
2091
+ }
2092
+ interface GoogleSeedCalendar {
2093
+ id?: string;
2094
+ user_email?: string;
2095
+ summary: string;
2096
+ description?: string;
2097
+ time_zone?: string;
2098
+ primary?: boolean;
2099
+ selected?: boolean;
2100
+ access_role?: string;
2101
+ }
2102
+ interface GoogleSeedCalendarEvent {
2103
+ id?: string;
2104
+ user_email?: string;
2105
+ calendar_id?: string;
2106
+ status?: string;
2107
+ summary?: string;
2108
+ description?: string;
2109
+ location?: string;
2110
+ start_date_time?: string;
2111
+ start_date?: string;
2112
+ end_date_time?: string;
2113
+ end_date?: string;
2114
+ attendees?: Array<{
2115
+ email: string;
2116
+ display_name?: string;
2117
+ }>;
2118
+ conference_entry_points?: Array<{
2119
+ entry_point_type: string;
2120
+ uri: string;
2121
+ label?: string;
2122
+ }>;
2123
+ hangout_link?: string;
2124
+ }
2125
+ interface GoogleSeedDriveItem {
2126
+ id?: string;
2127
+ user_email?: string;
2128
+ name: string;
2129
+ mime_type: string;
2130
+ parent_ids?: string[];
2131
+ data?: string;
2132
+ }
2133
+ interface GoogleSeedConfig {
2134
+ port?: number;
2135
+ users?: GoogleSeedUser[];
2136
+ oauth_clients?: Array<{
2137
+ client_id: string;
2138
+ client_secret: string;
2139
+ name?: string;
2140
+ redirect_uris: string[];
2141
+ }>;
2142
+ labels?: GoogleSeedLabel[];
2143
+ messages?: GoogleSeedMessage[];
2144
+ calendars?: GoogleSeedCalendar[];
2145
+ calendar_events?: GoogleSeedCalendarEvent[];
2146
+ drive_items?: GoogleSeedDriveItem[];
2147
+ }
2148
+ declare function seedFromConfig$8(store: Store, _baseUrl: string, config: GoogleSeedConfig): void;
2149
+ declare const googlePlugin: ServicePlugin;
2150
+
2151
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2152
+
2153
+ type LinearWorkflowStateType = "backlog" | "unstarted" | "started" | "completed" | "canceled";
2154
+ type LinearTokenActorType = "user" | "app";
2155
+ type LinearIssuePriority = 0 | 1 | 2 | 3 | 4;
2156
+
2157
+ interface LinearSeedConfig {
2158
+ port?: number;
2159
+ baseUrl?: string;
2160
+ organization?: {
2161
+ name?: string;
2162
+ url_key?: string;
2163
+ };
2164
+ users?: Array<{
2165
+ id?: string;
2166
+ email: string;
2167
+ name?: string;
2168
+ display_name?: string;
2169
+ avatar_url?: string;
2170
+ admin?: boolean;
2171
+ active?: boolean;
2172
+ }>;
2173
+ teams?: Array<{
2174
+ id?: string;
2175
+ key: string;
2176
+ name: string;
2177
+ description?: string;
2178
+ private?: boolean;
2179
+ states?: Array<{
2180
+ id?: string;
2181
+ name: string;
2182
+ type?: LinearWorkflowStateType;
2183
+ position?: number;
2184
+ }>;
2185
+ }>;
2186
+ labels?: Array<{
2187
+ id?: string;
2188
+ name: string;
2189
+ color?: string;
2190
+ description?: string;
2191
+ team?: string;
2192
+ }>;
2193
+ projects?: Array<{
2194
+ id?: string;
2195
+ name: string;
2196
+ description?: string;
2197
+ state?: "planned" | "started" | "completed" | "canceled";
2198
+ team?: string;
2199
+ }>;
2200
+ cycles?: Array<{
2201
+ id?: string;
2202
+ team: string;
2203
+ name: string;
2204
+ number?: number;
2205
+ starts_at?: string;
2206
+ ends_at?: string;
2207
+ }>;
2208
+ issues?: Array<{
2209
+ id?: string;
2210
+ team: string;
2211
+ title: string;
2212
+ description?: string;
2213
+ priority?: LinearIssuePriority;
2214
+ state?: string;
2215
+ assignee?: string;
2216
+ creator?: string;
2217
+ delegate?: string;
2218
+ project?: string;
2219
+ cycle?: string;
2220
+ labels?: string[];
2221
+ due_date?: string;
2222
+ }>;
2223
+ comments?: Array<{
2224
+ id?: string;
2225
+ issue: string;
2226
+ body: string;
2227
+ user?: string;
2228
+ }>;
2229
+ oauth_apps?: Array<{
2230
+ id?: string;
2231
+ client_id: string;
2232
+ client_secret: string;
2233
+ name: string;
2234
+ redirect_uris: string[];
2235
+ scopes?: string[] | string;
2236
+ actor?: LinearTokenActorType;
2237
+ assignable?: boolean;
2238
+ mentionable?: boolean;
2239
+ }>;
2240
+ tokens?: Array<{
2241
+ token: string;
2242
+ type?: "personal" | "oauth_access" | "client_credentials";
2243
+ user?: string;
2244
+ app?: string;
2245
+ scopes?: string[] | string;
2246
+ actor?: LinearTokenActorType;
2247
+ }>;
2248
+ webhooks?: Array<{
2249
+ id?: string;
2250
+ label?: string;
2251
+ url: string;
2252
+ resource_types?: string[] | string;
2253
+ team?: string;
2254
+ all_public_teams?: boolean;
2255
+ secret?: string;
2256
+ enabled?: boolean;
2257
+ }>;
2258
+ strict_scopes?: boolean;
2259
+ }
2260
+ declare function seedFromConfig$7(store: Store, baseUrl: string, config: LinearSeedConfig): void;
2261
+ declare const linearPlugin: ServicePlugin;
2262
+
2263
+ interface MicrosoftSeedConfig {
2264
+ users?: Array<{
2265
+ email: string;
2266
+ name?: string;
2267
+ given_name?: string;
2268
+ family_name?: string;
2269
+ tenant_id?: string;
2270
+ }>;
2271
+ oauth_clients?: Array<{
2272
+ client_id: string;
2273
+ client_secret: string;
2274
+ name: string;
2275
+ redirect_uris: string[];
2276
+ tenant_id?: string;
2277
+ }>;
2278
+ }
2279
+ declare function seedFromConfig$6(store: Store, _baseUrl: string, config: MicrosoftSeedConfig): void;
2280
+ declare const microsoftPlugin: ServicePlugin;
2281
+
2282
+ interface MongoAtlasSeedConfig {
2283
+ port?: number;
2284
+ projects?: Array<{
2285
+ name: string;
2286
+ org_id?: string;
2287
+ }>;
2288
+ clusters?: Array<{
2289
+ name: string;
2290
+ project: string;
2291
+ provider?: string;
2292
+ instance_size?: string;
2293
+ region?: string;
2294
+ disk_size_gb?: number;
2295
+ mongodb_version?: string;
2296
+ }>;
2297
+ database_users?: Array<{
2298
+ username: string;
2299
+ project: string;
2300
+ roles?: Array<{
2301
+ database_name: string;
2302
+ role_name: string;
2303
+ }>;
2304
+ }>;
2305
+ databases?: Array<{
2306
+ cluster: string;
2307
+ name: string;
2308
+ collections?: string[];
2309
+ }>;
2310
+ }
2311
+ declare function seedFromConfig$5(store: Store, _baseUrl: string, config: MongoAtlasSeedConfig): void;
2312
+ declare const mongoatlasPlugin: ServicePlugin;
2313
+
2314
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2315
+
2316
+ type OktaUserStatus = "STAGED" | "PROVISIONED" | "ACTIVE" | "SUSPENDED" | "DEPROVISIONED";
2317
+ type OktaGroupType = "OKTA_GROUP" | "BUILT_IN";
2318
+ type OktaAuthorizationServerStatus = "ACTIVE" | "INACTIVE";
2319
+
2320
+ interface OktaSeedConfig {
2321
+ users?: Array<{
2322
+ okta_id?: string;
2323
+ status?: OktaUserStatus;
2324
+ login: string;
2325
+ email?: string;
2326
+ first_name?: string;
2327
+ last_name?: string;
2328
+ display_name?: string;
2329
+ locale?: string;
2330
+ time_zone?: string;
2331
+ }>;
2332
+ groups?: Array<{
2333
+ okta_id?: string;
2334
+ type?: OktaGroupType;
2335
+ name: string;
2336
+ description?: string;
2337
+ }>;
2338
+ apps?: Array<{
2339
+ okta_id?: string;
2340
+ name: string;
2341
+ label?: string;
2342
+ status?: "ACTIVE" | "INACTIVE";
2343
+ sign_on_mode?: string;
2344
+ settings?: Record<string, unknown>;
2345
+ credentials?: Record<string, unknown>;
2346
+ }>;
2347
+ oauth_clients?: Array<{
2348
+ client_id: string;
2349
+ client_secret?: string;
2350
+ name: string;
2351
+ redirect_uris: string[];
2352
+ response_types?: string[];
2353
+ grant_types?: string[];
2354
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none";
2355
+ auth_server_id?: string;
2356
+ }>;
2357
+ authorization_servers?: Array<{
2358
+ id: string;
2359
+ name: string;
2360
+ description?: string;
2361
+ audiences?: string[];
2362
+ status?: OktaAuthorizationServerStatus;
2363
+ }>;
2364
+ group_memberships?: Array<{
2365
+ group_okta_id: string;
2366
+ user_okta_id: string;
2367
+ }>;
2368
+ app_assignments?: Array<{
2369
+ app_okta_id: string;
2370
+ user_okta_id: string;
2371
+ }>;
2372
+ }
2373
+ declare function seedFromConfig$4(store: Store, _baseUrl: string, config: OktaSeedConfig): void;
2374
+ declare const oktaPlugin: ServicePlugin;
2375
+
2376
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2377
+
2378
+ interface ResendEmail extends Entity {
2379
+ uuid: string;
2380
+ from: string;
2381
+ to: string[];
2382
+ subject: string;
2383
+ html: string | null;
2384
+ text: string | null;
2385
+ cc: string[];
2386
+ bcc: string[];
2387
+ reply_to: string[];
2388
+ headers: Record<string, string>;
2389
+ tags: Array<{
2390
+ name: string;
2391
+ value: string;
2392
+ }>;
2393
+ status: "sent" | "delivered" | "bounced" | "canceled" | "scheduled";
2394
+ scheduled_at: string | null;
2395
+ last_event: string;
2396
+ }
2397
+ interface ResendIdempotencyRecord extends Entity {
2398
+ idempotency_key: string;
2399
+ endpoint: "emails" | "emails/batch";
2400
+ request_fingerprint: string;
2401
+ response_email_ids: string[];
2402
+ }
2403
+ interface ResendDomain extends Entity {
2404
+ uuid: string;
2405
+ name: string;
2406
+ status: "pending" | "verified";
2407
+ region: string;
2408
+ records: Array<{
2409
+ record: string;
2410
+ name: string;
2411
+ type: string;
2412
+ ttl: string;
2413
+ status: "pending" | "verified";
2414
+ value: string;
2415
+ priority?: number;
2416
+ }>;
2417
+ }
2418
+ interface ResendApiKey extends Entity {
2419
+ uuid: string;
2420
+ name: string;
2421
+ token: string;
2422
+ }
2423
+ interface ResendAudience extends Entity {
2424
+ uuid: string;
2425
+ name: string;
2426
+ }
2427
+ interface ResendContact extends Entity {
2428
+ uuid: string;
2429
+ audience_id: string;
2430
+ email: string;
2431
+ first_name: string | null;
2432
+ last_name: string | null;
2433
+ unsubscribed: boolean;
2434
+ }
2435
+
2436
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2437
+
2438
+ interface ResendStore {
2439
+ emails: Collection<ResendEmail>;
2440
+ idempotencyKeys: Collection<ResendIdempotencyRecord>;
2441
+ domains: Collection<ResendDomain>;
2442
+ apiKeys: Collection<ResendApiKey>;
2443
+ audiences: Collection<ResendAudience>;
2444
+ contacts: Collection<ResendContact>;
2445
+ }
2446
+ declare function getResendStore(store: Store): ResendStore;
2447
+
2448
+ interface ResendSeedConfig {
2449
+ port?: number;
2450
+ domains?: Array<{
2451
+ name: string;
2452
+ region?: string;
2453
+ }>;
2454
+ contacts?: Array<{
2455
+ email: string;
2456
+ first_name?: string;
2457
+ last_name?: string;
2458
+ audience?: string;
2459
+ }>;
2460
+ }
2461
+ declare function seedFromConfig$3(store: Store, _baseUrl: string, config: ResendSeedConfig): void;
2462
+ declare const resendPlugin: ServicePlugin;
2463
+
2464
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2465
+
2466
+ interface SlackTeam extends Entity {
2467
+ team_id: string;
2468
+ name: string;
2469
+ domain: string;
2470
+ }
2471
+ interface SlackUserProfile {
2472
+ display_name: string;
2473
+ real_name: string;
2474
+ email: string;
2475
+ image_48: string;
2476
+ image_192: string;
2477
+ title?: string;
2478
+ phone?: string;
2479
+ skype?: string;
2480
+ real_name_normalized?: string;
2481
+ display_name_normalized?: string;
2482
+ fields?: Record<string, {
2483
+ value: string;
2484
+ alt?: string;
2485
+ label?: string;
2486
+ }>;
2487
+ status_text?: string;
2488
+ status_emoji?: string;
2489
+ status_emoji_display_info?: Record<string, unknown>[];
2490
+ status_expiration?: number;
2491
+ avatar_hash?: string;
2492
+ start_date?: string;
2493
+ pronouns?: string;
2494
+ huddle_state?: string;
2495
+ huddle_state_expiration_ts?: number;
2496
+ first_name?: string;
2497
+ last_name?: string;
2498
+ image_24?: string;
2499
+ image_32?: string;
2500
+ image_72?: string;
2501
+ image_512?: string;
2502
+ }
2503
+ type SlackPresence = "active" | "away";
2504
+ type SlackManualPresence = "auto" | "away";
2505
+ interface SlackUser extends Entity {
2506
+ user_id: string;
2507
+ team_id: string;
2508
+ name: string;
2509
+ real_name: string;
2510
+ email: string;
2511
+ is_admin: boolean;
2512
+ is_bot: boolean;
2513
+ deleted: boolean;
2514
+ profile: SlackUserProfile;
2515
+ presence?: SlackPresence;
2516
+ manual_presence?: SlackManualPresence;
2517
+ connection_count?: number;
2518
+ last_activity?: number;
2519
+ }
2520
+ interface SlackChannel extends Entity {
2521
+ channel_id: string;
2522
+ team_id: string;
2523
+ name: string;
2524
+ is_channel: boolean;
2525
+ is_private: boolean;
2526
+ is_im?: boolean;
2527
+ is_mpim?: boolean;
2528
+ is_open?: boolean;
2529
+ is_open_by_user?: Record<string, boolean>;
2530
+ user?: string;
2531
+ is_archived: boolean;
2532
+ topic: {
2533
+ value: string;
2534
+ creator: string;
2535
+ last_set: number;
2536
+ };
2537
+ purpose: {
2538
+ value: string;
2539
+ creator: string;
2540
+ last_set: number;
2541
+ };
2542
+ members: string[];
2543
+ creator: string;
2544
+ num_members: number;
2545
+ last_read?: Record<string, string>;
2546
+ }
2547
+ type SlackJsonObject = Record<string, unknown>;
2548
+ interface SlackMessage extends Entity {
2549
+ ts: string;
2550
+ channel_id: string;
2551
+ user: string;
2552
+ text: string;
2553
+ type: "message";
2554
+ subtype?: string;
2555
+ files?: SlackFile[];
2556
+ upload?: boolean;
2557
+ blocks?: SlackJsonObject[];
2558
+ attachments?: SlackJsonObject[];
2559
+ metadata?: SlackJsonObject;
2560
+ mrkdwn?: boolean;
2561
+ parse?: string;
2562
+ link_names?: boolean;
2563
+ unfurl_links?: boolean;
2564
+ unfurl_media?: boolean;
2565
+ username?: string;
2566
+ icon_url?: string;
2567
+ icon_emoji?: string;
2568
+ bot_id?: string;
2569
+ app_id?: string;
2570
+ client_msg_id?: string;
2571
+ reply_broadcast?: boolean;
2572
+ topic?: string;
2573
+ purpose?: string;
2574
+ old_name?: string;
2575
+ name?: string;
2576
+ edited?: {
2577
+ user: string;
2578
+ ts: string;
2579
+ };
2580
+ thread_ts?: string;
2581
+ reply_count: number;
2582
+ reply_users: string[];
2583
+ reactions: Array<{
2584
+ name: string;
2585
+ users: string[];
2586
+ count: number;
2587
+ }>;
2588
+ }
2589
+ interface SlackEphemeralMessage extends SlackMessage {
2590
+ target_user: string;
2591
+ }
2592
+ interface SlackScheduledMessage extends Entity {
2593
+ scheduled_message_id: string;
2594
+ channel_id: string;
2595
+ user: string;
2596
+ text: string;
2597
+ type: "delayed_message";
2598
+ subtype: "bot_message";
2599
+ blocks?: SlackJsonObject[];
2600
+ attachments?: SlackJsonObject[];
2601
+ metadata?: SlackJsonObject;
2602
+ mrkdwn?: boolean;
2603
+ parse?: string;
2604
+ link_names?: boolean;
2605
+ unfurl_links?: boolean;
2606
+ unfurl_media?: boolean;
2607
+ username?: string;
2608
+ icon_url?: string;
2609
+ icon_emoji?: string;
2610
+ bot_id?: string;
2611
+ app_id?: string;
2612
+ client_msg_id?: string;
2613
+ reply_broadcast?: boolean;
2614
+ thread_ts?: string;
2615
+ post_at: number;
2616
+ date_created: number;
2617
+ }
2618
+ interface SlackBot extends Entity {
2619
+ bot_id: string;
2620
+ app_id?: string;
2621
+ user_id?: string;
2622
+ name: string;
2623
+ deleted: boolean;
2624
+ icons: {
2625
+ image_48: string;
2626
+ };
2627
+ }
2628
+ interface SlackOAuthApp extends Entity {
2629
+ app_id?: string;
2630
+ client_id: string;
2631
+ client_secret: string;
2632
+ name: string;
2633
+ redirect_uris: string[];
2634
+ scopes?: string[];
2635
+ user_scopes?: string[];
2636
+ bot_id?: string;
2637
+ bot_user_id?: string;
2638
+ bot_name?: string;
2639
+ }
2640
+ interface SlackInstallation extends Entity {
2641
+ installation_id: string;
2642
+ app_id: string;
2643
+ client_id: string;
2644
+ team_id: string;
2645
+ app_name: string;
2646
+ installer_user_id: string;
2647
+ bot_id: string;
2648
+ bot_user_id: string;
2649
+ scopes: string[];
2650
+ user_scopes: string[];
2651
+ }
2652
+ type SlackTokenType = "bot" | "user" | "test";
2653
+ interface SlackToken extends Entity {
2654
+ token: string;
2655
+ token_type: SlackTokenType;
2656
+ team_id: string;
2657
+ user_id: string;
2658
+ scopes: string[];
2659
+ app_id?: string;
2660
+ client_id?: string;
2661
+ installation_id?: string;
2662
+ bot_id?: string;
2663
+ bot_user_id?: string;
2664
+ authed_user_id?: string;
2665
+ }
2666
+ interface SlackIncomingWebhook extends Entity {
2667
+ token: string;
2668
+ team_id: string;
2669
+ bot_id: string;
2670
+ default_channel: string;
2671
+ label: string;
2672
+ url: string;
2673
+ }
2674
+ interface SlackFileShare {
2675
+ ts: string;
2676
+ channel_name?: string;
2677
+ team_id: string;
2678
+ share_user_id: string;
2679
+ source: "UNKNOWN" | "UPLOAD";
2680
+ thread_ts?: string;
2681
+ latest_reply?: string;
2682
+ reply_count: number;
2683
+ reply_users: string[];
2684
+ reply_users_count: number;
2685
+ is_silent_share: boolean;
2686
+ }
2687
+ interface SlackFile extends Entity {
2688
+ file_id: string;
2689
+ team_id: string;
2690
+ user: string;
2691
+ name: string;
2692
+ title: string;
2693
+ mimetype: string;
2694
+ filetype: string;
2695
+ pretty_type: string;
2696
+ mode: "hosted" | "snippet";
2697
+ size: number;
2698
+ created: number;
2699
+ timestamp: number;
2700
+ url_private: string;
2701
+ url_private_download: string;
2702
+ permalink: string;
2703
+ is_external: boolean;
2704
+ external_type: string;
2705
+ is_public: boolean;
2706
+ public_url_shared: boolean;
2707
+ display_as_bot: boolean;
2708
+ editable: boolean;
2709
+ deleted: boolean;
2710
+ channels: string[];
2711
+ groups: string[];
2712
+ ims: string[];
2713
+ shares: {
2714
+ public?: Record<string, SlackFileShare[]>;
2715
+ private?: Record<string, SlackFileShare[]>;
2716
+ };
2717
+ initial_comment?: string;
2718
+ thread_ts?: string;
2719
+ alt_txt?: string;
2720
+ snippet_type?: string;
2721
+ content_base64?: string;
2722
+ }
2723
+ interface SlackFileUploadSession extends Entity {
2724
+ file_id: string;
2725
+ team_id: string;
2726
+ user: string;
2727
+ filename: string;
2728
+ title: string;
2729
+ length: number;
2730
+ upload_url: string;
2731
+ alt_txt?: string;
2732
+ snippet_type?: string;
2733
+ uploaded: boolean;
2734
+ uploaded_size?: number;
2735
+ content_base64?: string;
2736
+ completed: boolean;
2737
+ }
2738
+ interface SlackPin extends Entity {
2739
+ pin_id: string;
2740
+ team_id: string;
2741
+ channel_id: string;
2742
+ message_ts: string;
2743
+ created: number;
2744
+ created_by: string;
2745
+ }
2746
+ interface SlackBookmark extends Entity {
2747
+ bookmark_id: string;
2748
+ team_id: string;
2749
+ channel_id: string;
2750
+ title: string;
2751
+ type: "link";
2752
+ link: string;
2753
+ emoji: string;
2754
+ icon_url: string;
2755
+ entity_id: string | null;
2756
+ date_created: number;
2757
+ date_updated: number;
2758
+ rank: string;
2759
+ last_updated_by_user_id: string;
2760
+ last_updated_by_team_id: string;
2761
+ shortcut_id: string | null;
2762
+ app_id: string | null;
2763
+ access_level?: "read" | "write";
2764
+ parent_id?: string;
2765
+ }
2766
+ type SlackViewType = "home" | "modal";
2767
+ interface SlackView extends Entity {
2768
+ view_id: string;
2769
+ team_id: string;
2770
+ user_id: string;
2771
+ type: SlackViewType;
2772
+ blocks: SlackJsonObject[];
2773
+ private_metadata: string;
2774
+ callback_id: string;
2775
+ external_id: string;
2776
+ title: SlackJsonObject | null;
2777
+ submit: SlackJsonObject | null;
2778
+ close: SlackJsonObject | null;
2779
+ state: SlackJsonObject;
2780
+ hash: string;
2781
+ clear_on_close: boolean;
2782
+ notify_on_close: boolean;
2783
+ root_view_id: string;
2784
+ previous_view_id?: string;
2785
+ app_id: string;
2786
+ bot_id: string;
2787
+ created: number;
2788
+ updated: number;
2789
+ }
2790
+ interface SlackViewTrigger extends Entity {
2791
+ trigger_id: string;
2792
+ team_id: string;
2793
+ user_id: string;
2794
+ app_id: string;
2795
+ expires_at: number;
2796
+ used: boolean;
2797
+ view_id?: string;
2798
+ }
2799
+
2800
+ declare function formatSlackView(view: SlackView): {
2801
+ id: string;
2802
+ team_id: string;
2803
+ type: SlackViewType;
2804
+ title: SlackJsonObject | null;
2805
+ close: SlackJsonObject | null;
2806
+ submit: SlackJsonObject | null;
2807
+ blocks: SlackJsonObject[];
2808
+ private_metadata: string;
2809
+ callback_id: string;
2810
+ external_id: string;
2811
+ state: SlackJsonObject;
2812
+ hash: string;
2813
+ clear_on_close: boolean;
2814
+ notify_on_close: boolean;
2815
+ root_view_id: string;
2816
+ previous_view_id: string | null;
2817
+ app_id: string;
2818
+ bot_id: string;
2819
+ };
2820
+
2821
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2822
+
2823
+ interface SlackStore {
2824
+ teams: Collection<SlackTeam>;
2825
+ users: Collection<SlackUser>;
2826
+ channels: Collection<SlackChannel>;
2827
+ messages: Collection<SlackMessage>;
2828
+ ephemeralMessages: Collection<SlackEphemeralMessage>;
2829
+ scheduledMessages: Collection<SlackScheduledMessage>;
2830
+ bots: Collection<SlackBot>;
2831
+ oauthApps: Collection<SlackOAuthApp>;
2832
+ installations: Collection<SlackInstallation>;
2833
+ tokens: Collection<SlackToken>;
2834
+ incomingWebhooks: Collection<SlackIncomingWebhook>;
2835
+ files: Collection<SlackFile>;
2836
+ fileUploadSessions: Collection<SlackFileUploadSession>;
2837
+ pins: Collection<SlackPin>;
2838
+ bookmarks: Collection<SlackBookmark>;
2839
+ views: Collection<SlackView>;
2840
+ viewTriggers: Collection<SlackViewTrigger>;
2841
+ }
2842
+ declare function getSlackStore(store: Store): SlackStore;
2843
+
2844
+ interface SlackSeedConfig {
2845
+ port?: number;
2846
+ team?: {
2847
+ name?: string;
2848
+ domain?: string;
2849
+ };
2850
+ users?: Array<{
2851
+ name: string;
2852
+ real_name?: string;
2853
+ email?: string;
2854
+ is_admin?: boolean;
2855
+ profile?: Partial<SlackUserProfile>;
2856
+ presence?: SlackPresence;
2857
+ }>;
2858
+ channels?: Array<{
2859
+ name: string;
2860
+ topic?: string;
2861
+ purpose?: string;
2862
+ is_private?: boolean;
2863
+ }>;
2864
+ bots?: Array<{
2865
+ name: string;
2866
+ }>;
2867
+ oauth_apps?: Array<{
2868
+ app_id?: string;
2869
+ client_id: string;
2870
+ client_secret: string;
2871
+ name: string;
2872
+ redirect_uris: string[];
2873
+ scopes?: string[] | string;
2874
+ user_scopes?: string[] | string;
2875
+ bot_id?: string;
2876
+ bot_user_id?: string;
2877
+ bot_name?: string;
2878
+ }>;
2879
+ tokens?: Array<{
2880
+ token: string;
2881
+ type?: SlackTokenType;
2882
+ user?: string;
2883
+ user_id?: string;
2884
+ scopes?: string[] | string;
2885
+ app_id?: string;
2886
+ client_id?: string;
2887
+ team_id?: string;
2888
+ bot_id?: string;
2889
+ bot_user_id?: string;
2890
+ authed_user_id?: string;
2891
+ }>;
2892
+ incoming_webhooks?: Array<{
2893
+ channel: string;
2894
+ label?: string;
2895
+ }>;
2896
+ strict_scopes?: boolean;
2897
+ signing_secret?: string;
2898
+ }
2899
+ declare function seedFromConfig$2(store: Store, _baseUrl: string, config: SlackSeedConfig): void;
2900
+ declare const slackPlugin: ServicePlugin;
2901
+
2902
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
2903
+
2904
+ type TwilioAccountStatus = "active" | "suspended" | "closed";
2905
+ type TwilioMessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
2906
+ type TwilioMessageStatus = "accepted" | "scheduled" | "canceled" | "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "read";
2907
+ type TwilioVerificationStatus = "pending" | "approved" | "canceled" | "max_attempts_reached" | "deleted" | "failed" | "expired";
2908
+ type TwilioCallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
2909
+ type TwilioCallDirection = "inbound" | "outbound-api" | "outbound-dial" | "outbound-call";
2910
+ interface TwilioAccount extends Entity {
2911
+ sid: string;
2912
+ friendly_name: string;
2913
+ auth_token: string;
2914
+ status: TwilioAccountStatus;
2915
+ owner_account_sid: string | null;
2916
+ }
2917
+ interface TwilioApiKey extends Entity {
2918
+ sid: string;
2919
+ account_sid: string;
2920
+ secret: string;
2921
+ friendly_name: string;
2922
+ active: boolean;
2923
+ }
2924
+ interface TwilioApplication extends Entity {
2925
+ sid: string;
2926
+ account_sid: string;
2927
+ friendly_name: string;
2928
+ sms_url: string | null;
2929
+ sms_method: string;
2930
+ voice_url: string | null;
2931
+ voice_method: string;
2932
+ status_callback: string | null;
2933
+ }
2934
+ interface TwilioIncomingPhoneNumber extends Entity {
2935
+ sid: string;
2936
+ account_sid: string;
2937
+ phone_number: string;
2938
+ friendly_name: string;
2939
+ capabilities: {
2940
+ sms: boolean;
2941
+ mms: boolean;
2942
+ voice: boolean;
2943
+ };
2944
+ sms_url: string | null;
2945
+ sms_method: string;
2946
+ voice_url: string | null;
2947
+ voice_method: string;
2948
+ status_callback: string | null;
2949
+ application_sid: string | null;
2950
+ }
2951
+ interface TwilioMessagingService extends Entity {
2952
+ sid: string;
2953
+ account_sid: string;
2954
+ friendly_name: string;
2955
+ inbound_request_url: string | null;
2956
+ status_callback: string | null;
2957
+ }
2958
+ interface TwilioMessagingServicePhoneNumber extends Entity {
2959
+ sid: string;
2960
+ account_sid: string;
2961
+ service_sid: string;
2962
+ phone_number_sid: string;
2963
+ }
2964
+ interface TwilioMessage extends Entity {
2965
+ sid: string;
2966
+ account_sid: string;
2967
+ to: string;
2968
+ from: string | null;
2969
+ body: string | null;
2970
+ direction: TwilioMessageDirection;
2971
+ status: TwilioMessageStatus;
2972
+ messaging_service_sid: string | null;
2973
+ num_segments: string;
2974
+ num_media: string;
2975
+ media_urls: string[];
2976
+ error_code: number | null;
2977
+ error_message: string | null;
2978
+ price: string | null;
2979
+ price_unit: string;
2980
+ api_version: string;
2981
+ status_callback: string | null;
2982
+ date_sent: string | null;
2983
+ }
2984
+ interface TwilioMedia extends Entity {
2985
+ sid: string;
2986
+ account_sid: string;
2987
+ message_sid: string;
2988
+ content_type: string;
2989
+ uri: string;
2990
+ }
2991
+ interface TwilioVerifyService extends Entity {
2992
+ sid: string;
2993
+ account_sid: string;
2994
+ friendly_name: string;
2995
+ code: string;
2996
+ default_channel: string;
2997
+ }
2998
+ interface TwilioVerification extends Entity {
2999
+ sid: string;
3000
+ service_sid: string;
3001
+ account_sid: string;
3002
+ to: string;
3003
+ channel: string;
3004
+ status: TwilioVerificationStatus;
3005
+ code: string;
3006
+ attempts: number;
3007
+ max_attempts: number;
3008
+ lookup: Record<string, unknown>;
3009
+ send_code_attempts: Array<Record<string, unknown>>;
3010
+ tags: string | null;
3011
+ valid: boolean;
3012
+ }
3013
+ interface TwilioCall extends Entity {
3014
+ sid: string;
3015
+ account_sid: string;
3016
+ to: string;
3017
+ from: string;
3018
+ status: TwilioCallStatus;
3019
+ direction: TwilioCallDirection;
3020
+ api_version: string;
3021
+ price: string | null;
3022
+ price_unit: string;
3023
+ parent_call_sid: string | null;
3024
+ phone_number_sid: string | null;
3025
+ start_time: string | null;
3026
+ end_time: string | null;
3027
+ duration: string;
3028
+ url: string | null;
3029
+ method: string;
3030
+ twiml: string | null;
3031
+ twiml_steps: string[];
3032
+ status_callback: string | null;
3033
+ status_callback_event: string[];
3034
+ }
3035
+ interface TwilioWebhookDelivery extends Entity {
3036
+ twilio_id: string;
3037
+ account_sid: string;
3038
+ event: string;
3039
+ url: string;
3040
+ method: string;
3041
+ request_body: Record<string, string>;
3042
+ request_headers: Record<string, string>;
3043
+ response_status: number | null;
3044
+ response_body: string | null;
3045
+ success: boolean;
3046
+ error: string | null;
3047
+ }
3048
+ interface TwilioConversationService extends Entity {
3049
+ sid: string;
3050
+ account_sid: string;
3051
+ friendly_name: string;
3052
+ }
3053
+ interface TwilioConversation extends Entity {
3054
+ sid: string;
3055
+ account_sid: string;
3056
+ service_sid: string;
3057
+ friendly_name: string | null;
3058
+ unique_name: string | null;
3059
+ state: "active" | "inactive" | "closed";
3060
+ attributes: string;
3061
+ }
3062
+ interface TwilioConversationParticipant extends Entity {
3063
+ sid: string;
3064
+ account_sid: string;
3065
+ service_sid: string;
3066
+ conversation_sid: string;
3067
+ identity: string | null;
3068
+ messaging_binding_address: string | null;
3069
+ messaging_binding_proxy_address: string | null;
3070
+ attributes: string;
3071
+ }
3072
+ interface TwilioConversationMessage extends Entity {
3073
+ sid: string;
3074
+ account_sid: string;
3075
+ service_sid: string;
3076
+ conversation_sid: string;
3077
+ author: string | null;
3078
+ body: string | null;
3079
+ index: number;
3080
+ attributes: string;
3081
+ }
3082
+
3083
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
3084
+
3085
+ declare function formatMessage(message: TwilioMessage): Record<string, unknown>;
3086
+
3087
+ /*! Adapted from vercel-labs/emulate (Apache-2.0), modified for Mockingbird. See port.json, LICENSE_EMULATE and THIRD_PARTY_NOTICES.md. */
3088
+
3089
+ interface TwilioStore {
3090
+ accounts: Collection<TwilioAccount>;
3091
+ apiKeys: Collection<TwilioApiKey>;
3092
+ applications: Collection<TwilioApplication>;
3093
+ phoneNumbers: Collection<TwilioIncomingPhoneNumber>;
3094
+ messagingServices: Collection<TwilioMessagingService>;
3095
+ messagingServicePhoneNumbers: Collection<TwilioMessagingServicePhoneNumber>;
3096
+ messages: Collection<TwilioMessage>;
3097
+ media: Collection<TwilioMedia>;
3098
+ verifyServices: Collection<TwilioVerifyService>;
3099
+ verifications: Collection<TwilioVerification>;
3100
+ calls: Collection<TwilioCall>;
3101
+ webhookDeliveries: Collection<TwilioWebhookDelivery>;
3102
+ conversationServices: Collection<TwilioConversationService>;
3103
+ conversations: Collection<TwilioConversation>;
3104
+ conversationParticipants: Collection<TwilioConversationParticipant>;
3105
+ conversationMessages: Collection<TwilioConversationMessage>;
3106
+ }
3107
+ declare function getTwilioStore(store: Store): TwilioStore;
3108
+
3109
+ interface TwilioSeedConfig {
3110
+ port?: number;
3111
+ account?: {
3112
+ sid?: string;
3113
+ auth_token?: string;
3114
+ friendly_name?: string;
3115
+ status?: "active" | "suspended" | "closed";
3116
+ };
3117
+ api_keys?: Array<{
3118
+ sid?: string;
3119
+ secret: string;
3120
+ friendly_name?: string;
3121
+ }>;
3122
+ phone_numbers?: Array<{
3123
+ sid?: string;
3124
+ phone_number: string;
3125
+ friendly_name?: string;
3126
+ sms_url?: string;
3127
+ sms_method?: string;
3128
+ voice_url?: string;
3129
+ voice_method?: string;
3130
+ status_callback?: string;
3131
+ }>;
3132
+ messaging_services?: Array<{
3133
+ sid?: string;
3134
+ friendly_name: string;
3135
+ phone_numbers?: string[];
3136
+ status_callback?: string;
3137
+ inbound_request_url?: string;
3138
+ }>;
3139
+ verify_services?: Array<{
3140
+ sid?: string;
3141
+ friendly_name: string;
3142
+ code?: string;
3143
+ default_channel?: string;
3144
+ }>;
3145
+ conversations?: {
3146
+ services?: Array<{
3147
+ sid?: string;
3148
+ friendly_name: string;
3149
+ }>;
3150
+ };
3151
+ }
3152
+ declare function seedFromConfig$1(store: Store, _baseUrl: string, config: TwilioSeedConfig): void;
3153
+ declare const twilioPlugin: ServicePlugin;
3154
+
3155
+ interface VercelSeedConfig {
3156
+ port?: number;
3157
+ users?: Array<{
3158
+ username: string;
3159
+ email?: string;
3160
+ name?: string;
3161
+ }>;
3162
+ teams?: Array<{
3163
+ slug: string;
3164
+ name?: string;
3165
+ description?: string;
3166
+ }>;
3167
+ projects?: Array<{
3168
+ name: string;
3169
+ team?: string;
3170
+ framework?: string;
3171
+ buildCommand?: string;
3172
+ outputDirectory?: string;
3173
+ rootDirectory?: string;
3174
+ nodeVersion?: string;
3175
+ envVars?: Array<{
3176
+ key: string;
3177
+ value: string;
3178
+ type?: string;
3179
+ target?: string[];
3180
+ }>;
3181
+ }>;
3182
+ integrations?: Array<{
3183
+ client_id: string;
3184
+ client_secret: string;
3185
+ name: string;
3186
+ redirect_uris: string[];
3187
+ }>;
3188
+ }
3189
+ declare function seedFromConfig(store: Store, baseUrl: string, config: VercelSeedConfig): void;
3190
+ declare const vercelPlugin: ServicePlugin;
3191
+
3192
+ type ProviderOptions = APIOptions & {
3193
+ baseUrl?: string;
3194
+ tokens?: Record<string, AuthUser>;
3195
+ fallbackUser?: AuthFallback;
3196
+ publicNamespace?: string;
3197
+ adminPrefix?: string;
3198
+ /**
3199
+ * A seeded stream of `[0, 1)` that ids and tokens are minted from, so a run replays from
3200
+ * its seed. Default: the platform's randomness.
3201
+ */
3202
+ random?: () => number;
3203
+ };
3204
+ /** Portable vendor API backed by the shared namespace; it owns no separate history or listener. */
3205
+ declare class ProviderAPI {
3206
+ readonly plugin: ServicePlugin;
3207
+ readonly options: ProviderOptions;
3208
+ readonly sqlite: SqliteClient;
3209
+ readonly namespace: string;
3210
+ readonly store: Store;
3211
+ private activeApp;
3212
+ private activeBaseUrl;
3213
+ private readonly facade;
3214
+ get app(): Hono<AppEnv>;
3215
+ get routeTable(): RouteInfo[];
3216
+ readonly tokenMap: Map<string, AuthUser>;
3217
+ readonly webhooks: WebhookDispatcher;
3218
+ private configured;
3219
+ private tail;
3220
+ constructor(plugin: ServicePlugin, options?: ProviderOptions);
3221
+ private buildApp;
3222
+ private initialize;
3223
+ /** Persist seed configuration before the shared runtime captures its initial checkpoint. */
3224
+ seed(config: unknown, apply: (store: Store, baseUrl: string, config: never) => void): void;
3225
+ configureFixtures(config: unknown, apply: (store: Store, baseUrl: string, config: never) => void): void;
3226
+ fetch(request: Request): Promise<Response>;
3227
+ reset(): Promise<void>;
3228
+ }
3229
+ declare function providerDocument(name: string, origin: string, routes: readonly string[]): OpenAPIDocument;
3230
+ /** Add vendor operations while retaining independently implemented native operations. */
3231
+ declare function expandDocument(legacy: OpenAPIDocument, routes: readonly string[]): OpenAPIDocument;
3232
+ /** Keep the independently implemented operation registry bound to its portion of the contract. */
3233
+ declare function selectOperations(document: OpenAPIDocument, ids: readonly string[]): OpenAPIDocument;
3234
+ declare class ProviderExpansion extends ProviderAPI {
3235
+ private readonly legacyRoutes;
3236
+ private readonly extraRoutes;
3237
+ constructor(plugin: ServicePlugin, legacy: OpenAPIDocument, options?: ProviderOptions);
3238
+ legacyHandles(request: Request): boolean;
3239
+ handles(request: Request): boolean;
3240
+ }
3241
+
3242
+ export { ProviderAPI, ProviderExpansion, applePlugin, awsPlugin, clerkPlugin, expandDocument, formatPullRequest, formatRepo, formatSlackView, formatMessage as formatTwilioMessage, generateNodeId, getAwsStore, getGitHubStore, getResendStore, getSlackStore, getTwilioStore, githubPlugin, googlePlugin, linearPlugin, materializeGitHubSeedConfig, microsoftPlugin, mongoatlasPlugin, oktaPlugin, providerDocument, resendPlugin, seedFromConfig$c as seedApple, seedFromConfig$b as seedAws, seedFromConfig$a as seedClerk, seedFromConfig$9 as seedGithub, seedFromConfig$8 as seedGoogle, seedFromConfig$7 as seedLinear, seedFromConfig$6 as seedMicrosoft, seedFromConfig$5 as seedMongoatlas, seedFromConfig$4 as seedOkta, seedFromConfig$3 as seedResend, seedFromConfig$2 as seedSlack, seedFromConfig$1 as seedTwilio, seedFromConfig as seedVercel, selectOperations, slackPlugin, twilioPlugin, vercelPlugin };
3243
+ export type { AppleSeedConfig, AwsSeedConfig, ClerkSeedConfig, GitHubCommit, GitHubIssue, GitHubPullRequest, GitHubRepo, GitHubSeedConfig, GitHubStore, GoogleSeedConfig, LinearSeedConfig, MaterializedGitHubSeedConfig, MicrosoftSeedConfig, MongoAtlasSeedConfig, OktaSeedConfig, ProviderOptions, SlackMessage as ProviderSlackMessage, ResendSeedConfig, ResendStore, SlackSeedConfig, SlackStore, TwilioSeedConfig, TwilioStore, VercelSeedConfig };