@trytilde/ontology 3.1.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/catalog.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Every `kind` of a ducktail pipeline. */
2
- export type PipelineKind = "postgres" | "kafka" | "webhook" | "linear" | "sentry" | "cloudwatch" | "plaid" | "quickbooks" | "xero" | "gmail" | "google_calendar" | "google_contacts" | "slack" | "cell_edits";
2
+ export type PipelineKind = "postgres" | "kafka" | "webhook" | "linear" | "sentry" | "github" | "cloudwatch" | "plaid" | "quickbooks" | "xero" | "gmail" | "google_calendar" | "google_contacts" | "slack" | "cell_edits";
3
3
  /** Polled kinds (one leased task each). */
4
4
  export type PolledKind = "linear" | "sentry" | "cloudwatch" | "plaid" | "quickbooks" | "xero" | "gmail" | "google_calendar" | "google_contacts" | "slack";
5
5
  /** Each polled kind's streams. */
@@ -15,7 +15,7 @@ export interface PolledStreams {
15
15
  google_contacts: "contacts" | "other_contacts" | "contact_groups";
16
16
  slack: "conversations" | "users" | "messages" | "replies";
17
17
  }
18
- /** The Tilde connection provider each polled kind takes its slot of. */
18
+ /** The Tilde connection provider each polled kind takes its connection from. */
19
19
  export interface PolledProvider {
20
20
  linear: "linear";
21
21
  sentry: "sentry";
@@ -28,6 +28,26 @@ export interface PolledProvider {
28
28
  google_contacts: "google";
29
29
  slack: "slack";
30
30
  }
31
+ /** Sync kinds: webhook plus backfill (plus a reconciling poll where it reconciles), one stream per entity. */
32
+ export type SyncKind = "linear" | "sentry" | "github";
33
+ /** Each sync kind's streams. */
34
+ export interface SyncStreams {
35
+ linear: "teams" | "users" | "workflow_states" | "projects" | "cycles" | "issues" | "comments";
36
+ sentry: "projects" | "issues";
37
+ github: "pull_requests" | "pull_request_reviews" | "check_runs" | "releases";
38
+ }
39
+ /** The Tilde connection provider each sync kind takes its connection from. */
40
+ export interface SyncProvider {
41
+ linear: "linear";
42
+ sentry: "sentry";
43
+ github: "github";
44
+ }
45
+ /** Whether a sync kind takes `reconcile` (a slow full poll). */
46
+ export interface SyncReconciles {
47
+ linear: true;
48
+ sentry: true;
49
+ github: false;
50
+ }
31
51
  /** Providers whose webhooks a webhook pipeline routes by event. */
32
52
  export type WebhookProvider = "github" | "linear" | "sentry";
33
53
  /** Each provider's event names (the values of its event header). */