@milaboratories/pl-client 3.14.6 → 3.15.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/core/PromiseTracker.d.ts +1 -2
- package/dist/core/PromiseTracker.d.ts.map +1 -1
- package/dist/core/abstract_stream.d.ts +2 -3
- package/dist/core/abstract_stream.d.ts.map +1 -1
- package/dist/core/auth.d.ts +2 -4
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts +1 -3
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/capabilities.d.ts +2 -3
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/client.cjs +7 -0
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +8 -5
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +7 -0
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.d.ts +29 -31
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/default_client.d.ts +2 -4
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts +4 -6
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts +20 -22
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts +4 -5
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.cjs +10 -0
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +9 -5
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +10 -0
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/ll_transaction.d.ts +4 -6
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/stat.d.ts +2 -3
- package/dist/core/stat.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +30 -32
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/tree_filter.d.ts +14 -10
- package/dist/core/tree_filter.d.ts.map +1 -1
- package/dist/core/types.d.ts +54 -55
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts +4 -6
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/user_resources.cjs +23 -0
- package/dist/core/user_resources.cjs.map +1 -1
- package/dist/core/user_resources.d.ts +33 -7
- package/dist/core/user_resources.d.ts.map +1 -1
- package/dist/core/user_resources.js +23 -0
- package/dist/core/user_resources.js.map +1 -1
- package/dist/core/wire.d.ts +5 -7
- package/dist/core/wire.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts +32 -34
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts +8 -9
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts +2 -4
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts +2 -4
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +163 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +19 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +29 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +19 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +2217 -428
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +162 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +51 -30
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +7 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +6 -8
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/any.d.ts +2 -4
- package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.d.ts +2 -4
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts +2 -4
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto-grpc/google/rpc/code.d.ts +1 -2
- package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -1
- package/dist/proto-rest/index.d.ts +6 -8
- package/dist/proto-rest/index.d.ts.map +1 -1
- package/dist/proto-rest/plapi.d.ts +241 -122
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/test/tcp-proxy.d.ts +3 -5
- package/dist/test/tcp-proxy.d.ts.map +1 -1
- package/dist/test/test_config.d.ts +13 -14
- package/dist/test/test_config.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/core/client.ts +9 -0
- package/src/core/ll_client.ts +15 -0
- package/src/core/user_resources.ts +39 -0
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +34 -3
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +206 -0
package/dist/core/wire.d.ts
CHANGED
|
@@ -2,37 +2,35 @@ import { PlClientConfig } from "./config.js";
|
|
|
2
2
|
import { GrpcTransport } from "@protobuf-ts/grpc-transport";
|
|
3
3
|
import { Dispatcher } from "undici";
|
|
4
4
|
import { Middleware } from "openapi-fetch";
|
|
5
|
-
|
|
6
5
|
//#region src/core/wire.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* Options for the HTTP client to properly reach the PL server API when
|
|
9
8
|
* it works in WebSocket + REST mode.
|
|
10
9
|
*/
|
|
11
|
-
type RestConnection = {
|
|
10
|
+
export type RestConnection = {
|
|
12
11
|
type: "rest";
|
|
13
12
|
Config: PlClientConfig;
|
|
14
13
|
Dispatcher: Dispatcher;
|
|
15
14
|
Middlewares: Middleware[];
|
|
16
15
|
};
|
|
17
|
-
type GrpcConnection = {
|
|
16
|
+
export type GrpcConnection = {
|
|
18
17
|
type: "grpc";
|
|
19
18
|
Transport: GrpcTransport;
|
|
20
19
|
};
|
|
21
|
-
type WireConnection = RestConnection | GrpcConnection;
|
|
20
|
+
export type WireConnection = RestConnection | GrpcConnection;
|
|
22
21
|
/**
|
|
23
22
|
* A provider for a wire (gRPC, HTTP, etc.) client.
|
|
24
23
|
* The client is created on demand, and is reset when the transport is reset.
|
|
25
24
|
* This is useful for cases where the client is used in a loop, and the transport is reset after each iteration.
|
|
26
25
|
*/
|
|
27
|
-
interface WireClientProvider<Client> {
|
|
26
|
+
export interface WireClientProvider<Client> {
|
|
28
27
|
get(): Client;
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
31
30
|
* A factory for wire client providers.
|
|
32
31
|
*/
|
|
33
|
-
interface WireClientProviderFactory {
|
|
32
|
+
export interface WireClientProviderFactory {
|
|
34
33
|
createWireClientProvider<Client>(clientConstructor: (transport: WireConnection) => Client): WireClientProvider<Client>;
|
|
35
34
|
}
|
|
36
35
|
//#endregion
|
|
37
|
-
export { GrpcConnection, RestConnection, WireClientProvider, WireClientProviderFactory, WireConnection };
|
|
38
36
|
//# sourceMappingURL=wire.d.ts.map
|
package/dist/core/wire.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","names":[],"sources":["../../src/core/wire.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wire.d.ts","names":[],"sources":["../../src/core/wire.ts"],"mappings":";;;;;;;;;YASY;EACV;EACA,QAAQ;EACR,YAAY;EACZ,aAAa;;YAGH;EACV;EACA,WAAW;;YAGD,iBAAiB,iBAAiB;;;;;;iBAS7B,mBAAmB;EAClC,OAAO;;;;;iBAMQ;EACf,yBAAyB,QACvB,oBAAoB,WAAW,mBAAmB,SACjD,mBAAmB"}
|
package/dist/helpers/pl.d.ts
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { FutureFieldType, ResourceType } from "../core/types.js";
|
|
2
2
|
import { AnyRef, FieldRef, PlTransaction, ResourceRef } from "../core/transaction.js";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/pl.d.ts
|
|
5
3
|
declare namespace pl_d_exports {
|
|
6
4
|
export { ClientRoot, EphHolder, EphStdMap, Holder, HolderRefField, JsonArray, JsonBool, JsonGzObject, JsonNull, JsonNumber, JsonObject, JsonString, PlRecord, PlRecordEntry, RNull, StdMap, StructTestResource, ValueTestResource, createPlArray, createPlBool, createPlMap, createPlNull, createPlNumber, createPlObject, createPlString, futureRecord, plEntries, plEntry, unwrapHolder, wrapInEphHolder, wrapInHolder };
|
|
7
5
|
}
|
|
8
|
-
declare const ClientRoot: ResourceType;
|
|
9
|
-
declare const StructTestResource: ResourceType;
|
|
10
|
-
declare const ValueTestResource: ResourceType;
|
|
11
|
-
declare const JsonString: ResourceType;
|
|
12
|
-
declare const JsonBool: ResourceType;
|
|
13
|
-
declare const JsonObject: ResourceType;
|
|
14
|
-
declare const JsonGzObject: ResourceType;
|
|
15
|
-
declare const JsonArray: ResourceType;
|
|
16
|
-
declare const JsonNumber: ResourceType;
|
|
17
|
-
declare const JsonNull: ResourceType;
|
|
18
|
-
declare const RNull: ResourceType;
|
|
19
|
-
declare const EphStdMap: ResourceType;
|
|
20
|
-
declare const StdMap: ResourceType;
|
|
21
|
-
declare function createPlNull(tx: PlTransaction): ResourceRef;
|
|
22
|
-
declare function createPlBool(tx: PlTransaction, val: boolean): ResourceRef;
|
|
23
|
-
declare function createPlNumber(tx: PlTransaction, val: number): ResourceRef;
|
|
24
|
-
declare function createPlString(tx: PlTransaction, val: string): ResourceRef;
|
|
25
|
-
declare function createPlArray(tx: PlTransaction, val: any[]): ResourceRef;
|
|
26
|
-
declare function createPlObject(tx: PlTransaction, val: object): ResourceRef;
|
|
27
|
-
type PlRecordEntry<Key extends string = string, Ref extends AnyRef = AnyRef> = [Key, Ref];
|
|
28
|
-
type PlRecord<Key extends string = string, Ref extends AnyRef = AnyRef> = Record<Key, Ref>;
|
|
29
|
-
declare function plEntry<Key extends string = string, Ref extends AnyRef = AnyRef>(key: Key, ref: Ref): PlRecordEntry<Key, Ref>;
|
|
30
|
-
declare function plEntries<Key extends string = string, Ref extends AnyRef = AnyRef>(record: PlRecord<Key, Ref>, fields?: Key[]): PlRecordEntry<Key, Ref>[];
|
|
6
|
+
export declare const ClientRoot: ResourceType;
|
|
7
|
+
export declare const StructTestResource: ResourceType;
|
|
8
|
+
export declare const ValueTestResource: ResourceType;
|
|
9
|
+
export declare const JsonString: ResourceType;
|
|
10
|
+
export declare const JsonBool: ResourceType;
|
|
11
|
+
export declare const JsonObject: ResourceType;
|
|
12
|
+
export declare const JsonGzObject: ResourceType;
|
|
13
|
+
export declare const JsonArray: ResourceType;
|
|
14
|
+
export declare const JsonNumber: ResourceType;
|
|
15
|
+
export declare const JsonNull: ResourceType;
|
|
16
|
+
export declare const RNull: ResourceType;
|
|
17
|
+
export declare const EphStdMap: ResourceType;
|
|
18
|
+
export declare const StdMap: ResourceType;
|
|
19
|
+
export declare function createPlNull(tx: PlTransaction): ResourceRef;
|
|
20
|
+
export declare function createPlBool(tx: PlTransaction, val: boolean): ResourceRef;
|
|
21
|
+
export declare function createPlNumber(tx: PlTransaction, val: number): ResourceRef;
|
|
22
|
+
export declare function createPlString(tx: PlTransaction, val: string): ResourceRef;
|
|
23
|
+
export declare function createPlArray(tx: PlTransaction, val: any[]): ResourceRef;
|
|
24
|
+
export declare function createPlObject(tx: PlTransaction, val: object): ResourceRef;
|
|
25
|
+
export type PlRecordEntry<Key extends string = string, Ref extends AnyRef = AnyRef> = [Key, Ref];
|
|
26
|
+
export type PlRecord<Key extends string = string, Ref extends AnyRef = AnyRef> = Record<Key, Ref>;
|
|
27
|
+
export declare function plEntry<Key extends string = string, Ref extends AnyRef = AnyRef>(key: Key, ref: Ref): PlRecordEntry<Key, Ref>;
|
|
28
|
+
export declare function plEntries<Key extends string = string, Ref extends AnyRef = AnyRef>(record: PlRecord<Key, Ref>, fields?: Key[]): PlRecordEntry<Key, Ref>[];
|
|
31
29
|
/** Helper method to build standard pl map from a set of entries */
|
|
32
|
-
declare function createPlMap(tx: PlTransaction, entries: PlRecordEntry[] | PlRecord, ephemeral: boolean, type?: ResourceType): ResourceRef;
|
|
33
|
-
declare function futureRecord<Key extends string>(tx: PlTransaction, rId: AnyRef, keys: Key[], fieldType: FutureFieldType, prefix?: string): PlRecord<Key, FieldRef>;
|
|
30
|
+
export declare function createPlMap(tx: PlTransaction, entries: PlRecordEntry[] | PlRecord, ephemeral: boolean, type?: ResourceType): ResourceRef;
|
|
31
|
+
export declare function futureRecord<Key extends string>(tx: PlTransaction, rId: AnyRef, keys: Key[], fieldType: FutureFieldType, prefix?: string): PlRecord<Key, FieldRef>;
|
|
34
32
|
/** Name of the field in block holder, that references the actual block-pack. */
|
|
35
|
-
declare const Holder: ResourceType;
|
|
36
|
-
declare const EphHolder: ResourceType;
|
|
37
|
-
declare const HolderRefField = "ref";
|
|
38
|
-
declare function wrapInHolder(tx: PlTransaction, ref: AnyRef): ResourceRef;
|
|
39
|
-
declare function wrapInEphHolder(tx: PlTransaction, ref: AnyRef): ResourceRef;
|
|
40
|
-
declare function unwrapHolder(tx: PlTransaction, ref: AnyRef): FieldRef;
|
|
33
|
+
export declare const Holder: ResourceType;
|
|
34
|
+
export declare const EphHolder: ResourceType;
|
|
35
|
+
export declare const HolderRefField = "ref";
|
|
36
|
+
export declare function wrapInHolder(tx: PlTransaction, ref: AnyRef): ResourceRef;
|
|
37
|
+
export declare function wrapInEphHolder(tx: PlTransaction, ref: AnyRef): ResourceRef;
|
|
38
|
+
export declare function unwrapHolder(tx: PlTransaction, ref: AnyRef): FieldRef;
|
|
41
39
|
//#endregion
|
|
42
|
-
export {
|
|
40
|
+
export { pl_d_exports };
|
|
43
41
|
//# sourceMappingURL=pl.d.ts.map
|
package/dist/helpers/pl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.d.ts","names":[],"sources":["../../src/helpers/pl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pl.d.ts","names":[],"sources":["../../src/helpers/pl.ts"],"mappings":";;;;;qBAiBa,YAAU;qBAEV,oBAAkB;qBAClB,mBAAiB;qBAEjB,YAAU;qBACV,UAAQ;qBACR,YAAU;qBACV,cAAY;qBACZ,WAAS;qBACT,YAAU;qBACV,UAAQ;qBAER,OAAK;qBAEL,WAAW;qBACX,QAAQ;wBAML,aAAa,IAAI,gBAAgB;wBAIjC,aAAa,IAAI,eAAe,eAAe;wBAI/C,eAAe,IAAI,eAAe,cAAc;wBAIhD,eAAe,IAAI,eAAe,cAAc;wBAIhD,cAAc,IAAI,eAAe,aAAa;wBAI9C,eAAe,IAAI,eAAe,cAAc;YAQpD,cAAc,6BAA6B,YAAY,SAAS,WAAW,KAAK;YAEhF,SAAS,6BAA6B,YAAY,SAAS,UAAU,OAAO,KAAK;wBAE7E,QAAQ,6BAA6B,YAAY,SAAS,QACxE,KAAK,KACL,KAAK,MACJ,cAAc,KAAK;wBAIN,UAAU,6BAA6B,YAAY,SAAS,QAC1E,QAAQ,SAAS,KAAK,MACtB,SAAS,QACR,cAAc,KAAK;;wBAON,YACd,IAAI,eACJ,SAAS,kBAAkB,UAC3B,oBACA,OAAO,eACN;wBAYa,aAAa,oBAC3B,IAAI,eACJ,KAAK,QACL,MAAM,OACN,WAAW,iBACX,kBACC,SAAS,KAAK;;qBAWJ,QAAM;qBACN,WAAS;qBACT;wBAEG,aAAa,IAAI,eAAe,KAAK,SAAS;wBAQ9C,gBAAgB,IAAI,eAAe,KAAK,SAAS;wBAQjD,aAAa,IAAI,eAAe,KAAK,SAAS"}
|
package/dist/helpers/poll.d.ts
CHANGED
|
@@ -2,20 +2,20 @@ import { FieldData, FieldType, ResourceData, SignedResourceId } from "../core/ty
|
|
|
2
2
|
import { PlTransaction } from "../core/transaction.js";
|
|
3
3
|
import { PlClient } from "../core/client.js";
|
|
4
4
|
import { RetryOptions } from "@milaboratories/ts-helpers";
|
|
5
|
-
|
|
6
5
|
//#region src/helpers/poll.d.ts
|
|
7
6
|
/** This error tells state assertion mechanism that required state is not yet ready */
|
|
8
|
-
declare class ContinuePolling extends Error {
|
|
7
|
+
export declare class ContinuePolling extends Error {
|
|
9
8
|
name: string;
|
|
10
9
|
}
|
|
11
|
-
type PollFieldTraverseOps = {
|
|
10
|
+
export type PollFieldTraverseOps = {
|
|
12
11
|
expectedType?: FieldType;
|
|
13
12
|
/** Fail if error present along with the value, if value not present,
|
|
14
13
|
* but error do, exception will be thrown anyway. */
|
|
15
|
-
failOnError: boolean;
|
|
14
|
+
failOnError: boolean;
|
|
15
|
+
/** Traverse only if field report its value as final. */
|
|
16
16
|
onlyFinal: boolean;
|
|
17
17
|
};
|
|
18
|
-
declare class PollResourceAccessor {
|
|
18
|
+
export declare class PollResourceAccessor {
|
|
19
19
|
readonly tx: PollTxAccessor;
|
|
20
20
|
readonly data: ResourceData;
|
|
21
21
|
readonly path: string[];
|
|
@@ -30,14 +30,13 @@ declare class PollResourceAccessor {
|
|
|
30
30
|
getKValue(key: string): Promise<string>;
|
|
31
31
|
getKValueObj<T>(key: string): Promise<T>;
|
|
32
32
|
}
|
|
33
|
-
declare class PollTxAccessor {
|
|
33
|
+
export declare class PollTxAccessor {
|
|
34
34
|
readonly tx: PlTransaction;
|
|
35
35
|
constructor(tx: PlTransaction);
|
|
36
36
|
get(rid: SignedResourceId, failOnError?: boolean, path?: string[]): Promise<PollResourceAccessor>;
|
|
37
37
|
throwError(error: SignedResourceId, path?: string[]): Promise<never>;
|
|
38
38
|
}
|
|
39
|
-
declare const DefaultPollingRetryOptions: RetryOptions;
|
|
40
|
-
declare function poll<T>(cl: PlClient, cb: (tx: PollTxAccessor) => Promise<T>, retryOptions?: RetryOptions, txName?: string): Promise<T>;
|
|
39
|
+
export declare const DefaultPollingRetryOptions: RetryOptions;
|
|
40
|
+
export declare function poll<T>(cl: PlClient, cb: (tx: PollTxAccessor) => Promise<T>, retryOptions?: RetryOptions, txName?: string): Promise<T>;
|
|
41
41
|
//#endregion
|
|
42
|
-
export { ContinuePolling, DefaultPollingRetryOptions, PollFieldTraverseOps, PollResourceAccessor, PollTxAccessor, poll };
|
|
43
42
|
//# sourceMappingURL=poll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","names":[],"sources":["../../src/helpers/poll.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"poll.d.ts","names":[],"sources":["../../src/helpers/poll.ts"],"mappings":";;;;;;qBAaa,wBAAwB;EACnC;;YAGU;EACV,eAAe;;;EAGf;;EAEA;;qBAQW;WAEO,IAAI;WACJ,MAAM;WACN;EAHlB,YACkB,IAAI,gBACJ,MAAM,cACN;EAGX,SAAS;EAKH,kBAAkB,QAAQ;EAOhC,aAAa,cAAc,eAAe,YAAY;EAqBhD,IACX,cACA,MAAK,QAAQ,wBACZ,QAAQ;EAgBE,SACX,KAAK,QAAQ,0BACV,kBACF,QAAQ;EAIE,YAAY,oBACvB,KAAK,QAAQ,0BACV,OAAO,QACT,QAAQ,OAAO,KAAK;EAMV,YACX,MAAK,QAAQ,wBACZ,QAAQ,eAAe;EASb,UAAU,cAAc;EAMxB,aAAa,GAAG,cAAc,QAAQ;;qBAKxC;WACiB,IAAI;EAAhC,YAA4B,IAAI;EAEnB,IACX,KAAK,kBACL,uBACA,kBACC,QAAQ;EAOL,WAAW,OAAO,kBAAkB,kBAAsB;;qBAOrD,4BAA4B;wBAQnB,KAAK,GACzB,IAAI,UACJ,KAAK,IAAI,mBAAmB,QAAQ,IACpC,eAAc,cACd,kBACC,QAAQ"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { FieldData, OptionalSignedResourceId } from "../core/types.js";
|
|
2
2
|
import { PlTransaction } from "../core/transaction.js";
|
|
3
|
-
|
|
4
3
|
//#region src/helpers/tx_helpers.d.ts
|
|
5
|
-
interface ValErr {
|
|
4
|
+
export interface ValErr {
|
|
6
5
|
valueId: OptionalSignedResourceId;
|
|
7
6
|
errorId: OptionalSignedResourceId;
|
|
8
7
|
error?: string;
|
|
9
8
|
}
|
|
10
|
-
declare function valErr(tx: PlTransaction, f: FieldData): Promise<ValErr>;
|
|
9
|
+
export declare function valErr(tx: PlTransaction, f: FieldData): Promise<ValErr>;
|
|
11
10
|
//#endregion
|
|
12
|
-
export { ValErr, valErr };
|
|
13
11
|
//# sourceMappingURL=tx_helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tx_helpers.d.ts","names":[],"sources":["../../src/helpers/tx_helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tx_helpers.d.ts","names":[],"sources":["../../src/helpers/tx_helpers.ts"],"mappings":";;;iBAKiB;EACf,SAAS;EACT,SAAS;EACT;;wBAGoB,OAAO,IAAI,eAAe,GAAG,YAAY,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { BackendCapability, hasCapability } from "./core/capabilities.js";
|
|
|
8
8
|
import { GrpcConnection, RestConnection, WireClientProvider, WireClientProviderFactory, WireConnection } from "./core/wire.js";
|
|
9
9
|
import { index_d_exports } from "./proto-rest/index.js";
|
|
10
10
|
import { PlDriver, PlDriverDefinition, addRTypeToMetadata, createRTypeRoutingHeader } from "./core/driver.js";
|
|
11
|
-
import { GrantEntry, StorageInfo, TxRunner, UserEntry, UserResources } from "./core/user_resources.js";
|
|
11
|
+
import { GrantEntry, StorageInfo, TxRunner, UserDeletionReport, UserEntry, UserResources } from "./core/user_resources.js";
|
|
12
12
|
import { PlClient, TxOps } from "./core/client.js";
|
|
13
13
|
import { DisconnectedError, PermissionDeniedError, PlError, PlErrorCodeNotFound, RESTError, RecoverablePlError, UnauthenticatedError, UnrecoverablePlError, isAbortedError, isCancelError, isConnectionProblem, isNotFoundError, isPermissionDenied, isTimeoutError, isTimeoutOrCancelError, isTransientCallFailure, isUnauthenticated, isUnimplementedError, rethrowMeaningfulError, throwPlNotFoundError } from "./core/errors.js";
|
|
14
14
|
import { defaultPlClient, tryGetFileConfig } from "./core/default_client.js";
|
|
@@ -18,4 +18,4 @@ import { Filter, Property, treeFilter } from "./core/tree_filter.js";
|
|
|
18
18
|
import { ValErr, valErr } from "./helpers/tx_helpers.js";
|
|
19
19
|
import { ContinuePolling, DefaultPollingRetryOptions, PollFieldTraverseOps, PollResourceAccessor, PollTxAccessor, poll } from "./helpers/poll.js";
|
|
20
20
|
import { test_config_d_exports } from "./test/test_config.js";
|
|
21
|
-
export { AnonymousAuthInformation, AnyFieldId, AnyFieldRef, AnyRef, AnyResourceId, AnyResourceRef, AuthInformation, AuthOps, BackendCapability, BasicResourceData, ColorProof, ContinuePolling, DEFAULT_AUTH_MAX_REFRESH, DEFAULT_LOGIN_TIMEOUT, DEFAULT_MAX_CACHE_BYTES, DEFAULT_REQUEST_TIMEOUT, DEFAULT_RETRY_BACKOFF_ALGORITHM, DEFAULT_RETRY_EXPONENTIAL_BACKOFF_MULTIPLIER, DEFAULT_RETRY_INITIAL_DELAY, DEFAULT_RETRY_JITTER, DEFAULT_RETRY_LINEAR_BACKOFF_STEP, DEFAULT_RETRY_MAX_ATTEMPTS, DEFAULT_RETRY_MAX_DELAY, DEFAULT_RO_TX_TIMEOUT, DEFAULT_RW_TX_TIMEOUT, DEFAULT_TOKEN_TTL_SECONDS, DefaultFinalResourceDataPredicate, DefaultPollingRetryOptions, DefaultRetryOptions, DisconnectedError, FieldData, FieldId, FieldRef, FieldStatus, FieldType, Filter, ResourceAPI_Tree_Filter_OperatorType as FilterOperatorType, ResourceAPI_Tree_Filter_Property as FilterProperty, FinalResourceDataPredicate, FutureFieldType, GlobalResourceId, GrantEntry, GrantPermissions, GrantType, GrpcConnection, KeyValue, KeyValueString, LocalFieldId, LocalResourceId, MAX_ADAPTIVE_REQUEST_TIMEOUT, MaxLocalId, MaxTxId, NullResourceId, NullSignedResourceId, OptionalAnyResourceId, OptionalSignedResourceId, PermissionDeniedError, pl_d_exports as Pl, PlClient, PlClientConfig, PlConnectionStatus, PlConnectionStatusListener, PlDriver, PlDriverDefinition, PlError, PlErrorCodeNotFound, PlTransaction, PollFieldTraverseOps, PollResourceAccessor, PollTxAccessor, Property, RESTError, RTT_DEADLINE_MULTIPLIER, RTT_SMOOTHING_ALPHA, RecoverablePlError, type ResourceAPI_Tree_Filter, ResourceData, ResourceIdWithSignature, ResourceKind, ResourceRef, ResourceSignature, ResourceTreeFrame, ResourceTreeItem, ResourceType, ResourceTypeName, ResourceTypePrefix, index_d_exports as RestAPI, RestConnection, Role, SSOAuthMethod, SSOFlowType, SSOLoginAttempt, SUPPORTED_WIRE_PROTOCOLS, SignedResourceId, StorageInfo, test_config_d_exports as TestHelpers, TxCommitConflict, TxOps, TxRunner, UnauthenticatedError, UnauthenticatedPlClient, UnrecoverablePlError, UserEntry, UserResources, ValErr, WireClientProvider, WireClientProviderFactory, WireConnection, addRTypeToMetadata, anyResourceIdToBigint, asSignedResourceId, base64UrlToSignature, checkLocalityOfResourceId, createGlobalResourceId, createLocalResourceId, createRTypeRoutingHeader, createSignedResourceId, defaultPlClient, deriveUnaryDeadline, ensureSignedResourceIdNotNull, expirationFromAuthInformation, extractBasicResourceData, extractTxId, field, getField, hasCapability, inferAuthRefreshTime, isAbortedError, isAnyResourceId, isCancelError, isConnectionProblem, isEveryoneUserLogin, isField, isFieldRef, isLocalResourceId, isNotFoundError, isNotNullSignedResourceId, isNullSignedResourceId, isPermissionDenied, isResource, isResourceId, isResourceRef, isRootResourceId, isSignedResourceId, isTimeoutError, isTimeoutOrCancelError, isTransientCallFailure, isUnauthenticated, isUnimplementedError, jsonToData, parseResourceType, parseSignedResourceId, plAddressToConfig, poll, readyOrDuplicateOrError, resDataToJson, resourceIdFromString, resourceIdToString, resourceType, resourceTypeToString, resourceTypesEqual, rethrowMeaningfulError, setResourceSignaturesRequired, signatureToBase64Url, smoothRtt, stringifyWithResourceId, throwPlNotFoundError, toFieldId, toGlobalFieldId, toGlobalResourceId, toResourceSignature, treeFilter, tryGetFileConfig, valErr, wireProtocol };
|
|
21
|
+
export { AnonymousAuthInformation, AnyFieldId, AnyFieldRef, AnyRef, AnyResourceId, AnyResourceRef, AuthInformation, AuthOps, BackendCapability, BasicResourceData, ColorProof, ContinuePolling, DEFAULT_AUTH_MAX_REFRESH, DEFAULT_LOGIN_TIMEOUT, DEFAULT_MAX_CACHE_BYTES, DEFAULT_REQUEST_TIMEOUT, DEFAULT_RETRY_BACKOFF_ALGORITHM, DEFAULT_RETRY_EXPONENTIAL_BACKOFF_MULTIPLIER, DEFAULT_RETRY_INITIAL_DELAY, DEFAULT_RETRY_JITTER, DEFAULT_RETRY_LINEAR_BACKOFF_STEP, DEFAULT_RETRY_MAX_ATTEMPTS, DEFAULT_RETRY_MAX_DELAY, DEFAULT_RO_TX_TIMEOUT, DEFAULT_RW_TX_TIMEOUT, DEFAULT_TOKEN_TTL_SECONDS, DefaultFinalResourceDataPredicate, DefaultPollingRetryOptions, DefaultRetryOptions, DisconnectedError, FieldData, FieldId, FieldRef, FieldStatus, FieldType, Filter, ResourceAPI_Tree_Filter_OperatorType as FilterOperatorType, ResourceAPI_Tree_Filter_Property as FilterProperty, FinalResourceDataPredicate, FutureFieldType, GlobalResourceId, GrantEntry, GrantPermissions, GrantType, GrpcConnection, KeyValue, KeyValueString, LocalFieldId, LocalResourceId, MAX_ADAPTIVE_REQUEST_TIMEOUT, MaxLocalId, MaxTxId, NullResourceId, NullSignedResourceId, OptionalAnyResourceId, OptionalSignedResourceId, PermissionDeniedError, pl_d_exports as Pl, PlClient, PlClientConfig, PlConnectionStatus, PlConnectionStatusListener, PlDriver, PlDriverDefinition, PlError, PlErrorCodeNotFound, PlTransaction, PollFieldTraverseOps, PollResourceAccessor, PollTxAccessor, Property, RESTError, RTT_DEADLINE_MULTIPLIER, RTT_SMOOTHING_ALPHA, RecoverablePlError, type ResourceAPI_Tree_Filter, ResourceData, ResourceIdWithSignature, ResourceKind, ResourceRef, ResourceSignature, ResourceTreeFrame, ResourceTreeItem, ResourceType, ResourceTypeName, ResourceTypePrefix, index_d_exports as RestAPI, RestConnection, Role, SSOAuthMethod, SSOFlowType, SSOLoginAttempt, SUPPORTED_WIRE_PROTOCOLS, SignedResourceId, StorageInfo, test_config_d_exports as TestHelpers, TxCommitConflict, TxOps, TxRunner, UnauthenticatedError, UnauthenticatedPlClient, UnrecoverablePlError, UserDeletionReport, UserEntry, UserResources, ValErr, WireClientProvider, WireClientProviderFactory, WireConnection, addRTypeToMetadata, anyResourceIdToBigint, asSignedResourceId, base64UrlToSignature, checkLocalityOfResourceId, createGlobalResourceId, createLocalResourceId, createRTypeRoutingHeader, createSignedResourceId, defaultPlClient, deriveUnaryDeadline, ensureSignedResourceIdNotNull, expirationFromAuthInformation, extractBasicResourceData, extractTxId, field, getField, hasCapability, inferAuthRefreshTime, isAbortedError, isAnyResourceId, isCancelError, isConnectionProblem, isEveryoneUserLogin, isField, isFieldRef, isLocalResourceId, isNotFoundError, isNotNullSignedResourceId, isNullSignedResourceId, isPermissionDenied, isResource, isResourceId, isResourceRef, isRootResourceId, isSignedResourceId, isTimeoutError, isTimeoutOrCancelError, isTransientCallFailure, isUnauthenticated, isUnimplementedError, jsonToData, parseResourceType, parseSignedResourceId, plAddressToConfig, poll, readyOrDuplicateOrError, resDataToJson, resourceIdFromString, resourceIdToString, resourceType, resourceTypeToString, resourceTypesEqual, rethrowMeaningfulError, setResourceSignaturesRequired, signatureToBase64Url, smoothRtt, stringifyWithResourceId, throwPlNotFoundError, toFieldId, toGlobalFieldId, toGlobalResourceId, toResourceSignature, treeFilter, tryGetFileConfig, valErr, wireProtocol };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Any } from "../../../../../google/protobuf/any.js";
|
|
2
2
|
import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The `Status` type defines a logical error model that is suitable for
|
|
@@ -13,7 +12,7 @@ import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, Me
|
|
|
13
12
|
*
|
|
14
13
|
* @generated from protobuf message google.rpc.Status
|
|
15
14
|
*/
|
|
16
|
-
interface Status {
|
|
15
|
+
export interface Status {
|
|
17
16
|
/**
|
|
18
17
|
* The status code, which should be an enum value of
|
|
19
18
|
* [google.rpc.Code][google.rpc.Code].
|
|
@@ -47,7 +46,6 @@ declare class Status$Type extends MessageType<Status> {
|
|
|
47
46
|
/**
|
|
48
47
|
* @generated MessageType for protobuf message google.rpc.Status
|
|
49
48
|
*/
|
|
50
|
-
declare const Status: Status$Type;
|
|
49
|
+
export declare const Status: Status$Type;
|
|
51
50
|
//#endregion
|
|
52
|
-
export { Status };
|
|
53
51
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"status.d.ts","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.ts"],"mappings":";;;;;;;;;;;;;;iBAuCiB;;;;;;;EAOb;;;;;;;;;EASA;;;;;;;EAOA,SAAS;;cAGP,oBAAoB,YAAY;EAClC;EAOA,OAAO,QAAQ,eAAe,UAAU;EASxC,mBAAmB,QAAQ,eAAe,gBAAgB,SAAS,mBAAmB,SAAS,SAAS;EAyBxG,oBAAoB,SAAS,QAAQ,QAAQ,eAAe,SAAS,qBAAqB;;;;;qBAmBjF,QAAM"}
|
|
@@ -15380,6 +15380,158 @@ var AuthAPI_User$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
15380
15380
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.User
|
|
15381
15381
|
*/
|
|
15382
15382
|
const AuthAPI_User = new AuthAPI_User$Type();
|
|
15383
|
+
var AuthAPI_DeleteUser$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
15384
|
+
constructor() {
|
|
15385
|
+
super("MiLaboratories.PL.API.AuthAPI.DeleteUser", []);
|
|
15386
|
+
}
|
|
15387
|
+
create(value) {
|
|
15388
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
15389
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
15390
|
+
return message;
|
|
15391
|
+
}
|
|
15392
|
+
internalBinaryRead(reader, length, options, target) {
|
|
15393
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
15394
|
+
while (reader.pos < end) {
|
|
15395
|
+
let [fieldNo, wireType] = reader.tag();
|
|
15396
|
+
switch (fieldNo) {
|
|
15397
|
+
default:
|
|
15398
|
+
let u = options.readUnknownField;
|
|
15399
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
15400
|
+
let d = reader.skip(wireType);
|
|
15401
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
15402
|
+
}
|
|
15403
|
+
}
|
|
15404
|
+
return message;
|
|
15405
|
+
}
|
|
15406
|
+
internalBinaryWrite(message, writer, options) {
|
|
15407
|
+
let u = options.writeUnknownFields;
|
|
15408
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
15409
|
+
return writer;
|
|
15410
|
+
}
|
|
15411
|
+
};
|
|
15412
|
+
new AuthAPI_DeleteUser$Type();
|
|
15413
|
+
var AuthAPI_DeleteUser_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
15414
|
+
constructor() {
|
|
15415
|
+
super("MiLaboratories.PL.API.AuthAPI.DeleteUser.Request", [{
|
|
15416
|
+
no: 1,
|
|
15417
|
+
name: "login",
|
|
15418
|
+
kind: "scalar",
|
|
15419
|
+
T: 9
|
|
15420
|
+
}]);
|
|
15421
|
+
}
|
|
15422
|
+
create(value) {
|
|
15423
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
15424
|
+
message.login = "";
|
|
15425
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
15426
|
+
return message;
|
|
15427
|
+
}
|
|
15428
|
+
internalBinaryRead(reader, length, options, target) {
|
|
15429
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
15430
|
+
while (reader.pos < end) {
|
|
15431
|
+
let [fieldNo, wireType] = reader.tag();
|
|
15432
|
+
switch (fieldNo) {
|
|
15433
|
+
case 1:
|
|
15434
|
+
message.login = reader.string();
|
|
15435
|
+
break;
|
|
15436
|
+
default:
|
|
15437
|
+
let u = options.readUnknownField;
|
|
15438
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
15439
|
+
let d = reader.skip(wireType);
|
|
15440
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
15441
|
+
}
|
|
15442
|
+
}
|
|
15443
|
+
return message;
|
|
15444
|
+
}
|
|
15445
|
+
internalBinaryWrite(message, writer, options) {
|
|
15446
|
+
if (message.login !== "") writer.tag(1, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.login);
|
|
15447
|
+
let u = options.writeUnknownFields;
|
|
15448
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
15449
|
+
return writer;
|
|
15450
|
+
}
|
|
15451
|
+
};
|
|
15452
|
+
/**
|
|
15453
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.DeleteUser.Request
|
|
15454
|
+
*/
|
|
15455
|
+
const AuthAPI_DeleteUser_Request = new AuthAPI_DeleteUser_Request$Type();
|
|
15456
|
+
var AuthAPI_DeleteUser_Response$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
15457
|
+
constructor() {
|
|
15458
|
+
super("MiLaboratories.PL.API.AuthAPI.DeleteUser.Response", [
|
|
15459
|
+
{
|
|
15460
|
+
no: 1,
|
|
15461
|
+
name: "user_root_id",
|
|
15462
|
+
kind: "scalar",
|
|
15463
|
+
T: 4,
|
|
15464
|
+
L: 0
|
|
15465
|
+
},
|
|
15466
|
+
{
|
|
15467
|
+
no: 2,
|
|
15468
|
+
name: "user_root_deleted",
|
|
15469
|
+
kind: "scalar",
|
|
15470
|
+
T: 8
|
|
15471
|
+
},
|
|
15472
|
+
{
|
|
15473
|
+
no: 3,
|
|
15474
|
+
name: "revoked_grants",
|
|
15475
|
+
kind: "scalar",
|
|
15476
|
+
T: 13
|
|
15477
|
+
},
|
|
15478
|
+
{
|
|
15479
|
+
no: 4,
|
|
15480
|
+
name: "removed_identity_index_entries",
|
|
15481
|
+
kind: "scalar",
|
|
15482
|
+
T: 13
|
|
15483
|
+
}
|
|
15484
|
+
]);
|
|
15485
|
+
}
|
|
15486
|
+
create(value) {
|
|
15487
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
15488
|
+
message.userRootId = 0n;
|
|
15489
|
+
message.userRootDeleted = false;
|
|
15490
|
+
message.revokedGrants = 0;
|
|
15491
|
+
message.removedIdentityIndexEntries = 0;
|
|
15492
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
15493
|
+
return message;
|
|
15494
|
+
}
|
|
15495
|
+
internalBinaryRead(reader, length, options, target) {
|
|
15496
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
15497
|
+
while (reader.pos < end) {
|
|
15498
|
+
let [fieldNo, wireType] = reader.tag();
|
|
15499
|
+
switch (fieldNo) {
|
|
15500
|
+
case 1:
|
|
15501
|
+
message.userRootId = reader.uint64().toBigInt();
|
|
15502
|
+
break;
|
|
15503
|
+
case 2:
|
|
15504
|
+
message.userRootDeleted = reader.bool();
|
|
15505
|
+
break;
|
|
15506
|
+
case 3:
|
|
15507
|
+
message.revokedGrants = reader.uint32();
|
|
15508
|
+
break;
|
|
15509
|
+
case 4:
|
|
15510
|
+
message.removedIdentityIndexEntries = reader.uint32();
|
|
15511
|
+
break;
|
|
15512
|
+
default:
|
|
15513
|
+
let u = options.readUnknownField;
|
|
15514
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
15515
|
+
let d = reader.skip(wireType);
|
|
15516
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
15517
|
+
}
|
|
15518
|
+
}
|
|
15519
|
+
return message;
|
|
15520
|
+
}
|
|
15521
|
+
internalBinaryWrite(message, writer, options) {
|
|
15522
|
+
if (message.userRootId !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.userRootId);
|
|
15523
|
+
if (message.userRootDeleted !== false) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).bool(message.userRootDeleted);
|
|
15524
|
+
if (message.revokedGrants !== 0) writer.tag(3, _protobuf_ts_runtime.WireType.Varint).uint32(message.revokedGrants);
|
|
15525
|
+
if (message.removedIdentityIndexEntries !== 0) writer.tag(4, _protobuf_ts_runtime.WireType.Varint).uint32(message.removedIdentityIndexEntries);
|
|
15526
|
+
let u = options.writeUnknownFields;
|
|
15527
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
15528
|
+
return writer;
|
|
15529
|
+
}
|
|
15530
|
+
};
|
|
15531
|
+
/**
|
|
15532
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.DeleteUser.Response
|
|
15533
|
+
*/
|
|
15534
|
+
const AuthAPI_DeleteUser_Response = new AuthAPI_DeleteUser_Response$Type();
|
|
15383
15535
|
var AuthAPI_ListUsers$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
15384
15536
|
constructor() {
|
|
15385
15537
|
super("MiLaboratories.PL.API.AuthAPI.ListUsers", []);
|
|
@@ -16341,6 +16493,15 @@ const Platform = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.PL.API
|
|
|
16341
16493
|
I: AuthAPI_ListUsers_Request,
|
|
16342
16494
|
O: AuthAPI_ListUsers_Response
|
|
16343
16495
|
},
|
|
16496
|
+
{
|
|
16497
|
+
name: "DeleteUser",
|
|
16498
|
+
options: { "google.api.http": {
|
|
16499
|
+
post: "/v1/auth/delete-user",
|
|
16500
|
+
body: "*"
|
|
16501
|
+
} },
|
|
16502
|
+
I: AuthAPI_DeleteUser_Request,
|
|
16503
|
+
O: AuthAPI_DeleteUser_Response
|
|
16504
|
+
},
|
|
16344
16505
|
{
|
|
16345
16506
|
name: "ListResourceTypes",
|
|
16346
16507
|
options: { "google.api.http": { get: "/v1/resource-types" } },
|
|
@@ -16364,6 +16525,8 @@ const Platform = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.PL.API
|
|
|
16364
16525
|
exports.AuthAPI_BeginSSOLogin_PublicPKCE = AuthAPI_BeginSSOLogin_PublicPKCE;
|
|
16365
16526
|
exports.AuthAPI_BeginSSOLogin_Request = AuthAPI_BeginSSOLogin_Request;
|
|
16366
16527
|
exports.AuthAPI_BeginSSOLogin_Response = AuthAPI_BeginSSOLogin_Response;
|
|
16528
|
+
exports.AuthAPI_DeleteUser_Request = AuthAPI_DeleteUser_Request;
|
|
16529
|
+
exports.AuthAPI_DeleteUser_Response = AuthAPI_DeleteUser_Response;
|
|
16367
16530
|
exports.AuthAPI_GetJWTToken_Request = AuthAPI_GetJWTToken_Request;
|
|
16368
16531
|
exports.AuthAPI_GetJWTToken_Response = AuthAPI_GetJWTToken_Response;
|
|
16369
16532
|
exports.AuthAPI_GetSessionInfo_Request = AuthAPI_GetSessionInfo_Request;
|