agntcy-dir 1.0.0 → 1.1.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.
- package/dist/agntcy-dir.d.ts +66 -4
- package/dist/index.cjs +213 -126
- package/dist/index.mjs +213 -126
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/agntcy-dir.d.ts
CHANGED
|
@@ -357,6 +357,8 @@ export declare class Client {
|
|
|
357
357
|
* The verification process uses the external dirctl command-line tool
|
|
358
358
|
* to perform the actual cryptographic operations.
|
|
359
359
|
*
|
|
360
|
+
* When fromServer is true, uses the server's cached verification result.
|
|
361
|
+
*
|
|
360
362
|
* @param request - VerifyRequest containing the record reference and verification parameters.
|
|
361
363
|
* The provider can specify either key-based verification (with a public key)
|
|
362
364
|
* or OIDC-based verification
|
|
@@ -373,7 +375,8 @@ export declare class Client {
|
|
|
373
375
|
* console.log(`Signature valid: ${response.success}`);
|
|
374
376
|
* ```
|
|
375
377
|
*/
|
|
376
|
-
verify(request: models_2.sign_v1.VerifyRequest): models_2.sign_v1.VerifyResponse
|
|
378
|
+
verify(request: models_2.sign_v1.VerifyRequest): Promise<models_2.sign_v1.VerifyResponse>;
|
|
379
|
+
private _verifyViaServer;
|
|
377
380
|
/**
|
|
378
381
|
* Create a new synchronization configuration.
|
|
379
382
|
*
|
|
@@ -1991,11 +1994,34 @@ declare type PushReferrerRequest = Message<"agntcy.dir.store.v1.PushReferrerRequ
|
|
|
1991
1994
|
recordRef?: RecordRef;
|
|
1992
1995
|
|
|
1993
1996
|
/**
|
|
1994
|
-
*
|
|
1997
|
+
* The type of the referrer.
|
|
1998
|
+
* For example, "agntcy.dir.sign.v1.Signature" for signatures.
|
|
1995
1999
|
*
|
|
1996
|
-
* @generated from field:
|
|
2000
|
+
* @generated from field: string type = 2;
|
|
1997
2001
|
*/
|
|
1998
|
-
|
|
2002
|
+
type: string;
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Annotations attached to the referrer object.
|
|
2006
|
+
*
|
|
2007
|
+
* @generated from field: map<string, string> annotations = 3;
|
|
2008
|
+
*/
|
|
2009
|
+
annotations: { [key: string]: string };
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* Creation timestamp of the record in the RFC3339 format.
|
|
2013
|
+
* Specs: https://www.rfc-editor.org/rfc/rfc3339.html
|
|
2014
|
+
*
|
|
2015
|
+
* @generated from field: string created_at = 4;
|
|
2016
|
+
*/
|
|
2017
|
+
createdAt: string;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* The actual data of the referrer.
|
|
2021
|
+
*
|
|
2022
|
+
* @generated from field: google.protobuf.Struct data = 5;
|
|
2023
|
+
*/
|
|
2024
|
+
data?: JsonObject;
|
|
1999
2025
|
};
|
|
2000
2026
|
|
|
2001
2027
|
/**
|
|
@@ -2023,6 +2049,13 @@ declare type PushReferrerResponse = Message<"agntcy.dir.store.v1.PushReferrerRes
|
|
|
2023
2049
|
* @generated from field: optional string error_message = 2;
|
|
2024
2050
|
*/
|
|
2025
2051
|
errorMessage?: string;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* The CID of the referrer
|
|
2055
|
+
*
|
|
2056
|
+
* @generated from field: agntcy.dir.core.v1.ReferrerRef referrer_ref = 3;
|
|
2057
|
+
*/
|
|
2058
|
+
referrerRef?: ReferrerRef;
|
|
2026
2059
|
};
|
|
2027
2060
|
|
|
2028
2061
|
/**
|
|
@@ -2291,6 +2324,14 @@ declare enum RecordQueryType {
|
|
|
2291
2324
|
* @generated from enum value: RECORD_QUERY_TYPE_VERIFIED = 13;
|
|
2292
2325
|
*/
|
|
2293
2326
|
VERIFIED = 13,
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* Query for trusted records (signature verification passed).
|
|
2330
|
+
* Boolean field - use "true" or "false" as value.
|
|
2331
|
+
*
|
|
2332
|
+
* @generated from enum value: RECORD_QUERY_TYPE_TRUSTED = 14;
|
|
2333
|
+
*/
|
|
2334
|
+
TRUSTED = 14,
|
|
2294
2335
|
}
|
|
2295
2336
|
|
|
2296
2337
|
/**
|
|
@@ -2443,6 +2484,19 @@ declare const RecordRefsSchema: GenMessage<RecordRefs>;
|
|
|
2443
2484
|
*/
|
|
2444
2485
|
declare const RecordSchema: GenMessage<Record_2>;
|
|
2445
2486
|
|
|
2487
|
+
/**
|
|
2488
|
+
* @generated from message agntcy.dir.core.v1.ReferrerRef
|
|
2489
|
+
*/
|
|
2490
|
+
declare type ReferrerRef = Message<"agntcy.dir.core.v1.ReferrerRef"> & {
|
|
2491
|
+
/**
|
|
2492
|
+
* Content Identifier (https://github.com/multiformats/cid)
|
|
2493
|
+
* A self-describing, content-addressed identifier
|
|
2494
|
+
*
|
|
2495
|
+
* @generated from field: string cid = 1;
|
|
2496
|
+
*/
|
|
2497
|
+
cid: string;
|
|
2498
|
+
};
|
|
2499
|
+
|
|
2446
2500
|
/**
|
|
2447
2501
|
* @generated from message agntcy.dir.store.v1.RequestRegistryCredentialsRequest
|
|
2448
2502
|
*/
|
|
@@ -3753,6 +3807,14 @@ declare type VerifyRequest = Message<"agntcy.dir.sign.v1.VerifyRequest"> & {
|
|
|
3753
3807
|
* @generated from field: agntcy.dir.sign.v1.VerifyRequestProvider provider = 2;
|
|
3754
3808
|
*/
|
|
3755
3809
|
provider?: VerifyRequestProvider;
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* When true, use cached verification result from server.
|
|
3813
|
+
* When false, verification is performed locally.
|
|
3814
|
+
*
|
|
3815
|
+
* @generated from field: bool from_server = 3;
|
|
3816
|
+
*/
|
|
3817
|
+
fromServer: boolean;
|
|
3756
3818
|
};
|
|
3757
3819
|
|
|
3758
3820
|
/**
|