@xpert-ai/contracts 3.25.0 → 3.26.1
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/index.cjs.js +215 -213
- package/index.esm.js +212 -213
- package/package.json +2 -2
- package/src/ai/assistant-template-manifest.model.d.ts +114 -114
- package/src/ai/chat.model.d.ts +3 -1
- package/src/ai/execution-activity.model.d.ts +30 -30
- package/src/ai/middleware.model.d.ts +3 -0
- package/src/ai/model-execution.model.d.ts +1 -1
- package/src/ai/project-pipeline/command-capability.schema.d.ts +19 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +33 -4
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/template-installation.model.d.ts +6 -4
- package/src/ai/template-lifecycle.model.d.ts +4 -4
- package/src/ai/xpert-template.model.d.ts +1 -1
- package/src/analytics-definition.model.d.ts +45 -0
- package/src/analytics-query.model.d.ts +8 -16
- package/src/analytics-source.model.d.ts +16 -0
- package/src/index.d.ts +2 -0
- package/src/integration/github.d.ts +4 -6
- package/src/integration/index.d.ts +1 -0
- package/src/view-extension/index.d.ts +1 -0
- package/src/view-extension/workspace-connector.d.ts +42 -0
package/src/ai/chat.model.d.ts
CHANGED
|
@@ -137,10 +137,12 @@ export type TChatThreadMetadata = {
|
|
|
137
137
|
title?: string;
|
|
138
138
|
primary?: boolean;
|
|
139
139
|
purpose?: TChatThreadPurpose;
|
|
140
|
-
/** Graph revision
|
|
140
|
+
/** Graph revision captured for a fork; cleared after the first successful run. */
|
|
141
141
|
forkGraphRevision?: string;
|
|
142
142
|
/** Client-provided idempotency key for branch creation. */
|
|
143
143
|
forkRequestId?: string;
|
|
144
|
+
/** Explicit copy semantics for validating idempotent retries. */
|
|
145
|
+
forkMode?: 'latest-sealed-reply';
|
|
144
146
|
[key: string]: unknown;
|
|
145
147
|
};
|
|
146
148
|
export type TToolCallType = 'agent' | 'tool';
|
|
@@ -18,11 +18,11 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
18
18
|
kind: z.ZodLiteral<"message">;
|
|
19
19
|
text: z.ZodString;
|
|
20
20
|
}, "strict", z.ZodTypeAny, {
|
|
21
|
-
text?: string;
|
|
22
21
|
kind?: "message";
|
|
23
|
-
}, {
|
|
24
22
|
text?: string;
|
|
23
|
+
}, {
|
|
25
24
|
kind?: "message";
|
|
25
|
+
text?: string;
|
|
26
26
|
}>, z.ZodObject<{
|
|
27
27
|
kind: z.ZodLiteral<"tool">;
|
|
28
28
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -91,9 +91,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
91
91
|
}, "strict", z.ZodTypeAny, {
|
|
92
92
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
93
93
|
name?: string;
|
|
94
|
+
kind?: "tool";
|
|
94
95
|
input?: string;
|
|
95
96
|
output?: string;
|
|
96
|
-
kind?: "tool";
|
|
97
97
|
detail?: {
|
|
98
98
|
type?: "command";
|
|
99
99
|
command?: string;
|
|
@@ -116,9 +116,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
116
116
|
}, {
|
|
117
117
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
118
118
|
name?: string;
|
|
119
|
+
kind?: "tool";
|
|
119
120
|
input?: string;
|
|
120
121
|
output?: string;
|
|
121
|
-
kind?: "tool";
|
|
122
122
|
detail?: {
|
|
123
123
|
type?: "command";
|
|
124
124
|
command?: string;
|
|
@@ -143,25 +143,25 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
143
143
|
code: z.ZodString;
|
|
144
144
|
text: z.ZodString;
|
|
145
145
|
}, "strict", z.ZodTypeAny, {
|
|
146
|
+
kind?: "diagnostic";
|
|
146
147
|
code?: string;
|
|
147
148
|
text?: string;
|
|
148
|
-
kind?: "diagnostic";
|
|
149
149
|
}, {
|
|
150
|
+
kind?: "diagnostic";
|
|
150
151
|
code?: string;
|
|
151
152
|
text?: string;
|
|
152
|
-
kind?: "diagnostic";
|
|
153
153
|
}>]>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
155
|
id?: string;
|
|
156
156
|
content?: {
|
|
157
|
-
text?: string;
|
|
158
157
|
kind?: "message";
|
|
158
|
+
text?: string;
|
|
159
159
|
} | {
|
|
160
160
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
161
161
|
name?: string;
|
|
162
|
+
kind?: "tool";
|
|
162
163
|
input?: string;
|
|
163
164
|
output?: string;
|
|
164
|
-
kind?: "tool";
|
|
165
165
|
detail?: {
|
|
166
166
|
type?: "command";
|
|
167
167
|
command?: string;
|
|
@@ -182,22 +182,22 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
182
182
|
key?: string;
|
|
183
183
|
};
|
|
184
184
|
} | {
|
|
185
|
+
kind?: "diagnostic";
|
|
185
186
|
code?: string;
|
|
186
187
|
text?: string;
|
|
187
|
-
kind?: "diagnostic";
|
|
188
188
|
};
|
|
189
189
|
occurredAt?: string;
|
|
190
190
|
}, {
|
|
191
191
|
id?: string;
|
|
192
192
|
content?: {
|
|
193
|
-
text?: string;
|
|
194
193
|
kind?: "message";
|
|
194
|
+
text?: string;
|
|
195
195
|
} | {
|
|
196
196
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
197
197
|
name?: string;
|
|
198
|
+
kind?: "tool";
|
|
198
199
|
input?: string;
|
|
199
200
|
output?: string;
|
|
200
|
-
kind?: "tool";
|
|
201
201
|
detail?: {
|
|
202
202
|
type?: "command";
|
|
203
203
|
command?: string;
|
|
@@ -218,9 +218,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
|
|
|
218
218
|
key?: string;
|
|
219
219
|
};
|
|
220
220
|
} | {
|
|
221
|
+
kind?: "diagnostic";
|
|
221
222
|
code?: string;
|
|
222
223
|
text?: string;
|
|
223
|
-
kind?: "diagnostic";
|
|
224
224
|
};
|
|
225
225
|
occurredAt?: string;
|
|
226
226
|
}>;
|
|
@@ -233,11 +233,11 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
233
233
|
kind: z.ZodLiteral<"message">;
|
|
234
234
|
text: z.ZodString;
|
|
235
235
|
}, "strict", z.ZodTypeAny, {
|
|
236
|
-
text?: string;
|
|
237
236
|
kind?: "message";
|
|
238
|
-
}, {
|
|
239
237
|
text?: string;
|
|
238
|
+
}, {
|
|
240
239
|
kind?: "message";
|
|
240
|
+
text?: string;
|
|
241
241
|
}>, z.ZodObject<{
|
|
242
242
|
kind: z.ZodLiteral<"tool">;
|
|
243
243
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -306,9 +306,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
306
306
|
}, "strict", z.ZodTypeAny, {
|
|
307
307
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
308
308
|
name?: string;
|
|
309
|
+
kind?: "tool";
|
|
309
310
|
input?: string;
|
|
310
311
|
output?: string;
|
|
311
|
-
kind?: "tool";
|
|
312
312
|
detail?: {
|
|
313
313
|
type?: "command";
|
|
314
314
|
command?: string;
|
|
@@ -331,9 +331,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
331
331
|
}, {
|
|
332
332
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
333
333
|
name?: string;
|
|
334
|
+
kind?: "tool";
|
|
334
335
|
input?: string;
|
|
335
336
|
output?: string;
|
|
336
|
-
kind?: "tool";
|
|
337
337
|
detail?: {
|
|
338
338
|
type?: "command";
|
|
339
339
|
command?: string;
|
|
@@ -358,25 +358,25 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
358
358
|
code: z.ZodString;
|
|
359
359
|
text: z.ZodString;
|
|
360
360
|
}, "strict", z.ZodTypeAny, {
|
|
361
|
+
kind?: "diagnostic";
|
|
361
362
|
code?: string;
|
|
362
363
|
text?: string;
|
|
363
|
-
kind?: "diagnostic";
|
|
364
364
|
}, {
|
|
365
|
+
kind?: "diagnostic";
|
|
365
366
|
code?: string;
|
|
366
367
|
text?: string;
|
|
367
|
-
kind?: "diagnostic";
|
|
368
368
|
}>]>;
|
|
369
369
|
}, "strict", z.ZodTypeAny, {
|
|
370
370
|
id?: string;
|
|
371
371
|
content?: {
|
|
372
|
-
text?: string;
|
|
373
372
|
kind?: "message";
|
|
373
|
+
text?: string;
|
|
374
374
|
} | {
|
|
375
375
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
376
376
|
name?: string;
|
|
377
|
+
kind?: "tool";
|
|
377
378
|
input?: string;
|
|
378
379
|
output?: string;
|
|
379
|
-
kind?: "tool";
|
|
380
380
|
detail?: {
|
|
381
381
|
type?: "command";
|
|
382
382
|
command?: string;
|
|
@@ -397,22 +397,22 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
397
397
|
key?: string;
|
|
398
398
|
};
|
|
399
399
|
} | {
|
|
400
|
+
kind?: "diagnostic";
|
|
400
401
|
code?: string;
|
|
401
402
|
text?: string;
|
|
402
|
-
kind?: "diagnostic";
|
|
403
403
|
};
|
|
404
404
|
occurredAt?: string;
|
|
405
405
|
}, {
|
|
406
406
|
id?: string;
|
|
407
407
|
content?: {
|
|
408
|
-
text?: string;
|
|
409
408
|
kind?: "message";
|
|
409
|
+
text?: string;
|
|
410
410
|
} | {
|
|
411
411
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
412
412
|
name?: string;
|
|
413
|
+
kind?: "tool";
|
|
413
414
|
input?: string;
|
|
414
415
|
output?: string;
|
|
415
|
-
kind?: "tool";
|
|
416
416
|
detail?: {
|
|
417
417
|
type?: "command";
|
|
418
418
|
command?: string;
|
|
@@ -433,9 +433,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
433
433
|
key?: string;
|
|
434
434
|
};
|
|
435
435
|
} | {
|
|
436
|
+
kind?: "diagnostic";
|
|
436
437
|
code?: string;
|
|
437
438
|
text?: string;
|
|
438
|
-
kind?: "diagnostic";
|
|
439
439
|
};
|
|
440
440
|
occurredAt?: string;
|
|
441
441
|
}>, "many">;
|
|
@@ -448,14 +448,14 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
448
448
|
items?: {
|
|
449
449
|
id?: string;
|
|
450
450
|
content?: {
|
|
451
|
-
text?: string;
|
|
452
451
|
kind?: "message";
|
|
452
|
+
text?: string;
|
|
453
453
|
} | {
|
|
454
454
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
455
455
|
name?: string;
|
|
456
|
+
kind?: "tool";
|
|
456
457
|
input?: string;
|
|
457
458
|
output?: string;
|
|
458
|
-
kind?: "tool";
|
|
459
459
|
detail?: {
|
|
460
460
|
type?: "command";
|
|
461
461
|
command?: string;
|
|
@@ -476,9 +476,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
476
476
|
key?: string;
|
|
477
477
|
};
|
|
478
478
|
} | {
|
|
479
|
+
kind?: "diagnostic";
|
|
479
480
|
code?: string;
|
|
480
481
|
text?: string;
|
|
481
|
-
kind?: "diagnostic";
|
|
482
482
|
};
|
|
483
483
|
occurredAt?: string;
|
|
484
484
|
}[];
|
|
@@ -490,14 +490,14 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
490
490
|
items?: {
|
|
491
491
|
id?: string;
|
|
492
492
|
content?: {
|
|
493
|
-
text?: string;
|
|
494
493
|
kind?: "message";
|
|
494
|
+
text?: string;
|
|
495
495
|
} | {
|
|
496
496
|
status?: "failed" | "unknown" | "succeeded" | "running";
|
|
497
497
|
name?: string;
|
|
498
|
+
kind?: "tool";
|
|
498
499
|
input?: string;
|
|
499
500
|
output?: string;
|
|
500
|
-
kind?: "tool";
|
|
501
501
|
detail?: {
|
|
502
502
|
type?: "command";
|
|
503
503
|
command?: string;
|
|
@@ -518,9 +518,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
|
|
|
518
518
|
key?: string;
|
|
519
519
|
};
|
|
520
520
|
} | {
|
|
521
|
+
kind?: "diagnostic";
|
|
521
522
|
code?: string;
|
|
522
523
|
text?: string;
|
|
523
|
-
kind?: "diagnostic";
|
|
524
524
|
};
|
|
525
525
|
occurredAt?: string;
|
|
526
526
|
}[];
|
|
@@ -13,6 +13,7 @@ export interface IWFNMiddleware extends IWorkflowNode {
|
|
|
13
13
|
* Required middlewares are always loaded at runtime and hidden from user-facing runtime selectors.
|
|
14
14
|
*/
|
|
15
15
|
required?: boolean;
|
|
16
|
+
/** Omission uses an empty configuration; explicit values are validated by the middleware. */
|
|
16
17
|
options?: Record<string, any>;
|
|
17
18
|
tools?: Record<string, TMiddlewareToolConfig | boolean>;
|
|
18
19
|
}
|
|
@@ -21,6 +22,8 @@ export type TMiddlewareToolConfig = {
|
|
|
21
22
|
};
|
|
22
23
|
export declare function isMiddlewareToolEnabled(config?: TMiddlewareToolConfig | boolean): boolean;
|
|
23
24
|
export declare function isRequiredMiddleware(entity?: Pick<IWFNMiddleware, 'required'> | null): boolean;
|
|
25
|
+
/** Default only omitted options. Preserve null and other invalid values for provider validation. */
|
|
26
|
+
export declare function normalizeMiddlewareOptions<T>(options: T | undefined): T | Record<string, never>;
|
|
24
27
|
export declare function genXpertMiddlewareKey(): string;
|
|
25
28
|
export declare function normalizeMiddlewareProvider(provider?: string | null): string;
|
|
26
29
|
export declare function normalizeMiddlewareNode<T extends TXpertTeamNode>(node: T): T;
|
|
@@ -91,7 +91,7 @@ export type ModelExecutionPolicy = {
|
|
|
91
91
|
/** Explicit, limited Chat Completions translations; never advertised as native support. */
|
|
92
92
|
chatBridgeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
|
|
93
93
|
limits: ModelExecutionLimits;
|
|
94
|
-
/**
|
|
94
|
+
/** Background Coding and Computer Codex launches; evidence-only reviews remain restricted. */
|
|
95
95
|
cliPermissions?: {
|
|
96
96
|
defaultMode: CliPermissionMode;
|
|
97
97
|
overrides: Record<string, CliPermissionMode>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
/** Credential support for durable pipeline commands; Project permissions remain independently required. */
|
|
3
|
+
export declare const projectPipelineCommandCapabilitySchema: z.ZodDiscriminatedUnion<"allowed", [z.ZodObject<{
|
|
4
|
+
allowed: z.ZodLiteral<true>;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
allowed: true;
|
|
7
|
+
}, {
|
|
8
|
+
allowed: true;
|
|
9
|
+
}>, z.ZodObject<{
|
|
10
|
+
allowed: z.ZodLiteral<false>;
|
|
11
|
+
reason: z.ZodLiteral<"PIPELINE_SCOPED_DELEGATION_UNAVAILABLE">;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
14
|
+
allowed: false;
|
|
15
|
+
}, {
|
|
16
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
17
|
+
allowed: false;
|
|
18
|
+
}>]>;
|
|
19
|
+
export type ProjectPipelineCommandCapability = z.output<typeof projectPipelineCommandCapabilitySchema>;
|
|
@@ -1438,13 +1438,13 @@ export declare const projectPipelineCatalogConfigureSchema: z.ZodObject<{
|
|
|
1438
1438
|
}>;
|
|
1439
1439
|
export type ProjectPipelineCatalogConfigure = z.output<typeof projectPipelineCatalogConfigureSchema>;
|
|
1440
1440
|
/** Catalog wire format; independent of the definition's execution protocol requirements. */
|
|
1441
|
-
export declare const projectPipelineCatalogProtocolSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
1441
|
+
export declare const projectPipelineCatalogProtocolSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
1442
1442
|
export declare const projectPipelineCatalogRequestSchema: z.ZodObject<{
|
|
1443
|
-
protocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
1443
|
+
protocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1444
1444
|
}, "strict", z.ZodTypeAny, {
|
|
1445
|
-
protocol?: 1 | 2 | undefined;
|
|
1445
|
+
protocol?: 1 | 3 | 2 | undefined;
|
|
1446
1446
|
}, {
|
|
1447
|
-
protocol?: 1 | 2 | undefined;
|
|
1447
|
+
protocol?: 1 | 3 | 2 | undefined;
|
|
1448
1448
|
}>;
|
|
1449
1449
|
export type ProjectPipelineCatalogRequest = z.output<typeof projectPipelineCatalogRequestSchema>;
|
|
1450
1450
|
export declare function canReadProjectPipelineConfiguration(configuration: ProjectPipelineConfiguration, request: ProjectPipelineCatalogRequest, form?: ProjectPipelineConfigurationForm): boolean;
|
|
@@ -1459,6 +1459,23 @@ export declare const projectPipelineCatalogSchema: z.ZodObject<{
|
|
|
1459
1459
|
features: Record<string, number[]>;
|
|
1460
1460
|
protocols: number[];
|
|
1461
1461
|
}>>;
|
|
1462
|
+
/** Protocol 3 support for saving configuration; does not grant permission to execute a pipeline. */
|
|
1463
|
+
commandCapability: z.ZodOptional<z.ZodDiscriminatedUnion<"allowed", [z.ZodObject<{
|
|
1464
|
+
allowed: z.ZodLiteral<true>;
|
|
1465
|
+
}, "strict", z.ZodTypeAny, {
|
|
1466
|
+
allowed: true;
|
|
1467
|
+
}, {
|
|
1468
|
+
allowed: true;
|
|
1469
|
+
}>, z.ZodObject<{
|
|
1470
|
+
allowed: z.ZodLiteral<false>;
|
|
1471
|
+
reason: z.ZodLiteral<"PIPELINE_SCOPED_DELEGATION_UNAVAILABLE">;
|
|
1472
|
+
}, "strict", z.ZodTypeAny, {
|
|
1473
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
1474
|
+
allowed: false;
|
|
1475
|
+
}, {
|
|
1476
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
1477
|
+
allowed: false;
|
|
1478
|
+
}>]>>;
|
|
1462
1479
|
canManage: z.ZodBoolean;
|
|
1463
1480
|
items: z.ZodArray<z.ZodObject<{
|
|
1464
1481
|
contributionKey: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -7430,6 +7447,12 @@ export declare const projectPipelineCatalogSchema: z.ZodObject<{
|
|
|
7430
7447
|
features: Record<string, number[]>;
|
|
7431
7448
|
protocols: number[];
|
|
7432
7449
|
} | undefined;
|
|
7450
|
+
commandCapability?: {
|
|
7451
|
+
allowed: true;
|
|
7452
|
+
} | {
|
|
7453
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
7454
|
+
allowed: false;
|
|
7455
|
+
} | undefined;
|
|
7433
7456
|
runtimeBindings?: {
|
|
7434
7457
|
provider: string;
|
|
7435
7458
|
title: string;
|
|
@@ -7892,6 +7915,12 @@ export declare const projectPipelineCatalogSchema: z.ZodObject<{
|
|
|
7892
7915
|
features: Record<string, number[]>;
|
|
7893
7916
|
protocols: number[];
|
|
7894
7917
|
} | undefined;
|
|
7918
|
+
commandCapability?: {
|
|
7919
|
+
allowed: true;
|
|
7920
|
+
} | {
|
|
7921
|
+
reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
|
|
7922
|
+
allowed: false;
|
|
7923
|
+
} | undefined;
|
|
7895
7924
|
runtimeBindings?: {
|
|
7896
7925
|
provider: string;
|
|
7897
7926
|
title: string;
|
|
@@ -12,6 +12,7 @@ export * from './operation.schema';
|
|
|
12
12
|
export * from './commands.schema';
|
|
13
13
|
export * from './statistics';
|
|
14
14
|
export * from './configuration-form';
|
|
15
|
+
export * from './command-capability.schema';
|
|
15
16
|
export * from './provider-actions.schema';
|
|
16
17
|
export * from './execution-statistics';
|
|
17
18
|
export * from './model-usage-statistics';
|
|
@@ -33,6 +33,8 @@ export interface TemplateInstallation {
|
|
|
33
33
|
stage: TemplateInstallationStage;
|
|
34
34
|
attempt: number;
|
|
35
35
|
assistantId: string | null;
|
|
36
|
+
/** Current authoring access to the target, independent of the historical installation result. Absent on older servers. */
|
|
37
|
+
assistantAvailability?: 'available' | 'unavailable';
|
|
36
38
|
publish: boolean;
|
|
37
39
|
retryable: boolean;
|
|
38
40
|
error: {
|
|
@@ -82,11 +84,11 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
82
84
|
kind: z.ZodEnum<["middleware", "sandbox", "toolset"]>;
|
|
83
85
|
key: z.ZodString;
|
|
84
86
|
}, "strict", z.ZodTypeAny, {
|
|
85
|
-
key?: string;
|
|
86
87
|
kind?: "middleware" | "toolset" | "sandbox";
|
|
87
|
-
}, {
|
|
88
88
|
key?: string;
|
|
89
|
+
}, {
|
|
89
90
|
kind?: "middleware" | "toolset" | "sandbox";
|
|
91
|
+
key?: string;
|
|
90
92
|
}>, "many">>;
|
|
91
93
|
components: z.ZodArray<z.ZodObject<{
|
|
92
94
|
type: z.ZodEnum<["skill", "mcp_server", "toolset", "app", "hook", "asset"]>;
|
|
@@ -118,8 +120,8 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
118
120
|
pluginName?: string;
|
|
119
121
|
requiredVersion?: string;
|
|
120
122
|
providers?: {
|
|
121
|
-
key?: string;
|
|
122
123
|
kind?: "middleware" | "toolset" | "sandbox";
|
|
124
|
+
key?: string;
|
|
123
125
|
}[];
|
|
124
126
|
}, {
|
|
125
127
|
version?: string;
|
|
@@ -138,8 +140,8 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
|
|
|
138
140
|
pluginName?: string;
|
|
139
141
|
requiredVersion?: string;
|
|
140
142
|
providers?: {
|
|
141
|
-
key?: string;
|
|
142
143
|
kind?: "middleware" | "toolset" | "sandbox";
|
|
144
|
+
key?: string;
|
|
143
145
|
}[];
|
|
144
146
|
}>, "many">;
|
|
145
147
|
export type TemplateDependencyLock = z.output<typeof templateDependencyLocksSchema>[number];
|
|
@@ -7,15 +7,15 @@ export declare const templatePublicationInputSchema: z.ZodObject<{
|
|
|
7
7
|
releaseNotes: z.ZodDefault<z.ZodString>;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
version?: string;
|
|
10
|
+
visibility?: "public" | "team";
|
|
10
11
|
revision?: string;
|
|
11
12
|
contentHash?: string;
|
|
12
|
-
visibility?: "public" | "team";
|
|
13
13
|
releaseNotes?: string;
|
|
14
14
|
}, {
|
|
15
15
|
version?: string;
|
|
16
|
+
visibility?: "public" | "team";
|
|
16
17
|
revision?: string;
|
|
17
18
|
contentHash?: string;
|
|
18
|
-
visibility?: "public" | "team";
|
|
19
19
|
releaseNotes?: string;
|
|
20
20
|
}>;
|
|
21
21
|
export type TemplatePublicationInput = z.output<typeof templatePublicationInputSchema>;
|
|
@@ -43,12 +43,12 @@ export declare const templateUpgradeInputSchema: z.ZodObject<{
|
|
|
43
43
|
revision?: string;
|
|
44
44
|
sourceHash?: string;
|
|
45
45
|
targetTemplateId?: string;
|
|
46
|
-
choices?: Partial<Record<"
|
|
46
|
+
choices?: Partial<Record<"definition" | "runtime" | "instructions" | "presentation", "replace" | "keep">>;
|
|
47
47
|
}, {
|
|
48
48
|
revision?: string;
|
|
49
49
|
sourceHash?: string;
|
|
50
50
|
targetTemplateId?: string;
|
|
51
|
-
choices?: Partial<Record<"
|
|
51
|
+
choices?: Partial<Record<"definition" | "runtime" | "instructions" | "presentation", "replace" | "keep">>;
|
|
52
52
|
}>;
|
|
53
53
|
export type TemplateUpgradeInput = z.output<typeof templateUpgradeInputSchema>;
|
|
54
54
|
export interface TemplateUpgradeSource {
|
|
@@ -136,7 +136,7 @@ export interface XpertTemplateModelOption extends ModelSelectionMetadata {
|
|
|
136
136
|
}
|
|
137
137
|
export interface XpertTemplateSetup {
|
|
138
138
|
readiness?: TemplateReadiness;
|
|
139
|
-
/** ID of
|
|
139
|
+
/** ID of an eligible existing binding or organization/tenant default in `models`; absent if none qualifies. */
|
|
140
140
|
defaultModelId?: string;
|
|
141
141
|
realtimeModels?: import('./realtime-voice.model').RealtimeModelOption[];
|
|
142
142
|
requiresModel?: boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AnalyticsProviderDescriptor } from './analytics-query.model';
|
|
2
|
+
import type { JSONValue } from './core.model';
|
|
3
|
+
/** Configuration is owned by a provider; bindings contain only immutable source identities. */
|
|
4
|
+
export type AnalyticsConfigurationEntry = {
|
|
5
|
+
kind: 'definition';
|
|
6
|
+
schema: Record<string, JSONValue>;
|
|
7
|
+
connection: 'workspace-files' | 'rest-toolset' | 'mcp-toolset' | 'integration';
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'artifact';
|
|
10
|
+
pluginName: string;
|
|
11
|
+
resourceType: string;
|
|
12
|
+
registrationTool: string;
|
|
13
|
+
};
|
|
14
|
+
export interface AnalyticsConfigurableProvider {
|
|
15
|
+
descriptor: AnalyticsProviderDescriptor;
|
|
16
|
+
configuration: AnalyticsConfigurationEntry;
|
|
17
|
+
}
|
|
18
|
+
export interface IAnalyticsDefinition {
|
|
19
|
+
id: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
organizationId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
providerId: string;
|
|
25
|
+
visibility: 'private' | 'organization';
|
|
26
|
+
status: 'active' | 'archived';
|
|
27
|
+
currentVersionId: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface IAnalyticsDefinitionVersion {
|
|
30
|
+
id: string;
|
|
31
|
+
definitionId: string;
|
|
32
|
+
versionNumber: number;
|
|
33
|
+
options: Record<string, JSONValue>;
|
|
34
|
+
sha256: string;
|
|
35
|
+
}
|
|
36
|
+
export interface AnalyticsDefinitionCreate {
|
|
37
|
+
name: string;
|
|
38
|
+
providerId: string;
|
|
39
|
+
visibility: IAnalyticsDefinition['visibility'];
|
|
40
|
+
options: Record<string, JSONValue>;
|
|
41
|
+
}
|
|
42
|
+
export interface AnalyticsDefinitionPublish {
|
|
43
|
+
expectedCurrentVersionId: string;
|
|
44
|
+
options: Record<string, JSONValue>;
|
|
45
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AnalyticsSourceRef } from './analytics-source.model';
|
|
1
2
|
import type { JSONValue } from './core.model';
|
|
2
3
|
/** JSON-safe scalar shared by cells and controls; nested objects/arrays are not dataset cells. */
|
|
3
4
|
export type AnalyticsValue = string | number | boolean | null;
|
|
@@ -48,12 +49,10 @@ export interface AnalyticsParameter {
|
|
|
48
49
|
* Renderers consume the normalized Dataset, never execute payload or handle source credentials.
|
|
49
50
|
*/
|
|
50
51
|
export interface AnalyticsBinding {
|
|
51
|
-
/** Version of this shared envelope, separate from the provider operation's contractVersion. */
|
|
52
|
-
schemaVersion: 1;
|
|
53
52
|
/** Binding identity used for lookup and result provenance. */
|
|
54
53
|
id: string;
|
|
55
|
-
/**
|
|
56
|
-
|
|
54
|
+
/** Exact governed resource; access is rechecked for the current actor on each execution. */
|
|
55
|
+
source: AnalyticsSourceRef;
|
|
57
56
|
/** Registered provider descriptor ID, not a display name or database engine switch. */
|
|
58
57
|
providerId: string;
|
|
59
58
|
/** Must match a read-only operation advertised by the provider. */
|
|
@@ -73,7 +72,7 @@ export interface AnalyticsQueryRequest {
|
|
|
73
72
|
}
|
|
74
73
|
/** Canonical, provider-independent result; consumers must inspect completeness before presenting totals. */
|
|
75
74
|
export interface AnalyticalDataset {
|
|
76
|
-
schema: 'xpert.analytics.dataset
|
|
75
|
+
schema: 'xpert.analytics.dataset';
|
|
77
76
|
datasetId: string;
|
|
78
77
|
/** Preserved even when rows is empty, so renderers can retain bindings and labels. */
|
|
79
78
|
fields: AnalyticsField[];
|
|
@@ -119,7 +118,8 @@ export interface AnalyticsProviderDescriptor {
|
|
|
119
118
|
id: string;
|
|
120
119
|
name: string;
|
|
121
120
|
/** Exact platform DataSource.type identifiers supported by this provider. */
|
|
122
|
-
dataSourceTypes
|
|
121
|
+
dataSourceTypes?: string[];
|
|
122
|
+
sourceKinds: AnalyticsSourceRef['kind'][];
|
|
123
123
|
/** Supported operation/version pairs; providers must enforce read-only behavior at the source. */
|
|
124
124
|
operations: Array<{
|
|
125
125
|
name: string;
|
|
@@ -131,30 +131,22 @@ export interface AnalyticsProviderDescriptor {
|
|
|
131
131
|
mode: 'viewer_permissions' | 'owner_only';
|
|
132
132
|
reasonCode?: string;
|
|
133
133
|
};
|
|
134
|
-
/** Optional new source type and configuration schema, never connection values; omit for existing types. */
|
|
135
|
-
connectionType?: {
|
|
136
|
-
type: string;
|
|
137
|
-
name: string;
|
|
138
|
-
configuration: Record<string, JSONValue>;
|
|
139
|
-
};
|
|
140
134
|
}
|
|
141
135
|
/** Discoverable source and available providers for the current actor; contains no connection options. */
|
|
142
136
|
export interface AnalyticsSourceSummary {
|
|
143
|
-
|
|
137
|
+
source: AnalyticsSourceRef;
|
|
144
138
|
name: string;
|
|
145
|
-
type: string;
|
|
146
139
|
providers: AnalyticsProviderDescriptor[];
|
|
147
140
|
}
|
|
148
141
|
/** Read-only catalog navigation; continuation data is provider-owned and never grants authorization. */
|
|
149
142
|
export interface AnalyticsDiscoveryRequest {
|
|
150
|
-
|
|
143
|
+
source: AnalyticsSourceRef;
|
|
151
144
|
providerId: string;
|
|
152
145
|
/** Initial provider request or a returned inspectRequest/nextRequest, forwarded without interpretation. */
|
|
153
146
|
request: JSONValue;
|
|
154
147
|
}
|
|
155
148
|
/** Bounded discovery page plus the native query contract needed by an Agent or query builder. */
|
|
156
149
|
export interface AnalyticsDiscoveryResult {
|
|
157
|
-
schemaVersion: 1;
|
|
158
150
|
items: Array<{
|
|
159
151
|
/** Provider-local resource identity; need not be a platform entity UUID. */
|
|
160
152
|
id: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** References are identities, never credentials, actor scope or mutable latest pointers. */
|
|
2
|
+
export type AnalyticsSourceRef = {
|
|
3
|
+
kind: 'data-source';
|
|
4
|
+
dataSourceId: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'definition';
|
|
7
|
+
definitionId: string;
|
|
8
|
+
versionId: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'artifact';
|
|
11
|
+
artifactId: string;
|
|
12
|
+
versionId: string;
|
|
13
|
+
};
|
|
14
|
+
export type AnalyticsVersionedSourceRef = Exclude<AnalyticsSourceRef, {
|
|
15
|
+
kind: 'data-source';
|
|
16
|
+
}>;
|
package/src/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './custom-smtp.model';
|
|
|
44
44
|
export * from './date-picker.model';
|
|
45
45
|
export * from './data-source.model';
|
|
46
46
|
export * from './analytics-query.model';
|
|
47
|
+
export * from './analytics-source.model';
|
|
47
48
|
export * from './data-source-type.model';
|
|
48
49
|
export * from './integration.model';
|
|
49
50
|
export * from './invite.model';
|
|
@@ -76,3 +77,4 @@ export * from './default-agent-plugins';
|
|
|
76
77
|
export * from './agent-plugin-maintenance';
|
|
77
78
|
export * from './assistant-sharing.model';
|
|
78
79
|
export * from './artifact-presentation.model';
|
|
80
|
+
export * from './analytics-definition.model';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Endpoints } from
|
|
2
|
-
import { TIntegrationProvider } from '../integration.model';
|
|
3
|
-
export declare const IntegrationGitHubProvider: TIntegrationProvider;
|
|
1
|
+
import { Endpoints } from '@octokit/types';
|
|
4
2
|
export type TGithubAuth = {
|
|
5
3
|
redirectUri: string;
|
|
6
4
|
integrationId: string;
|
|
@@ -13,12 +11,12 @@ export type TGithubAuth = {
|
|
|
13
11
|
installation_token: string;
|
|
14
12
|
repository: string;
|
|
15
13
|
};
|
|
16
|
-
type GitHubInstallationsResponse = Endpoints[
|
|
17
|
-
type GitHubInstallation = GitHubInstallationsResponse[
|
|
14
|
+
type GitHubInstallationsResponse = Endpoints['GET /user/installations']['response']['data'];
|
|
15
|
+
type GitHubInstallation = GitHubInstallationsResponse['installations'][0];
|
|
18
16
|
export interface Installation {
|
|
19
17
|
id: number;
|
|
20
18
|
accountName: string;
|
|
21
|
-
accountType:
|
|
19
|
+
accountType: 'User' | 'Organization';
|
|
22
20
|
avatarUrl: string;
|
|
23
21
|
}
|
|
24
22
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IntegrationEnum, TIntegrationProvider } from '../integration.model';
|
|
2
2
|
export * from './github';
|
|
3
3
|
export * from './lark';
|
|
4
|
+
/** @deprecated Discover providers through the host integration registry/API. */
|
|
4
5
|
export declare const INTEGRATION_PROVIDERS: Partial<Record<IntegrationEnum, TIntegrationProvider>>;
|