@belonguniverseai/react-sdk 0.6.15-teams.1 → 0.6.16
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/api/agent-grant-status.d.ts +4 -0
- package/dist/api/agent-grants.d.ts +92 -8
- package/dist/api/client.d.ts +304 -92
- package/dist/api/connectors.d.ts +0 -8
- package/dist/api/query-keys.d.ts +0 -1
- package/dist/api/questions.d.ts +41 -0
- package/dist/api/task-schedules.d.ts +1 -33
- package/dist/component/{abnfDiagram-N423BO3Z-CWpleAha.js → abnfDiagram-N423BO3Z-OROjdfGy.js} +4 -4
- package/dist/component/{arc-B_b5cvCE.js → arc-BV89erXj.js} +2 -2
- package/dist/component/{architectureDiagram-T3A2C74G-CjxSulY8.js → architectureDiagram-T3A2C74G-DvC153Pa.js} +3 -3
- package/dist/component/{blockDiagram-VBNYF7ZC-DUz0K7l9.js → blockDiagram-VBNYF7ZC-BhY_gBxr.js} +4 -4
- package/dist/component/{c4Diagram-5PPSVZJV-BSHKcbgg.js → c4Diagram-5PPSVZJV-l_KLeHXr.js} +3 -3
- package/dist/component/{channel-ul0OKf-Y.js → channel-C04d5zF_.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-DWWubQIc.js → chunk-2GRJ4B5K-CEWW_4Iw.js} +2 -2
- package/dist/component/{chunk-2Q5K7J3B-Bf95TKrA.js → chunk-2Q5K7J3B-CB6VkgEJ.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-yt2pRekp.js → chunk-5RXB4S5H-FAQX8NS6.js} +5 -5
- package/dist/component/{chunk-5VM5RSS4-DC-Dhh2F.js → chunk-5VM5RSS4-L_UXpqco.js} +2 -2
- package/dist/component/{chunk-6Q2QTUOP-BYQUMWPa.js → chunk-6Q2QTUOP-Dodzsg9f.js} +2 -2
- package/dist/component/{chunk-GF5L2VYU-DCL5XslZ.js → chunk-GF5L2VYU-B6YkOr2d.js} +6 -6
- package/dist/component/{chunk-JWPE2WC7-CTNjfyTd.js → chunk-JWPE2WC7-BzhR8Ja-.js} +2 -2
- package/dist/component/{chunk-KBJHAD2P-BzFOsNsS.js → chunk-KBJHAD2P-D7S_ui4V.js} +2 -2
- package/dist/component/{chunk-RYQCIY6F-CxHVl87G.js → chunk-RYQCIY6F-BRnTO8_F.js} +2 -2
- package/dist/component/{chunk-XXDRQBXY-CybjH6JT.js → chunk-XXDRQBXY-C7_5LZDu.js} +2 -2
- package/dist/component/{classDiagram-JCYQIIEL-CUfortSf.js → classDiagram-JCYQIIEL-D3MdI_KC.js} +3 -3
- package/dist/component/{classDiagram-v2-OCEON4UE-CUfortSf.js → classDiagram-v2-OCEON4UE-D3MdI_KC.js} +3 -3
- package/dist/component/{cose-bilkent-JH36ORCC-gAMaOS_x.js → cose-bilkent-JH36ORCC-BEuo9qsi.js} +2 -2
- package/dist/component/{cynefinDiagram-MW4NZA55-Cqq2ciOe.js → cynefinDiagram-MW4NZA55-BfhAjv0p.js} +3 -3
- package/dist/component/{dagre-VZM6K2ZE-gUatRBAz.js → dagre-VZM6K2ZE-DdaRxW4J.js} +3 -3
- package/dist/component/{diagram-7IWD3JNH-HVoXgPnd.js → diagram-7IWD3JNH-BFbU8Ovo.js} +4 -4
- package/dist/component/{diagram-B4RE2ZJO-C3oEDsJq.js → diagram-B4RE2ZJO-CdPb_acC.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-F8VLVhYE.js → diagram-LBJQPF4R-Bo8o8x70.js} +3 -3
- package/dist/component/{diagram-Q27KOJAE-ByrpCxab.js → diagram-Q27KOJAE-CugDzXxZ.js} +4 -4
- package/dist/component/{diagram-UB23O5K3-DuounLWf.js → diagram-UB23O5K3-CYHh9d2Z.js} +3 -3
- package/dist/component/{ebnfDiagram-BXEA7PRR-cSRIjmQ1.js → ebnfDiagram-BXEA7PRR-CdqVlgbh.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-bgcT-Jvh.js → erDiagram-JOGREHBK-CMh6xOk6.js} +5 -5
- package/dist/component/{flowDiagram-UKHOOZJN-DnUXqvIy.js → flowDiagram-UKHOOZJN-ttP65F-a.js} +7 -7
- package/dist/component/{ganttDiagram-PKOTCBZU-DLWRL_xy.js → ganttDiagram-PKOTCBZU-CSTsjgxH.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-CZTzj16I.js → gitGraphDiagram-DS77QQ5N-BtXqSxkQ.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-BHENhjL0.js → highlighted-body-OFNGDK62-CIltS1BE.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-XO0w0gDi.js → infoDiagram-6WML65LV-FqIIsY32.js} +2 -2
- package/dist/component/{ishikawaDiagram-WSZJBQD7-DxLtBuST.js → ishikawaDiagram-WSZJBQD7-BA78Hm4p.js} +2 -2
- package/dist/component/{journeyDiagram-NVQOT4AX-CzkQhFXA.js → journeyDiagram-NVQOT4AX-Bu99yxhx.js} +5 -5
- package/dist/component/{kanban-definition-27J2QSJJ-BiXQYLTj.js → kanban-definition-27J2QSJJ-CTf66i07.js} +3 -3
- package/dist/component/{linear-dC8sen1J.js → linear-Cr5nCYH-.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-Cf2opCv2.js → mermaid-GHXKKRXX-Da5y0Kes.js} +36506 -36516
- package/dist/component/{mindmap-definition-FAOFIHXS-BY0E7zzr.js → mindmap-definition-FAOFIHXS-CQ5erfft.js} +4 -4
- package/dist/component/{pegDiagram-VL7TDLO6-D9kAit8B.js → pegDiagram-VL7TDLO6-BP4d3yNS.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-dLT0WWrb.js → pieDiagram-7S7Q4E2Y-BvhLQABG.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-BH5V9bJL.js → quadrantDiagram-CIZ2JOQS-DEtpNVeI.js} +3 -3
- package/dist/component/{railroadDiagram-AXF67PYL-CR6KpTxS.js → railroadDiagram-AXF67PYL-BQ1Tz2JD.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-BUT_vUQr.js → requirementDiagram-LRYGKXZP-DaubiNmJ.js} +4 -4
- package/dist/component/{sankeyDiagram-W5VNT64P-BJSC_sO5.js → sankeyDiagram-W5VNT64P-BHuCT4HV.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-Dru3TnX4.js → sequenceDiagram-SI44F4Z6-Dds6EZRB.js} +4 -4
- package/dist/component/{sizeCapture-X5ZJPWSS-BayO20TJ.js → sizeCapture-X5ZJPWSS-DgUmHwfK.js} +2 -2
- package/dist/component/{stateDiagram-OKZ733FA-BbteUIbr.js → stateDiagram-OKZ733FA-DIKGff3C.js} +3 -3
- package/dist/component/{stateDiagram-v2-UEYNNEHI-DvS2V3Sy.js → stateDiagram-v2-UEYNNEHI-D-W1YrbI.js} +3 -3
- package/dist/component/{swimlanes-SLNWSIFB-CUTDOFkf.js → swimlanes-SLNWSIFB-B0g61P7R.js} +4 -4
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-rwbZUP9Q.js → swimlanesDiagram-ULZ7WXOC-4-qQ_GG9.js} +3 -3
- package/dist/component/{timeline-definition-Z64GVDOM-GmP2iBR1.js → timeline-definition-Z64GVDOM-Df_xk-8z.js} +3 -3
- package/dist/component/{vennDiagram-T6HMQDX7-jV3XP4p2.js → vennDiagram-T6HMQDX7-Ce74weIb.js} +2 -2
- package/dist/component/{wardleyDiagram-T6FBY63Y-CZJ-vYBr.js → wardleyDiagram-T6FBY63Y-CMZ9e32m.js} +3 -3
- package/dist/component/{xychartDiagram-ELKLHX3M-x6JPK6Pc.js → xychartDiagram-ELKLHX3M-DgbdZWSQ.js} +3 -3
- package/dist/components/connectors/ConnectorBrandLogo.d.ts +1 -1
- package/dist/components/connectors/ConnectorMarketplaceDialog.d.ts +1 -2
- package/dist/components/connectors/NewConnectorDialog.d.ts +2 -2
- package/dist/components/embed/EmbedComposer.d.ts +6 -1
- package/dist/components/embed/QuestionCard.d.ts +25 -0
- package/dist/components/scheduled/ScheduledDetailSurface.d.ts +0 -3
- package/dist/embed/copy.d.ts +3 -0
- package/dist/i18n/messages/en.d.ts +19 -27
- package/dist/i18n/messages/surfaces/connectors.d.ts +0 -45
- package/dist/i18n/messages/surfaces/scheduled.d.ts +0 -33
- package/dist/i18n/messages/surfaces/stream.d.ts +58 -3
- package/dist/stream/belong-chat-transport.d.ts +44 -52
- package/dist/stream/belong-data-parts.d.ts +36 -44
- package/dist/stream/pending-question-store.d.ts +22 -0
- package/package.json +1 -1
- package/dist/api/microsoft-teams.d.ts +0 -66
- package/dist/components/connectors/MicrosoftTeamsConnectionDialog.d.ts +0 -4
|
@@ -6,11 +6,15 @@ export declare const agentGrantStatusViewSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
6
6
|
active: "active";
|
|
7
7
|
expired: "expired";
|
|
8
8
|
revoked: "revoked";
|
|
9
|
+
reauth_required: "reauth_required";
|
|
10
|
+
preparing: "preparing";
|
|
11
|
+
install_degraded: "install_degraded";
|
|
9
12
|
}>;
|
|
10
13
|
grantId: z.ZodString;
|
|
11
14
|
provider: z.ZodString;
|
|
12
15
|
scopeExternalId: z.ZodString;
|
|
13
16
|
grantedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
14
17
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
18
|
+
installedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
15
19
|
}, z.core.$strip>], "status">;
|
|
16
20
|
export type AgentGrantStatusView = z.infer<typeof agentGrantStatusViewSchema>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ApiClient } from './client.ts';
|
|
3
|
+
import { AgentGrantStatusView } from './agent-grant-status.ts';
|
|
2
4
|
import { AgentGrantLock } from '../embed/agent-grant-lock.ts';
|
|
3
5
|
export type { AgentGrantStatusView } from './agent-grant-status.ts';
|
|
4
6
|
export type AgentGrantSourceTrigger = "auto_connect" | "preemptive_refresh" | "reactive_reconnect";
|
|
@@ -16,12 +18,13 @@ export declare const useAgentGrantStatus: (input: {
|
|
|
16
18
|
} | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
17
19
|
status: "none";
|
|
18
20
|
} | {
|
|
19
|
-
status: "active" | "expired" | "revoked";
|
|
21
|
+
status: "active" | "expired" | "revoked" | "reauth_required" | "preparing" | "install_degraded";
|
|
20
22
|
grantId: string;
|
|
21
23
|
provider: string;
|
|
22
24
|
scopeExternalId: string;
|
|
23
25
|
grantedAt: string | null;
|
|
24
26
|
expiresAt: string | null;
|
|
27
|
+
installedAt: string | null;
|
|
25
28
|
}>, Error>;
|
|
26
29
|
/**
|
|
27
30
|
* The backend error type for a rate-limited mint (BEL-178). Its own status +
|
|
@@ -70,14 +73,58 @@ export declare const isSessionLimitedGrantError: (error: unknown) => boolean;
|
|
|
70
73
|
* otherwise one React retry chain can still create multiple orphan sessions.
|
|
71
74
|
*/
|
|
72
75
|
export declare const isPostMintGrantError: (error: unknown) => boolean;
|
|
76
|
+
declare const createAgentGrantResultSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
77
|
+
state: z.ZodEnum<{
|
|
78
|
+
active: "active";
|
|
79
|
+
preparing: "preparing";
|
|
80
|
+
}>;
|
|
81
|
+
grantId: z.ZodString;
|
|
82
|
+
expiresAt: z.ZodISODateTime;
|
|
83
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
84
|
+
grantId: z.ZodString;
|
|
85
|
+
expiresAt: z.ZodISODateTime;
|
|
86
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
87
|
+
state: "active";
|
|
88
|
+
grantId: string;
|
|
89
|
+
expiresAt: string;
|
|
90
|
+
}, {
|
|
91
|
+
grantId: string;
|
|
92
|
+
expiresAt: string;
|
|
93
|
+
}>>]>, z.ZodTransform<{
|
|
94
|
+
state: "active";
|
|
95
|
+
grantId: string;
|
|
96
|
+
expiresAt: string;
|
|
97
|
+
} | {
|
|
98
|
+
state: "active" | "preparing";
|
|
99
|
+
grantId: string;
|
|
100
|
+
expiresAt: string;
|
|
101
|
+
}, {
|
|
102
|
+
state: "active";
|
|
103
|
+
grantId: string;
|
|
104
|
+
expiresAt: string;
|
|
105
|
+
} | {
|
|
106
|
+
state: "active" | "preparing";
|
|
107
|
+
grantId: string;
|
|
108
|
+
expiresAt: string;
|
|
109
|
+
}>>;
|
|
110
|
+
export type CreateAgentGrantResult = z.infer<typeof createAgentGrantResultSchema>;
|
|
111
|
+
export type ReconcileAgentGrantRequestInput = {
|
|
112
|
+
readonly provider: string;
|
|
113
|
+
readonly scopeExternalId: string;
|
|
114
|
+
readonly reconnectId: string;
|
|
115
|
+
};
|
|
116
|
+
export type GrantReconcileOptions = GrantRetryOptions & {
|
|
117
|
+
readonly timeoutMs?: number;
|
|
118
|
+
readonly pollMs?: number;
|
|
119
|
+
};
|
|
120
|
+
export declare const replaceAgentGrantAfterReauthRequest: (api: ApiClient, input: Pick<CreateAgentGrantRequestInput, "provider" | "scopeExternalId">, options?: GrantRetryOptions) => Promise<CreateAgentGrantResult | AgentGrantStatusView>;
|
|
73
121
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* the server-side Redis coordinator still owns correctness across browsers and
|
|
78
|
-
* devices.
|
|
122
|
+
* Reinstall the sealed provider credential before considering a replacement
|
|
123
|
+
* mint. Polling is bounded by the backend reconnect deadline. Only an explicit
|
|
124
|
+
* `reauth_required` state may rotate the host JWT and spend one mint.
|
|
79
125
|
*/
|
|
80
|
-
export declare const
|
|
126
|
+
export declare const reconcileAgentGrantRequest: (api: ApiClient, input: ReconcileAgentGrantRequestInput, options?: GrantReconcileOptions) => Promise<AgentGrantStatusView | CreateAgentGrantResult>;
|
|
127
|
+
export declare const createAgentGrantRequest: (api: ApiClient, input: CreateAgentGrantRequestInput, opts?: GrantRetryOptions) => Promise<CreateAgentGrantResult | AgentGrantStatusView>;
|
|
81
128
|
/**
|
|
82
129
|
* BEL-79 fail-fast beacon: tell the backend a reactive reconnect has FAILED for
|
|
83
130
|
* good (after `createAgentGrantRequest`'s own forceRotate+retry), so the worker's
|
|
@@ -92,4 +139,41 @@ export declare const signalReconnectFailedRequest: (api: ApiClient, input: {
|
|
|
92
139
|
readonly scopeExternalId: string;
|
|
93
140
|
readonly reconnectId: string;
|
|
94
141
|
}) => Promise<void>;
|
|
95
|
-
export declare const useCreateAgentGrant: () => import('@tanstack/react-query').UseMutationResult<
|
|
142
|
+
export declare const useCreateAgentGrant: () => import('@tanstack/react-query').UseMutationResult<{
|
|
143
|
+
status: "none";
|
|
144
|
+
} | {
|
|
145
|
+
status: "active" | "expired" | "revoked" | "reauth_required" | "preparing" | "install_degraded";
|
|
146
|
+
grantId: string;
|
|
147
|
+
provider: string;
|
|
148
|
+
scopeExternalId: string;
|
|
149
|
+
grantedAt: string | null;
|
|
150
|
+
expiresAt: string | null;
|
|
151
|
+
installedAt: string | null;
|
|
152
|
+
} | {
|
|
153
|
+
state: "active";
|
|
154
|
+
grantId: string;
|
|
155
|
+
expiresAt: string;
|
|
156
|
+
} | {
|
|
157
|
+
state: "active" | "preparing";
|
|
158
|
+
grantId: string;
|
|
159
|
+
expiresAt: string;
|
|
160
|
+
}, Error, CreateAgentGrantRequestInput, unknown>;
|
|
161
|
+
export declare const useReplaceAgentGrantAfterReauth: () => import('@tanstack/react-query').UseMutationResult<{
|
|
162
|
+
status: "none";
|
|
163
|
+
} | {
|
|
164
|
+
status: "active" | "expired" | "revoked" | "reauth_required" | "preparing" | "install_degraded";
|
|
165
|
+
grantId: string;
|
|
166
|
+
provider: string;
|
|
167
|
+
scopeExternalId: string;
|
|
168
|
+
grantedAt: string | null;
|
|
169
|
+
expiresAt: string | null;
|
|
170
|
+
installedAt: string | null;
|
|
171
|
+
} | {
|
|
172
|
+
state: "active";
|
|
173
|
+
grantId: string;
|
|
174
|
+
expiresAt: string;
|
|
175
|
+
} | {
|
|
176
|
+
state: "active" | "preparing";
|
|
177
|
+
grantId: string;
|
|
178
|
+
expiresAt: string;
|
|
179
|
+
}, Error, Pick<CreateAgentGrantRequestInput, "provider" | "scopeExternalId">, unknown>;
|
package/dist/api/client.d.ts
CHANGED
|
@@ -1195,6 +1195,186 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1195
1195
|
};
|
|
1196
1196
|
};
|
|
1197
1197
|
};
|
|
1198
|
+
} & {
|
|
1199
|
+
v1: {
|
|
1200
|
+
questions: {
|
|
1201
|
+
":questionRequestId": {
|
|
1202
|
+
answer: import('hono/client').ClientRequest<string, "/v1/questions/:questionRequestId/answer", {
|
|
1203
|
+
$post: {
|
|
1204
|
+
input: {
|
|
1205
|
+
param: {
|
|
1206
|
+
questionRequestId: string;
|
|
1207
|
+
};
|
|
1208
|
+
} & {
|
|
1209
|
+
json: {
|
|
1210
|
+
answers: Record<string, {
|
|
1211
|
+
kind: "options";
|
|
1212
|
+
optionIds: string[];
|
|
1213
|
+
text?: string;
|
|
1214
|
+
} | {
|
|
1215
|
+
kind: "text";
|
|
1216
|
+
text: string;
|
|
1217
|
+
} | {
|
|
1218
|
+
kind: "skipped";
|
|
1219
|
+
}>;
|
|
1220
|
+
} | {
|
|
1221
|
+
reply: string;
|
|
1222
|
+
} | {
|
|
1223
|
+
dismissed: true;
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
output: {
|
|
1227
|
+
continuation?: {
|
|
1228
|
+
readonly messageId: import('node_modules/@belong/cloud/src/platform/ids').MessageId;
|
|
1229
|
+
readonly taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId;
|
|
1230
|
+
readonly runId: import('node_modules/@belong/cloud/src/platform/ids').RunId;
|
|
1231
|
+
readonly text: string;
|
|
1232
|
+
} | undefined;
|
|
1233
|
+
status: "accepted";
|
|
1234
|
+
questionStatus: import('node_modules/@belong/cloud/src/features/runs/run-event.types').QuestionState;
|
|
1235
|
+
};
|
|
1236
|
+
outputFormat: "json";
|
|
1237
|
+
status: 200;
|
|
1238
|
+
} | {
|
|
1239
|
+
input: {
|
|
1240
|
+
param: {
|
|
1241
|
+
questionRequestId: string;
|
|
1242
|
+
};
|
|
1243
|
+
} & {
|
|
1244
|
+
json: {
|
|
1245
|
+
answers: Record<string, {
|
|
1246
|
+
kind: "options";
|
|
1247
|
+
optionIds: string[];
|
|
1248
|
+
text?: string;
|
|
1249
|
+
} | {
|
|
1250
|
+
kind: "text";
|
|
1251
|
+
text: string;
|
|
1252
|
+
} | {
|
|
1253
|
+
kind: "skipped";
|
|
1254
|
+
}>;
|
|
1255
|
+
} | {
|
|
1256
|
+
reply: string;
|
|
1257
|
+
} | {
|
|
1258
|
+
dismissed: true;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
output: {
|
|
1262
|
+
error: {
|
|
1263
|
+
type: string;
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
outputFormat: "json";
|
|
1267
|
+
status: 404;
|
|
1268
|
+
} | {
|
|
1269
|
+
input: {
|
|
1270
|
+
param: {
|
|
1271
|
+
questionRequestId: string;
|
|
1272
|
+
};
|
|
1273
|
+
} & {
|
|
1274
|
+
json: {
|
|
1275
|
+
answers: Record<string, {
|
|
1276
|
+
kind: "options";
|
|
1277
|
+
optionIds: string[];
|
|
1278
|
+
text?: string;
|
|
1279
|
+
} | {
|
|
1280
|
+
kind: "text";
|
|
1281
|
+
text: string;
|
|
1282
|
+
} | {
|
|
1283
|
+
kind: "skipped";
|
|
1284
|
+
}>;
|
|
1285
|
+
} | {
|
|
1286
|
+
reply: string;
|
|
1287
|
+
} | {
|
|
1288
|
+
dismissed: true;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
output: {
|
|
1292
|
+
error: {
|
|
1293
|
+
reply?: string | undefined;
|
|
1294
|
+
answers?: {
|
|
1295
|
+
readonly [x: string]: {
|
|
1296
|
+
readonly kind: "options";
|
|
1297
|
+
readonly optionIds: readonly string[];
|
|
1298
|
+
readonly text?: string | undefined;
|
|
1299
|
+
} | {
|
|
1300
|
+
readonly kind: "text";
|
|
1301
|
+
readonly text: string;
|
|
1302
|
+
} | {
|
|
1303
|
+
readonly kind: "skipped";
|
|
1304
|
+
};
|
|
1305
|
+
} | undefined;
|
|
1306
|
+
type: string;
|
|
1307
|
+
questionStatus: import('node_modules/@belong/cloud/src/features/runs/run-event.types').QuestionState;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
outputFormat: "json";
|
|
1311
|
+
status: 409;
|
|
1312
|
+
} | {
|
|
1313
|
+
input: {
|
|
1314
|
+
param: {
|
|
1315
|
+
questionRequestId: string;
|
|
1316
|
+
};
|
|
1317
|
+
} & {
|
|
1318
|
+
json: {
|
|
1319
|
+
answers: Record<string, {
|
|
1320
|
+
kind: "options";
|
|
1321
|
+
optionIds: string[];
|
|
1322
|
+
text?: string;
|
|
1323
|
+
} | {
|
|
1324
|
+
kind: "text";
|
|
1325
|
+
text: string;
|
|
1326
|
+
} | {
|
|
1327
|
+
kind: "skipped";
|
|
1328
|
+
}>;
|
|
1329
|
+
} | {
|
|
1330
|
+
reply: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
dismissed: true;
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
output: {
|
|
1336
|
+
error: {
|
|
1337
|
+
type: string;
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
outputFormat: "json";
|
|
1341
|
+
status: 403;
|
|
1342
|
+
} | {
|
|
1343
|
+
input: {
|
|
1344
|
+
param: {
|
|
1345
|
+
questionRequestId: string;
|
|
1346
|
+
};
|
|
1347
|
+
} & {
|
|
1348
|
+
json: {
|
|
1349
|
+
answers: Record<string, {
|
|
1350
|
+
kind: "options";
|
|
1351
|
+
optionIds: string[];
|
|
1352
|
+
text?: string;
|
|
1353
|
+
} | {
|
|
1354
|
+
kind: "text";
|
|
1355
|
+
text: string;
|
|
1356
|
+
} | {
|
|
1357
|
+
kind: "skipped";
|
|
1358
|
+
}>;
|
|
1359
|
+
} | {
|
|
1360
|
+
reply: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
dismissed: true;
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
output: {
|
|
1366
|
+
error: {
|
|
1367
|
+
type: string;
|
|
1368
|
+
reason: string;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
outputFormat: "json";
|
|
1372
|
+
status: 400;
|
|
1373
|
+
};
|
|
1374
|
+
}>;
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1198
1378
|
} & {
|
|
1199
1379
|
v1: {
|
|
1200
1380
|
files: import('hono/client').ClientRequest<string, "/v1/files", {
|
|
@@ -3218,11 +3398,28 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3218
3398
|
};
|
|
3219
3399
|
};
|
|
3220
3400
|
output: {
|
|
3401
|
+
state: "active";
|
|
3221
3402
|
grantId: import('node_modules/@belong/cloud/src/platform/ids').AgentGrantId;
|
|
3222
3403
|
expiresAt: string;
|
|
3223
3404
|
};
|
|
3224
3405
|
outputFormat: "json";
|
|
3225
|
-
status:
|
|
3406
|
+
status: 200;
|
|
3407
|
+
} | {
|
|
3408
|
+
input: {
|
|
3409
|
+
json: {
|
|
3410
|
+
provider: string;
|
|
3411
|
+
scopeExternalId: string;
|
|
3412
|
+
sourceTrigger?: "reactive_reconnect" | "auto_connect" | "preemptive_refresh" | undefined;
|
|
3413
|
+
reconnectId?: string | undefined;
|
|
3414
|
+
};
|
|
3415
|
+
};
|
|
3416
|
+
output: {
|
|
3417
|
+
state: "preparing";
|
|
3418
|
+
grantId: import('node_modules/@belong/cloud/src/platform/ids').AgentGrantId;
|
|
3419
|
+
expiresAt: string;
|
|
3420
|
+
};
|
|
3421
|
+
outputFormat: "json";
|
|
3422
|
+
status: 202;
|
|
3226
3423
|
} | {
|
|
3227
3424
|
input: {
|
|
3228
3425
|
json: {
|
|
@@ -3375,6 +3572,22 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3375
3572
|
};
|
|
3376
3573
|
outputFormat: "json";
|
|
3377
3574
|
status: 502;
|
|
3575
|
+
} | {
|
|
3576
|
+
input: {
|
|
3577
|
+
json: {
|
|
3578
|
+
provider: string;
|
|
3579
|
+
scopeExternalId: string;
|
|
3580
|
+
sourceTrigger?: "reactive_reconnect" | "auto_connect" | "preemptive_refresh" | undefined;
|
|
3581
|
+
reconnectId?: string | undefined;
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
output: {
|
|
3585
|
+
error: {
|
|
3586
|
+
type: string;
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
outputFormat: "json";
|
|
3590
|
+
status: 500;
|
|
3378
3591
|
};
|
|
3379
3592
|
}>;
|
|
3380
3593
|
};
|
|
@@ -3402,12 +3615,13 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3402
3615
|
};
|
|
3403
3616
|
};
|
|
3404
3617
|
output: {
|
|
3405
|
-
status: "active" | "expired" | "revoked";
|
|
3618
|
+
status: "active" | "expired" | "revoked" | "reauth_required" | "preparing" | "install_degraded";
|
|
3406
3619
|
grantId: import('node_modules/@belong/cloud/src/platform/ids').AgentGrantId;
|
|
3407
3620
|
provider: string;
|
|
3408
3621
|
scopeExternalId: string;
|
|
3409
3622
|
grantedAt: string | null;
|
|
3410
3623
|
expiresAt: string | null;
|
|
3624
|
+
installedAt: string | null;
|
|
3411
3625
|
};
|
|
3412
3626
|
outputFormat: "json";
|
|
3413
3627
|
status: 200;
|
|
@@ -3415,6 +3629,92 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3415
3629
|
}>;
|
|
3416
3630
|
};
|
|
3417
3631
|
};
|
|
3632
|
+
} & {
|
|
3633
|
+
v1: {
|
|
3634
|
+
"agent-grants": {
|
|
3635
|
+
current: {
|
|
3636
|
+
reconcile: import('hono/client').ClientRequest<string, "/v1/agent-grants/current/reconcile", {
|
|
3637
|
+
$post: {
|
|
3638
|
+
input: {
|
|
3639
|
+
json: {
|
|
3640
|
+
provider: string;
|
|
3641
|
+
scopeExternalId: string;
|
|
3642
|
+
reconnectId: string;
|
|
3643
|
+
};
|
|
3644
|
+
};
|
|
3645
|
+
output: {
|
|
3646
|
+
state: "preparing";
|
|
3647
|
+
grantId: import('node_modules/@belong/cloud/src/platform/ids').AgentGrantId;
|
|
3648
|
+
expiresAt: string;
|
|
3649
|
+
};
|
|
3650
|
+
outputFormat: "json";
|
|
3651
|
+
status: 202;
|
|
3652
|
+
} | {
|
|
3653
|
+
input: {
|
|
3654
|
+
json: {
|
|
3655
|
+
provider: string;
|
|
3656
|
+
scopeExternalId: string;
|
|
3657
|
+
reconnectId: string;
|
|
3658
|
+
};
|
|
3659
|
+
};
|
|
3660
|
+
output: {
|
|
3661
|
+
state: "reauth_required";
|
|
3662
|
+
grantId: import('node_modules/@belong/cloud/src/platform/ids').AgentGrantId | null;
|
|
3663
|
+
expiresAt: string | null;
|
|
3664
|
+
};
|
|
3665
|
+
outputFormat: "json";
|
|
3666
|
+
status: 200;
|
|
3667
|
+
} | {
|
|
3668
|
+
input: {
|
|
3669
|
+
json: {
|
|
3670
|
+
provider: string;
|
|
3671
|
+
scopeExternalId: string;
|
|
3672
|
+
reconnectId: string;
|
|
3673
|
+
};
|
|
3674
|
+
};
|
|
3675
|
+
output: {
|
|
3676
|
+
error: {
|
|
3677
|
+
type: "reconcile_in_progress";
|
|
3678
|
+
retryAfterMs: number;
|
|
3679
|
+
};
|
|
3680
|
+
};
|
|
3681
|
+
outputFormat: "json";
|
|
3682
|
+
status: 409;
|
|
3683
|
+
} | {
|
|
3684
|
+
input: {
|
|
3685
|
+
json: {
|
|
3686
|
+
provider: string;
|
|
3687
|
+
scopeExternalId: string;
|
|
3688
|
+
reconnectId: string;
|
|
3689
|
+
};
|
|
3690
|
+
};
|
|
3691
|
+
output: {
|
|
3692
|
+
error: {
|
|
3693
|
+
type: string;
|
|
3694
|
+
};
|
|
3695
|
+
};
|
|
3696
|
+
outputFormat: "json";
|
|
3697
|
+
status: 503;
|
|
3698
|
+
} | {
|
|
3699
|
+
input: {
|
|
3700
|
+
json: {
|
|
3701
|
+
provider: string;
|
|
3702
|
+
scopeExternalId: string;
|
|
3703
|
+
reconnectId: string;
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
output: {
|
|
3707
|
+
error: {
|
|
3708
|
+
type: string;
|
|
3709
|
+
};
|
|
3710
|
+
};
|
|
3711
|
+
outputFormat: "json";
|
|
3712
|
+
status: 409;
|
|
3713
|
+
};
|
|
3714
|
+
}>;
|
|
3715
|
+
};
|
|
3716
|
+
};
|
|
3717
|
+
};
|
|
3418
3718
|
} & {
|
|
3419
3719
|
v1: {
|
|
3420
3720
|
"agent-grants": {
|
|
@@ -3673,6 +3973,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3673
3973
|
output: {
|
|
3674
3974
|
error: {
|
|
3675
3975
|
type: string;
|
|
3976
|
+
maxPendingSchedules: number;
|
|
3676
3977
|
};
|
|
3677
3978
|
};
|
|
3678
3979
|
outputFormat: "json";
|
|
@@ -3743,20 +4044,6 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3743
4044
|
anchorAt: string;
|
|
3744
4045
|
totalRunsCount: number;
|
|
3745
4046
|
updatedAt: string;
|
|
3746
|
-
microsoftTeamsDelivery: {
|
|
3747
|
-
expiresAt: string;
|
|
3748
|
-
destination: {
|
|
3749
|
-
kind: "chat";
|
|
3750
|
-
chatId: string;
|
|
3751
|
-
} | {
|
|
3752
|
-
kind: "channel";
|
|
3753
|
-
teamId: string;
|
|
3754
|
-
channelId: string;
|
|
3755
|
-
};
|
|
3756
|
-
status: import('../../../../apps/belong-cloud/src/features/microsoft/microsoft.schemas').MicrosoftTeamsMandateStatus;
|
|
3757
|
-
allowExternalRecipients: boolean;
|
|
3758
|
-
maxMessagesPerRun: number;
|
|
3759
|
-
} | null;
|
|
3760
4047
|
taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
|
|
3761
4048
|
title: string;
|
|
3762
4049
|
status: "active" | "completed" | "paused" | "deleted";
|
|
@@ -4216,7 +4503,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
4216
4503
|
};
|
|
4217
4504
|
};
|
|
4218
4505
|
output: {
|
|
4219
|
-
status: "active" | "completed"
|
|
4506
|
+
status: "active" | "completed";
|
|
4220
4507
|
nextRunAt: string | null;
|
|
4221
4508
|
};
|
|
4222
4509
|
outputFormat: "json";
|
|
@@ -4912,17 +5199,6 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
4912
5199
|
preview: boolean;
|
|
4913
5200
|
} | {
|
|
4914
5201
|
availability: "available";
|
|
4915
|
-
setupKind: "microsoft_teams";
|
|
4916
|
-
id: string;
|
|
4917
|
-
name: string;
|
|
4918
|
-
description: string;
|
|
4919
|
-
iconKey: string;
|
|
4920
|
-
category: string;
|
|
4921
|
-
featured: boolean;
|
|
4922
|
-
preview: boolean;
|
|
4923
|
-
} | {
|
|
4924
|
-
availability: "available";
|
|
4925
|
-
setupKind: "remote_mcp";
|
|
4926
5202
|
serverUrl: string;
|
|
4927
5203
|
serverUrlMode: "fixed" | "user_provided";
|
|
4928
5204
|
transport: "streamable_http" | "sse";
|
|
@@ -5467,70 +5743,6 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
5467
5743
|
}>;
|
|
5468
5744
|
};
|
|
5469
5745
|
};
|
|
5470
|
-
} & {
|
|
5471
|
-
v1: {
|
|
5472
|
-
microsoft: {
|
|
5473
|
-
oauth: {
|
|
5474
|
-
callback: import('hono/client').ClientRequest<string, "/v1/microsoft/oauth/callback", {
|
|
5475
|
-
$get: {
|
|
5476
|
-
input: {};
|
|
5477
|
-
output: {};
|
|
5478
|
-
outputFormat: string;
|
|
5479
|
-
status: import('hono/utils/http-status').StatusCode;
|
|
5480
|
-
};
|
|
5481
|
-
}>;
|
|
5482
|
-
};
|
|
5483
|
-
};
|
|
5484
|
-
};
|
|
5485
|
-
} & {
|
|
5486
|
-
v1: {
|
|
5487
|
-
microsoft: {
|
|
5488
|
-
connection: import('hono/client').ClientRequest<string, "/v1/microsoft/connection", {
|
|
5489
|
-
$get: {
|
|
5490
|
-
input: {};
|
|
5491
|
-
output: {};
|
|
5492
|
-
outputFormat: string;
|
|
5493
|
-
status: import('hono/utils/http-status').StatusCode;
|
|
5494
|
-
};
|
|
5495
|
-
$delete: {
|
|
5496
|
-
input: {};
|
|
5497
|
-
output: {};
|
|
5498
|
-
outputFormat: string;
|
|
5499
|
-
status: import('hono/utils/http-status').StatusCode;
|
|
5500
|
-
};
|
|
5501
|
-
}>;
|
|
5502
|
-
};
|
|
5503
|
-
};
|
|
5504
|
-
} & {
|
|
5505
|
-
v1: {
|
|
5506
|
-
microsoft: {
|
|
5507
|
-
oauth: {
|
|
5508
|
-
start: import('hono/client').ClientRequest<string, "/v1/microsoft/oauth/start", {
|
|
5509
|
-
$post: {
|
|
5510
|
-
input: {};
|
|
5511
|
-
output: {};
|
|
5512
|
-
outputFormat: string;
|
|
5513
|
-
status: import('hono/utils/http-status').StatusCode;
|
|
5514
|
-
};
|
|
5515
|
-
}>;
|
|
5516
|
-
};
|
|
5517
|
-
};
|
|
5518
|
-
};
|
|
5519
|
-
} & {
|
|
5520
|
-
v1: {
|
|
5521
|
-
microsoft: {
|
|
5522
|
-
"admin-consent": {
|
|
5523
|
-
start: import('hono/client').ClientRequest<string, "/v1/microsoft/admin-consent/start", {
|
|
5524
|
-
$post: {
|
|
5525
|
-
input: {};
|
|
5526
|
-
output: {};
|
|
5527
|
-
outputFormat: string;
|
|
5528
|
-
status: import('hono/utils/http-status').StatusCode;
|
|
5529
|
-
};
|
|
5530
|
-
}>;
|
|
5531
|
-
};
|
|
5532
|
-
};
|
|
5533
|
-
};
|
|
5534
5746
|
} & {
|
|
5535
5747
|
v1: {
|
|
5536
5748
|
admin: {
|
package/dist/api/connectors.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ export type ConnectorCatalogEntry = (ConnectorCatalogEntryBase & {
|
|
|
85
85
|
readonly availability: "coming_soon";
|
|
86
86
|
}) | (ConnectorCatalogEntryBase & {
|
|
87
87
|
readonly availability: "available";
|
|
88
|
-
readonly setupKind: "remote_mcp";
|
|
89
88
|
readonly serverUrl: string;
|
|
90
89
|
readonly serverUrlMode?: "fixed" | "user_provided";
|
|
91
90
|
readonly transport: ConnectorTransport;
|
|
@@ -94,17 +93,10 @@ export type ConnectorCatalogEntry = (ConnectorCatalogEntryBase & {
|
|
|
94
93
|
readonly oauthAuthorizationParams: Readonly<Record<string, string>> | null;
|
|
95
94
|
readonly oauthAppCredentialsRequired: boolean;
|
|
96
95
|
readonly documentationUrl: string;
|
|
97
|
-
}) | (ConnectorCatalogEntryBase & {
|
|
98
|
-
readonly availability: "available";
|
|
99
|
-
readonly setupKind: "microsoft_teams";
|
|
100
96
|
});
|
|
101
97
|
export type AvailableConnectorCatalogEntry = Extract<ConnectorCatalogEntry, {
|
|
102
98
|
readonly availability: "available";
|
|
103
99
|
}>;
|
|
104
|
-
export type AvailableRemoteConnectorCatalogEntry = Extract<ConnectorCatalogEntry, {
|
|
105
|
-
readonly availability: "available";
|
|
106
|
-
readonly setupKind: "remote_mcp";
|
|
107
|
-
}>;
|
|
108
100
|
/**
|
|
109
101
|
* The credential a CREATE sends.
|
|
110
102
|
*
|
package/dist/api/query-keys.d.ts
CHANGED
|
@@ -38,5 +38,4 @@ export declare const queryKeys: {
|
|
|
38
38
|
connectors: readonly ["belong", "connectors"];
|
|
39
39
|
connectorList: readonly ["belong", "connectors", "list"];
|
|
40
40
|
connectorCatalog: readonly ["belong", "connectors", "catalog"];
|
|
41
|
-
microsoftTeamsConnection: readonly ["belong", "microsoft-teams", "connection"];
|
|
42
41
|
};
|