@tangle-network/hub-sdk 0.20.0-develop.20260812124431.b971fd8 → 0.20.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/README.md +110 -6
- package/dist/index.d.ts +519 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +365 -218
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,248 @@
|
|
|
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 HubAllowanceGrant {
|
|
92
|
+
member: string;
|
|
93
|
+
tier: "paid";
|
|
94
|
+
expiresAt: string;
|
|
95
|
+
reference: string | null;
|
|
96
|
+
}
|
|
97
|
+
declare class HubAllowancesClient {
|
|
98
|
+
private readonly request;
|
|
99
|
+
constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
|
|
100
|
+
plan(meter: string): Promise<HubAllowancePlan>;
|
|
101
|
+
setPlan(meter: string, plan: HubAllowancePlanInput): Promise<HubAllowancePlan>;
|
|
102
|
+
/** Admit one turn or refuse it. Retrying the same `turnId` never counts twice. */
|
|
103
|
+
admit(meter: string, input: HubAllowanceSubject & {
|
|
104
|
+
turnId: string;
|
|
105
|
+
line?: string;
|
|
106
|
+
channel?: string;
|
|
107
|
+
}): Promise<HubAllowanceDecision>;
|
|
108
|
+
/** What the member's next turn would get, without counting anything. */
|
|
109
|
+
status(meter: string, subject: HubAllowanceSubject): Promise<HubAllowanceDecision>;
|
|
110
|
+
/** Move a member to the paid allowance until `expiresAt` (the paid period's end). */
|
|
111
|
+
grant(meter: string, member: string, input: {
|
|
112
|
+
expiresAt: string;
|
|
113
|
+
reference?: string | null;
|
|
114
|
+
}): Promise<HubAllowanceGrant>;
|
|
115
|
+
revoke(meter: string, member: string): Promise<void>;
|
|
116
|
+
/** Turns per member and per line on one UTC day (default today). */
|
|
117
|
+
usage(meter: string, day?: string): Promise<HubAllowanceUsage>;
|
|
118
|
+
private path;
|
|
119
|
+
private memberPath;
|
|
120
|
+
private body;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/apps.d.ts
|
|
124
|
+
/** App identity and customer permissions over the existing Platform transport.
|
|
125
|
+
* These operations do not authorize spending or expose upstream credentials. */
|
|
126
|
+
interface HubApp {
|
|
127
|
+
id: string;
|
|
128
|
+
clientId: string;
|
|
129
|
+
oauthClientId: string | null;
|
|
130
|
+
name: string;
|
|
131
|
+
redirectUris: string[];
|
|
132
|
+
allowedScopes: string[];
|
|
133
|
+
homepageUrl: string | null;
|
|
134
|
+
status: "active" | "revoked";
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
}
|
|
138
|
+
interface HubAppCreateInput {
|
|
139
|
+
name: string;
|
|
140
|
+
redirectUris: string[];
|
|
141
|
+
allowedScopes: string[];
|
|
142
|
+
homepageUrl?: string;
|
|
143
|
+
/** Associate an existing owned login client in the same transaction as creation. */
|
|
144
|
+
oauthClientId?: string;
|
|
145
|
+
}
|
|
146
|
+
interface HubAppGrant {
|
|
147
|
+
id: string;
|
|
148
|
+
appId: string;
|
|
149
|
+
userId: string;
|
|
150
|
+
connectionId: string;
|
|
151
|
+
scopes: string[];
|
|
152
|
+
status: "active" | "revoked";
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
revokedAt: string | null;
|
|
156
|
+
/** Display metadata is additive; older deployments may omit it. */
|
|
157
|
+
appName?: string | null;
|
|
158
|
+
oauthClientId?: string | null;
|
|
159
|
+
providerId?: string | null;
|
|
160
|
+
accountDisplay?: string | null;
|
|
161
|
+
connectionDisplayName?: string | null;
|
|
162
|
+
}
|
|
163
|
+
interface HubAppGrantRevoked {
|
|
164
|
+
grantId: string;
|
|
165
|
+
status: "revoked";
|
|
166
|
+
revokedAt: string | null;
|
|
167
|
+
tokensRevoked: number;
|
|
168
|
+
}
|
|
169
|
+
declare class HubAppsClient {
|
|
170
|
+
private readonly request;
|
|
171
|
+
readonly grants: {
|
|
172
|
+
list: () => Promise<HubAppGrant[]>;
|
|
173
|
+
revoke: (grantId: string) => Promise<HubAppGrantRevoked>;
|
|
174
|
+
};
|
|
175
|
+
constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
|
|
176
|
+
list(): Promise<HubApp[]>;
|
|
177
|
+
/** The secret is returned only by creation; keep it in your server vault. */
|
|
178
|
+
create(input: HubAppCreateInput): Promise<{
|
|
179
|
+
app: HubApp;
|
|
180
|
+
clientSecret: string;
|
|
181
|
+
}>;
|
|
182
|
+
/** Immutable association of two existing records with the same owner. */
|
|
183
|
+
linkOAuthClient(appId: string, clientId: string): Promise<{
|
|
184
|
+
appId: string;
|
|
185
|
+
oauthClientId: string;
|
|
186
|
+
}>;
|
|
187
|
+
revoke(appId: string): Promise<{
|
|
188
|
+
appId: string;
|
|
189
|
+
grantsRevoked: number;
|
|
190
|
+
tokensRevoked: number;
|
|
191
|
+
}>;
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/inbound-webhooks.d.ts
|
|
195
|
+
/** Provider setup uses the existing authenticated Hub transport and vault. */
|
|
196
|
+
interface HubInboundWebhookCreateOptions {
|
|
197
|
+
/** Inkbox identity that owns all selected channels. */
|
|
198
|
+
identityId?: string;
|
|
199
|
+
mailboxId?: string;
|
|
200
|
+
phoneNumberId?: string;
|
|
201
|
+
imessage?: boolean;
|
|
202
|
+
/** Linq: explicit owned lines; omitted does not mean every account line. */
|
|
203
|
+
phoneNumbers?: string[];
|
|
204
|
+
/** Linq WhatsApp: explicit opaque IDs from numbers.list, not E.164 phone strings. */
|
|
205
|
+
phoneNumberIds?: string[];
|
|
206
|
+
/** Contiguity Console secret, or an existing Inkbox identity signing key. */
|
|
207
|
+
signingSecret?: string;
|
|
208
|
+
}
|
|
209
|
+
interface HubInboundWebhookCreateResponse {
|
|
210
|
+
url: string;
|
|
211
|
+
/** True only when the provider subscription was created by the server. */
|
|
212
|
+
provisioned?: boolean;
|
|
213
|
+
/** Self-configured legacy providers can return a newly minted secret once. */
|
|
214
|
+
secret?: string;
|
|
215
|
+
inboundAddress?: string;
|
|
216
|
+
requiresProviderSetup?: boolean;
|
|
217
|
+
}
|
|
218
|
+
interface HubInboundWebhookStatus {
|
|
219
|
+
configured: boolean;
|
|
220
|
+
url?: string;
|
|
221
|
+
/** Configuration is not evidence of a real delivered message. */
|
|
222
|
+
deliveryVerified: false;
|
|
223
|
+
requiresProviderSetup?: boolean;
|
|
224
|
+
}
|
|
225
|
+
/** Live provider readback for one explicitly selected Linq WhatsApp number. */
|
|
226
|
+
interface HubInboundPhoneNumberScope {
|
|
227
|
+
configured: true;
|
|
228
|
+
provisioned: true;
|
|
229
|
+
subscribed: true;
|
|
230
|
+
phoneNumberIds: string[];
|
|
231
|
+
}
|
|
232
|
+
declare class HubInboundWebhooksClient {
|
|
233
|
+
private readonly request;
|
|
234
|
+
constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
|
|
235
|
+
create(connectionId: string, options?: HubInboundWebhookCreateOptions): Promise<HubInboundWebhookCreateResponse>;
|
|
236
|
+
get(connectionId: string): Promise<HubInboundWebhookStatus>;
|
|
237
|
+
/** Add one owned Linq WhatsApp number without rotating the webhook secret. */
|
|
238
|
+
ensurePhoneNumber(connectionId: string, phoneNumberId: string): Promise<HubInboundPhoneNumberScope>;
|
|
239
|
+
/** Remove event subscriptions first. This does not silently rotate a live URL. */
|
|
240
|
+
delete(connectionId: string): Promise<{
|
|
241
|
+
removed: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
private path;
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
1
246
|
//#region src/types.d.ts
|
|
2
247
|
type HubPrincipalKind = "user_session" | "api_key" | "sandbox_runtime";
|
|
3
248
|
interface HubSuccessEnvelope<TData> {
|
|
@@ -14,7 +259,7 @@ interface HubErrorBody {
|
|
|
14
259
|
message: string;
|
|
15
260
|
details?: unknown;
|
|
16
261
|
}
|
|
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}`;
|
|
262
|
+
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
263
|
interface HubStatusResponse {
|
|
19
264
|
contract: unknown;
|
|
20
265
|
principal: HubPrincipal;
|
|
@@ -36,6 +281,7 @@ interface HubConnection {
|
|
|
36
281
|
providerId: string;
|
|
37
282
|
displayName: string;
|
|
38
283
|
accountDisplay: string | null;
|
|
284
|
+
providerAccountId: string | null;
|
|
39
285
|
scopes: string[];
|
|
40
286
|
status: "active" | "revoked" | "unhealthy" | "reconnect_required";
|
|
41
287
|
health: "unknown" | "healthy" | "unhealthy" | "rate_limited";
|
|
@@ -222,6 +468,7 @@ interface HubOAuthStartRequest {
|
|
|
222
468
|
returnUrl?: string;
|
|
223
469
|
cli?: boolean;
|
|
224
470
|
connectionParameters?: Record<string, string>;
|
|
471
|
+
requestedScopes?: readonly string[];
|
|
225
472
|
}
|
|
226
473
|
interface HubOAuthCallbackSuccessQuery {
|
|
227
474
|
provider: string;
|
|
@@ -282,7 +529,18 @@ interface HubOAuthCallbackResponse {
|
|
|
282
529
|
interface HubApiKeyConnectRequest {
|
|
283
530
|
provider: string;
|
|
284
531
|
apiKey: string;
|
|
532
|
+
/** Connector-owned setup values. Hub validates them before testing the key. */
|
|
533
|
+
metadata?: HubApiKeyConnectionMetadata;
|
|
285
534
|
}
|
|
535
|
+
type HubApiKeyConnectionMetadata = {
|
|
536
|
+
propertyId: string;
|
|
537
|
+
currency?: string;
|
|
538
|
+
} | {
|
|
539
|
+
listings: Array<{
|
|
540
|
+
id: string;
|
|
541
|
+
pms: string;
|
|
542
|
+
}>;
|
|
543
|
+
};
|
|
286
544
|
/** Result of an api-key connect: the created (or reconnected) connection.
|
|
287
545
|
* Synchronous — there is no redirect leg, unlike the OAuth flow. */
|
|
288
546
|
interface HubApiKeyConnectResponse {
|
|
@@ -358,9 +616,18 @@ interface HubExecRequest {
|
|
|
358
616
|
path: string;
|
|
359
617
|
input?: unknown;
|
|
360
618
|
connectionId?: string;
|
|
619
|
+
/** Caller-minted key for this exec. The platform ledger replays the first
|
|
620
|
+
* call's result for a retry that carries the same key, and rejects a key
|
|
621
|
+
* reused for a different request. On the capability-token arm the key only
|
|
622
|
+
* reaches the connector for provider-native dedupe: that arm is at-most-once
|
|
623
|
+
* per token and replays no stored result. */
|
|
624
|
+
idempotencyKey?: string;
|
|
361
625
|
}
|
|
362
626
|
interface HubExecResponse<TResult = unknown> {
|
|
363
627
|
result: TResult;
|
|
628
|
+
/** True when the result was replayed from a previous call with the same
|
|
629
|
+
* idempotency key, so the action did not run again. */
|
|
630
|
+
replayed?: boolean;
|
|
364
631
|
}
|
|
365
632
|
interface HubTokenMintRequest {
|
|
366
633
|
connectionId?: string;
|
|
@@ -518,7 +785,7 @@ interface HubGithubAppInstallation {
|
|
|
518
785
|
accountType: string | null;
|
|
519
786
|
/** "all" ⇒ every repo under the account; "selected" ⇒ only repoFullNames. */
|
|
520
787
|
repositorySelection: "all" | "selected";
|
|
521
|
-
/**
|
|
788
|
+
/** Metadata omits names; use githubApp.listRepos(id) for a live caller-safe list. */
|
|
522
789
|
repoFullNames: string[];
|
|
523
790
|
suspended: boolean;
|
|
524
791
|
}
|
|
@@ -571,8 +838,10 @@ interface HubGithubAppSyncResponse {
|
|
|
571
838
|
}
|
|
572
839
|
interface HubGithubAppListReposResponse {
|
|
573
840
|
installationId: number;
|
|
574
|
-
/**
|
|
841
|
+
/** Complete live intersection of App coverage and the caller's GitHub access. */
|
|
575
842
|
repoFullNames: string[];
|
|
843
|
+
/** True only when both upstream listings completed; failures return an error. */
|
|
844
|
+
complete: true;
|
|
576
845
|
}
|
|
577
846
|
interface HubGithubAppIsRepoInstalledRequest {
|
|
578
847
|
owner: string;
|
|
@@ -1213,6 +1482,222 @@ interface HubWorkflowRunStepsPage {
|
|
|
1213
1482
|
nextCursor: number | null;
|
|
1214
1483
|
}
|
|
1215
1484
|
//#endregion
|
|
1485
|
+
//#region src/lines.d.ts
|
|
1486
|
+
interface HubLineMember {
|
|
1487
|
+
id: string;
|
|
1488
|
+
label: string | null;
|
|
1489
|
+
role: string;
|
|
1490
|
+
self?: boolean;
|
|
1491
|
+
consent?: "enabled" | "required";
|
|
1492
|
+
}
|
|
1493
|
+
interface HubLineContext {
|
|
1494
|
+
self: {
|
|
1495
|
+
id: string;
|
|
1496
|
+
label: string | null;
|
|
1497
|
+
role: string;
|
|
1498
|
+
};
|
|
1499
|
+
line: {
|
|
1500
|
+
id: string;
|
|
1501
|
+
label: string | null;
|
|
1502
|
+
transport: string;
|
|
1503
|
+
};
|
|
1504
|
+
members: HubLineMember[];
|
|
1505
|
+
capabilities: Record<string, {
|
|
1506
|
+
allowed: boolean;
|
|
1507
|
+
reason?: string;
|
|
1508
|
+
}>;
|
|
1509
|
+
pendingReminders: Array<{
|
|
1510
|
+
messageId: string;
|
|
1511
|
+
wakeAt?: string;
|
|
1512
|
+
prompt: string | null;
|
|
1513
|
+
}>;
|
|
1514
|
+
quotas: {
|
|
1515
|
+
selfMessagesToday: number;
|
|
1516
|
+
selfMessagesPerDay: number;
|
|
1517
|
+
selfMessagesPending: number;
|
|
1518
|
+
selfMessagesPendingLimit: number;
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
interface HubLineSendInput {
|
|
1522
|
+
toMember: string;
|
|
1523
|
+
text: string;
|
|
1524
|
+
notBefore?: string;
|
|
1525
|
+
onBehalfOf?: string;
|
|
1526
|
+
idempotencyKey?: string;
|
|
1527
|
+
}
|
|
1528
|
+
interface HubLineOwnerSendInput {
|
|
1529
|
+
memberId: string;
|
|
1530
|
+
text: string;
|
|
1531
|
+
notBefore?: string;
|
|
1532
|
+
idempotencyKey: string;
|
|
1533
|
+
}
|
|
1534
|
+
interface HubLineReminderInput {
|
|
1535
|
+
text: string;
|
|
1536
|
+
notBefore: string;
|
|
1537
|
+
idempotencyKey: string;
|
|
1538
|
+
}
|
|
1539
|
+
interface HubLineSendReceipt {
|
|
1540
|
+
message: {
|
|
1541
|
+
id: string;
|
|
1542
|
+
status: string;
|
|
1543
|
+
text: string | null;
|
|
1544
|
+
};
|
|
1545
|
+
eligibleAt: string | null;
|
|
1546
|
+
expiresAt: string;
|
|
1547
|
+
}
|
|
1548
|
+
interface HubLineReminderReceipt {
|
|
1549
|
+
state: "queued" | "skipped";
|
|
1550
|
+
lineId: string;
|
|
1551
|
+
messageId?: string;
|
|
1552
|
+
sessionId?: string;
|
|
1553
|
+
completion?: string;
|
|
1554
|
+
reason?: string;
|
|
1555
|
+
}
|
|
1556
|
+
interface HubLineCheckinOptions {
|
|
1557
|
+
lineId: string;
|
|
1558
|
+
member: string;
|
|
1559
|
+
timezone: string;
|
|
1560
|
+
prompt: string;
|
|
1561
|
+
name?: string;
|
|
1562
|
+
}
|
|
1563
|
+
/** Line calls share HubClient authentication and envelope handling. */
|
|
1564
|
+
declare class HubLinesClient {
|
|
1565
|
+
private readonly request;
|
|
1566
|
+
private readonly createWorkflow;
|
|
1567
|
+
readonly members: {
|
|
1568
|
+
list: (lineId: string) => Promise<HubLineMember[]>;
|
|
1569
|
+
};
|
|
1570
|
+
readonly checkins: {
|
|
1571
|
+
schedule: (cron: string, options: HubLineCheckinOptions) => Promise<HubWorkflow>;
|
|
1572
|
+
};
|
|
1573
|
+
constructor(request: <T>(path: string, init: RequestInit) => Promise<T>, createWorkflow: (yaml: string) => Promise<HubWorkflow>);
|
|
1574
|
+
context(): Promise<HubLineContext>;
|
|
1575
|
+
send(lineId: string, input: HubLineSendInput | HubLineOwnerSendInput): Promise<HubLineSendReceipt>;
|
|
1576
|
+
remind(lineId: string, input: HubLineReminderInput): Promise<HubLineReminderReceipt>;
|
|
1577
|
+
}
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region src/managed-numbers.d.ts
|
|
1580
|
+
interface HubNumberReadiness {
|
|
1581
|
+
configured: boolean;
|
|
1582
|
+
provider: "inkbox";
|
|
1583
|
+
transports: Array<"sms" | "imessage">;
|
|
1584
|
+
billing: "prepaid_activation";
|
|
1585
|
+
automaticRentalBilling: false;
|
|
1586
|
+
deliveryVerified: false;
|
|
1587
|
+
}
|
|
1588
|
+
interface HubNumberQuote {
|
|
1589
|
+
transport: "sms" | "imessage";
|
|
1590
|
+
activationCents: number;
|
|
1591
|
+
currency: "usd";
|
|
1592
|
+
termsVersion: string;
|
|
1593
|
+
terms: string;
|
|
1594
|
+
expiresAt: number;
|
|
1595
|
+
/** The binding the quote was issued for. Absent from older servers. */
|
|
1596
|
+
clientReference?: string;
|
|
1597
|
+
/** Opaque. Pass it back to `create`; never decode it. */
|
|
1598
|
+
token: string;
|
|
1599
|
+
}
|
|
1600
|
+
/** One page of the owner's orders, newest first. */
|
|
1601
|
+
interface HubNumberOrderPage {
|
|
1602
|
+
orders: HubNumberOrder[];
|
|
1603
|
+
/** Present while more orders exist. Older servers omit it and return one
|
|
1604
|
+
* bounded page, so an absent cursor never proves an order does not exist. */
|
|
1605
|
+
nextCursor?: string | null;
|
|
1606
|
+
}
|
|
1607
|
+
interface HubNumberListQuery {
|
|
1608
|
+
/** Only orders requested for this binding, including closed ones. */
|
|
1609
|
+
clientReference?: string;
|
|
1610
|
+
cursor?: string;
|
|
1611
|
+
/** 1 to 100; the server default is 100. */
|
|
1612
|
+
limit?: number;
|
|
1613
|
+
}
|
|
1614
|
+
/** An operator's terminal decision on an order stuck in `needs_review`.
|
|
1615
|
+
* Read-only for a creator: the resolution is made through the platform's
|
|
1616
|
+
* admin surface, never through this client. */
|
|
1617
|
+
interface HubNumberResolution {
|
|
1618
|
+
action: "release" | "settle" | "abandon";
|
|
1619
|
+
operator: string;
|
|
1620
|
+
reason: string;
|
|
1621
|
+
at: number;
|
|
1622
|
+
/** Present while the operator's action is still running. The decision is
|
|
1623
|
+
* not final and the order can still return to review. */
|
|
1624
|
+
pending?: true;
|
|
1625
|
+
/** Present when a `settle` handed a live, unfinished order back to
|
|
1626
|
+
* provisioning, so the order is working again rather than closed. */
|
|
1627
|
+
requeued?: true;
|
|
1628
|
+
}
|
|
1629
|
+
interface HubNumberOrder {
|
|
1630
|
+
id: string;
|
|
1631
|
+
clientReference: string;
|
|
1632
|
+
transport: "sms" | "imessage";
|
|
1633
|
+
status: "pending" | "provider_pending" | "needs_review" | "ready_for_setup" | "cancelled";
|
|
1634
|
+
phase: "identity" | "number" | "credential" | "connection" | "complete";
|
|
1635
|
+
address: string | null;
|
|
1636
|
+
connectionId: string | null;
|
|
1637
|
+
identityId: string | null;
|
|
1638
|
+
providerNumberId: string | null;
|
|
1639
|
+
billingStatus: "unreserved" | "reserved" | "settled" | "released";
|
|
1640
|
+
cancellation: "none" | "requested" | "needs_review" | "released" | "abandoned";
|
|
1641
|
+
errorCode: string | null;
|
|
1642
|
+
nextAttemptAt: number | null;
|
|
1643
|
+
resolution: HubNumberResolution | null;
|
|
1644
|
+
deliveryVerified: false;
|
|
1645
|
+
activationCents: number;
|
|
1646
|
+
currency: "usd";
|
|
1647
|
+
terms: string;
|
|
1648
|
+
}
|
|
1649
|
+
/** Administrative number operations through Hub's authenticated transport.
|
|
1650
|
+
* A mutation is one attempt; an uncertain create reuses its quote and reference. */
|
|
1651
|
+
declare class HubManagedNumbersClient {
|
|
1652
|
+
private readonly request;
|
|
1653
|
+
constructor(request: <T>(path: string, init: RequestInit) => Promise<T>);
|
|
1654
|
+
readiness(): Promise<HubNumberReadiness>;
|
|
1655
|
+
/** One page of orders. Scope by `clientReference` to ask about one binding,
|
|
1656
|
+
* and follow `nextCursor` for the rest; a page is never ownership evidence. */
|
|
1657
|
+
list(query?: HubNumberListQuery): Promise<HubNumberOrderPage>;
|
|
1658
|
+
get(id: string): Promise<{
|
|
1659
|
+
order: HubNumberOrder;
|
|
1660
|
+
}>;
|
|
1661
|
+
quote(input: {
|
|
1662
|
+
transport: "sms" | "imessage";
|
|
1663
|
+
clientReference: string;
|
|
1664
|
+
}): Promise<{
|
|
1665
|
+
quote: HubNumberQuote;
|
|
1666
|
+
}>;
|
|
1667
|
+
/** `clientReference` and `transport`, when given, must match the signed
|
|
1668
|
+
* quote or Hub refuses the purchase with a conflict. */
|
|
1669
|
+
create(input: {
|
|
1670
|
+
quoteToken: string;
|
|
1671
|
+
consent: true;
|
|
1672
|
+
state?: string;
|
|
1673
|
+
clientReference?: string;
|
|
1674
|
+
transport?: "sms" | "imessage";
|
|
1675
|
+
}): Promise<{
|
|
1676
|
+
order: HubNumberOrder;
|
|
1677
|
+
}>;
|
|
1678
|
+
/** Fences references so no order can take them again. Call it as the last
|
|
1679
|
+
* step before retiring the resource they name: a purchase that races the
|
|
1680
|
+
* retirement is then refused (`409 number_reference_fenced`) instead of
|
|
1681
|
+
* binding a line to a resource that is gone. Refused with
|
|
1682
|
+
* `409 number_reference_held` while a live order holds one of them; cancel
|
|
1683
|
+
* it first. A cancelled order no longer holds its reference, so the fence
|
|
1684
|
+
* succeeds as soon as `cancel` returns, whether or not its release is still
|
|
1685
|
+
* pending. Repeating a fence is harmless. */
|
|
1686
|
+
fence(input: {
|
|
1687
|
+
clientReferences: string[];
|
|
1688
|
+
}): Promise<{
|
|
1689
|
+
clientReferences: string[];
|
|
1690
|
+
}>;
|
|
1691
|
+
advance(id: string): Promise<{
|
|
1692
|
+
order: HubNumberOrder;
|
|
1693
|
+
}>;
|
|
1694
|
+
cancel(id: string): Promise<{
|
|
1695
|
+
order: HubNumberOrder;
|
|
1696
|
+
}>;
|
|
1697
|
+
private path;
|
|
1698
|
+
private post;
|
|
1699
|
+
}
|
|
1700
|
+
//#endregion
|
|
1216
1701
|
//#region src/client.d.ts
|
|
1217
1702
|
type HubAuthHeaders = () => HeadersInit | Promise<HeadersInit>;
|
|
1218
1703
|
interface HubClientOptions {
|
|
@@ -1246,8 +1731,11 @@ declare class HubClient {
|
|
|
1246
1731
|
readonly fetch: typeof fetch;
|
|
1247
1732
|
readonly apiKey?: string;
|
|
1248
1733
|
readonly authHeaders?: HubAuthHeaders;
|
|
1734
|
+
readonly allowances: HubAllowancesClient;
|
|
1735
|
+
readonly apps: HubAppsClient;
|
|
1249
1736
|
readonly connections: HubConnectionsClient;
|
|
1250
1737
|
readonly channels: HubChannelsClient;
|
|
1738
|
+
readonly numbers: HubManagedNumbersClient;
|
|
1251
1739
|
readonly eventSubscriptions: HubEventSubscriptionsClient;
|
|
1252
1740
|
readonly permissions: HubPermissionsClient;
|
|
1253
1741
|
readonly tokens: HubTokensClient;
|
|
@@ -1256,6 +1744,7 @@ declare class HubClient {
|
|
|
1256
1744
|
readonly audit: HubAuditClient;
|
|
1257
1745
|
readonly githubApp: HubGithubAppClient;
|
|
1258
1746
|
readonly workflows: HubWorkflowsClient;
|
|
1747
|
+
readonly lines: HubLinesClient;
|
|
1259
1748
|
constructor(options: HubClientOptions);
|
|
1260
1749
|
static fromEnv(options?: HubClientFromEnvOptions): HubClient;
|
|
1261
1750
|
status(): Promise<HubStatusResponse>;
|
|
@@ -1325,6 +1814,13 @@ interface HubToolSearchOptions {
|
|
|
1325
1814
|
interface HubToolInvokeOptions {
|
|
1326
1815
|
connectionId?: string;
|
|
1327
1816
|
approve?: boolean;
|
|
1817
|
+
/** Caller-minted key for this invoke. On the direct exec arm the platform
|
|
1818
|
+
* ledger replays the first call's result for a retry that carries the same
|
|
1819
|
+
* key, and refuses a key bound to a different request. The approval and
|
|
1820
|
+
* capability-token retries re-send the key, and the connector receives it
|
|
1821
|
+
* for provider-native dedupe. Capability-token execution stays at-most-once
|
|
1822
|
+
* per token: it refuses a replay instead of replaying a stored result. */
|
|
1823
|
+
idempotencyKey?: string;
|
|
1328
1824
|
}
|
|
1329
1825
|
declare class HubToolsClient {
|
|
1330
1826
|
private readonly request;
|
|
@@ -1332,13 +1828,20 @@ declare class HubToolsClient {
|
|
|
1332
1828
|
search(query: string, options?: HubToolSearchOptions): Promise<HubToolsSearchResponse>;
|
|
1333
1829
|
sources(): Promise<HubToolSourcesResponse>;
|
|
1334
1830
|
describe(path: string): Promise<HubToolsDescribeResponse>;
|
|
1335
|
-
|
|
1831
|
+
/**
|
|
1832
|
+
* Run one hub tool. `raw` is the tool input: the SDK forwards it verbatim as
|
|
1833
|
+
* the request body's `input`, and the server validates it against the tool's
|
|
1834
|
+
* own schema, so the client never gives it a shape.
|
|
1835
|
+
*/
|
|
1836
|
+
invoke<TResult = unknown>(path: string, raw: unknown, options?: HubToolInvokeOptions): Promise<HubExecResponse<TResult>>;
|
|
1336
1837
|
private buildExecInit;
|
|
1337
1838
|
}
|
|
1338
1839
|
interface HubConnectionStartOptions {
|
|
1339
1840
|
returnUrl?: string;
|
|
1340
1841
|
cli?: boolean;
|
|
1341
1842
|
connectionParameters?: Record<string, string>;
|
|
1843
|
+
/** GitHub accepts the exact read:user, repo, read:org set. */
|
|
1844
|
+
requestedScopes?: readonly string[];
|
|
1342
1845
|
}
|
|
1343
1846
|
declare class HubChannelsClient {
|
|
1344
1847
|
private readonly request;
|
|
@@ -1356,6 +1859,7 @@ declare class HubEventSubscriptionsClient {
|
|
|
1356
1859
|
}
|
|
1357
1860
|
declare class HubConnectionsClient {
|
|
1358
1861
|
private readonly request;
|
|
1862
|
+
readonly inboundWebhook: HubInboundWebhooksClient;
|
|
1359
1863
|
constructor(request: <TData>(path: string, init: RequestInit) => Promise<TData>);
|
|
1360
1864
|
list(): Promise<HubConnectionsResponse>;
|
|
1361
1865
|
/** Connector catalog: every provider the hub can expose, each flagged with
|
|
@@ -1368,8 +1872,9 @@ declare class HubConnectionsClient {
|
|
|
1368
1872
|
/** Connect a non-OAuth (api-key) connector by submitting the user's key.
|
|
1369
1873
|
* The server validates the key with a live probe before persisting and
|
|
1370
1874
|
* returns the created (or reconnected) connection — there is no redirect,
|
|
1371
|
-
* unlike `start`.
|
|
1372
|
-
|
|
1875
|
+
* unlike `start`. Cloudbeds requires propertyId metadata and PriceLabs
|
|
1876
|
+
* requires listing ID/PMS pairs; other providers have no metadata. */
|
|
1877
|
+
connectApiKey(provider: string, apiKey: string, metadata?: HubApiKeyConnectRequest["metadata"]): Promise<HubApiKeyConnectResponse>;
|
|
1373
1878
|
revoke(connectionId: string): Promise<HubConnectionDeleteResponse>;
|
|
1374
1879
|
health(connectionId: string): Promise<HubConnectionHealthResponse>;
|
|
1375
1880
|
}
|
|
@@ -1651,15 +2156,18 @@ declare class HubWorkflowsClient {
|
|
|
1651
2156
|
/**
|
|
1652
2157
|
* Upsert a key; returns the entry with its NEW version (increments on every
|
|
1653
2158
|
* write). Throws `HubSdkError(KV_VALUE_TOO_LARGE)` past the 64KiB value cap
|
|
1654
|
-
* or `KV_KEY_LIMIT` past the per-workflow key cap.
|
|
2159
|
+
* or `KV_KEY_LIMIT` past the per-workflow key cap. `raw` is the caller's
|
|
2160
|
+
* value, stored and read back verbatim, so the client never gives it a shape.
|
|
1655
2161
|
*/
|
|
1656
|
-
putKv(id: string, key: string,
|
|
2162
|
+
putKv(id: string, key: string, raw: unknown): Promise<HubWorkflowKvEntry>;
|
|
1657
2163
|
/**
|
|
1658
2164
|
* Compare-and-swap: the write lands only when the stored version still
|
|
1659
2165
|
* equals `expectedVersion`; otherwise `HubSdkError(KV_VERSION_CONFLICT)`
|
|
1660
|
-
* (409) — re-read and retry. Creation is {@link putKv}'s job.
|
|
2166
|
+
* (409) — re-read and retry. Creation is {@link putKv}'s job. `raw` is the
|
|
2167
|
+
* caller's value, stored and read back verbatim, so the client never gives it
|
|
2168
|
+
* a shape.
|
|
1661
2169
|
*/
|
|
1662
|
-
casKv(id: string, key: string, expectedVersion: number,
|
|
2170
|
+
casKv(id: string, key: string, expectedVersion: number, raw: unknown): Promise<HubWorkflowKvEntry>;
|
|
1663
2171
|
/** Delete a key; idempotent — `deleted` reports whether a row was removed. */
|
|
1664
2172
|
deleteKv(id: string, key: string): Promise<HubWorkflowKvDeleteResponse>;
|
|
1665
2173
|
/** The curated starter gallery runnable on THIS deployment: metadata,
|
|
@@ -1788,5 +2296,5 @@ declare function parseHubEventDelivery(input: string | unknown): HubEventDeliver
|
|
|
1788
2296
|
//#region src/redaction.d.ts
|
|
1789
2297
|
declare function redactHubValue(value: unknown): unknown;
|
|
1790
2298
|
//#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 };
|
|
2299
|
+
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 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 HubLineCheckinOptions, type HubLineContext, type HubLineMember, type HubLineOwnerSendInput, type HubLineReminderInput, type HubLineReminderReceipt, 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
2300
|
//# sourceMappingURL=index.d.ts.map
|