@tinywork/glass 1.0.38 → 1.0.40

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 (2) hide show
  1. package/index.d.ts +24 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -440,8 +440,24 @@ declare global {
440
440
  ruleId?: string;
441
441
  }>;
442
442
  /** 新增文档 */
443
- addDoc(doc: DocSchema): IGlassExtensionInvokeResponse<void>;
444
- deleteDoc(apiId: string): IGlassExtensionInvokeResponse<void>;
443
+ addDoc(
444
+ doc: DocSchema,
445
+ options?: {
446
+ /** 是否触发缓存更新 */
447
+ hooks?: boolean;
448
+ /** 是否出发插件emit */
449
+ emit?: boolean;
450
+ },
451
+ ): IGlassExtensionInvokeResponse<void>;
452
+ deleteDoc(
453
+ apiId: string,
454
+ options?: {
455
+ /** 是否触发缓存更新 */
456
+ hooks?: boolean;
457
+ /** 是否出发插件emit */
458
+ emit?: boolean;
459
+ },
460
+ ): IGlassExtensionInvokeResponse<void>;
445
461
 
446
462
  getDoc(
447
463
  params: { apiId: string } | { pathname: string },
@@ -456,6 +472,12 @@ declare global {
456
472
  },
457
473
  ): IGlassExtensionInvokeResponse<T["data"]>;
458
474
 
475
+ queryRequests: (params: {
476
+ apiId?: string;
477
+ pathname?: string;
478
+ origin?: string;
479
+ }) => IGlassExtensionInvokeResponse<NetLog[]>;
480
+
459
481
  sendAgentMessage(params: {
460
482
  conversationId: string;
461
483
  message?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [