@xpert-ai/contracts 3.19.0 → 3.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.
Files changed (39) hide show
  1. package/index.cjs.js +393 -4
  2. package/index.esm.js +341 -6
  3. package/package.json +5 -2
  4. package/src/agent/ai-model.d.ts +1 -0
  5. package/src/agent/token.d.ts +4 -0
  6. package/src/ai/agent-output-delivery.model.d.ts +31 -0
  7. package/src/ai/agent-runtime.model.d.ts +53 -0
  8. package/src/ai/ai-model.model.d.ts +3 -0
  9. package/src/ai/assistant-binding.model.d.ts +3 -0
  10. package/src/ai/assistant-configuration.model.d.ts +31 -0
  11. package/src/ai/bosi.model.d.ts +73 -0
  12. package/src/ai/chat-message-envelope.model.d.ts +55 -0
  13. package/src/ai/chat-message.model.d.ts +4 -0
  14. package/src/ai/chat.model.d.ts +10 -0
  15. package/src/ai/execution-activity.model.d.ts +547 -0
  16. package/src/ai/index.d.ts +8 -0
  17. package/src/ai/mcp-capability.model.d.ts +5 -1
  18. package/src/ai/membership.model.d.ts +5 -0
  19. package/src/ai/model-execution.model.d.ts +265 -0
  20. package/src/ai/model-gateway.model.d.ts +15 -3
  21. package/src/ai/model-usage.model.d.ts +19 -0
  22. package/src/ai/project-task-graph.model.d.ts +12 -0
  23. package/src/ai/project-task-runtime.model.d.ts +1106 -0
  24. package/src/ai/project-task-type.model.d.ts +13 -0
  25. package/src/ai/prompt-workflow.model.d.ts +4 -0
  26. package/src/ai/realtime-voice.model.d.ts +90 -0
  27. package/src/ai/realtime-voice.transport.d.ts +54 -0
  28. package/src/ai/resource-card.d.ts +2 -0
  29. package/src/ai/thread-activity.model.d.ts +14 -0
  30. package/src/ai/xpert-agent-execution.model.d.ts +4 -0
  31. package/src/ai/xpert-project.model.d.ts +21 -0
  32. package/src/ai/xpert-template.model.d.ts +23 -5
  33. package/src/ai/xpert-tool-mcp.model.d.ts +6 -0
  34. package/src/ai/xpert.model.d.ts +7 -2
  35. package/src/i18n.model.d.ts +1 -0
  36. package/src/index.d.ts +3 -0
  37. package/src/types.d.ts +4 -0
  38. package/src/view-extension/model.d.ts +22 -1
  39. package/src/view-extension/workbench.d.ts +6 -2
@@ -0,0 +1,547 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const codingExecutionViewKey = "platform.coding-execution__execution";
3
+ export declare const executionActivityCapabilitiesSchema: z.ZodObject<{
4
+ version: z.ZodLiteral<1>;
5
+ presentation: z.ZodLiteral<"coding">;
6
+ }, "strict", z.ZodTypeAny, {
7
+ version?: 1;
8
+ presentation?: "coding";
9
+ }, {
10
+ version?: 1;
11
+ presentation?: "coding";
12
+ }>;
13
+ export type ExecutionActivityCapabilities = z.infer<typeof executionActivityCapabilitiesSchema>;
14
+ export declare const executionActivityItemSchema: z.ZodObject<{
15
+ id: z.ZodString;
16
+ occurredAt: z.ZodOptional<z.ZodString>;
17
+ content: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
18
+ kind: z.ZodLiteral<"message">;
19
+ text: z.ZodString;
20
+ }, "strict", z.ZodTypeAny, {
21
+ text?: string;
22
+ kind?: "message";
23
+ }, {
24
+ text?: string;
25
+ kind?: "message";
26
+ }>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"tool">;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ status: z.ZodEnum<["running", "succeeded", "failed", "unknown"]>;
30
+ input: z.ZodOptional<z.ZodString>;
31
+ output: z.ZodOptional<z.ZodString>;
32
+ truncated: z.ZodOptional<z.ZodBoolean>;
33
+ outputRef: z.ZodOptional<z.ZodObject<{
34
+ key: z.ZodString;
35
+ length: z.ZodNumber;
36
+ }, "strict", z.ZodTypeAny, {
37
+ length?: number;
38
+ key?: string;
39
+ }, {
40
+ length?: number;
41
+ key?: string;
42
+ }>>;
43
+ detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
44
+ type: z.ZodLiteral<"command">;
45
+ command: z.ZodString;
46
+ cwd: z.ZodOptional<z.ZodString>;
47
+ exitCode: z.ZodOptional<z.ZodNumber>;
48
+ outputMode: z.ZodLiteral<"merged">;
49
+ }, "strict", z.ZodTypeAny, {
50
+ type?: "command";
51
+ command?: string;
52
+ cwd?: string;
53
+ exitCode?: number;
54
+ outputMode?: "merged";
55
+ }, {
56
+ type?: "command";
57
+ command?: string;
58
+ cwd?: string;
59
+ exitCode?: number;
60
+ outputMode?: "merged";
61
+ }>, z.ZodObject<{
62
+ type: z.ZodLiteral<"file_change">;
63
+ files: z.ZodArray<z.ZodObject<{
64
+ path: z.ZodString;
65
+ change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
66
+ patch: z.ZodOptional<z.ZodString>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ path?: string;
69
+ patch?: string;
70
+ change?: "created" | "deleted" | "modified" | "reported";
71
+ }, {
72
+ path?: string;
73
+ patch?: string;
74
+ change?: "created" | "deleted" | "modified" | "reported";
75
+ }>, "many">;
76
+ }, "strict", z.ZodTypeAny, {
77
+ type?: "file_change";
78
+ files?: {
79
+ path?: string;
80
+ patch?: string;
81
+ change?: "created" | "deleted" | "modified" | "reported";
82
+ }[];
83
+ }, {
84
+ type?: "file_change";
85
+ files?: {
86
+ path?: string;
87
+ patch?: string;
88
+ change?: "created" | "deleted" | "modified" | "reported";
89
+ }[];
90
+ }>]>>;
91
+ }, "strict", z.ZodTypeAny, {
92
+ status?: "succeeded" | "failed" | "running" | "unknown";
93
+ name?: string;
94
+ input?: string;
95
+ output?: string;
96
+ kind?: "tool";
97
+ detail?: {
98
+ type?: "command";
99
+ command?: string;
100
+ cwd?: string;
101
+ exitCode?: number;
102
+ outputMode?: "merged";
103
+ } | {
104
+ type?: "file_change";
105
+ files?: {
106
+ path?: string;
107
+ patch?: string;
108
+ change?: "created" | "deleted" | "modified" | "reported";
109
+ }[];
110
+ };
111
+ truncated?: boolean;
112
+ outputRef?: {
113
+ length?: number;
114
+ key?: string;
115
+ };
116
+ }, {
117
+ status?: "succeeded" | "failed" | "running" | "unknown";
118
+ name?: string;
119
+ input?: string;
120
+ output?: string;
121
+ kind?: "tool";
122
+ detail?: {
123
+ type?: "command";
124
+ command?: string;
125
+ cwd?: string;
126
+ exitCode?: number;
127
+ outputMode?: "merged";
128
+ } | {
129
+ type?: "file_change";
130
+ files?: {
131
+ path?: string;
132
+ patch?: string;
133
+ change?: "created" | "deleted" | "modified" | "reported";
134
+ }[];
135
+ };
136
+ truncated?: boolean;
137
+ outputRef?: {
138
+ length?: number;
139
+ key?: string;
140
+ };
141
+ }>, z.ZodObject<{
142
+ kind: z.ZodLiteral<"diagnostic">;
143
+ code: z.ZodString;
144
+ text: z.ZodString;
145
+ }, "strict", z.ZodTypeAny, {
146
+ code?: string;
147
+ text?: string;
148
+ kind?: "diagnostic";
149
+ }, {
150
+ code?: string;
151
+ text?: string;
152
+ kind?: "diagnostic";
153
+ }>]>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ id?: string;
156
+ content?: {
157
+ text?: string;
158
+ kind?: "message";
159
+ } | {
160
+ status?: "succeeded" | "failed" | "running" | "unknown";
161
+ name?: string;
162
+ input?: string;
163
+ output?: string;
164
+ kind?: "tool";
165
+ detail?: {
166
+ type?: "command";
167
+ command?: string;
168
+ cwd?: string;
169
+ exitCode?: number;
170
+ outputMode?: "merged";
171
+ } | {
172
+ type?: "file_change";
173
+ files?: {
174
+ path?: string;
175
+ patch?: string;
176
+ change?: "created" | "deleted" | "modified" | "reported";
177
+ }[];
178
+ };
179
+ truncated?: boolean;
180
+ outputRef?: {
181
+ length?: number;
182
+ key?: string;
183
+ };
184
+ } | {
185
+ code?: string;
186
+ text?: string;
187
+ kind?: "diagnostic";
188
+ };
189
+ occurredAt?: string;
190
+ }, {
191
+ id?: string;
192
+ content?: {
193
+ text?: string;
194
+ kind?: "message";
195
+ } | {
196
+ status?: "succeeded" | "failed" | "running" | "unknown";
197
+ name?: string;
198
+ input?: string;
199
+ output?: string;
200
+ kind?: "tool";
201
+ detail?: {
202
+ type?: "command";
203
+ command?: string;
204
+ cwd?: string;
205
+ exitCode?: number;
206
+ outputMode?: "merged";
207
+ } | {
208
+ type?: "file_change";
209
+ files?: {
210
+ path?: string;
211
+ patch?: string;
212
+ change?: "created" | "deleted" | "modified" | "reported";
213
+ }[];
214
+ };
215
+ truncated?: boolean;
216
+ outputRef?: {
217
+ length?: number;
218
+ key?: string;
219
+ };
220
+ } | {
221
+ code?: string;
222
+ text?: string;
223
+ kind?: "diagnostic";
224
+ };
225
+ occurredAt?: string;
226
+ }>;
227
+ export type ExecutionActivityItem = z.infer<typeof executionActivityItemSchema>;
228
+ export declare const executionActivityBatchSchema: z.ZodObject<{
229
+ items: z.ZodArray<z.ZodObject<{
230
+ id: z.ZodString;
231
+ occurredAt: z.ZodOptional<z.ZodString>;
232
+ content: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
233
+ kind: z.ZodLiteral<"message">;
234
+ text: z.ZodString;
235
+ }, "strict", z.ZodTypeAny, {
236
+ text?: string;
237
+ kind?: "message";
238
+ }, {
239
+ text?: string;
240
+ kind?: "message";
241
+ }>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"tool">;
243
+ name: z.ZodOptional<z.ZodString>;
244
+ status: z.ZodEnum<["running", "succeeded", "failed", "unknown"]>;
245
+ input: z.ZodOptional<z.ZodString>;
246
+ output: z.ZodOptional<z.ZodString>;
247
+ truncated: z.ZodOptional<z.ZodBoolean>;
248
+ outputRef: z.ZodOptional<z.ZodObject<{
249
+ key: z.ZodString;
250
+ length: z.ZodNumber;
251
+ }, "strict", z.ZodTypeAny, {
252
+ length?: number;
253
+ key?: string;
254
+ }, {
255
+ length?: number;
256
+ key?: string;
257
+ }>>;
258
+ detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
259
+ type: z.ZodLiteral<"command">;
260
+ command: z.ZodString;
261
+ cwd: z.ZodOptional<z.ZodString>;
262
+ exitCode: z.ZodOptional<z.ZodNumber>;
263
+ outputMode: z.ZodLiteral<"merged">;
264
+ }, "strict", z.ZodTypeAny, {
265
+ type?: "command";
266
+ command?: string;
267
+ cwd?: string;
268
+ exitCode?: number;
269
+ outputMode?: "merged";
270
+ }, {
271
+ type?: "command";
272
+ command?: string;
273
+ cwd?: string;
274
+ exitCode?: number;
275
+ outputMode?: "merged";
276
+ }>, z.ZodObject<{
277
+ type: z.ZodLiteral<"file_change">;
278
+ files: z.ZodArray<z.ZodObject<{
279
+ path: z.ZodString;
280
+ change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
281
+ patch: z.ZodOptional<z.ZodString>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ path?: string;
284
+ patch?: string;
285
+ change?: "created" | "deleted" | "modified" | "reported";
286
+ }, {
287
+ path?: string;
288
+ patch?: string;
289
+ change?: "created" | "deleted" | "modified" | "reported";
290
+ }>, "many">;
291
+ }, "strict", z.ZodTypeAny, {
292
+ type?: "file_change";
293
+ files?: {
294
+ path?: string;
295
+ patch?: string;
296
+ change?: "created" | "deleted" | "modified" | "reported";
297
+ }[];
298
+ }, {
299
+ type?: "file_change";
300
+ files?: {
301
+ path?: string;
302
+ patch?: string;
303
+ change?: "created" | "deleted" | "modified" | "reported";
304
+ }[];
305
+ }>]>>;
306
+ }, "strict", z.ZodTypeAny, {
307
+ status?: "succeeded" | "failed" | "running" | "unknown";
308
+ name?: string;
309
+ input?: string;
310
+ output?: string;
311
+ kind?: "tool";
312
+ detail?: {
313
+ type?: "command";
314
+ command?: string;
315
+ cwd?: string;
316
+ exitCode?: number;
317
+ outputMode?: "merged";
318
+ } | {
319
+ type?: "file_change";
320
+ files?: {
321
+ path?: string;
322
+ patch?: string;
323
+ change?: "created" | "deleted" | "modified" | "reported";
324
+ }[];
325
+ };
326
+ truncated?: boolean;
327
+ outputRef?: {
328
+ length?: number;
329
+ key?: string;
330
+ };
331
+ }, {
332
+ status?: "succeeded" | "failed" | "running" | "unknown";
333
+ name?: string;
334
+ input?: string;
335
+ output?: string;
336
+ kind?: "tool";
337
+ detail?: {
338
+ type?: "command";
339
+ command?: string;
340
+ cwd?: string;
341
+ exitCode?: number;
342
+ outputMode?: "merged";
343
+ } | {
344
+ type?: "file_change";
345
+ files?: {
346
+ path?: string;
347
+ patch?: string;
348
+ change?: "created" | "deleted" | "modified" | "reported";
349
+ }[];
350
+ };
351
+ truncated?: boolean;
352
+ outputRef?: {
353
+ length?: number;
354
+ key?: string;
355
+ };
356
+ }>, z.ZodObject<{
357
+ kind: z.ZodLiteral<"diagnostic">;
358
+ code: z.ZodString;
359
+ text: z.ZodString;
360
+ }, "strict", z.ZodTypeAny, {
361
+ code?: string;
362
+ text?: string;
363
+ kind?: "diagnostic";
364
+ }, {
365
+ code?: string;
366
+ text?: string;
367
+ kind?: "diagnostic";
368
+ }>]>;
369
+ }, "strict", z.ZodTypeAny, {
370
+ id?: string;
371
+ content?: {
372
+ text?: string;
373
+ kind?: "message";
374
+ } | {
375
+ status?: "succeeded" | "failed" | "running" | "unknown";
376
+ name?: string;
377
+ input?: string;
378
+ output?: string;
379
+ kind?: "tool";
380
+ detail?: {
381
+ type?: "command";
382
+ command?: string;
383
+ cwd?: string;
384
+ exitCode?: number;
385
+ outputMode?: "merged";
386
+ } | {
387
+ type?: "file_change";
388
+ files?: {
389
+ path?: string;
390
+ patch?: string;
391
+ change?: "created" | "deleted" | "modified" | "reported";
392
+ }[];
393
+ };
394
+ truncated?: boolean;
395
+ outputRef?: {
396
+ length?: number;
397
+ key?: string;
398
+ };
399
+ } | {
400
+ code?: string;
401
+ text?: string;
402
+ kind?: "diagnostic";
403
+ };
404
+ occurredAt?: string;
405
+ }, {
406
+ id?: string;
407
+ content?: {
408
+ text?: string;
409
+ kind?: "message";
410
+ } | {
411
+ status?: "succeeded" | "failed" | "running" | "unknown";
412
+ name?: string;
413
+ input?: string;
414
+ output?: string;
415
+ kind?: "tool";
416
+ detail?: {
417
+ type?: "command";
418
+ command?: string;
419
+ cwd?: string;
420
+ exitCode?: number;
421
+ outputMode?: "merged";
422
+ } | {
423
+ type?: "file_change";
424
+ files?: {
425
+ path?: string;
426
+ patch?: string;
427
+ change?: "created" | "deleted" | "modified" | "reported";
428
+ }[];
429
+ };
430
+ truncated?: boolean;
431
+ outputRef?: {
432
+ length?: number;
433
+ key?: string;
434
+ };
435
+ } | {
436
+ code?: string;
437
+ text?: string;
438
+ kind?: "diagnostic";
439
+ };
440
+ occurredAt?: string;
441
+ }>, "many">;
442
+ sourceCursor: z.ZodOptional<z.ZodString>;
443
+ expectedSourceCursor: z.ZodOptional<z.ZodString>;
444
+ complete: z.ZodOptional<z.ZodBoolean>;
445
+ gaps: z.ZodOptional<z.ZodArray<z.ZodEnum<["source_truncated", "storage_unavailable", "capture_limit", "interrupted", "source_lost"]>, "many">>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ complete?: boolean;
448
+ items?: {
449
+ id?: string;
450
+ content?: {
451
+ text?: string;
452
+ kind?: "message";
453
+ } | {
454
+ status?: "succeeded" | "failed" | "running" | "unknown";
455
+ name?: string;
456
+ input?: string;
457
+ output?: string;
458
+ kind?: "tool";
459
+ detail?: {
460
+ type?: "command";
461
+ command?: string;
462
+ cwd?: string;
463
+ exitCode?: number;
464
+ outputMode?: "merged";
465
+ } | {
466
+ type?: "file_change";
467
+ files?: {
468
+ path?: string;
469
+ patch?: string;
470
+ change?: "created" | "deleted" | "modified" | "reported";
471
+ }[];
472
+ };
473
+ truncated?: boolean;
474
+ outputRef?: {
475
+ length?: number;
476
+ key?: string;
477
+ };
478
+ } | {
479
+ code?: string;
480
+ text?: string;
481
+ kind?: "diagnostic";
482
+ };
483
+ occurredAt?: string;
484
+ }[];
485
+ sourceCursor?: string;
486
+ expectedSourceCursor?: string;
487
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
488
+ }, {
489
+ complete?: boolean;
490
+ items?: {
491
+ id?: string;
492
+ content?: {
493
+ text?: string;
494
+ kind?: "message";
495
+ } | {
496
+ status?: "succeeded" | "failed" | "running" | "unknown";
497
+ name?: string;
498
+ input?: string;
499
+ output?: string;
500
+ kind?: "tool";
501
+ detail?: {
502
+ type?: "command";
503
+ command?: string;
504
+ cwd?: string;
505
+ exitCode?: number;
506
+ outputMode?: "merged";
507
+ } | {
508
+ type?: "file_change";
509
+ files?: {
510
+ path?: string;
511
+ patch?: string;
512
+ change?: "created" | "deleted" | "modified" | "reported";
513
+ }[];
514
+ };
515
+ truncated?: boolean;
516
+ outputRef?: {
517
+ length?: number;
518
+ key?: string;
519
+ };
520
+ } | {
521
+ code?: string;
522
+ text?: string;
523
+ kind?: "diagnostic";
524
+ };
525
+ occurredAt?: string;
526
+ }[];
527
+ sourceCursor?: string;
528
+ expectedSourceCursor?: string;
529
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
530
+ }>;
531
+ export type ExecutionActivityBatch = z.infer<typeof executionActivityBatchSchema>;
532
+ export type ExecutionActivityGap = NonNullable<ExecutionActivityBatch['gaps']>[number];
533
+ export interface ExecutionActivityCheckpoint {
534
+ sourceCursor?: string;
535
+ seq: number;
536
+ }
537
+ export interface ExecutionActivityPage {
538
+ items: Array<ExecutionActivityItem & {
539
+ seq: number;
540
+ firstSeq: number;
541
+ observedAt: string;
542
+ }>;
543
+ nextCursor: number;
544
+ hasMore: boolean;
545
+ state: 'not_recorded' | 'recording' | 'closed' | 'expired';
546
+ gaps: ExecutionActivityGap[];
547
+ }
package/src/ai/index.d.ts CHANGED
@@ -7,12 +7,15 @@ export type { TChatRequest } from './xpert-chat.model';
7
7
  export type { ProjectSelection } from './project-selection.model';
8
8
  export { CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED } from './chat-event.model';
9
9
  export * from './assistant-binding.model';
10
+ export * from './bosi.model';
10
11
  export * from './assistant-order';
11
12
  export * from './assistant-model.model';
12
13
  export * from './assistant-user-preference.model';
13
14
  export * from './ai-model.model';
14
15
  export * from './ai.model';
15
16
  export * from './chat-event.model';
17
+ export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from './resource-card';
18
+ export type { ConversationResourceCard, ResourceCardImage, ResourceCardOpenTarget, ResourceCardScalar, TMessageContentResourceCard } from './resource-card';
16
19
  export * from './thread-goal.model';
17
20
  export * from './chat.model';
18
21
  export * from './chat-message.model';
@@ -95,3 +98,8 @@ export * from './clawxpert-conversation-scope.model';
95
98
  export * from './knowledge-keyword-analyzer.model';
96
99
  export * from './assistant-configuration.model';
97
100
  export * from './assistant-trigger.model';
101
+ export * from './model-execution.model';
102
+ export * from './agent-runtime.model';
103
+ export * from './project-task-runtime.model';
104
+ export * from './realtime-voice.model';
105
+ export type { ThreadActivitySnapshot } from './thread-activity.model';
@@ -1,4 +1,6 @@
1
1
  import type { McpCapabilityApprovalMode } from './mcp-publication.model';
2
+ import type { I18nObject } from '../types';
3
+ import type { TMcpAppRefresh } from './xpert-tool-mcp.model';
2
4
  import type { JSONValue } from '../core.model';
3
5
  export declare const MCP_CAPABILITY_DESCRIPTOR_VERSION: 1;
4
6
  export declare const MCP_CAPABILITY_TYPES: readonly ["tool", "resource", "resource_template", "prompt", "app"];
@@ -82,7 +84,9 @@ export interface McpPromptCapabilityDescriptor extends McpCapabilityDescriptorBa
82
84
  argumentSchema: McpJsonSchema;
83
85
  supportsCompletion?: boolean;
84
86
  }
85
- export interface McpAppCapabilityDescriptor extends McpCapabilityDescriptorBase {
87
+ export interface McpAppCapabilityDescriptor extends Omit<McpCapabilityDescriptorBase, 'title'> {
88
+ title?: string | I18nObject;
89
+ refresh?: TMcpAppRefresh;
86
90
  capabilityType: 'app';
87
91
  entry: string;
88
92
  csp?: {
@@ -1,3 +1,4 @@
1
+ import type { ModelExecutionUsageContext } from './model-execution.model';
1
2
  import { IBasePerTenantAndOrganizationEntityModel, IBasePerTenantEntityModel } from '../base-entity.model';
2
3
  import { IUser } from '../user.model';
3
4
  import { AiModelTypeEnum } from '../agent';
@@ -170,6 +171,8 @@ export interface IMembershipPointLedger extends IBasePerTenantEntityModel {
170
171
  reason?: string | null;
171
172
  accessSource?: ModelAccessSourceEnum | null;
172
173
  modelGrantId?: string | null;
174
+ /** Execution attribution for this points entry; absent for non-execution or historical records. */
175
+ executionContext?: ModelExecutionUsageContext | null;
173
176
  usageChannel?: ModelGatewayUsageChannelEnum | null;
174
177
  gatewayRequestId?: string | null;
175
178
  gatewayApiKeyId?: string | null;
@@ -212,6 +215,8 @@ export interface IMembershipPointLedger extends IBasePerTenantEntityModel {
212
215
  exchangeRate?: number | null;
213
216
  }
214
217
  export interface IMembershipMe {
218
+ /** Model consumption in the current cycle, including unbilled/unlimited use. Independent of quota deductions. */
219
+ consumedPoints?: number;
215
220
  membership: IUserMembership;
216
221
  plan: IMembershipPlan;
217
222
  personalPointsOnly: boolean;