@zhama/tego-plugin-sdk 1.36.0 → 1.36.2

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/server.d.ts CHANGED
@@ -14,32 +14,32 @@ declare const accountInviteSchema: z.ZodEffects<z.ZodObject<{
14
14
  requestId: string;
15
15
  organizationName: string;
16
16
  email?: string | undefined;
17
- username?: string | undefined;
18
17
  phone?: string | undefined;
18
+ username?: string | undefined;
19
19
  userId?: string | undefined;
20
20
  fullName?: string | undefined;
21
21
  }, {
22
22
  requestId: string;
23
23
  organizationName: string;
24
24
  email?: string | undefined;
25
- username?: string | undefined;
26
25
  phone?: string | undefined;
26
+ username?: string | undefined;
27
27
  userId?: string | undefined;
28
28
  fullName?: string | undefined;
29
29
  }>, {
30
30
  requestId: string;
31
31
  organizationName: string;
32
32
  email?: string | undefined;
33
- username?: string | undefined;
34
33
  phone?: string | undefined;
34
+ username?: string | undefined;
35
35
  userId?: string | undefined;
36
36
  fullName?: string | undefined;
37
37
  }, {
38
38
  requestId: string;
39
39
  organizationName: string;
40
40
  email?: string | undefined;
41
- username?: string | undefined;
42
41
  phone?: string | undefined;
42
+ username?: string | undefined;
43
43
  userId?: string | undefined;
44
44
  fullName?: string | undefined;
45
45
  }>;
@@ -58,36 +58,36 @@ declare const accountProvisionSchema: z.ZodEffects<z.ZodObject<{
58
58
  requestId: string;
59
59
  organizationName: string;
60
60
  email?: string | undefined;
61
+ phone?: string | undefined;
61
62
  password?: string | undefined;
62
63
  username?: string | undefined;
63
- phone?: string | undefined;
64
64
  userId?: string | undefined;
65
65
  fullName?: string | undefined;
66
66
  }, {
67
67
  requestId: string;
68
68
  organizationName: string;
69
69
  email?: string | undefined;
70
+ phone?: string | undefined;
70
71
  password?: string | undefined;
71
72
  username?: string | undefined;
72
- phone?: string | undefined;
73
73
  userId?: string | undefined;
74
74
  fullName?: string | undefined;
75
75
  }>, {
76
76
  requestId: string;
77
77
  organizationName: string;
78
78
  email?: string | undefined;
79
+ phone?: string | undefined;
79
80
  password?: string | undefined;
80
81
  username?: string | undefined;
81
- phone?: string | undefined;
82
82
  userId?: string | undefined;
83
83
  fullName?: string | undefined;
84
84
  }, {
85
85
  requestId: string;
86
86
  organizationName: string;
87
87
  email?: string | undefined;
88
+ phone?: string | undefined;
88
89
  password?: string | undefined;
89
90
  username?: string | undefined;
90
- phone?: string | undefined;
91
91
  userId?: string | undefined;
92
92
  fullName?: string | undefined;
93
93
  }>;
@@ -444,13 +444,13 @@ declare const pluginCollectionEnsureSchema: z.ZodObject<{
444
444
  /** @deprecated Accepted for older clients; reads use ordinary knowledge ACL. */
445
445
  policyScope: z.ZodOptional<z.ZodString>;
446
446
  }, "strict", z.ZodTypeAny, {
447
- name: string;
448
447
  key: string;
448
+ name: string;
449
449
  accessMode?: "managed" | "private" | undefined;
450
450
  policyScope?: string | undefined;
451
451
  }, {
452
- name: string;
453
452
  key: string;
453
+ name: string;
454
454
  accessMode?: "managed" | "private" | undefined;
455
455
  policyScope?: string | undefined;
456
456
  }>;
@@ -461,23 +461,23 @@ declare const pluginCollectionPermissionsSchema: z.ZodObject<{
461
461
  subjectType: z.ZodEnum<["user", "team", "role", "tenant"]>;
462
462
  subjectId: z.ZodString;
463
463
  }, "strict", z.ZodTypeAny, {
464
- subjectType: "user" | "team" | "tenant" | "role";
464
+ subjectType: "tenant" | "user" | "team" | "role";
465
465
  subjectId: string;
466
466
  }, {
467
- subjectType: "user" | "team" | "tenant" | "role";
467
+ subjectType: "tenant" | "user" | "team" | "role";
468
468
  subjectId: string;
469
469
  }>, "many">;
470
470
  }, "strict", z.ZodTypeAny, {
471
471
  key: string;
472
472
  grants: {
473
- subjectType: "user" | "team" | "tenant" | "role";
473
+ subjectType: "tenant" | "user" | "team" | "role";
474
474
  subjectId: string;
475
475
  }[];
476
476
  syncRevision?: string | undefined;
477
477
  }, {
478
478
  key: string;
479
479
  grants: {
480
- subjectType: "user" | "team" | "tenant" | "role";
480
+ subjectType: "tenant" | "user" | "team" | "role";
481
481
  subjectId: string;
482
482
  }[];
483
483
  syncRevision?: string | undefined;
@@ -523,23 +523,23 @@ declare const pluginCollectionAccessSchema: z.ZodEffects<z.ZodObject<{
523
523
  /** Identity snapshot returned by access({enabled:false}); required to resume. */
524
524
  identityRevision: z.ZodOptional<z.ZodString>;
525
525
  }, "strict", z.ZodTypeAny, {
526
- enabled?: boolean | undefined;
527
526
  key?: string | undefined;
527
+ enabled?: boolean | undefined;
528
528
  syncRevision?: string | undefined;
529
529
  identityRevision?: string | undefined;
530
530
  }, {
531
- enabled?: boolean | undefined;
532
531
  key?: string | undefined;
532
+ enabled?: boolean | undefined;
533
533
  syncRevision?: string | undefined;
534
534
  identityRevision?: string | undefined;
535
535
  }>, {
536
- enabled?: boolean | undefined;
537
536
  key?: string | undefined;
537
+ enabled?: boolean | undefined;
538
538
  syncRevision?: string | undefined;
539
539
  identityRevision?: string | undefined;
540
540
  }, {
541
- enabled?: boolean | undefined;
542
541
  key?: string | undefined;
542
+ enabled?: boolean | undefined;
543
543
  syncRevision?: string | undefined;
544
544
  identityRevision?: string | undefined;
545
545
  }>;
@@ -552,31 +552,31 @@ declare const pluginCollectionImportSchema: z.ZodObject<{
552
552
  text: z.ZodString;
553
553
  metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
554
554
  }, "strict", z.ZodTypeAny, {
555
- text: string;
556
555
  title: string;
556
+ text: string;
557
557
  externalId: string;
558
558
  metadata?: Record<string, string | number | boolean | null> | undefined;
559
559
  }, {
560
- text: string;
561
560
  title: string;
561
+ text: string;
562
562
  externalId: string;
563
563
  metadata?: Record<string, string | number | boolean | null> | undefined;
564
564
  }>, "many">, {
565
- text: string;
566
565
  title: string;
566
+ text: string;
567
567
  externalId: string;
568
568
  metadata?: Record<string, string | number | boolean | null> | undefined;
569
569
  }[], {
570
- text: string;
571
570
  title: string;
571
+ text: string;
572
572
  externalId: string;
573
573
  metadata?: Record<string, string | number | boolean | null> | undefined;
574
574
  }[]>;
575
575
  }, "strict", z.ZodTypeAny, {
576
576
  key: string;
577
577
  documents: {
578
- text: string;
579
578
  title: string;
579
+ text: string;
580
580
  externalId: string;
581
581
  metadata?: Record<string, string | number | boolean | null> | undefined;
582
582
  }[];
@@ -584,8 +584,8 @@ declare const pluginCollectionImportSchema: z.ZodObject<{
584
584
  }, {
585
585
  key: string;
586
586
  documents: {
587
- text: string;
588
587
  title: string;
588
+ text: string;
589
589
  externalId: string;
590
590
  metadata?: Record<string, string | number | boolean | null> | undefined;
591
591
  }[];
@@ -687,8 +687,8 @@ declare const pluginCollectionDocumentContentSchema: z.ZodObject<{
687
687
  page: z.ZodDefault<z.ZodNumber>;
688
688
  pageSize: z.ZodDefault<z.ZodNumber>;
689
689
  }, "strict", z.ZodTypeAny, {
690
- page: number;
691
690
  key: string;
691
+ page: number;
692
692
  externalId: string;
693
693
  pageSize: number;
694
694
  }, {
@@ -704,13 +704,13 @@ declare const pluginCollectionSearchSchema: z.ZodObject<{
704
704
  /** Equality per key; an array matches any of its values. */
705
705
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
706
706
  }, "strict", z.ZodTypeAny, {
707
- query: string;
708
707
  key: string;
708
+ query: string;
709
709
  topK: number;
710
710
  filter?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
711
711
  }, {
712
- query: string;
713
712
  key: string;
713
+ query: string;
714
714
  filter?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
715
715
  topK?: number | undefined;
716
716
  }>;
@@ -888,39 +888,39 @@ declare const pluginKnowledgeBaseInputSchema: z.ZodObject<{
888
888
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
889
  }, "strict", z.ZodTypeAny, {
890
890
  permission: "view" | "manage" | "use" | "operate";
891
- subjectType: "user" | "team" | "tenant" | "role";
891
+ subjectType: "tenant" | "user" | "team" | "role";
892
892
  subjectId: string;
893
893
  expiresAt?: string | null | undefined;
894
894
  }, {
895
895
  permission: "view" | "manage" | "use" | "operate";
896
- subjectType: "user" | "team" | "tenant" | "role";
896
+ subjectType: "tenant" | "user" | "team" | "role";
897
897
  subjectId: string;
898
898
  expiresAt?: string | null | undefined;
899
899
  }>, "many">;
900
900
  idempotencyKey: z.ZodString;
901
901
  }, "strict", z.ZodTypeAny, {
902
- name: string;
903
902
  scope: {
904
903
  type: "team";
905
904
  teamId: string;
906
905
  };
906
+ name: string;
907
907
  grants: {
908
908
  permission: "view" | "manage" | "use" | "operate";
909
- subjectType: "user" | "team" | "tenant" | "role";
909
+ subjectType: "tenant" | "user" | "team" | "role";
910
910
  subjectId: string;
911
911
  expiresAt?: string | null | undefined;
912
912
  }[];
913
913
  idempotencyKey: string;
914
914
  description?: string | undefined;
915
915
  }, {
916
- name: string;
917
916
  scope: {
918
917
  type: "team";
919
918
  teamId: string;
920
919
  };
920
+ name: string;
921
921
  grants: {
922
922
  permission: "view" | "manage" | "use" | "operate";
923
- subjectType: "user" | "team" | "tenant" | "role";
923
+ subjectType: "tenant" | "user" | "team" | "role";
924
924
  subjectId: string;
925
925
  expiresAt?: string | null | undefined;
926
926
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhama/tego-plugin-sdk",
3
- "version": "1.36.0",
3
+ "version": "1.36.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -103,6 +103,11 @@
103
103
  "import": "./dist/publish.js",
104
104
  "default": "./dist/publish.js"
105
105
  },
106
+ "./dev": {
107
+ "types": "./dist/dev.d.ts",
108
+ "import": "./dist/dev.js",
109
+ "default": "./dist/dev.js"
110
+ },
106
111
  "./testing": {
107
112
  "types": "./dist/testing.d.ts",
108
113
  "import": "./dist/testing.js",
@@ -124,6 +129,7 @@
124
129
  "esbuild": "^0.25.12",
125
130
  "jszip": "^3.10.1",
126
131
  "magic-string": "^0.30.21",
132
+ "tailwindcss": "^3.4.18",
127
133
  "zod": "^3.24.1",
128
134
  "zod-to-json-schema": "^3.25.2"
129
135
  },