@erxes/plugin-sdk 0.1.0-v2.3 → 0.1.0-v2.4

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/dist/client.d.ts +18 -0
  2. package/package.json +2 -2
package/dist/client.d.ts CHANGED
@@ -101,6 +101,9 @@ export declare const createCoreClient: (options: CoreClientOptions) => {
101
101
  CROSS_SITE: {
102
102
  status: number;
103
103
  };
104
+ DUPLICATE_PERMISSION_SET: {
105
+ status: number;
106
+ };
104
107
  INVALID_CLIENT: {
105
108
  status: number;
106
109
  };
@@ -116,6 +119,12 @@ export declare const createCoreClient: (options: CoreClientOptions) => {
116
119
  PLUGIN_NOT_FOUND: {
117
120
  status: number;
118
121
  };
122
+ UNKNOWN_PERMISSION: {
123
+ status: number;
124
+ data: z.ZodObject<{
125
+ permissions: z.ZodArray<z.ZodString>;
126
+ }, z.core.$strip>;
127
+ };
119
128
  }>>>;
120
129
  /** Tells the plugin's open UIs that topics changed (needs `live:write`). */
121
130
  signal: (orgId: string, topics: string[], userIds?: string[]) => import("@orpc/client").ClientPromiseResult<{
@@ -201,6 +210,9 @@ export declare const createCoreClient: (options: CoreClientOptions) => {
201
210
  CROSS_SITE: {
202
211
  status: number;
203
212
  };
213
+ DUPLICATE_PERMISSION_SET: {
214
+ status: number;
215
+ };
204
216
  INVALID_CLIENT: {
205
217
  status: number;
206
218
  };
@@ -216,5 +228,11 @@ export declare const createCoreClient: (options: CoreClientOptions) => {
216
228
  PLUGIN_NOT_FOUND: {
217
229
  status: number;
218
230
  };
231
+ UNKNOWN_PERMISSION: {
232
+ status: number;
233
+ data: z.ZodObject<{
234
+ permissions: z.ZodArray<z.ZodString>;
235
+ }, z.core.$strip>;
236
+ };
219
237
  }>>>;
220
238
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/plugin-sdk",
3
- "version": "0.1.0-v2.3",
3
+ "version": "0.1.0-v2.4",
4
4
  "private": false,
5
5
  "description": "For erxes plugin servers: a typed core client with automatic plugin tokens, and verification of members' plugin session tokens",
6
6
  "license": "AGPL-3.0-only",
@@ -31,7 +31,7 @@
31
31
  "@orpc/openapi-client": "1.16.2",
32
32
  "jose": "^6.2.17",
33
33
  "zod": "^4.6.7",
34
- "@erxes/core-contract": "0.1.0-v2.3"
34
+ "@erxes/core-contract": "0.1.0-v2.4"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsdown"