@learncard/lca-api-plugin 1.2.2 → 1.2.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.
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { JWE, DidDocument, JWKWithPrivateKey, VP,
|
|
2
|
+
import { JWE, DidDocument, JWKWithPrivateKey, VP, LCNVisibleProfile } from '@learncard/types';
|
|
3
3
|
import { Plugin } from '@learncard/core';
|
|
4
4
|
import { ProofOptions } from '@learncard/didkit-plugin';
|
|
5
5
|
export type BoostSkills = {
|
|
@@ -176,6 +176,16 @@ export declare const NotificationValidator: z.ZodObject<{
|
|
|
176
176
|
bio: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
177
177
|
did: z.ZodOptional<z.ZodString>;
|
|
178
178
|
isPrivate: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
179
|
+
profileVisibility: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
180
|
+
public: "public";
|
|
181
|
+
connections_only: "connections_only";
|
|
182
|
+
private: "private";
|
|
183
|
+
}>>>>;
|
|
184
|
+
showEmail: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
185
|
+
allowConnectionRequests: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
186
|
+
anyone: "anyone";
|
|
187
|
+
invite_only: "invite_only";
|
|
188
|
+
}>>>>;
|
|
179
189
|
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
180
190
|
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
181
191
|
heroImage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -211,6 +221,16 @@ export declare const NotificationValidator: z.ZodObject<{
|
|
|
211
221
|
bio: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
212
222
|
did: z.ZodOptional<z.ZodString>;
|
|
213
223
|
isPrivate: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
224
|
+
profileVisibility: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
225
|
+
public: "public";
|
|
226
|
+
connections_only: "connections_only";
|
|
227
|
+
private: "private";
|
|
228
|
+
}>>>>;
|
|
229
|
+
showEmail: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
230
|
+
allowConnectionRequests: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
231
|
+
anyone: "anyone";
|
|
232
|
+
invite_only: "invite_only";
|
|
233
|
+
}>>>>;
|
|
214
234
|
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
215
235
|
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
216
236
|
heroImage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -348,6 +368,16 @@ export declare const PaginatedNotificationsValidator: z.ZodObject<{
|
|
|
348
368
|
bio: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
349
369
|
did: z.ZodOptional<z.ZodString>;
|
|
350
370
|
isPrivate: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
371
|
+
profileVisibility: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
372
|
+
public: "public";
|
|
373
|
+
connections_only: "connections_only";
|
|
374
|
+
private: "private";
|
|
375
|
+
}>>>>;
|
|
376
|
+
showEmail: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
377
|
+
allowConnectionRequests: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
378
|
+
anyone: "anyone";
|
|
379
|
+
invite_only: "invite_only";
|
|
380
|
+
}>>>>;
|
|
351
381
|
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
352
382
|
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
353
383
|
heroImage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -383,6 +413,16 @@ export declare const PaginatedNotificationsValidator: z.ZodObject<{
|
|
|
383
413
|
bio: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
384
414
|
did: z.ZodOptional<z.ZodString>;
|
|
385
415
|
isPrivate: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
416
|
+
profileVisibility: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
417
|
+
public: "public";
|
|
418
|
+
connections_only: "connections_only";
|
|
419
|
+
private: "private";
|
|
420
|
+
}>>>>;
|
|
421
|
+
showEmail: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
422
|
+
allowConnectionRequests: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
423
|
+
anyone: "anyone";
|
|
424
|
+
invite_only: "invite_only";
|
|
425
|
+
}>>>>;
|
|
386
426
|
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
387
427
|
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
388
428
|
heroImage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -610,7 +650,7 @@ export type GetAuthShareResponse = z.infer<typeof GetAuthShareResponseValidator>
|
|
|
610
650
|
/** @group LCA API Plugin */
|
|
611
651
|
export type LCAPluginDependentMethods = {
|
|
612
652
|
getDidAuthVp: (options?: ProofOptions) => Promise<VP | string>;
|
|
613
|
-
getProfile: () => Promise<
|
|
653
|
+
getProfile: () => Promise<LCNVisibleProfile | undefined>;
|
|
614
654
|
generateEd25519KeyFromBytes: (bytes: Uint8Array) => JWKWithPrivateKey;
|
|
615
655
|
keyToDid: (type: 'key', keypair: JWKWithPrivateKey) => string;
|
|
616
656
|
resolveDid: (did: string) => Promise<DidDocument>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/lca-api-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/lca-api-plugin.esm.js",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"isomorphic-fetch": "^3.0.0",
|
|
36
36
|
"isomorphic-webcrypto": "^2.3.8",
|
|
37
37
|
"pbkdf2-hmac": "^1.2.1",
|
|
38
|
-
"@learncard/core": "9.4.
|
|
39
|
-
"@learncard/
|
|
40
|
-
"@learncard/types": "5.13.2",
|
|
38
|
+
"@learncard/core": "9.4.14",
|
|
39
|
+
"@learncard/didkit-plugin": "1.8.4",
|
|
41
40
|
"@learncard/lca-api-client": "1.2.0",
|
|
42
|
-
"@learncard/
|
|
41
|
+
"@learncard/types": "5.13.4",
|
|
42
|
+
"@learncard/init": "2.3.12"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"scripts": {
|