@ax-hub/sdk 0.1.1 → 0.3.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/index.d.ts CHANGED
@@ -404,7 +404,8 @@ interface EmitAuditEventInput {
404
404
  interface IntegrityCheckResult {
405
405
  ok: boolean;
406
406
  checked: number;
407
- brokenAt?: string;
407
+ firstBadSeq?: number;
408
+ reason?: string;
408
409
  }
409
410
  interface AnonymizeInput {
410
411
  subjectId?: string;
@@ -453,6 +454,13 @@ declare class AuditServerForTenantClient {
453
454
  private readonly http;
454
455
  private readonly tenantSlug;
455
456
  constructor(http: HttpClient, tenantSlug: string);
457
+ /**
458
+ * Emit a server-side audit event.
459
+ *
460
+ * @remarks The backend route `POST /audit-events/server` is not yet
461
+ * implemented (currently 404). Retained ahead of backend support — see
462
+ * ADR-0040. Do not rely on this in production until the route ships.
463
+ */
456
464
  emit(input: EmitAuditEventInput, opts?: RequestOptions): Promise<AuditEvent>;
457
465
  }
458
466
 
@@ -508,7 +516,7 @@ declare class Crud<T extends {
508
516
  private readonly http;
509
517
  private readonly base;
510
518
  constructor(http: HttpClient, base: string);
511
- list(opts?: PageRequestOptions): Promise<PaginatedList<T>>;
519
+ list(opts?: RequestOptions): Promise<T[]>;
512
520
  get(id: string, opts?: RequestOptions): Promise<T>;
513
521
  create(input: Record<string, unknown>, opts?: RequestOptions): Promise<T>;
514
522
  update(id: string, patch: Record<string, unknown>, opts?: RequestOptions): Promise<T>;
@@ -567,6 +575,7 @@ interface BulkInviteResult {
567
575
  rejected: Array<{
568
576
  email: string;
569
577
  reason: string;
578
+ message?: string;
570
579
  }>;
571
580
  }
572
581
  interface EmailDomain {
@@ -613,9 +622,9 @@ declare class TenantMembersForTenantClient {
613
622
  list(opts?: PageRequestOptions): Promise<PaginatedList<TenantMember>>;
614
623
  update(membershipId: string, patch: {
615
624
  role?: string;
616
- }, opts?: RequestOptions): Promise<TenantMember>;
617
- deactivate(membershipId: string, opts?: RequestOptions): Promise<TenantMember>;
618
- reactivate(membershipId: string, opts?: RequestOptions): Promise<TenantMember>;
625
+ }, opts?: RequestOptions): Promise<void>;
626
+ deactivate(membershipId: string, opts?: RequestOptions): Promise<void>;
627
+ reactivate(membershipId: string, opts?: RequestOptions): Promise<void>;
619
628
  }
620
629
  declare class TenantInvitationsClient {
621
630
  private readonly http;
@@ -851,11 +860,13 @@ declare class AppsCrudMixin {
851
860
  signIconDarkUploadURL(appId: string, input: SignIconUploadInput): Promise<SignIconUploadResult>;
852
861
  private signIconImpl;
853
862
  /**
854
- * List apps the caller has been granted access to (not necessarily owned).
855
- * Useful for "apps in my dashboard" type views.
863
+ * List the caller's workspace apps owned plus apps they've been granted
864
+ * access to (not necessarily owned). Useful for "apps in my dashboard" views.
856
865
  *
857
- * Backend route is `/api/v1/users/me/apps` surfaced here under `sdk.apps`
858
- * to avoid a `sdk.users.*` namespace just for this one method (eng review #3).
866
+ * Backend route is `/api/v1/me/apps/workspace`, which returns plain
867
+ * `appResponse` rows. (The legacy `/users/me/apps` route returns access
868
+ * records with a different shape, so it is not used here.) Surfaced under
869
+ * `sdk.apps` to avoid a `sdk.users.*` namespace for one method (eng review #3).
859
870
  *
860
871
  * @example happy
861
872
  * const mine = await sdk.apps.listMine()
@@ -1767,68 +1778,45 @@ declare class AppScopedTablesClient {
1767
1778
  inspect(tableName: string, opts?: RequestOptions): Promise<unknown>;
1768
1779
  }
1769
1780
 
1770
- interface ParsedFrame {
1771
- id?: string;
1772
- event?: string;
1773
- data: string;
1774
- }
1775
- type StreamItem<T> = {
1776
- type: 'item';
1777
- value: T;
1778
- id: string | undefined;
1779
- } | {
1780
- type: 'gap';
1781
- sinceId: string | undefined;
1782
- missingCount?: number;
1783
- } | {
1784
- type: 'decode-skip';
1785
- frame: ParsedFrame;
1786
- error: AxHubError;
1787
- };
1788
- interface SSEStream<T> extends AsyncIterable<StreamItem<T>> {
1789
- dispose(): void;
1781
+ type DeploymentStatus = 'pending' | 'building' | 'pushing' | 'deploying' | 'succeeded' | 'failed' | 'cancelled';
1782
+ interface DeploymentFailureReason {
1783
+ stage: string;
1784
+ code: string;
1785
+ category: string;
1786
+ message: string;
1790
1787
  }
1791
-
1792
- type DeploymentStatus = 'queued' | 'building' | 'deploying' | 'succeeded' | 'failed' | 'cancelled' | 'rolled_back';
1793
1788
  interface DeploymentResponse {
1794
1789
  id: string;
1795
1790
  appId: string;
1791
+ commitSha: string;
1796
1792
  status: DeploymentStatus;
1793
+ /** Stage in progress (building/pushing/deploying); null once terminal. */
1794
+ currentStage: string | null;
1795
+ /** Pushed image path; null before the build completes. */
1796
+ imageUri: string | null;
1797
1797
  triggerSource: string;
1798
1798
  startedAt: string | null;
1799
1799
  completedAt: string | null;
1800
- url: string | null;
1801
- errorMessage: string | null;
1802
- createdAt: string;
1803
- updatedAt: string;
1800
+ /** Populated only when status === 'failed'; null otherwise. */
1801
+ failureReason: DeploymentFailureReason | null;
1804
1802
  }
1805
1803
  interface CreateDeploymentInput {
1806
- ref?: string;
1807
- }
1808
- interface BuildLogEvent {
1809
- ts: string;
1810
- line: string;
1811
- }
1812
- interface PodLogEvent {
1813
- ts: string;
1814
- line: string;
1815
- }
1816
- interface PodEventEvent {
1817
- type: 'Normal' | 'Warning';
1818
- reason: string;
1819
- message: string;
1820
- ts: string;
1804
+ /** Specific git commit SHA (40-hex) to build. Omit to deploy the GitConnection default-branch HEAD. */
1805
+ commitSha?: string;
1806
+ /** Force a rebuild even if this commit already has a built image (dependency / base-image refresh). */
1807
+ forceRebuild?: boolean;
1821
1808
  }
1822
1809
  declare class DeploymentsClient {
1823
1810
  private readonly http;
1824
1811
  constructor(http: HttpClient);
1825
1812
  /**
1826
1813
  * Trigger a new deployment. Returns immediately with the deployment row
1827
- * in `queued` or `building` state; use `streamBuildLogs` or polling
1828
- * `get()` to observe progression.
1814
+ * in `pending` or `building` state; poll `get()` to observe progression.
1829
1815
  *
1830
1816
  * @example happy
1831
- * const dep = await sdk.deployments.create('app_abc', { ref: 'main' })
1817
+ * const dep = await sdk.deployments.create('app_abc', { commitSha: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0' })
1818
+ * // or omit input entirely to deploy the default-branch HEAD:
1819
+ * const head = await sdk.deployments.create('app_abc')
1832
1820
  *
1833
1821
  * @example failure
1834
1822
  * try { await sdk.deployments.create('app_abc') }
@@ -1851,7 +1839,7 @@ declare class DeploymentsClient {
1851
1839
  *
1852
1840
  * @example happy
1853
1841
  * const dep = await sdk.deployments.get('app_abc', 'dep_123')
1854
- * if (dep.status === 'succeeded') console.log(dep.url)
1842
+ * if (dep.status === 'succeeded') console.log(dep.imageUri)
1855
1843
  */
1856
1844
  get(appId: string, did: string): Promise<DeploymentResponse>;
1857
1845
  /**
@@ -1878,73 +1866,8 @@ declare class DeploymentsClient {
1878
1866
  * }
1879
1867
  */
1880
1868
  rollback(appId: string, did: string): Promise<void>;
1881
- /**
1882
- * Stream Cloud Build log lines for a deployment via SSE. Returns an
1883
- * AsyncIterable that yields `{type:'item', value}`, `{type:'gap'}` (on
1884
- * reconnect when ring buffer rolled), or `{type:'decode-skip'}` (single
1885
- * malformed frame). Iterator completes when the deployment reaches a
1886
- * terminal state.
1887
- *
1888
- * @example happy
1889
- * const ctrl = new AbortController()
1890
- * for await (const ev of sdk.deployments.streamBuildLogs(appId, did, { signal: ctrl.signal })) {
1891
- * if (ev.type === 'item') process.stdout.write(ev.value.line + '\n')
1892
- * }
1893
- *
1894
- * @example failure
1895
- * try {
1896
- * for await (const _ of sdk.deployments.streamBuildLogs(appId, did)) {}
1897
- * } catch (e) {
1898
- * if (e instanceof StreamConsumedError) /* iterating twice — forbidden *\/
1899
- * }
1900
- */
1901
- streamBuildLogs(appId: string, did: string, opts?: {
1902
- signal?: AbortSignal;
1903
- }): SSEStream<BuildLogEvent>;
1904
- /**
1905
- * Stream runtime pod stdout/stderr after deploy succeeds. Same iterator
1906
- * semantics as `streamBuildLogs`. Ring buffer cap = 200 most recent lines.
1907
- *
1908
- * @example happy
1909
- * for await (const ev of sdk.deployments.streamPodLogs(appId, did)) {
1910
- * if (ev.type === 'item') console.log(ev.value.line)
1911
- * }
1912
- */
1913
- streamPodLogs(appId: string, did: string, opts?: {
1914
- signal?: AbortSignal;
1915
- }): SSEStream<PodLogEvent>;
1916
- /**
1917
- * Stream Kubernetes pod events (Normal / Warning — CrashLoopBackOff,
1918
- * OOMKilled, ImagePullBackOff, ...). Use for self-heal signal detection.
1919
- *
1920
- * @example happy
1921
- * for await (const ev of sdk.deployments.streamPodEvents(appId, did)) {
1922
- * if (ev.type === 'item' && ev.value.type === 'Warning') {
1923
- * console.warn(ev.value.reason, ev.value.message)
1924
- * }
1925
- * }
1926
- */
1927
- streamPodEvents(appId: string, did: string, opts?: {
1928
- signal?: AbortSignal;
1929
- }): SSEStream<PodEventEvent>;
1930
1869
  }
1931
1870
 
1932
- interface GatewayEngine {
1933
- name: 'postgres' | 'mysql' | string;
1934
- capabilities: string[];
1935
- }
1936
- interface GatewayConnector {
1937
- id: string;
1938
- engine: string;
1939
- name: string;
1940
- [key: string]: unknown;
1941
- }
1942
- interface GatewayResource {
1943
- id: string;
1944
- connectorId: string;
1945
- name: string;
1946
- [key: string]: unknown;
1947
- }
1948
1871
  interface GatewayQueryInput {
1949
1872
  resourceId?: string;
1950
1873
  connectorId?: string;
@@ -2070,40 +1993,12 @@ declare class GatewayClient {
2070
1993
  scoped(tenantSlug: string): TenantGatewayClient;
2071
1994
  }
2072
1995
  declare class TenantGatewayClient {
2073
- /** @adminOnly Global engine catalog. Governance read — requires tenant_admin (v0.1, SPEC 307). */
2074
- readonly engines: GatewayEnginesClient;
2075
- /** @adminOnly Connector governance (list/create/update/...). Member callers get ForbiddenError (v0.1). Members use `catalog.listConnectors()`. */
2076
- readonly connectors: GatewayConnectorsClient;
2077
- /** @adminOnly Raw resource governance. Member callers get ForbiddenError (v0.1). Members use `catalog.listResources()`. */
2078
- readonly resources: GatewayResourcesClient;
2079
1996
  /** Run a parameterized read query. Member OK. See also `catalog.invoke()`. */
2080
1997
  readonly query: GatewayQueryClient;
2081
1998
  /** Member-facing catalog: discover connectors/resources you can read + invoke. */
2082
1999
  readonly catalog: GatewayCatalogClient;
2083
2000
  constructor(http: HttpClient, tenantSlug: string);
2084
2001
  }
2085
- declare class GatewayEnginesClient {
2086
- private readonly http;
2087
- private readonly base;
2088
- constructor(http: HttpClient, base: string);
2089
- list(opts?: RequestOptions): Promise<GatewayEngine[]>;
2090
- }
2091
- declare class GatewayCrud<T extends {
2092
- id: string;
2093
- }> {
2094
- protected readonly http: HttpClient;
2095
- protected readonly base: string;
2096
- constructor(http: HttpClient, base: string);
2097
- list(opts?: RequestOptions): Promise<T[]>;
2098
- get(id: string, opts?: RequestOptions): Promise<T>;
2099
- create(input: Record<string, unknown>, opts?: RequestOptions): Promise<T>;
2100
- update(id: string, patch: Record<string, unknown>, opts?: RequestOptions): Promise<T>;
2101
- delete(id: string, opts?: RequestOptions): Promise<void>;
2102
- }
2103
- declare class GatewayConnectorsClient extends GatewayCrud<GatewayConnector> {
2104
- }
2105
- declare class GatewayResourcesClient extends GatewayCrud<GatewayResource> {
2106
- }
2107
2002
  declare class GatewayQueryClient {
2108
2003
  private readonly http;
2109
2004
  private readonly base;
@@ -2126,7 +2021,6 @@ declare class GatewayQueryClient {
2126
2021
  }
2127
2022
  /**
2128
2023
  * Member-facing gateway catalog: connectors/resources the caller can read, plus `invoke`.
2129
- * Distinct from the `@adminOnly` governance clients (`connectors`/`resources`/`engines`).
2130
2024
  */
2131
2025
  declare class GatewayCatalogClient {
2132
2026
  private readonly http;
@@ -2358,9 +2252,14 @@ declare class IdentityProviderClient {
2358
2252
  declare class IdentitySystemOAuthClientsClient {
2359
2253
  private readonly http;
2360
2254
  constructor(http: HttpClient);
2255
+ /**
2256
+ * Fetch an OAuth client by ID. This is the only global OAuth-client route on
2257
+ * the backend (`GET /oauth-clients/{clientID}`). To **create** an OAuth
2258
+ * client, use the app-scoped `sdk.apps.oauthClients.create(appId, …)` — the
2259
+ * backend only exposes creation under `POST /apps/{appID}/oauth-clients/`.
2260
+ * There is no global create/delete route.
2261
+ */
2361
2262
  get(clientId: string, opts?: RequestOptions): Promise<SystemOAuthClient>;
2362
- create(input: Record<string, unknown>, opts?: RequestOptions): Promise<SystemOAuthClient>;
2363
- delete(clientId: string, opts?: RequestOptions): Promise<void>;
2364
2263
  }
2365
2264
 
2366
2265
  interface SettlePublicationInput {
@@ -2563,6 +2462,28 @@ declare class NoAuth implements AuthProvider {
2563
2462
  onUnauthorized(): Promise<boolean>;
2564
2463
  }
2565
2464
 
2465
+ interface ParsedFrame {
2466
+ id?: string;
2467
+ event?: string;
2468
+ data: string;
2469
+ }
2470
+ type StreamItem<T> = {
2471
+ type: 'item';
2472
+ value: T;
2473
+ id: string | undefined;
2474
+ } | {
2475
+ type: 'gap';
2476
+ sinceId: string | undefined;
2477
+ missingCount?: number;
2478
+ } | {
2479
+ type: 'decode-skip';
2480
+ frame: ParsedFrame;
2481
+ error: AxHubError;
2482
+ };
2483
+ interface SSEStream<T> extends AsyncIterable<StreamItem<T>> {
2484
+ dispose(): void;
2485
+ }
2486
+
2566
2487
  type WebhookVerifyReason = 'signature_mismatch' | 'timestamp_skew' | 'malformed_signature' | 'missing_secret' | 'replay';
2567
2488
  interface VerifyWebhookInput {
2568
2489
  rawBody: Buffer | Uint8Array | string;
@@ -2580,4 +2501,4 @@ interface VerifyWebhookResult {
2580
2501
  declare function signWebhook(rawBody: Buffer | Uint8Array | string, secret: string, timestamp?: string): string;
2581
2502
  declare function verifyWebhook(input: VerifyWebhookInput): VerifyWebhookResult;
2582
2503
 
2583
- export { AbortError, AccessDeniedError, type AddColumnInput, type AddCommentInput, type AddGrantInput, AlreadyAccessedError, AlreadyActiveError, AlreadyDeletedError, AlreadyInactiveError, AlreadyMemberError, AlreadyRevokedError, AlreadySettledError, type AnonymizeInput, type AppAccess, type AppCategory, type AppID, type AppId, type AppResponse, AppScopedClient, AppScopedDataClient, type AppSlug, type AppTable, type AppTemplate, AppUnavailableError, AppsClient, AuditClient, type AuditEvent, type AuditEventID, type AuthProvider, type AuthRing, AuthorizationPendingError, AuthzClient, type AuthzGrant, type AuthzSubject, type AuthzTag, AxHubClient, type AxHubClientOptions, AxHubError, type AxHubErrorInit, BadRequestError, type Branded, type BuildLogEvent, type BulkInviteResult, type CatalogAncestor, type CatalogConnector, type CatalogKind, type CatalogKindAction, type CatalogPermissionsReadDetail, type CatalogPermissionsReadList, type CatalogResourceDetail, type CatalogResourceFilter, type CatalogResourceView, type CatalogTag, type ColumnType, type Comment, ConfigurationError, ConflictError, type ConnectGitInput, type ConnectorID, type CreateAppInput, type CreateCategoryInput, type CreateDeploymentInput, type CreateOAuthClientInput, type CreateTableInput, type CreateTenantInput, type CursorDirection, DEFAULT_BASE_URL, type DataBulkResult, DataClient, type DataCountOptions, type DataGetOptions, type DataListOptions, type DataOrderBy, DataTableClient, type DataTableSchema, type DecideInput, type DecideResult, DecodeError, type DeploymentID, type DeploymentId, type DeploymentResponse, type DeploymentStatus, DeploymentsClient, type DeviceAuthorizationResponse, DeviceFlowDeniedError, DeviceFlowTimeoutError, type DiscoverAppsOptions, type DiscoverOptions, type DispatchContext, DomainTakenError, DuplicateError, type EmailDomain, type EmitAuditEventInput, EmptyError, type EnvVar, ExpiredTokenError, type FetchLike, type FieldError, ForbiddenError, GatewayCatalogClient, GatewayClient, type GatewayConnector, type GatewayEngine, type GatewayQueryColumn, type GatewayQueryInput, type GatewayQueryResult, type GatewayResource, type GitConnection, type GitConnectionSetup, type GitConnectionStatus, type GithubInstallStart, type GrantID, type GrantPrincipalType, type GrantScope, IdentityClient, IdentityDeviceCodeClient, IdentityMeClient, IdentityOAuthClient, IdentityOIDCClient, IdentityPATClient, type IdentityProvider, IdentityProviderClient, IdentitySystemOAuthClientsClient, type InferRow, type InstallStartInput, type IntegrityCheckResult, InternalServerError, IntrospectFailedError, InvalidCursorError, InvalidGrantError, InvalidPathError, InvalidStateTransitionError, InvalidValueError, InvitationExpiredError, type InviteTenantMemberInput, type InvokeInput, type InvokeResult, type IssuePersonalAccessTokenInput, type IssuePersonalAccessTokenResult, type KeysetCursor, LastAdminError, LegacyCursorError, type LikeResult, type LikeStatus, type ListAllItem, type ListAllOptions, type ListOptions, type Logger, type MeResponse, type MockClientOptions, type MockFixtures, MockInProductionError, type MockRow, type MockSchemas, MockStore, NetworkError, NoAuth, NotAdminError, NotAllowedError, NotDeletedError, NotFoundError, NotMemberError, type OAuthClient, type OAuthClientWithSecret, OAuthError, type OAuthErrorInit, type OAuthTokenResponse, type OrderByField, type PATID, type PATSummary, type PaginatedList, type ParsedFrame, type PatId, PendingExistsError, PermanentlyDeletedError, PermissionDeniedError, type PodEventEvent, type PodLogEvent, PoolStaleError, PreconditionFailedError, type PublicationRequest, type PublicationRequestStatus, PublicationRequestsClient, type QueryExpr, type RateLimitStrategy, RateLimitedError, type RequestId, RequiredError, type ResourceID, type RetryInfo, type SSEStream, ScanLimitExceededError, SchemaCache, type SchemaCacheOptions, SchemaNameTakenError, type SchemaShapeFromRow, type SelectColumns, type SettlePublicationInput, type SignIconUploadInput, type SignIconUploadResult, SlowDownError, SlugTakenError, StaticTokenAuth, StreamConsumedError, type StreamItem, type SubjectID, type SubmitPublicationInput, type SystemOAuthClient, type TableColumn, type TableConstraint, type TableGrant, type TableID, type TableIndex, TableNotFoundError, type TableSchema, type TagID, type Tenant, TenantGatewayClient, type TenantID, type TenantId, type TenantInvitation, type TenantMember, TenantScopedAppsClient, TenantScopedClient, type TenantSlug, TenantSlugRequiredError, TenantsClient, TimeoutError, TokenExpiredError, TokenInvalidError, TokenMissingError, type TokenType, UnauthenticatedError, UnavailableError, type UnlikeResult, type UnpublishInput, type UpdateAppInput, type UpdateGitConnectionInput, type UpdateTenantInput, type UserID, type UserId, ValidationError, type VerifyWebhookInput, type VerifyWebhookResult, WebhookVerificationError, type WebhookVerifyReason, and, asAppId, asAppSlug, asDeploymentId, asPatId, asRequestId, asTenantId, asTenantSlug, asUserId, assertMockModeAllowed, createMockStore, cursorFromRow, decodeCursor, defineSchema, dispatch, encodeCursor, escapeLike, formatErrorMessage, getAccessibleColumns, getMaskHint, id, isAllowed, isOAuthPath, isPolicyDeny, isSqlFormatError, not, or, orderByFingerprint, parseRetryAfter, raw, schemaCacheKey, signWebhook, tableFromPath, verifyWebhook, where };
2504
+ export { AbortError, AccessDeniedError, type AddColumnInput, type AddCommentInput, type AddGrantInput, AlreadyAccessedError, AlreadyActiveError, AlreadyDeletedError, AlreadyInactiveError, AlreadyMemberError, AlreadyRevokedError, AlreadySettledError, type AnonymizeInput, type AppAccess, type AppCategory, type AppID, type AppId, type AppResponse, AppScopedClient, AppScopedDataClient, type AppSlug, type AppTable, type AppTemplate, AppUnavailableError, AppsClient, AuditClient, type AuditEvent, type AuditEventID, type AuthProvider, type AuthRing, AuthorizationPendingError, AuthzClient, type AuthzGrant, type AuthzSubject, type AuthzTag, AxHubClient, type AxHubClientOptions, AxHubError, type AxHubErrorInit, BadRequestError, type Branded, type BulkInviteResult, type CatalogAncestor, type CatalogConnector, type CatalogKind, type CatalogKindAction, type CatalogPermissionsReadDetail, type CatalogPermissionsReadList, type CatalogResourceDetail, type CatalogResourceFilter, type CatalogResourceView, type CatalogTag, type ColumnType, type Comment, ConfigurationError, ConflictError, type ConnectGitInput, type ConnectorID, type CreateAppInput, type CreateCategoryInput, type CreateDeploymentInput, type CreateOAuthClientInput, type CreateTableInput, type CreateTenantInput, type CursorDirection, DEFAULT_BASE_URL, type DataBulkResult, DataClient, type DataCountOptions, type DataGetOptions, type DataListOptions, type DataOrderBy, DataTableClient, type DataTableSchema, type DecideInput, type DecideResult, DecodeError, type DeploymentFailureReason, type DeploymentID, type DeploymentId, type DeploymentResponse, type DeploymentStatus, DeploymentsClient, type DeviceAuthorizationResponse, DeviceFlowDeniedError, DeviceFlowTimeoutError, type DiscoverAppsOptions, type DiscoverOptions, type DispatchContext, DomainTakenError, DuplicateError, type EmailDomain, type EmitAuditEventInput, EmptyError, type EnvVar, ExpiredTokenError, type FetchLike, type FieldError, ForbiddenError, GatewayCatalogClient, GatewayClient, type GatewayQueryColumn, type GatewayQueryInput, type GatewayQueryResult, type GitConnection, type GitConnectionSetup, type GitConnectionStatus, type GithubInstallStart, type GrantID, type GrantPrincipalType, type GrantScope, IdentityClient, IdentityDeviceCodeClient, IdentityMeClient, IdentityOAuthClient, IdentityOIDCClient, IdentityPATClient, type IdentityProvider, IdentityProviderClient, IdentitySystemOAuthClientsClient, type InferRow, type InstallStartInput, type IntegrityCheckResult, InternalServerError, IntrospectFailedError, InvalidCursorError, InvalidGrantError, InvalidPathError, InvalidStateTransitionError, InvalidValueError, InvitationExpiredError, type InviteTenantMemberInput, type InvokeInput, type InvokeResult, type IssuePersonalAccessTokenInput, type IssuePersonalAccessTokenResult, type KeysetCursor, LastAdminError, LegacyCursorError, type LikeResult, type LikeStatus, type ListAllItem, type ListAllOptions, type ListOptions, type Logger, type MeResponse, type MockClientOptions, type MockFixtures, MockInProductionError, type MockRow, type MockSchemas, MockStore, NetworkError, NoAuth, NotAdminError, NotAllowedError, NotDeletedError, NotFoundError, NotMemberError, type OAuthClient, type OAuthClientWithSecret, OAuthError, type OAuthErrorInit, type OAuthTokenResponse, type OrderByField, type PATID, type PATSummary, type PaginatedList, type ParsedFrame, type PatId, PendingExistsError, PermanentlyDeletedError, PermissionDeniedError, PoolStaleError, PreconditionFailedError, type PublicationRequest, type PublicationRequestStatus, PublicationRequestsClient, type QueryExpr, type RateLimitStrategy, RateLimitedError, type RequestId, RequiredError, type ResourceID, type RetryInfo, type SSEStream, ScanLimitExceededError, SchemaCache, type SchemaCacheOptions, SchemaNameTakenError, type SchemaShapeFromRow, type SelectColumns, type SettlePublicationInput, type SignIconUploadInput, type SignIconUploadResult, SlowDownError, SlugTakenError, StaticTokenAuth, StreamConsumedError, type StreamItem, type SubjectID, type SubmitPublicationInput, type SystemOAuthClient, type TableColumn, type TableConstraint, type TableGrant, type TableID, type TableIndex, TableNotFoundError, type TableSchema, type TagID, type Tenant, TenantGatewayClient, type TenantID, type TenantId, type TenantInvitation, type TenantMember, TenantScopedAppsClient, TenantScopedClient, type TenantSlug, TenantSlugRequiredError, TenantsClient, TimeoutError, TokenExpiredError, TokenInvalidError, TokenMissingError, type TokenType, UnauthenticatedError, UnavailableError, type UnlikeResult, type UnpublishInput, type UpdateAppInput, type UpdateGitConnectionInput, type UpdateTenantInput, type UserID, type UserId, ValidationError, type VerifyWebhookInput, type VerifyWebhookResult, WebhookVerificationError, type WebhookVerifyReason, and, asAppId, asAppSlug, asDeploymentId, asPatId, asRequestId, asTenantId, asTenantSlug, asUserId, assertMockModeAllowed, createMockStore, cursorFromRow, decodeCursor, defineSchema, dispatch, encodeCursor, escapeLike, formatErrorMessage, getAccessibleColumns, getMaskHint, id, isAllowed, isOAuthPath, isPolicyDeny, isSqlFormatError, not, or, orderByFingerprint, parseRetryAfter, raw, schemaCacheKey, signWebhook, tableFromPath, verifyWebhook, where };