@tangle-network/hub-sdk 0.23.0-develop.20260814095115.1610dd0 → 0.23.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
@@ -1,3 +1,261 @@
1
+ //#region src/allowances.d.ts
2
+ /**
3
+ * Allowances: a developer's per-member daily allowance on a meter, and the
4
+ * paywall decision past it. The platform counts every admitted turn and reads
5
+ * each payer's dollars from the ledger; the app keeps only its checkout and
6
+ * records a paying member with {@link HubAllowancesClient.grant}.
7
+ *
8
+ * Only the meter's owner may call these, signed in or with a root API key of
9
+ * their own. A delegated or resource-bound key, such as the key a hosted end
10
+ * user's sandbox runs on, is refused.
11
+ */
12
+ type HubAllowanceTier = "free" | "paid" | "owner";
13
+ type HubAllowanceRole = "owner" | "member";
14
+ interface HubAllowancePlanInput {
15
+ free: {
16
+ turnsPerDay: number;
17
+ usdPerDay: number | null;
18
+ };
19
+ /** Null turns billing off: past the free allowance nothing lifts the limit. */
20
+ paid: {
21
+ turnsPerDay: number;
22
+ usdPerDay: number | null;
23
+ priceUsdMonthly: number;
24
+ } | null;
25
+ owner?: {
26
+ turnsPerDay: number;
27
+ };
28
+ /** Key resource type whose ledger spend counts against a payer's dollars. */
29
+ spendResourceType: string | null;
30
+ }
31
+ interface HubAllowancePlan extends HubAllowancePlanInput {
32
+ meter: string;
33
+ owner: {
34
+ turnsPerDay: number;
35
+ };
36
+ /** False while the meter runs on the default plan. */
37
+ configured: boolean;
38
+ updatedAt: string | null;
39
+ }
40
+ interface HubAllowanceSubject {
41
+ member: string;
42
+ role?: HubAllowanceRole;
43
+ /** The member whose keys pay for the turn, when that is someone else. */
44
+ payer?: string;
45
+ payerRole?: HubAllowanceRole;
46
+ }
47
+ interface HubAllowanceDecision {
48
+ /** `paywall`: paying lifts the limit. `allowance_reached`: nothing does today. */
49
+ decision: "admit" | "paywall" | "allowance_reached";
50
+ tier: HubAllowanceTier;
51
+ paywall: boolean;
52
+ turns: {
53
+ used: number;
54
+ limit: number;
55
+ };
56
+ usd: {
57
+ spent: number;
58
+ limit: number;
59
+ remaining: number;
60
+ } | null;
61
+ day: string;
62
+ resetsAt: string;
63
+ /**
64
+ * A paying payer's spend in the current paid period against what funds it:
65
+ * the plan price less Tangle's 10% fee, plus the free daily allowance for
66
+ * the period. A paid turn is refused once `remaining` is gone.
67
+ */
68
+ period?: {
69
+ spent: number;
70
+ funded: number;
71
+ remaining: number;
72
+ startsAt: string;
73
+ endsAt: string;
74
+ };
75
+ replay?: boolean;
76
+ }
77
+ interface HubAllowanceUsage {
78
+ day: string;
79
+ turns: number;
80
+ members: Array<{
81
+ member: string;
82
+ turns: number;
83
+ tier: HubAllowanceTier;
84
+ usdSpent: number | null;
85
+ }>;
86
+ lines: Array<{
87
+ line: string;
88
+ turns: number;
89
+ }>;
90
+ }
91
+ interface HubAllowanceSyncInput {
92
+ source: string;
93
+ revision: number;
94
+ expiresAt: string | null;
95
+ reference: string | null;
96
+ }
97
+ interface HubAllowanceSyncReceipt extends HubAllowanceSyncInput {
98
+ member: string;
99
+ }
100
+ interface HubAllowanceGrant {
101
+ member: string;
102
+ tier: "paid";
103
+ expiresAt: string;
104
+ reference: string | null;
105
+ }
106
+ declare class HubAllowancesClient {
107
+ private readonly request;
108
+ constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
109
+ plan(meter: string): Promise<HubAllowancePlan>;
110
+ setPlan(meter: string, plan: HubAllowancePlanInput): Promise<HubAllowancePlan>;
111
+ /** Admit one turn or refuse it. Retrying the same `turnId` never counts twice. */
112
+ admit(meter: string, input: HubAllowanceSubject & {
113
+ turnId: string;
114
+ line?: string;
115
+ channel?: string;
116
+ }): Promise<HubAllowanceDecision>;
117
+ /** What the member's next turn would get, without counting anything. */
118
+ status(meter: string, subject: HubAllowanceSubject): Promise<HubAllowanceDecision>;
119
+ /** Move a member to the paid allowance until `expiresAt` (the paid period's end). */
120
+ grant(meter: string, member: string, input: {
121
+ expiresAt: string;
122
+ reference?: string | null;
123
+ }): Promise<HubAllowanceGrant>;
124
+ /** Synchronize a paid grant by durable product revision. Null expiry writes
125
+ * a retained revocation. A delayed older update is refused, never reactivated.
126
+ * There is no fallback to the unversioned grant endpoint on older servers. */
127
+ syncGrant(meter: string, member: string, input: HubAllowanceSyncInput): Promise<HubAllowanceSyncReceipt>;
128
+ revoke(meter: string, member: string): Promise<void>;
129
+ /** Turns per member and per line on one UTC day (default today). */
130
+ usage(meter: string, day?: string): Promise<HubAllowanceUsage>;
131
+ private path;
132
+ private memberPath;
133
+ private body;
134
+ }
135
+ //#endregion
136
+ //#region src/apps.d.ts
137
+ /** App identity and customer permissions over the existing Platform transport.
138
+ * These operations do not authorize spending or expose upstream credentials. */
139
+ interface HubApp {
140
+ id: string;
141
+ clientId: string;
142
+ oauthClientId: string | null;
143
+ name: string;
144
+ redirectUris: string[];
145
+ allowedScopes: string[];
146
+ homepageUrl: string | null;
147
+ status: "active" | "revoked";
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ }
151
+ interface HubAppCreateInput {
152
+ name: string;
153
+ redirectUris: string[];
154
+ allowedScopes: string[];
155
+ homepageUrl?: string;
156
+ /** Associate an existing owned login client in the same transaction as creation. */
157
+ oauthClientId?: string;
158
+ }
159
+ interface HubAppGrant {
160
+ id: string;
161
+ appId: string;
162
+ userId: string;
163
+ connectionId: string;
164
+ scopes: string[];
165
+ status: "active" | "revoked";
166
+ createdAt: string;
167
+ updatedAt: string;
168
+ revokedAt: string | null;
169
+ /** Display metadata is additive; older deployments may omit it. */
170
+ appName?: string | null;
171
+ oauthClientId?: string | null;
172
+ providerId?: string | null;
173
+ accountDisplay?: string | null;
174
+ connectionDisplayName?: string | null;
175
+ }
176
+ interface HubAppGrantRevoked {
177
+ grantId: string;
178
+ status: "revoked";
179
+ revokedAt: string | null;
180
+ tokensRevoked: number;
181
+ }
182
+ declare class HubAppsClient {
183
+ private readonly request;
184
+ readonly grants: {
185
+ list: () => Promise<HubAppGrant[]>;
186
+ revoke: (grantId: string) => Promise<HubAppGrantRevoked>;
187
+ };
188
+ constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
189
+ list(): Promise<HubApp[]>;
190
+ /** The secret is returned only by creation; keep it in your server vault. */
191
+ create(input: HubAppCreateInput): Promise<{
192
+ app: HubApp;
193
+ clientSecret: string;
194
+ }>;
195
+ /** Immutable association of two existing records with the same owner. */
196
+ linkOAuthClient(appId: string, clientId: string): Promise<{
197
+ appId: string;
198
+ oauthClientId: string;
199
+ }>;
200
+ revoke(appId: string): Promise<{
201
+ appId: string;
202
+ grantsRevoked: number;
203
+ tokensRevoked: number;
204
+ }>;
205
+ }
206
+ //#endregion
207
+ //#region src/inbound-webhooks.d.ts
208
+ /** Provider setup uses the existing authenticated Hub transport and vault. */
209
+ interface HubInboundWebhookCreateOptions {
210
+ /** Inkbox identity that owns all selected channels. */
211
+ identityId?: string;
212
+ mailboxId?: string;
213
+ phoneNumberId?: string;
214
+ imessage?: boolean;
215
+ /** Linq: explicit owned lines; omitted does not mean every account line. */
216
+ phoneNumbers?: string[];
217
+ /** Linq WhatsApp: explicit opaque IDs from numbers.list, not E.164 phone strings. */
218
+ phoneNumberIds?: string[];
219
+ /** Contiguity Console secret, or an existing Inkbox identity signing key. */
220
+ signingSecret?: string;
221
+ }
222
+ interface HubInboundWebhookCreateResponse {
223
+ url: string;
224
+ /** True only when the provider subscription was created by the server. */
225
+ provisioned?: boolean;
226
+ /** Self-configured legacy providers can return a newly minted secret once. */
227
+ secret?: string;
228
+ inboundAddress?: string;
229
+ requiresProviderSetup?: boolean;
230
+ }
231
+ interface HubInboundWebhookStatus {
232
+ configured: boolean;
233
+ url?: string;
234
+ /** Configuration is not evidence of a real delivered message. */
235
+ deliveryVerified: false;
236
+ requiresProviderSetup?: boolean;
237
+ }
238
+ /** Live provider readback for one explicitly selected Linq WhatsApp number. */
239
+ interface HubInboundPhoneNumberScope {
240
+ configured: true;
241
+ provisioned: true;
242
+ subscribed: true;
243
+ phoneNumberIds: string[];
244
+ }
245
+ declare class HubInboundWebhooksClient {
246
+ private readonly request;
247
+ constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
248
+ create(connectionId: string, options?: HubInboundWebhookCreateOptions): Promise<HubInboundWebhookCreateResponse>;
249
+ get(connectionId: string): Promise<HubInboundWebhookStatus>;
250
+ /** Add one owned Linq WhatsApp number without rotating the webhook secret. */
251
+ ensurePhoneNumber(connectionId: string, phoneNumberId: string): Promise<HubInboundPhoneNumberScope>;
252
+ /** Remove event subscriptions first. This does not silently rotate a live URL. */
253
+ delete(connectionId: string): Promise<{
254
+ removed: boolean;
255
+ }>;
256
+ private path;
257
+ }
258
+ //#endregion
1
259
  //#region src/types.d.ts
2
260
  type HubPrincipalKind = "user_session" | "api_key" | "sandbox_runtime";
3
261
  interface HubSuccessEnvelope<TData> {
@@ -14,7 +272,7 @@ interface HubErrorBody {
14
272
  message: string;
15
273
  details?: unknown;
16
274
  }
17
- type HubErrorCode = "HUB_UNAUTHENTICATED" | "HUB_FORBIDDEN" | "HUB_INVALID_INPUT" | "HUB_INVALID_STATE" | "HUB_PROVIDER_MISSING" | "HUB_CONNECTION_MISSING" | "HUB_CONNECTION_REVOKED" | "HUB_TOKEN_EXPIRED" | "HUB_TOKEN_REPLAYED" | "HUB_TOKEN_REVOKED" | "HUB_TOKEN_ACTION_MISMATCH" | "HUB_POLICY_DENIED" | "HUB_APPROVAL_REQUIRED" | "HUB_EXECUTOR_FAILURE" | "HUB_PROVIDER_FAILURE" | "HUB_CONFIG_MISSING" | "HUB_CONFIG_INVALID" | "HUB_NOT_FOUND" | "HUB_NOT_IMPLEMENTED" | "HUB_CONFLICT" | "VALIDATION_ERROR" | "WORKFLOW_INVALID" | "NOT_FOUND" | "UNAUTHORIZED" | "CONFLICT" | "MISSING_RUN_INPUTS" | "WORKFLOW_DISABLED" | "PAYLOAD_TOO_LARGE" | "WORKFLOW_RUN_TIMEOUT" | `HUB_HTTP_${number}`;
275
+ type HubErrorCode = "HUB_UNAUTHENTICATED" | "HUB_FORBIDDEN" | "HUB_INVALID_INPUT" | "HUB_INVALID_STATE" | "HUB_PROVIDER_MISSING" | "HUB_CONNECTION_MISSING" | "HUB_CONNECTION_REVOKED" | "HUB_TOKEN_EXPIRED" | "HUB_TOKEN_REPLAYED" | "HUB_TOKEN_REVOKED" | "HUB_TOKEN_ACTION_MISMATCH" | "HUB_POLICY_DENIED" | "HUB_APPROVAL_REQUIRED" | "HUB_EXECUTOR_FAILURE" | "HUB_PROVIDER_FAILURE" | "HUB_PROVIDER_REJECTED" | "HUB_CONFIG_MISSING" | "HUB_CONFIG_INVALID" | "HUB_NOT_FOUND" | "HUB_NOT_IMPLEMENTED" | "HUB_CONFLICT" | "HUB_IDEMPOTENCY_CONFLICT" | "HUB_IDEMPOTENCY_IN_FLIGHT" | "VALIDATION_ERROR" | "WORKFLOW_INVALID" | "NOT_FOUND" | "UNAUTHORIZED" | "CONFLICT" | "MISSING_RUN_INPUTS" | "WORKFLOW_DISABLED" | "PAYLOAD_TOO_LARGE" | "WORKFLOW_RUN_TIMEOUT" | `HUB_HTTP_${number}`;
18
276
  interface HubStatusResponse {
19
277
  contract: unknown;
20
278
  principal: HubPrincipal;
@@ -36,6 +294,7 @@ interface HubConnection {
36
294
  providerId: string;
37
295
  displayName: string;
38
296
  accountDisplay: string | null;
297
+ providerAccountId: string | null;
39
298
  scopes: string[];
40
299
  status: "active" | "revoked" | "unhealthy" | "reconnect_required";
41
300
  health: "unknown" | "healthy" | "unhealthy" | "rate_limited";
@@ -222,6 +481,7 @@ interface HubOAuthStartRequest {
222
481
  returnUrl?: string;
223
482
  cli?: boolean;
224
483
  connectionParameters?: Record<string, string>;
484
+ requestedScopes?: readonly string[];
225
485
  }
226
486
  interface HubOAuthCallbackSuccessQuery {
227
487
  provider: string;
@@ -282,7 +542,18 @@ interface HubOAuthCallbackResponse {
282
542
  interface HubApiKeyConnectRequest {
283
543
  provider: string;
284
544
  apiKey: string;
545
+ /** Connector-owned setup values. Hub validates them before testing the key. */
546
+ metadata?: HubApiKeyConnectionMetadata;
285
547
  }
548
+ type HubApiKeyConnectionMetadata = {
549
+ propertyId: string;
550
+ currency?: string;
551
+ } | {
552
+ listings: Array<{
553
+ id: string;
554
+ pms: string;
555
+ }>;
556
+ };
286
557
  /** Result of an api-key connect: the created (or reconnected) connection.
287
558
  * Synchronous — there is no redirect leg, unlike the OAuth flow. */
288
559
  interface HubApiKeyConnectResponse {
@@ -358,9 +629,18 @@ interface HubExecRequest {
358
629
  path: string;
359
630
  input?: unknown;
360
631
  connectionId?: string;
632
+ /** Caller-minted key for this exec. The platform ledger replays the first
633
+ * call's result for a retry that carries the same key, and rejects a key
634
+ * reused for a different request. On the capability-token arm the key only
635
+ * reaches the connector for provider-native dedupe: that arm is at-most-once
636
+ * per token and replays no stored result. */
637
+ idempotencyKey?: string;
361
638
  }
362
639
  interface HubExecResponse<TResult = unknown> {
363
640
  result: TResult;
641
+ /** True when the result was replayed from a previous call with the same
642
+ * idempotency key, so the action did not run again. */
643
+ replayed?: boolean;
364
644
  }
365
645
  interface HubTokenMintRequest {
366
646
  connectionId?: string;
@@ -518,7 +798,7 @@ interface HubGithubAppInstallation {
518
798
  accountType: string | null;
519
799
  /** "all" ⇒ every repo under the account; "selected" ⇒ only repoFullNames. */
520
800
  repositorySelection: "all" | "selected";
521
- /** Lowercased "owner/repo" — empty when repositorySelection = "all". */
801
+ /** Metadata omits names; use githubApp.listRepos(id) for a live caller-safe list. */
522
802
  repoFullNames: string[];
523
803
  suspended: boolean;
524
804
  }
@@ -571,8 +851,10 @@ interface HubGithubAppSyncResponse {
571
851
  }
572
852
  interface HubGithubAppListReposResponse {
573
853
  installationId: number;
574
- /** Lowercased "owner/repo" — covers the full registry view of the install. */
854
+ /** Complete live intersection of App coverage and the caller's GitHub access. */
575
855
  repoFullNames: string[];
856
+ /** True only when both upstream listings completed; failures return an error. */
857
+ complete: true;
576
858
  }
577
859
  interface HubGithubAppIsRepoInstalledRequest {
578
860
  owner: string;
@@ -1213,6 +1495,244 @@ interface HubWorkflowRunStepsPage {
1213
1495
  nextCursor: number | null;
1214
1496
  }
1215
1497
  //#endregion
1498
+ //#region src/lines.d.ts
1499
+ interface HubLineMember {
1500
+ id: string;
1501
+ label: string | null;
1502
+ role: string;
1503
+ self?: boolean;
1504
+ consent?: "enabled" | "required";
1505
+ }
1506
+ interface HubLineContext {
1507
+ self: {
1508
+ id: string;
1509
+ label: string | null;
1510
+ role: string;
1511
+ };
1512
+ line: {
1513
+ id: string;
1514
+ label: string | null;
1515
+ transport: string;
1516
+ };
1517
+ members: HubLineMember[];
1518
+ capabilities: Record<string, {
1519
+ allowed: boolean;
1520
+ reason?: string;
1521
+ }>;
1522
+ pendingReminders: Array<{
1523
+ messageId: string;
1524
+ wakeAt?: string;
1525
+ prompt: string | null;
1526
+ }>;
1527
+ quotas: {
1528
+ selfMessagesToday: number;
1529
+ selfMessagesPerDay: number;
1530
+ selfMessagesPending: number;
1531
+ selfMessagesPendingLimit: number;
1532
+ };
1533
+ }
1534
+ interface HubLineSendInput {
1535
+ toMember: string;
1536
+ text: string;
1537
+ notBefore?: string;
1538
+ onBehalfOf?: string;
1539
+ idempotencyKey?: string;
1540
+ }
1541
+ interface HubLineOwnerSendInput {
1542
+ memberId: string;
1543
+ text: string;
1544
+ notBefore?: string;
1545
+ idempotencyKey: string;
1546
+ }
1547
+ interface HubLineReminderInput {
1548
+ text: string;
1549
+ notBefore: string;
1550
+ idempotencyKey: string;
1551
+ }
1552
+ interface HubLineApplicationDispatchCurrentInput {
1553
+ attachmentId: string;
1554
+ memberId: string;
1555
+ memberRevision: string;
1556
+ senderAddress: string;
1557
+ binding: string;
1558
+ dispatchFence: string;
1559
+ dispatchDeadline: string;
1560
+ }
1561
+ interface HubLineSendReceipt {
1562
+ message: {
1563
+ id: string;
1564
+ status: string;
1565
+ text: string | null;
1566
+ };
1567
+ eligibleAt: string | null;
1568
+ expiresAt: string;
1569
+ }
1570
+ interface HubLineReminderReceipt {
1571
+ state: "queued" | "skipped";
1572
+ lineId: string;
1573
+ messageId?: string;
1574
+ sessionId?: string;
1575
+ completion?: string;
1576
+ reason?: string;
1577
+ }
1578
+ interface HubLineScheduledSendOptions {
1579
+ lineId: string;
1580
+ memberId: string;
1581
+ text: string;
1582
+ timezone: string;
1583
+ name?: string;
1584
+ notBefore?: string;
1585
+ }
1586
+ interface HubLineCheckinOptions {
1587
+ lineId: string;
1588
+ member: string;
1589
+ timezone: string;
1590
+ prompt: string;
1591
+ name?: string;
1592
+ }
1593
+ /** Line calls share HubClient authentication and envelope handling. */
1594
+ declare class HubLinesClient {
1595
+ private readonly request;
1596
+ private readonly createWorkflow;
1597
+ private readonly requestApplicationDispatchCurrent?;
1598
+ readonly members: {
1599
+ list: (lineId: string) => Promise<HubLineMember[]>;
1600
+ };
1601
+ readonly checkins: {
1602
+ schedule: (cron: string, options: HubLineCheckinOptions) => Promise<HubWorkflow>;
1603
+ };
1604
+ constructor(request: <T>(path: string, init: RequestInit) => Promise<T>, createWorkflow: (yaml: string) => Promise<HubWorkflow>, requestApplicationDispatchCurrent?: ((path: string, init: RequestInit, callbackBearer: string) => Promise<{
1605
+ current: boolean;
1606
+ }>) | undefined);
1607
+ scheduleSend(cron: string, options: HubLineScheduledSendOptions): Promise<HubWorkflow>;
1608
+ context(): Promise<HubLineContext>;
1609
+ send(lineId: string, input: HubLineSendInput | HubLineOwnerSendInput): Promise<HubLineSendReceipt>;
1610
+ remind(lineId: string, input: HubLineReminderInput): Promise<HubLineReminderReceipt>;
1611
+ applicationDispatchCurrent(lineId: string, messageId: string, input: HubLineApplicationDispatchCurrentInput, callbackBearer: string): Promise<boolean>;
1612
+ }
1613
+ //#endregion
1614
+ //#region src/managed-numbers.d.ts
1615
+ interface HubNumberReadiness {
1616
+ configured: boolean;
1617
+ provider: "inkbox";
1618
+ transports: Array<"sms" | "imessage">;
1619
+ billing: "prepaid_activation";
1620
+ automaticRentalBilling: false;
1621
+ deliveryVerified: false;
1622
+ }
1623
+ interface HubNumberQuote {
1624
+ transport: "sms" | "imessage";
1625
+ activationCents: number;
1626
+ currency: "usd";
1627
+ termsVersion: string;
1628
+ terms: string;
1629
+ expiresAt: number;
1630
+ /** The binding the quote was issued for. Absent from older servers. */
1631
+ clientReference?: string;
1632
+ /** Opaque. Pass it back to `create`; never decode it. */
1633
+ token: string;
1634
+ }
1635
+ /** One page of the owner's orders, newest first. */
1636
+ interface HubNumberOrderPage {
1637
+ orders: HubNumberOrder[];
1638
+ /** Present while more orders exist. Older servers omit it and return one
1639
+ * bounded page, so an absent cursor never proves an order does not exist. */
1640
+ nextCursor?: string | null;
1641
+ }
1642
+ interface HubNumberListQuery {
1643
+ /** Only orders requested for this binding, including closed ones. */
1644
+ clientReference?: string;
1645
+ cursor?: string;
1646
+ /** 1 to 100; the server default is 100. */
1647
+ limit?: number;
1648
+ }
1649
+ /** An operator's terminal decision on an order stuck in `needs_review`.
1650
+ * Read-only for a creator: the resolution is made through the platform's
1651
+ * admin surface, never through this client. */
1652
+ interface HubNumberResolution {
1653
+ action: "release" | "settle" | "abandon";
1654
+ operator: string;
1655
+ reason: string;
1656
+ at: number;
1657
+ /** Present while the operator's action is still running. The decision is
1658
+ * not final and the order can still return to review. */
1659
+ pending?: true;
1660
+ /** Present when a `settle` handed a live, unfinished order back to
1661
+ * provisioning, so the order is working again rather than closed. */
1662
+ requeued?: true;
1663
+ }
1664
+ interface HubNumberOrder {
1665
+ id: string;
1666
+ clientReference: string;
1667
+ transport: "sms" | "imessage";
1668
+ status: "pending" | "provider_pending" | "needs_review" | "ready_for_setup" | "cancelled";
1669
+ phase: "identity" | "number" | "credential" | "connection" | "complete";
1670
+ address: string | null;
1671
+ connectionId: string | null;
1672
+ identityId: string | null;
1673
+ providerNumberId: string | null;
1674
+ billingStatus: "unreserved" | "reserved" | "settled" | "released";
1675
+ cancellation: "none" | "requested" | "needs_review" | "released" | "abandoned";
1676
+ errorCode: string | null;
1677
+ nextAttemptAt: number | null;
1678
+ resolution: HubNumberResolution | null;
1679
+ deliveryVerified: false;
1680
+ activationCents: number;
1681
+ currency: "usd";
1682
+ terms: string;
1683
+ }
1684
+ /** Administrative number operations through Hub's authenticated transport.
1685
+ * A mutation is one attempt; an uncertain create reuses its quote and reference. */
1686
+ declare class HubManagedNumbersClient {
1687
+ private readonly request;
1688
+ constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
1689
+ readiness(): Promise<HubNumberReadiness>;
1690
+ /** One page of orders. Scope by `clientReference` to ask about one binding,
1691
+ * and follow `nextCursor` for the rest; a page is never ownership evidence. */
1692
+ list(query?: HubNumberListQuery): Promise<HubNumberOrderPage>;
1693
+ get(id: string): Promise<{
1694
+ order: HubNumberOrder;
1695
+ }>;
1696
+ quote(input: {
1697
+ transport: "sms" | "imessage";
1698
+ clientReference: string;
1699
+ }): Promise<{
1700
+ quote: HubNumberQuote;
1701
+ }>;
1702
+ /** `clientReference` and `transport`, when given, must match the signed
1703
+ * quote or Hub refuses the purchase with a conflict. */
1704
+ create(input: {
1705
+ quoteToken: string;
1706
+ consent: true;
1707
+ state?: string;
1708
+ clientReference?: string;
1709
+ transport?: "sms" | "imessage";
1710
+ }): Promise<{
1711
+ order: HubNumberOrder;
1712
+ }>;
1713
+ /** Fences references so no order can take them again. Call it as the last
1714
+ * step before retiring the resource they name: a purchase that races the
1715
+ * retirement is then refused (`409 number_reference_fenced`) instead of
1716
+ * binding a line to a resource that is gone. Refused with
1717
+ * `409 number_reference_held` while a live order holds one of them; cancel
1718
+ * it first. A cancelled order no longer holds its reference, so the fence
1719
+ * succeeds as soon as `cancel` returns, whether or not its release is still
1720
+ * pending. Repeating a fence is harmless. */
1721
+ fence(input: {
1722
+ clientReferences: string[];
1723
+ }): Promise<{
1724
+ clientReferences: string[];
1725
+ }>;
1726
+ advance(id: string): Promise<{
1727
+ order: HubNumberOrder;
1728
+ }>;
1729
+ cancel(id: string): Promise<{
1730
+ order: HubNumberOrder;
1731
+ }>;
1732
+ private path;
1733
+ private post;
1734
+ }
1735
+ //#endregion
1216
1736
  //#region src/client.d.ts
1217
1737
  type HubAuthHeaders = () => HeadersInit | Promise<HeadersInit>;
1218
1738
  interface HubClientOptions {
@@ -1241,13 +1761,24 @@ interface HubClientFromEnvOptions {
1241
1761
  }
1242
1762
  declare function resolveHubBaseUrl(env?: HubEnv): string;
1243
1763
  declare function resolveHubAuth(env?: HubEnv): string;
1244
- declare class HubClient {
1764
+ declare class HubTransport {
1245
1765
  readonly baseUrl: string;
1246
1766
  readonly fetch: typeof fetch;
1247
1767
  readonly apiKey?: string;
1248
1768
  readonly authHeaders?: HubAuthHeaders;
1769
+ constructor(options: HubClientOptions);
1770
+ protected request<TData>(path: string, init: RequestInit, options?: {
1771
+ auth?: "client" | "caller";
1772
+ validateData?: (data: unknown) => data is TData;
1773
+ }): Promise<TData>;
1774
+ protected buildHeaders(headers: HeadersInit | undefined, callerAuth?: boolean): Promise<Headers>;
1775
+ }
1776
+ declare class HubClient extends HubTransport {
1777
+ readonly allowances: HubAllowancesClient;
1778
+ readonly apps: HubAppsClient;
1249
1779
  readonly connections: HubConnectionsClient;
1250
1780
  readonly channels: HubChannelsClient;
1781
+ readonly numbers: HubManagedNumbersClient;
1251
1782
  readonly eventSubscriptions: HubEventSubscriptionsClient;
1252
1783
  readonly permissions: HubPermissionsClient;
1253
1784
  readonly tokens: HubTokensClient;
@@ -1256,10 +1787,10 @@ declare class HubClient {
1256
1787
  readonly audit: HubAuditClient;
1257
1788
  readonly githubApp: HubGithubAppClient;
1258
1789
  readonly workflows: HubWorkflowsClient;
1790
+ readonly lines: HubLinesClient;
1259
1791
  constructor(options: HubClientOptions);
1260
1792
  static fromEnv(options?: HubClientFromEnvOptions): HubClient;
1261
1793
  status(): Promise<HubStatusResponse>;
1262
- private request;
1263
1794
  /**
1264
1795
  * Open a streaming (Server-Sent Events) response and return its raw body.
1265
1796
  * Shares auth-header building + `fetch` with {@link request}, but does NOT
@@ -1280,7 +1811,6 @@ declare class HubClient {
1280
1811
  * otherwise an `HUB_HTTP_<status>` transport error.
1281
1812
  */
1282
1813
  private requestBytes;
1283
- private buildHeaders;
1284
1814
  }
1285
1815
  interface HubTokenListOptions {
1286
1816
  includeExpired?: boolean;
@@ -1325,6 +1855,13 @@ interface HubToolSearchOptions {
1325
1855
  interface HubToolInvokeOptions {
1326
1856
  connectionId?: string;
1327
1857
  approve?: boolean;
1858
+ /** Caller-minted key for this invoke. On the direct exec arm the platform
1859
+ * ledger replays the first call's result for a retry that carries the same
1860
+ * key, and refuses a key bound to a different request. The approval and
1861
+ * capability-token retries re-send the key, and the connector receives it
1862
+ * for provider-native dedupe. Capability-token execution stays at-most-once
1863
+ * per token: it refuses a replay instead of replaying a stored result. */
1864
+ idempotencyKey?: string;
1328
1865
  }
1329
1866
  declare class HubToolsClient {
1330
1867
  private readonly request;
@@ -1332,13 +1869,20 @@ declare class HubToolsClient {
1332
1869
  search(query: string, options?: HubToolSearchOptions): Promise<HubToolsSearchResponse>;
1333
1870
  sources(): Promise<HubToolSourcesResponse>;
1334
1871
  describe(path: string): Promise<HubToolsDescribeResponse>;
1335
- invoke<TResult = unknown>(path: string, input: unknown, options?: HubToolInvokeOptions): Promise<HubExecResponse<TResult>>;
1872
+ /**
1873
+ * Run one hub tool. `raw` is the tool input: the SDK forwards it verbatim as
1874
+ * the request body's `input`, and the server validates it against the tool's
1875
+ * own schema, so the client never gives it a shape.
1876
+ */
1877
+ invoke<TResult = unknown>(path: string, raw: unknown, options?: HubToolInvokeOptions): Promise<HubExecResponse<TResult>>;
1336
1878
  private buildExecInit;
1337
1879
  }
1338
1880
  interface HubConnectionStartOptions {
1339
1881
  returnUrl?: string;
1340
1882
  cli?: boolean;
1341
1883
  connectionParameters?: Record<string, string>;
1884
+ /** GitHub accepts the exact read:user, repo, read:org set. */
1885
+ requestedScopes?: readonly string[];
1342
1886
  }
1343
1887
  declare class HubChannelsClient {
1344
1888
  private readonly request;
@@ -1356,6 +1900,7 @@ declare class HubEventSubscriptionsClient {
1356
1900
  }
1357
1901
  declare class HubConnectionsClient {
1358
1902
  private readonly request;
1903
+ readonly inboundWebhook: HubInboundWebhooksClient;
1359
1904
  constructor(request: <TData>(path: string, init: RequestInit) => Promise<TData>);
1360
1905
  list(): Promise<HubConnectionsResponse>;
1361
1906
  /** Connector catalog: every provider the hub can expose, each flagged with
@@ -1368,8 +1913,9 @@ declare class HubConnectionsClient {
1368
1913
  /** Connect a non-OAuth (api-key) connector by submitting the user's key.
1369
1914
  * The server validates the key with a live probe before persisting and
1370
1915
  * returns the created (or reconnected) connection — there is no redirect,
1371
- * unlike `start`. */
1372
- connectApiKey(provider: string, apiKey: string): Promise<HubApiKeyConnectResponse>;
1916
+ * unlike `start`. Cloudbeds requires propertyId metadata and PriceLabs
1917
+ * requires listing ID/PMS pairs; other providers have no metadata. */
1918
+ connectApiKey(provider: string, apiKey: string, metadata?: HubApiKeyConnectRequest["metadata"]): Promise<HubApiKeyConnectResponse>;
1373
1919
  revoke(connectionId: string): Promise<HubConnectionDeleteResponse>;
1374
1920
  health(connectionId: string): Promise<HubConnectionHealthResponse>;
1375
1921
  }
@@ -1651,15 +2197,18 @@ declare class HubWorkflowsClient {
1651
2197
  /**
1652
2198
  * Upsert a key; returns the entry with its NEW version (increments on every
1653
2199
  * write). Throws `HubSdkError(KV_VALUE_TOO_LARGE)` past the 64KiB value cap
1654
- * or `KV_KEY_LIMIT` past the per-workflow key cap.
2200
+ * or `KV_KEY_LIMIT` past the per-workflow key cap. `raw` is the caller's
2201
+ * value, stored and read back verbatim, so the client never gives it a shape.
1655
2202
  */
1656
- putKv(id: string, key: string, value: unknown): Promise<HubWorkflowKvEntry>;
2203
+ putKv(id: string, key: string, raw: unknown): Promise<HubWorkflowKvEntry>;
1657
2204
  /**
1658
2205
  * Compare-and-swap: the write lands only when the stored version still
1659
2206
  * equals `expectedVersion`; otherwise `HubSdkError(KV_VERSION_CONFLICT)`
1660
- * (409) — re-read and retry. Creation is {@link putKv}'s job.
2207
+ * (409) — re-read and retry. Creation is {@link putKv}'s job. `raw` is the
2208
+ * caller's value, stored and read back verbatim, so the client never gives it
2209
+ * a shape.
1661
2210
  */
1662
- casKv(id: string, key: string, expectedVersion: number, value: unknown): Promise<HubWorkflowKvEntry>;
2211
+ casKv(id: string, key: string, expectedVersion: number, raw: unknown): Promise<HubWorkflowKvEntry>;
1663
2212
  /** Delete a key; idempotent — `deleted` reports whether a row was removed. */
1664
2213
  deleteKv(id: string, key: string): Promise<HubWorkflowKvDeleteResponse>;
1665
2214
  /** The curated starter gallery runnable on THIS deployment: metadata,
@@ -1785,8 +2334,84 @@ declare function authenticateHubEventRequest(input: AuthenticateHubEventRequestI
1785
2334
  declare function verifyHubEventSignature(input: VerifyHubEventSignatureInput): Promise<HubEventSignatureResult>;
1786
2335
  declare function parseHubEventDelivery(input: string | unknown): HubEventDelivery;
1787
2336
  //#endregion
2337
+ //#region src/line-grants.d.ts
2338
+ interface HubLineGrantBinding {
2339
+ workspaceId: string;
2340
+ workspaceAgentId: string;
2341
+ }
2342
+ interface HubLineGrant {
2343
+ id: string;
2344
+ lineId: string;
2345
+ connectionId: string;
2346
+ workspaceId: string;
2347
+ workspaceAgentId: string;
2348
+ agentProfileVersion: string;
2349
+ backendSha256: string;
2350
+ attachmentId: string | null;
2351
+ intakeMode: "guests" | "owner_only";
2352
+ priorAttachmentId: string | null;
2353
+ priorAttachmentActive: boolean;
2354
+ monthlyBudgetUsd: number;
2355
+ monthlySpentUsd: number;
2356
+ }
2357
+ interface HubLineGrantLine {
2358
+ id: string;
2359
+ connectionId: string;
2360
+ transport: "sms" | "imessage";
2361
+ status: string;
2362
+ address: string | null;
2363
+ attachment: {
2364
+ id: string;
2365
+ sandboxId: string;
2366
+ status: string;
2367
+ } | null;
2368
+ }
2369
+ interface HubLineGrantAttachInput {
2370
+ workspaceAgentId: string;
2371
+ agentProfileVersion: string;
2372
+ renewalCode?: string;
2373
+ respond: {
2374
+ kind: "agent";
2375
+ backend: Record<string, unknown>;
2376
+ };
2377
+ }
2378
+ interface HubLineGrantAttachment {
2379
+ id: string;
2380
+ sandboxId: string;
2381
+ status: string;
2382
+ members?: Array<{
2383
+ id: string;
2384
+ role: string;
2385
+ }>;
2386
+ }
2387
+ interface HubLineGrantThread {
2388
+ id: string;
2389
+ lineId: string;
2390
+ attachmentId: string;
2391
+ }
2392
+ interface HubLineGrantMessage {
2393
+ id: string;
2394
+ threadId: string;
2395
+ direction: string;
2396
+ text: string | null;
2397
+ }
2398
+ /** Every call uses HubTransport's authHeaders, so one-use app broker tokens can be minted per request. */
2399
+ declare class HubLineGrantsClient extends HubTransport {
2400
+ current(binding: HubLineGrantBinding): Promise<HubLineGrant>;
2401
+ line(binding: HubLineGrantBinding): Promise<HubLineGrantLine>;
2402
+ attach(binding: HubLineGrantBinding, input: HubLineGrantAttachInput): Promise<HubLineGrantAttachment>;
2403
+ detach(binding: HubLineGrantBinding): Promise<{
2404
+ detached: boolean;
2405
+ }>;
2406
+ threads(binding: HubLineGrantBinding): Promise<HubLineGrantThread[]>;
2407
+ messages(binding: HubLineGrantBinding, threadId: string): Promise<HubLineGrantMessage[]>;
2408
+ revoke(binding: HubLineGrantBinding): Promise<{
2409
+ revoked: boolean;
2410
+ }>;
2411
+ }
2412
+ //#endregion
1788
2413
  //#region src/redaction.d.ts
1789
2414
  declare function redactHubValue(value: unknown): unknown;
1790
2415
  //#endregion
1791
- export { type AuthenticateHubEventRequestInput, type DeriveHubEventCallbackSecretInput, HUB_API_KEY_ENV_VAR, HUB_CAPABILITY_TOKEN_ENV_VAR, HUB_URL_ENV_VAR, type HubAgentIterationSpan, type HubAgentRunDetail, type HubApiKeyConnectRequest, type HubApiKeyConnectResponse, type HubApproval, type HubApprovalCapabilityToken, type HubApprovalDecisionResponse, type HubApprovalStatus, HubApprovalsClient, HubAuditClient, type HubAuditEvent, type HubAuditListRequest, type HubAuditResponse, type HubAuthHeaders, type HubCapabilityToken, type HubChannel, type HubChannelCreateResponse, type HubChannelDeleteResponse, HubChannelsClient, type HubChannelsResponse, HubClient, type HubClientFromEnvOptions, type HubClientOptions, type HubConnection, type HubConnectionDeleteRequest, type HubConnectionDeleteResponse, type HubConnectionHealthError, type HubConnectionHealthInfo, type HubConnectionHealthRequest, type HubConnectionHealthResponse, type HubConnectionHealthStatus, type HubConnectionStartOptions, HubConnectionsClient, type HubConnectionsResponse, type HubEmailChannel, type HubEmailChannelCreateRequest, type HubEnv, type HubEnvelope, type HubErrorBody, type HubErrorCode, type HubErrorEnvelope, type HubEventCondition, type HubEventConditionScalar, type HubEventDelivery, HubEventDeliveryError, type HubEventRequestFailureCode, type HubEventRequestResult, type HubEventSignatureFailure, type HubEventSignatureResult, type HubEventSubscription, type HubEventSubscriptionCallback, type HubEventSubscriptionCreateRequest, type HubEventSubscriptionCreateResponse, type HubEventSubscriptionDeleteResponse, type HubEventSubscriptionFilter, type HubEventSubscriptionSource, HubEventSubscriptionsClient, type HubEventSubscriptionsResponse, type HubExecRequest, type HubExecResponse, HubGithubAppClient, type HubGithubAppDisconnectResponse, type HubGithubAppInstallation, type HubGithubAppInstallationResponse, type HubGithubAppIsRepoInstalledRequest, type HubGithubAppIsRepoInstalledResponse, type HubGithubAppListInstallationsResponse, type HubGithubAppListReposResponse, type HubGithubAppManagedInstallation, type HubGithubAppMintInstallationTokenRequest, type HubGithubAppMintInstallationTokenResponse, type HubGithubAppSyncResponse, type HubGithubAppSyncedInstallation, type HubManualRunInput, type HubOAuthCallbackErrorQuery, type HubOAuthCallbackQuery, type HubOAuthCallbackResponse, type HubOAuthCallbackSuccessQuery, type HubOAuthConnectionParameter, type HubOAuthStartRequest, type HubOAuthStartResponse, HubPermissionsClient, type HubPolicy, type HubPolicyDecision, type HubPolicyDeleteRequest, type HubPolicyDeleteResponse, type HubPolicyListRequest, type HubPolicyListResponse, type HubPolicyResponse, type HubPolicyUpdateRequest, type HubPrincipal, type HubPrincipalKind, type HubProvider, type HubProviderAuthKind, type HubProviderEvent, type HubProvidersResponse, HubSdkError, type HubStatusConnections, type HubStatusResponse, type HubSuccessEnvelope, type HubTokenListOptions, type HubTokenMintRequest, type HubTokenMintResponse, type HubTokenRevokeResponse, HubTokensClient, type HubTokensListResponse, type HubTool, type HubToolInvokeOptions, type HubToolRisk, type HubToolSearchOptions, type HubToolSource, type HubToolSourcesResponse, HubToolsClient, type HubToolsDescribeRequest, type HubToolsDescribeResponse, type HubToolsSearchRequest, type HubToolsSearchResponse, type HubUnimplementedErrorEnvelope, type HubWhatsappEmbeddedSignupCompleteRequest, type HubWhatsappEmbeddedSignupCompleteResponse, type HubWhatsappEmbeddedSignupStartRequest, type HubWhatsappEmbeddedSignupStartResponse, type HubWorkflow, type HubWorkflowAction, type HubWorkflowActionResult, type HubWorkflowAgentStep, type HubWorkflowArtifact, type HubWorkflowArtifactDownload, type HubWorkflowArtifactRef, type HubWorkflowArtifactsResponse, type HubWorkflowCondition, type HubWorkflowConditionOp, type HubWorkflowConditionScalar, type HubWorkflowConnectionRequirement, type HubWorkflowDecision, type HubWorkflowDecisionOnTimeout, type HubWorkflowDecisionResolveResult, type HubWorkflowDecisionResolvedVia, type HubWorkflowDecisionStatus, type HubWorkflowDistillationCandidate, type HubWorkflowEdgeVerdicts, type HubWorkflowEventFilter, type HubWorkflowFailureCluster, type HubWorkflowFleetEntry, type HubWorkflowFleetInsights, type HubWorkflowFleetWindow, type HubWorkflowGraphEdge, type HubWorkflowGraphJoinRule, type HubWorkflowGraphNode, type HubWorkflowGraphSpec, type HubWorkflowHealth, type HubWorkflowHookEndpoint, type HubWorkflowHookToken, type HubWorkflowKvDeleteResponse, type HubWorkflowKvEntry, type HubWorkflowKvEntryMeta, type HubWorkflowKvListResponse, type HubWorkflowNodeHealth, type HubWorkflowOnErrorOutcome, type HubWorkflowPendingDecision, type HubWorkflowPendingDecisionsResponse, type HubWorkflowProposal, type HubWorkflowProposalInput, type HubWorkflowRevision, type HubWorkflowRevisionMeta, type HubWorkflowRevisionSource, type HubWorkflowRevisionStatus, type HubWorkflowRun, type HubWorkflowRunCancelResult, type HubWorkflowRunDetail, type HubWorkflowRunEnqueued, type HubWorkflowRunInputs, type HubWorkflowRunRetried, type HubWorkflowRunStatus, type HubWorkflowRunStepsPage, type HubWorkflowRunStreamEvent, type HubWorkflowRunSummary, type HubWorkflowRunsPage, type HubWorkflowSchemaResponse, type HubWorkflowTemplate, type HubWorkflowTemplateCategory, type HubWorkflowTemplateInstantiateResult, type HubWorkflowTemplateParameter, type HubWorkflowTrigger, type HubWorkflowValidateResponse, type HubWorkflowValidationError, HubWorkflowsClient, type VerifyHubEventSignatureInput, authenticateHubEventRequest, deriveHubEventCallbackSecret, parseHubEventDelivery, redactHubValue, resolveHubAuth, resolveHubBaseUrl, verifyHubEventSignature };
2416
+ export { type AuthenticateHubEventRequestInput, type DeriveHubEventCallbackSecretInput, HUB_API_KEY_ENV_VAR, HUB_CAPABILITY_TOKEN_ENV_VAR, HUB_URL_ENV_VAR, type HubAgentIterationSpan, type HubAgentRunDetail, type HubAllowanceDecision, type HubAllowanceGrant, type HubAllowancePlan, type HubAllowancePlanInput, type HubAllowanceRole, type HubAllowanceSubject, type HubAllowanceSyncInput, type HubAllowanceSyncReceipt, type HubAllowanceTier, type HubAllowanceUsage, HubAllowancesClient, type HubApiKeyConnectRequest, type HubApiKeyConnectResponse, type HubApiKeyConnectionMetadata, type HubApp, type HubAppCreateInput, type HubAppGrant, type HubAppGrantRevoked, type HubApproval, type HubApprovalCapabilityToken, type HubApprovalDecisionResponse, type HubApprovalStatus, HubApprovalsClient, HubAppsClient, HubAuditClient, type HubAuditEvent, type HubAuditListRequest, type HubAuditResponse, type HubAuthHeaders, type HubCapabilityToken, type HubChannel, type HubChannelCreateResponse, type HubChannelDeleteResponse, HubChannelsClient, type HubChannelsResponse, HubClient, type HubClientFromEnvOptions, type HubClientOptions, type HubConnection, type HubConnectionDeleteRequest, type HubConnectionDeleteResponse, type HubConnectionHealthError, type HubConnectionHealthInfo, type HubConnectionHealthRequest, type HubConnectionHealthResponse, type HubConnectionHealthStatus, type HubConnectionStartOptions, HubConnectionsClient, type HubConnectionsResponse, type HubEmailChannel, type HubEmailChannelCreateRequest, type HubEnv, type HubEnvelope, type HubErrorBody, type HubErrorCode, type HubErrorEnvelope, type HubEventCondition, type HubEventConditionScalar, type HubEventDelivery, HubEventDeliveryError, type HubEventRequestFailureCode, type HubEventRequestResult, type HubEventSignatureFailure, type HubEventSignatureResult, type HubEventSubscription, type HubEventSubscriptionCallback, type HubEventSubscriptionCreateRequest, type HubEventSubscriptionCreateResponse, type HubEventSubscriptionDeleteResponse, type HubEventSubscriptionFilter, type HubEventSubscriptionSource, HubEventSubscriptionsClient, type HubEventSubscriptionsResponse, type HubExecRequest, type HubExecResponse, HubGithubAppClient, type HubGithubAppDisconnectResponse, type HubGithubAppInstallation, type HubGithubAppInstallationResponse, type HubGithubAppIsRepoInstalledRequest, type HubGithubAppIsRepoInstalledResponse, type HubGithubAppListInstallationsResponse, type HubGithubAppListReposResponse, type HubGithubAppManagedInstallation, type HubGithubAppMintInstallationTokenRequest, type HubGithubAppMintInstallationTokenResponse, type HubGithubAppSyncResponse, type HubGithubAppSyncedInstallation, type HubInboundPhoneNumberScope, type HubInboundWebhookCreateOptions, type HubInboundWebhookCreateResponse, type HubInboundWebhookStatus, HubInboundWebhooksClient, type HubLineApplicationDispatchCurrentInput, type HubLineCheckinOptions, type HubLineContext, type HubLineGrant, type HubLineGrantAttachInput, type HubLineGrantAttachment, type HubLineGrantBinding, type HubLineGrantLine, type HubLineGrantMessage, type HubLineGrantThread, HubLineGrantsClient, type HubLineMember, type HubLineOwnerSendInput, type HubLineReminderInput, type HubLineReminderReceipt, type HubLineScheduledSendOptions, type HubLineSendInput, type HubLineSendReceipt, HubLinesClient, HubManagedNumbersClient, type HubManualRunInput, type HubNumberListQuery, type HubNumberOrder, type HubNumberOrderPage, type HubNumberQuote, type HubNumberReadiness, type HubNumberResolution, type HubOAuthCallbackErrorQuery, type HubOAuthCallbackQuery, type HubOAuthCallbackResponse, type HubOAuthCallbackSuccessQuery, type HubOAuthConnectionParameter, type HubOAuthStartRequest, type HubOAuthStartResponse, HubPermissionsClient, type HubPolicy, type HubPolicyDecision, type HubPolicyDeleteRequest, type HubPolicyDeleteResponse, type HubPolicyListRequest, type HubPolicyListResponse, type HubPolicyResponse, type HubPolicyUpdateRequest, type HubPrincipal, type HubPrincipalKind, type HubProvider, type HubProviderAuthKind, type HubProviderEvent, type HubProvidersResponse, HubSdkError, type HubStatusConnections, type HubStatusResponse, type HubSuccessEnvelope, type HubTokenListOptions, type HubTokenMintRequest, type HubTokenMintResponse, type HubTokenRevokeResponse, HubTokensClient, type HubTokensListResponse, type HubTool, type HubToolInvokeOptions, type HubToolRisk, type HubToolSearchOptions, type HubToolSource, type HubToolSourcesResponse, HubToolsClient, type HubToolsDescribeRequest, type HubToolsDescribeResponse, type HubToolsSearchRequest, type HubToolsSearchResponse, type HubUnimplementedErrorEnvelope, type HubWhatsappEmbeddedSignupCompleteRequest, type HubWhatsappEmbeddedSignupCompleteResponse, type HubWhatsappEmbeddedSignupStartRequest, type HubWhatsappEmbeddedSignupStartResponse, type HubWorkflow, type HubWorkflowAction, type HubWorkflowActionResult, type HubWorkflowAgentStep, type HubWorkflowArtifact, type HubWorkflowArtifactDownload, type HubWorkflowArtifactRef, type HubWorkflowArtifactsResponse, type HubWorkflowCondition, type HubWorkflowConditionOp, type HubWorkflowConditionScalar, type HubWorkflowConnectionRequirement, type HubWorkflowDecision, type HubWorkflowDecisionOnTimeout, type HubWorkflowDecisionResolveResult, type HubWorkflowDecisionResolvedVia, type HubWorkflowDecisionStatus, type HubWorkflowDistillationCandidate, type HubWorkflowEdgeVerdicts, type HubWorkflowEventFilter, type HubWorkflowFailureCluster, type HubWorkflowFleetEntry, type HubWorkflowFleetInsights, type HubWorkflowFleetWindow, type HubWorkflowGraphEdge, type HubWorkflowGraphJoinRule, type HubWorkflowGraphNode, type HubWorkflowGraphSpec, type HubWorkflowHealth, type HubWorkflowHookEndpoint, type HubWorkflowHookToken, type HubWorkflowKvDeleteResponse, type HubWorkflowKvEntry, type HubWorkflowKvEntryMeta, type HubWorkflowKvListResponse, type HubWorkflowNodeHealth, type HubWorkflowOnErrorOutcome, type HubWorkflowPendingDecision, type HubWorkflowPendingDecisionsResponse, type HubWorkflowProposal, type HubWorkflowProposalInput, type HubWorkflowRevision, type HubWorkflowRevisionMeta, type HubWorkflowRevisionSource, type HubWorkflowRevisionStatus, type HubWorkflowRun, type HubWorkflowRunCancelResult, type HubWorkflowRunDetail, type HubWorkflowRunEnqueued, type HubWorkflowRunInputs, type HubWorkflowRunRetried, type HubWorkflowRunStatus, type HubWorkflowRunStepsPage, type HubWorkflowRunStreamEvent, type HubWorkflowRunSummary, type HubWorkflowRunsPage, type HubWorkflowSchemaResponse, type HubWorkflowTemplate, type HubWorkflowTemplateCategory, type HubWorkflowTemplateInstantiateResult, type HubWorkflowTemplateParameter, type HubWorkflowTrigger, type HubWorkflowValidateResponse, type HubWorkflowValidationError, HubWorkflowsClient, type VerifyHubEventSignatureInput, authenticateHubEventRequest, deriveHubEventCallbackSecret, parseHubEventDelivery, redactHubValue, resolveHubAuth, resolveHubBaseUrl, verifyHubEventSignature };
1792
2417
  //# sourceMappingURL=index.d.ts.map