@milaboratories/pl-client 3.6.0 → 3.8.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/capabilities.cjs +9 -0
- package/dist/core/capabilities.cjs.map +1 -0
- package/dist/core/capabilities.d.ts +24 -0
- package/dist/core/capabilities.d.ts.map +1 -0
- package/dist/core/capabilities.js +9 -0
- package/dist/core/capabilities.js.map +1 -0
- package/dist/core/client.cjs +7 -25
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +2 -3
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +7 -25
- package/dist/core/client.js.map +1 -1
- package/dist/core/ll_client.cjs +153 -7
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +26 -0
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +153 -7
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +4 -2
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +4 -2
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/unauth_client.cjs +33 -1
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +19 -0
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +33 -1
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +1101 -135
- 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 +49 -10
- 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 +61 -1
- 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 +49 -10
- 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 +423 -15
- 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 +1101 -135
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts +8 -9
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-grpc/google/rpc/code.cjs.map +1 -1
- package/dist/proto-grpc/google/rpc/code.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +250 -5
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/util/pl.cjs.map +1 -1
- package/dist/util/pl.js.map +1 -1
- package/package.json +5 -5
- package/src/core/capabilities.ts +26 -0
- package/src/core/client.ts +11 -29
- package/src/core/ll_client.test.ts +16 -3
- package/src/core/ll_client.ts +187 -8
- package/src/core/ll_transaction.test.ts +15 -9
- package/src/core/transaction.ts +2 -0
- package/src/core/unauth_client.ts +42 -3
- package/src/core/unauth_client_branch.test.ts +69 -0
- package/src/index.ts +1 -0
- package/src/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.ts +1 -1
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +85 -10
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +1322 -104
- package/src/proto-grpc/google/api/http.ts +1 -1
- package/src/proto-grpc/google/protobuf/descriptor.ts +7 -240
- package/src/proto-grpc/google/protobuf/timestamp.ts +8 -9
- package/src/proto-grpc/google/protobuf/wrappers.ts +4 -38
- package/src/proto-grpc/google/rpc/code.ts +1 -1
- package/src/proto-grpc/google/rpc/error_details.ts +5 -5
- package/src/proto-grpc/google/rpc/http.ts +1 -1
- package/src/proto-grpc/google/rpc/status.ts +1 -1
- package/src/proto-rest/plapi.ts +266 -5
- package/src/util/pl.ts +5 -0
|
@@ -1488,6 +1488,13 @@ export interface ResourceAPI_Get_Request {
|
|
|
1488
1488
|
* @generated from protobuf field: bool load_fields = 2
|
|
1489
1489
|
*/
|
|
1490
1490
|
loadFields: boolean;
|
|
1491
|
+
/**
|
|
1492
|
+
* When false (default), soft-deleted resources are treated as not found.
|
|
1493
|
+
* When true, soft-deleted resources are returned with deleted_time populated.
|
|
1494
|
+
*
|
|
1495
|
+
* @generated from protobuf field: bool show_soft_deletes = 4
|
|
1496
|
+
*/
|
|
1497
|
+
showSoftDeletes: boolean;
|
|
1491
1498
|
}
|
|
1492
1499
|
/**
|
|
1493
1500
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPI.Get.Response
|
|
@@ -1543,6 +1550,13 @@ export interface ResourceAPI_List_ByType_Request {
|
|
|
1543
1550
|
* @generated from protobuf field: bool load_fields = 5
|
|
1544
1551
|
*/
|
|
1545
1552
|
loadFields: boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* When false (default), soft-deleted resources are excluded from results.
|
|
1555
|
+
* When true, soft-deleted resources are included with deleted_time populated.
|
|
1556
|
+
*
|
|
1557
|
+
* @generated from protobuf field: bool show_soft_deletes = 7
|
|
1558
|
+
*/
|
|
1559
|
+
showSoftDeletes: boolean;
|
|
1546
1560
|
}
|
|
1547
1561
|
/**
|
|
1548
1562
|
* Multi-message
|
|
@@ -1792,6 +1806,14 @@ export interface ResourceAPI_Tree_Request {
|
|
|
1792
1806
|
* @generated from protobuf field: repeated MiLaboratories.PL.API.ResourceAPI.Tree.SeedResource seeds = 8
|
|
1793
1807
|
*/
|
|
1794
1808
|
seeds: ResourceAPI_Tree_SeedResource[];
|
|
1809
|
+
/**
|
|
1810
|
+
* When false (default), soft-deleted resources are treated as not found
|
|
1811
|
+
* during traversal (silently skipped). When true, soft-deleted resources
|
|
1812
|
+
* are included with deleted_time populated.
|
|
1813
|
+
*
|
|
1814
|
+
* @generated from protobuf field: bool show_soft_deletes = 9
|
|
1815
|
+
*/
|
|
1816
|
+
showSoftDeletes: boolean;
|
|
1795
1817
|
}
|
|
1796
1818
|
/**
|
|
1797
1819
|
* A single entry point for multi-root tree traversal.
|
|
@@ -2259,6 +2281,13 @@ export interface FieldAPI_List_Request {
|
|
|
2259
2281
|
* @generated from protobuf field: uint32 limit = 3
|
|
2260
2282
|
*/
|
|
2261
2283
|
limit: number;
|
|
2284
|
+
/**
|
|
2285
|
+
* When false (default), soft-deleted resources are treated as not found.
|
|
2286
|
+
* When true, soft-deleted resources are returned with deleted_time populated.
|
|
2287
|
+
*
|
|
2288
|
+
* @generated from protobuf field: bool show_soft_deletes = 5
|
|
2289
|
+
*/
|
|
2290
|
+
showSoftDeletes: boolean;
|
|
2262
2291
|
}
|
|
2263
2292
|
/**
|
|
2264
2293
|
* Multi-message
|
|
@@ -3506,26 +3535,164 @@ export interface AuthAPI_ListMethods_Response {
|
|
|
3506
3535
|
*/
|
|
3507
3536
|
methods: AuthAPI_ListMethods_MethodInfo[];
|
|
3508
3537
|
}
|
|
3538
|
+
/**
|
|
3539
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod
|
|
3540
|
+
*/
|
|
3541
|
+
export interface AuthAPI_ListMethods_BasicAuthMethod {
|
|
3542
|
+
}
|
|
3543
|
+
/**
|
|
3544
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod
|
|
3545
|
+
*/
|
|
3546
|
+
export interface AuthAPI_ListMethods_TokenAuthMethod {
|
|
3547
|
+
}
|
|
3548
|
+
/**
|
|
3549
|
+
* SSOAuthMethod advertises an external IdP-based login flow. The desktop
|
|
3550
|
+
* app uses the contents to drive the PKCE exchange locally, then hands the
|
|
3551
|
+
* resulting IdP token-response back via Login.SSOCredentials.
|
|
3552
|
+
*
|
|
3553
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod
|
|
3554
|
+
*/
|
|
3555
|
+
export interface AuthAPI_ListMethods_SSOAuthMethod {
|
|
3556
|
+
/**
|
|
3557
|
+
* @generated from protobuf field: string issuer = 1
|
|
3558
|
+
*/
|
|
3559
|
+
issuer: string;
|
|
3560
|
+
/**
|
|
3561
|
+
* @generated from protobuf field: string client_id = 2
|
|
3562
|
+
*/
|
|
3563
|
+
clientId: string;
|
|
3564
|
+
/**
|
|
3565
|
+
* @generated from protobuf field: string scopes = 3
|
|
3566
|
+
*/
|
|
3567
|
+
scopes: string; // space-separated
|
|
3568
|
+
/**
|
|
3569
|
+
* @generated from protobuf field: string resource = 4
|
|
3570
|
+
*/
|
|
3571
|
+
resource: string; // optional (RFC 8707), may be empty
|
|
3572
|
+
/**
|
|
3573
|
+
* @generated from protobuf field: string prompt = 5
|
|
3574
|
+
*/
|
|
3575
|
+
prompt: string; // login | none | consent | select_account
|
|
3576
|
+
/**
|
|
3577
|
+
* @generated from protobuf field: repeated uint32 redirect_ports = 6
|
|
3578
|
+
*/
|
|
3579
|
+
redirectPorts: number[]; // pre-registered loopback ports; desktop picks one
|
|
3580
|
+
/**
|
|
3581
|
+
* @generated from protobuf field: string subject_token_source = 7
|
|
3582
|
+
*/
|
|
3583
|
+
subjectTokenSource: string; // "access_token" | "id_token"
|
|
3584
|
+
/**
|
|
3585
|
+
* @generated from protobuf field: string user_id_claim = 8
|
|
3586
|
+
*/
|
|
3587
|
+
userIdClaim: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* @generated from protobuf field: string groups_claim = 9
|
|
3590
|
+
*/
|
|
3591
|
+
groupsClaim: string;
|
|
3592
|
+
/**
|
|
3593
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType flow_type = 10
|
|
3594
|
+
*/
|
|
3595
|
+
flowType: AuthAPI_ListMethods_SSOAuthMethod_FlowType;
|
|
3596
|
+
}
|
|
3597
|
+
/**
|
|
3598
|
+
* @generated from protobuf enum MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType
|
|
3599
|
+
*/
|
|
3600
|
+
export enum AuthAPI_ListMethods_SSOAuthMethod_FlowType {
|
|
3601
|
+
/**
|
|
3602
|
+
* @generated from protobuf enum value: PUBLIC_PKCE = 0;
|
|
3603
|
+
*/
|
|
3604
|
+
PUBLIC_PKCE = 0
|
|
3605
|
+
}
|
|
3509
3606
|
/**
|
|
3510
3607
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo
|
|
3511
3608
|
*/
|
|
3512
3609
|
export interface AuthAPI_ListMethods_MethodInfo {
|
|
3513
3610
|
/**
|
|
3514
|
-
*
|
|
3611
|
+
* id is the stable, machine-readable identifier of the login method
|
|
3612
|
+
* instance. Unique across the entire server.
|
|
3613
|
+
*
|
|
3614
|
+
* @generated from protobuf field: string id = 6
|
|
3515
3615
|
*/
|
|
3516
|
-
|
|
3616
|
+
id: string;
|
|
3517
3617
|
/**
|
|
3518
|
-
*
|
|
3618
|
+
* description is the human-readable label in case we'd like to render it in UI.
|
|
3619
|
+
*
|
|
3620
|
+
* @generated from protobuf field: string description = 7
|
|
3519
3621
|
*/
|
|
3520
|
-
|
|
3622
|
+
description: string;
|
|
3521
3623
|
/**
|
|
3522
|
-
* @generated from protobuf
|
|
3624
|
+
* @generated from protobuf oneof: method
|
|
3523
3625
|
*/
|
|
3524
|
-
|
|
3525
|
-
|
|
3626
|
+
method: {
|
|
3627
|
+
oneofKind: "basic";
|
|
3628
|
+
/**
|
|
3629
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod basic = 4
|
|
3630
|
+
*/
|
|
3631
|
+
basic: AuthAPI_ListMethods_BasicAuthMethod;
|
|
3632
|
+
} | {
|
|
3633
|
+
oneofKind: "token";
|
|
3634
|
+
/**
|
|
3635
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod token = 5
|
|
3636
|
+
*/
|
|
3637
|
+
token: AuthAPI_ListMethods_TokenAuthMethod;
|
|
3638
|
+
} | {
|
|
3639
|
+
oneofKind: "sso";
|
|
3640
|
+
/**
|
|
3641
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod sso = 8
|
|
3642
|
+
*/
|
|
3643
|
+
sso: AuthAPI_ListMethods_SSOAuthMethod;
|
|
3644
|
+
} | {
|
|
3645
|
+
oneofKind: undefined;
|
|
3646
|
+
};
|
|
3647
|
+
}
|
|
3648
|
+
/**
|
|
3649
|
+
* BeginSSOLogin issues a fresh, one-time login nonce to the desktop. The
|
|
3650
|
+
* desktop is expected to place the nonce verbatim into the OIDC auth-request
|
|
3651
|
+
* before redirecting to the IdP. The current stub implementation forgets the
|
|
3652
|
+
* nonce immediately and does not validate it on Login.
|
|
3653
|
+
*
|
|
3654
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin
|
|
3655
|
+
*/
|
|
3656
|
+
export interface AuthAPI_BeginSSOLogin {
|
|
3657
|
+
}
|
|
3658
|
+
/**
|
|
3659
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request
|
|
3660
|
+
*/
|
|
3661
|
+
export interface AuthAPI_BeginSSOLogin_Request {
|
|
3662
|
+
}
|
|
3663
|
+
/**
|
|
3664
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE
|
|
3665
|
+
*/
|
|
3666
|
+
export interface AuthAPI_BeginSSOLogin_PublicPKCE {
|
|
3667
|
+
/**
|
|
3668
|
+
* @generated from protobuf field: string nonce = 1
|
|
3669
|
+
*/
|
|
3670
|
+
nonce: string; // server-issued one-time value
|
|
3671
|
+
/**
|
|
3672
|
+
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 2
|
|
3673
|
+
*/
|
|
3674
|
+
expiresAt?: Timestamp; // after this, nonce is no longer valid (when enforced)
|
|
3675
|
+
}
|
|
3676
|
+
/**
|
|
3677
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Response
|
|
3678
|
+
*/
|
|
3679
|
+
export interface AuthAPI_BeginSSOLogin_Response {
|
|
3680
|
+
/**
|
|
3681
|
+
* @generated from protobuf oneof: flow
|
|
3682
|
+
*/
|
|
3683
|
+
flow: {
|
|
3684
|
+
oneofKind: "publicPkce";
|
|
3685
|
+
/**
|
|
3686
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE public_pkce = 1
|
|
3687
|
+
*/
|
|
3688
|
+
publicPkce: AuthAPI_BeginSSOLogin_PublicPKCE;
|
|
3689
|
+
} | {
|
|
3690
|
+
oneofKind: undefined;
|
|
3526
3691
|
};
|
|
3527
3692
|
}
|
|
3528
3693
|
/**
|
|
3694
|
+
* Deprecated: see rpc GetJWTToken.
|
|
3695
|
+
*
|
|
3529
3696
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken
|
|
3530
3697
|
*/
|
|
3531
3698
|
export interface AuthAPI_GetJWTToken {
|
|
@@ -3562,6 +3729,137 @@ export interface AuthAPI_GetJWTToken_Response {
|
|
|
3562
3729
|
*/
|
|
3563
3730
|
role: AuthAPI_Role;
|
|
3564
3731
|
}
|
|
3732
|
+
/**
|
|
3733
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login
|
|
3734
|
+
*/
|
|
3735
|
+
export interface AuthAPI_Login {
|
|
3736
|
+
}
|
|
3737
|
+
/**
|
|
3738
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials
|
|
3739
|
+
*/
|
|
3740
|
+
export interface AuthAPI_Login_BasicCredentials {
|
|
3741
|
+
/**
|
|
3742
|
+
* @generated from protobuf field: string login = 1
|
|
3743
|
+
*/
|
|
3744
|
+
login: string;
|
|
3745
|
+
/**
|
|
3746
|
+
* @generated from protobuf field: string password = 2
|
|
3747
|
+
*/
|
|
3748
|
+
password: string;
|
|
3749
|
+
}
|
|
3750
|
+
/**
|
|
3751
|
+
* TokenCredentials accepts any opaque bearer-style string: a controller
|
|
3752
|
+
* pre-shared secret, an existing Platforma JWT, or a future OIDC id-token.
|
|
3753
|
+
*
|
|
3754
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials
|
|
3755
|
+
*/
|
|
3756
|
+
export interface AuthAPI_Login_TokenCredentials {
|
|
3757
|
+
/**
|
|
3758
|
+
* @generated from protobuf field: bytes token = 1
|
|
3759
|
+
*/
|
|
3760
|
+
token: Uint8Array;
|
|
3761
|
+
}
|
|
3762
|
+
/**
|
|
3763
|
+
* SSOCredentials carries the raw JSON body returned by the IdP's /token
|
|
3764
|
+
* endpoint after the desktop completes a PKCE exchange.
|
|
3765
|
+
*
|
|
3766
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials
|
|
3767
|
+
*/
|
|
3768
|
+
export interface AuthAPI_Login_SSOCredentials {
|
|
3769
|
+
/**
|
|
3770
|
+
* @generated from protobuf field: bytes token_response = 1
|
|
3771
|
+
*/
|
|
3772
|
+
tokenResponse: Uint8Array;
|
|
3773
|
+
}
|
|
3774
|
+
/**
|
|
3775
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login.Request
|
|
3776
|
+
*/
|
|
3777
|
+
export interface AuthAPI_Login_Request {
|
|
3778
|
+
/**
|
|
3779
|
+
* @generated from protobuf oneof: credentials
|
|
3780
|
+
*/
|
|
3781
|
+
credentials: {
|
|
3782
|
+
oneofKind: "basic";
|
|
3783
|
+
/**
|
|
3784
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials basic = 1
|
|
3785
|
+
*/
|
|
3786
|
+
basic: AuthAPI_Login_BasicCredentials; // validated by htpasswd / ldap authenticators
|
|
3787
|
+
} | {
|
|
3788
|
+
oneofKind: "token";
|
|
3789
|
+
/**
|
|
3790
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials token = 2
|
|
3791
|
+
*/
|
|
3792
|
+
token: AuthAPI_Login_TokenCredentials; // validated by controller / jwt authenticators
|
|
3793
|
+
} | {
|
|
3794
|
+
oneofKind: "sso";
|
|
3795
|
+
/**
|
|
3796
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials sso = 5
|
|
3797
|
+
*/
|
|
3798
|
+
sso: AuthAPI_Login_SSOCredentials; // validated by sso authenticator
|
|
3799
|
+
} | {
|
|
3800
|
+
oneofKind: undefined;
|
|
3801
|
+
};
|
|
3802
|
+
/**
|
|
3803
|
+
* @generated from protobuf field: optional google.protobuf.Duration expiration = 3
|
|
3804
|
+
*/
|
|
3805
|
+
expiration?: Duration;
|
|
3806
|
+
/**
|
|
3807
|
+
* @generated from protobuf field: optional MiLaboratories.PL.API.AuthAPI.Role requested_role = 4
|
|
3808
|
+
*/
|
|
3809
|
+
requestedRole?: AuthAPI_Role;
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.Login.Response
|
|
3813
|
+
*/
|
|
3814
|
+
export interface AuthAPI_Login_Response {
|
|
3815
|
+
/**
|
|
3816
|
+
* @generated from protobuf field: string token = 1
|
|
3817
|
+
*/
|
|
3818
|
+
token: string;
|
|
3819
|
+
/**
|
|
3820
|
+
* @generated from protobuf field: bytes session_id = 2
|
|
3821
|
+
*/
|
|
3822
|
+
sessionId: Uint8Array;
|
|
3823
|
+
/**
|
|
3824
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Role role = 3
|
|
3825
|
+
*/
|
|
3826
|
+
role: AuthAPI_Role;
|
|
3827
|
+
}
|
|
3828
|
+
/**
|
|
3829
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken
|
|
3830
|
+
*/
|
|
3831
|
+
export interface AuthAPI_RefreshToken {
|
|
3832
|
+
}
|
|
3833
|
+
/**
|
|
3834
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Request
|
|
3835
|
+
*/
|
|
3836
|
+
export interface AuthAPI_RefreshToken_Request {
|
|
3837
|
+
/**
|
|
3838
|
+
* @generated from protobuf field: string token = 1
|
|
3839
|
+
*/
|
|
3840
|
+
token: string; // current Platforma JWT to refresh
|
|
3841
|
+
/**
|
|
3842
|
+
* @generated from protobuf field: optional google.protobuf.Duration expiration = 2
|
|
3843
|
+
*/
|
|
3844
|
+
expiration?: Duration;
|
|
3845
|
+
}
|
|
3846
|
+
/**
|
|
3847
|
+
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Response
|
|
3848
|
+
*/
|
|
3849
|
+
export interface AuthAPI_RefreshToken_Response {
|
|
3850
|
+
/**
|
|
3851
|
+
* @generated from protobuf field: string token = 1
|
|
3852
|
+
*/
|
|
3853
|
+
token: string;
|
|
3854
|
+
/**
|
|
3855
|
+
* @generated from protobuf field: bytes session_id = 2
|
|
3856
|
+
*/
|
|
3857
|
+
sessionId: Uint8Array;
|
|
3858
|
+
/**
|
|
3859
|
+
* @generated from protobuf field: MiLaboratories.PL.API.AuthAPI.Role role = 3
|
|
3860
|
+
*/
|
|
3861
|
+
role: AuthAPI_Role;
|
|
3862
|
+
}
|
|
3565
3863
|
/**
|
|
3566
3864
|
* @generated from protobuf message MiLaboratories.PL.API.AuthAPI.GetSessionInfo
|
|
3567
3865
|
*/
|
|
@@ -4000,14 +4298,20 @@ export interface MaintenanceAPI_Ping_Response {
|
|
|
4000
4298
|
*/
|
|
4001
4299
|
arch: string; // x64 / aarch64
|
|
4002
4300
|
/**
|
|
4003
|
-
* Opt-in capabilities advertised by this server instance
|
|
4004
|
-
*
|
|
4005
|
-
*
|
|
4301
|
+
* Opt-in capabilities advertised by this server instance. Two
|
|
4302
|
+
* client-side usage modes share this same wire field, decided
|
|
4303
|
+
* per-token by the client:
|
|
4304
|
+
* - Optimization hint. Client picks between a fast path and a
|
|
4305
|
+
* fallback without probing by trial-and-error; missing tokens
|
|
4306
|
+
* just cause the fallback to run (e.g. "treeFilter:v1").
|
|
4307
|
+
* - Install-time gate. Client refuses to install a block whose
|
|
4308
|
+
* manifest declares a required capability the server doesn't
|
|
4309
|
+
* advertise; missing tokens fail closed (e.g. "wasm:v1").
|
|
4006
4310
|
*
|
|
4007
4311
|
* Each entry is an opaque token "<feature>:<version>" (e.g.
|
|
4008
|
-
* "
|
|
4009
|
-
*
|
|
4010
|
-
*
|
|
4312
|
+
* "treeFilter:v1"). The field is unset on servers predating this
|
|
4313
|
+
* mechanism, which the client treats as "no optional capabilities
|
|
4314
|
+
* advertised" — fallback for hints, fail-closed for gates.
|
|
4011
4315
|
*
|
|
4012
4316
|
* All list see pl/platform/api/plapiserver/server_capabilities.go
|
|
4013
4317
|
*
|
|
@@ -7978,7 +8282,8 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
7978
8282
|
super("MiLaboratories.PL.API.ResourceAPI.Get.Request", [
|
|
7979
8283
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7980
8284
|
{ no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
7981
|
-
{ no: 2, name: "load_fields", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
8285
|
+
{ no: 2, name: "load_fields", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
8286
|
+
{ no: 4, name: "show_soft_deletes", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
7982
8287
|
]);
|
|
7983
8288
|
}
|
|
7984
8289
|
create(value?: PartialMessage<ResourceAPI_Get_Request>): ResourceAPI_Get_Request {
|
|
@@ -7986,6 +8291,7 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
7986
8291
|
message.resourceId = 0n;
|
|
7987
8292
|
message.resourceSignature = new Uint8Array(0);
|
|
7988
8293
|
message.loadFields = false;
|
|
8294
|
+
message.showSoftDeletes = false;
|
|
7989
8295
|
if (value !== undefined)
|
|
7990
8296
|
reflectionMergePartial<ResourceAPI_Get_Request>(this, message, value);
|
|
7991
8297
|
return message;
|
|
@@ -8004,6 +8310,9 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
8004
8310
|
case /* bool load_fields */ 2:
|
|
8005
8311
|
message.loadFields = reader.bool();
|
|
8006
8312
|
break;
|
|
8313
|
+
case /* bool show_soft_deletes */ 4:
|
|
8314
|
+
message.showSoftDeletes = reader.bool();
|
|
8315
|
+
break;
|
|
8007
8316
|
default:
|
|
8008
8317
|
let u = options.readUnknownField;
|
|
8009
8318
|
if (u === "throw")
|
|
@@ -8025,6 +8334,9 @@ class ResourceAPI_Get_Request$Type extends MessageType<ResourceAPI_Get_Request>
|
|
|
8025
8334
|
/* bytes resource_signature = 3; */
|
|
8026
8335
|
if (message.resourceSignature.length)
|
|
8027
8336
|
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
8337
|
+
/* bool show_soft_deletes = 4; */
|
|
8338
|
+
if (message.showSoftDeletes !== false)
|
|
8339
|
+
writer.tag(4, WireType.Varint).bool(message.showSoftDeletes);
|
|
8028
8340
|
let u = options.writeUnknownFields;
|
|
8029
8341
|
if (u !== false)
|
|
8030
8342
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -8165,7 +8477,8 @@ class ResourceAPI_List_ByType_Request$Type extends MessageType<ResourceAPI_List_
|
|
|
8165
8477
|
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
8166
8478
|
{ no: 6, name: "after", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8167
8479
|
{ no: 4, name: "resolve_duplicates", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
8168
|
-
{ no: 5, name: "load_fields", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
8480
|
+
{ no: 5, name: "load_fields", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
8481
|
+
{ no: 7, name: "show_soft_deletes", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
8169
8482
|
]);
|
|
8170
8483
|
}
|
|
8171
8484
|
create(value?: PartialMessage<ResourceAPI_List_ByType_Request>): ResourceAPI_List_ByType_Request {
|
|
@@ -8174,6 +8487,7 @@ class ResourceAPI_List_ByType_Request$Type extends MessageType<ResourceAPI_List_
|
|
|
8174
8487
|
message.after = 0n;
|
|
8175
8488
|
message.resolveDuplicates = false;
|
|
8176
8489
|
message.loadFields = false;
|
|
8490
|
+
message.showSoftDeletes = false;
|
|
8177
8491
|
if (value !== undefined)
|
|
8178
8492
|
reflectionMergePartial<ResourceAPI_List_ByType_Request>(this, message, value);
|
|
8179
8493
|
return message;
|
|
@@ -8198,6 +8512,9 @@ class ResourceAPI_List_ByType_Request$Type extends MessageType<ResourceAPI_List_
|
|
|
8198
8512
|
case /* bool load_fields */ 5:
|
|
8199
8513
|
message.loadFields = reader.bool();
|
|
8200
8514
|
break;
|
|
8515
|
+
case /* bool show_soft_deletes */ 7:
|
|
8516
|
+
message.showSoftDeletes = reader.bool();
|
|
8517
|
+
break;
|
|
8201
8518
|
default:
|
|
8202
8519
|
let u = options.readUnknownField;
|
|
8203
8520
|
if (u === "throw")
|
|
@@ -8225,6 +8542,9 @@ class ResourceAPI_List_ByType_Request$Type extends MessageType<ResourceAPI_List_
|
|
|
8225
8542
|
/* uint64 after = 6; */
|
|
8226
8543
|
if (message.after !== 0n)
|
|
8227
8544
|
writer.tag(6, WireType.Varint).uint64(message.after);
|
|
8545
|
+
/* bool show_soft_deletes = 7; */
|
|
8546
|
+
if (message.showSoftDeletes !== false)
|
|
8547
|
+
writer.tag(7, WireType.Varint).bool(message.showSoftDeletes);
|
|
8228
8548
|
let u = options.writeUnknownFields;
|
|
8229
8549
|
if (u !== false)
|
|
8230
8550
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -9179,7 +9499,8 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
9179
9499
|
{ no: 5, name: "field_filter", kind: "message", T: () => ResourceAPI_Tree_Filter },
|
|
9180
9500
|
{ no: 6, name: "include_kv", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
9181
9501
|
{ no: 7, name: "traverse_stop_rules", kind: "message", T: () => ResourceAPI_Tree_Filter },
|
|
9182
|
-
{ no: 8, name: "seeds", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ResourceAPI_Tree_SeedResource }
|
|
9502
|
+
{ no: 8, name: "seeds", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ResourceAPI_Tree_SeedResource },
|
|
9503
|
+
{ no: 9, name: "show_soft_deletes", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
9183
9504
|
]);
|
|
9184
9505
|
}
|
|
9185
9506
|
create(value?: PartialMessage<ResourceAPI_Tree_Request>): ResourceAPI_Tree_Request {
|
|
@@ -9188,6 +9509,7 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
9188
9509
|
message.resourceSignature = new Uint8Array(0);
|
|
9189
9510
|
message.includeKv = false;
|
|
9190
9511
|
message.seeds = [];
|
|
9512
|
+
message.showSoftDeletes = false;
|
|
9191
9513
|
if (value !== undefined)
|
|
9192
9514
|
reflectionMergePartial<ResourceAPI_Tree_Request>(this, message, value);
|
|
9193
9515
|
return message;
|
|
@@ -9218,6 +9540,9 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
9218
9540
|
case /* repeated MiLaboratories.PL.API.ResourceAPI.Tree.SeedResource seeds */ 8:
|
|
9219
9541
|
message.seeds.push(ResourceAPI_Tree_SeedResource.internalBinaryRead(reader, reader.uint32(), options));
|
|
9220
9542
|
break;
|
|
9543
|
+
case /* bool show_soft_deletes */ 9:
|
|
9544
|
+
message.showSoftDeletes = reader.bool();
|
|
9545
|
+
break;
|
|
9221
9546
|
default:
|
|
9222
9547
|
let u = options.readUnknownField;
|
|
9223
9548
|
if (u === "throw")
|
|
@@ -9251,6 +9576,9 @@ class ResourceAPI_Tree_Request$Type extends MessageType<ResourceAPI_Tree_Request
|
|
|
9251
9576
|
/* repeated MiLaboratories.PL.API.ResourceAPI.Tree.SeedResource seeds = 8; */
|
|
9252
9577
|
for (let i = 0; i < message.seeds.length; i++)
|
|
9253
9578
|
ResourceAPI_Tree_SeedResource.internalBinaryWrite(message.seeds[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
9579
|
+
/* bool show_soft_deletes = 9; */
|
|
9580
|
+
if (message.showSoftDeletes !== false)
|
|
9581
|
+
writer.tag(9, WireType.Varint).bool(message.showSoftDeletes);
|
|
9254
9582
|
let u = options.writeUnknownFields;
|
|
9255
9583
|
if (u !== false)
|
|
9256
9584
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -10722,7 +11050,8 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
10722
11050
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
10723
11051
|
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
10724
11052
|
{ no: 2, name: "start_from", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
10725
|
-
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
11053
|
+
{ no: 3, name: "limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
11054
|
+
{ no: 5, name: "show_soft_deletes", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
10726
11055
|
]);
|
|
10727
11056
|
}
|
|
10728
11057
|
create(value?: PartialMessage<FieldAPI_List_Request>): FieldAPI_List_Request {
|
|
@@ -10731,6 +11060,7 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
10731
11060
|
message.resourceSignature = new Uint8Array(0);
|
|
10732
11061
|
message.startFrom = "";
|
|
10733
11062
|
message.limit = 0;
|
|
11063
|
+
message.showSoftDeletes = false;
|
|
10734
11064
|
if (value !== undefined)
|
|
10735
11065
|
reflectionMergePartial<FieldAPI_List_Request>(this, message, value);
|
|
10736
11066
|
return message;
|
|
@@ -10752,6 +11082,9 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
10752
11082
|
case /* uint32 limit */ 3:
|
|
10753
11083
|
message.limit = reader.uint32();
|
|
10754
11084
|
break;
|
|
11085
|
+
case /* bool show_soft_deletes */ 5:
|
|
11086
|
+
message.showSoftDeletes = reader.bool();
|
|
11087
|
+
break;
|
|
10755
11088
|
default:
|
|
10756
11089
|
let u = options.readUnknownField;
|
|
10757
11090
|
if (u === "throw")
|
|
@@ -10776,6 +11109,9 @@ class FieldAPI_List_Request$Type extends MessageType<FieldAPI_List_Request> {
|
|
|
10776
11109
|
/* bytes resource_signature = 4; */
|
|
10777
11110
|
if (message.resourceSignature.length)
|
|
10778
11111
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
11112
|
+
/* bool show_soft_deletes = 5; */
|
|
11113
|
+
if (message.showSoftDeletes !== false)
|
|
11114
|
+
writer.tag(5, WireType.Varint).bool(message.showSoftDeletes);
|
|
10779
11115
|
let u = options.writeUnknownFields;
|
|
10780
11116
|
if (u !== false)
|
|
10781
11117
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17052,37 +17388,21 @@ class AuthAPI_ListMethods_Response$Type extends MessageType<AuthAPI_ListMethods_
|
|
|
17052
17388
|
*/
|
|
17053
17389
|
export const AuthAPI_ListMethods_Response = new AuthAPI_ListMethods_Response$Type();
|
|
17054
17390
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17055
|
-
class
|
|
17391
|
+
class AuthAPI_ListMethods_BasicAuthMethod$Type extends MessageType<AuthAPI_ListMethods_BasicAuthMethod> {
|
|
17056
17392
|
constructor() {
|
|
17057
|
-
super("MiLaboratories.PL.API.AuthAPI.ListMethods.
|
|
17058
|
-
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17059
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17060
|
-
{ no: 3, name: "info", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
17061
|
-
]);
|
|
17393
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod", []);
|
|
17062
17394
|
}
|
|
17063
|
-
create(value?: PartialMessage<
|
|
17395
|
+
create(value?: PartialMessage<AuthAPI_ListMethods_BasicAuthMethod>): AuthAPI_ListMethods_BasicAuthMethod {
|
|
17064
17396
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17065
|
-
message.type = "";
|
|
17066
|
-
message.name = "";
|
|
17067
|
-
message.info = {};
|
|
17068
17397
|
if (value !== undefined)
|
|
17069
|
-
reflectionMergePartial<
|
|
17398
|
+
reflectionMergePartial<AuthAPI_ListMethods_BasicAuthMethod>(this, message, value);
|
|
17070
17399
|
return message;
|
|
17071
17400
|
}
|
|
17072
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17401
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListMethods_BasicAuthMethod): AuthAPI_ListMethods_BasicAuthMethod {
|
|
17073
17402
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17074
17403
|
while (reader.pos < end) {
|
|
17075
17404
|
let [fieldNo, wireType] = reader.tag();
|
|
17076
17405
|
switch (fieldNo) {
|
|
17077
|
-
case /* string type */ 1:
|
|
17078
|
-
message.type = reader.string();
|
|
17079
|
-
break;
|
|
17080
|
-
case /* string name */ 2:
|
|
17081
|
-
message.name = reader.string();
|
|
17082
|
-
break;
|
|
17083
|
-
case /* map<string, string> info */ 3:
|
|
17084
|
-
this.binaryReadMap3(message.info, reader, options);
|
|
17085
|
-
break;
|
|
17086
17406
|
default:
|
|
17087
17407
|
let u = options.readUnknownField;
|
|
17088
17408
|
if (u === "throw")
|
|
@@ -17094,32 +17414,7 @@ class AuthAPI_ListMethods_MethodInfo$Type extends MessageType<AuthAPI_ListMethod
|
|
|
17094
17414
|
}
|
|
17095
17415
|
return message;
|
|
17096
17416
|
}
|
|
17097
|
-
|
|
17098
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof AuthAPI_ListMethods_MethodInfo["info"] | undefined, val: AuthAPI_ListMethods_MethodInfo["info"][any] | undefined;
|
|
17099
|
-
while (reader.pos < end) {
|
|
17100
|
-
let [fieldNo, wireType] = reader.tag();
|
|
17101
|
-
switch (fieldNo) {
|
|
17102
|
-
case 1:
|
|
17103
|
-
key = reader.string();
|
|
17104
|
-
break;
|
|
17105
|
-
case 2:
|
|
17106
|
-
val = reader.string();
|
|
17107
|
-
break;
|
|
17108
|
-
default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo.info");
|
|
17109
|
-
}
|
|
17110
|
-
}
|
|
17111
|
-
map[key ?? ""] = val ?? "";
|
|
17112
|
-
}
|
|
17113
|
-
internalBinaryWrite(message: AuthAPI_ListMethods_MethodInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17114
|
-
/* string type = 1; */
|
|
17115
|
-
if (message.type !== "")
|
|
17116
|
-
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
17117
|
-
/* string name = 2; */
|
|
17118
|
-
if (message.name !== "")
|
|
17119
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
17120
|
-
/* map<string, string> info = 3; */
|
|
17121
|
-
for (let k of globalThis.Object.keys(message.info))
|
|
17122
|
-
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.info[k]).join();
|
|
17417
|
+
internalBinaryWrite(message: AuthAPI_ListMethods_BasicAuthMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17123
17418
|
let u = options.writeUnknownFields;
|
|
17124
17419
|
if (u !== false)
|
|
17125
17420
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17127,21 +17422,21 @@ class AuthAPI_ListMethods_MethodInfo$Type extends MessageType<AuthAPI_ListMethod
|
|
|
17127
17422
|
}
|
|
17128
17423
|
}
|
|
17129
17424
|
/**
|
|
17130
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.
|
|
17425
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod
|
|
17131
17426
|
*/
|
|
17132
|
-
export const
|
|
17427
|
+
export const AuthAPI_ListMethods_BasicAuthMethod = new AuthAPI_ListMethods_BasicAuthMethod$Type();
|
|
17133
17428
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17134
|
-
class
|
|
17429
|
+
class AuthAPI_ListMethods_TokenAuthMethod$Type extends MessageType<AuthAPI_ListMethods_TokenAuthMethod> {
|
|
17135
17430
|
constructor() {
|
|
17136
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17431
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod", []);
|
|
17137
17432
|
}
|
|
17138
|
-
create(value?: PartialMessage<
|
|
17433
|
+
create(value?: PartialMessage<AuthAPI_ListMethods_TokenAuthMethod>): AuthAPI_ListMethods_TokenAuthMethod {
|
|
17139
17434
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17140
17435
|
if (value !== undefined)
|
|
17141
|
-
reflectionMergePartial<
|
|
17436
|
+
reflectionMergePartial<AuthAPI_ListMethods_TokenAuthMethod>(this, message, value);
|
|
17142
17437
|
return message;
|
|
17143
17438
|
}
|
|
17144
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17439
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListMethods_TokenAuthMethod): AuthAPI_ListMethods_TokenAuthMethod {
|
|
17145
17440
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17146
17441
|
while (reader.pos < end) {
|
|
17147
17442
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -17157,7 +17452,7 @@ class AuthAPI_GetJWTToken$Type extends MessageType<AuthAPI_GetJWTToken> {
|
|
|
17157
17452
|
}
|
|
17158
17453
|
return message;
|
|
17159
17454
|
}
|
|
17160
|
-
internalBinaryWrite(message:
|
|
17455
|
+
internalBinaryWrite(message: AuthAPI_ListMethods_TokenAuthMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17161
17456
|
let u = options.writeUnknownFields;
|
|
17162
17457
|
if (u !== false)
|
|
17163
17458
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17165,33 +17460,79 @@ class AuthAPI_GetJWTToken$Type extends MessageType<AuthAPI_GetJWTToken> {
|
|
|
17165
17460
|
}
|
|
17166
17461
|
}
|
|
17167
17462
|
/**
|
|
17168
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17463
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod
|
|
17169
17464
|
*/
|
|
17170
|
-
export const
|
|
17465
|
+
export const AuthAPI_ListMethods_TokenAuthMethod = new AuthAPI_ListMethods_TokenAuthMethod$Type();
|
|
17171
17466
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17172
|
-
class
|
|
17467
|
+
class AuthAPI_ListMethods_SSOAuthMethod$Type extends MessageType<AuthAPI_ListMethods_SSOAuthMethod> {
|
|
17173
17468
|
constructor() {
|
|
17174
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17175
|
-
{ no: 1, name: "
|
|
17176
|
-
{ no: 2, name: "
|
|
17469
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod", [
|
|
17470
|
+
{ no: 1, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17471
|
+
{ no: 2, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17472
|
+
{ no: 3, name: "scopes", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17473
|
+
{ no: 4, name: "resource", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17474
|
+
{ no: 5, name: "prompt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17475
|
+
{ no: 6, name: "redirect_ports", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ },
|
|
17476
|
+
{ no: 7, name: "subject_token_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17477
|
+
{ no: 8, name: "user_id_claim", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17478
|
+
{ no: 9, name: "groups_claim", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17479
|
+
{ no: 10, name: "flow_type", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType", AuthAPI_ListMethods_SSOAuthMethod_FlowType] }
|
|
17177
17480
|
]);
|
|
17178
17481
|
}
|
|
17179
|
-
create(value?: PartialMessage<
|
|
17482
|
+
create(value?: PartialMessage<AuthAPI_ListMethods_SSOAuthMethod>): AuthAPI_ListMethods_SSOAuthMethod {
|
|
17180
17483
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17484
|
+
message.issuer = "";
|
|
17485
|
+
message.clientId = "";
|
|
17486
|
+
message.scopes = "";
|
|
17487
|
+
message.resource = "";
|
|
17488
|
+
message.prompt = "";
|
|
17489
|
+
message.redirectPorts = [];
|
|
17490
|
+
message.subjectTokenSource = "";
|
|
17491
|
+
message.userIdClaim = "";
|
|
17492
|
+
message.groupsClaim = "";
|
|
17493
|
+
message.flowType = 0;
|
|
17181
17494
|
if (value !== undefined)
|
|
17182
|
-
reflectionMergePartial<
|
|
17495
|
+
reflectionMergePartial<AuthAPI_ListMethods_SSOAuthMethod>(this, message, value);
|
|
17183
17496
|
return message;
|
|
17184
17497
|
}
|
|
17185
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
17498
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListMethods_SSOAuthMethod): AuthAPI_ListMethods_SSOAuthMethod {
|
|
17186
17499
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17187
17500
|
while (reader.pos < end) {
|
|
17188
17501
|
let [fieldNo, wireType] = reader.tag();
|
|
17189
17502
|
switch (fieldNo) {
|
|
17190
|
-
case /*
|
|
17191
|
-
message.
|
|
17503
|
+
case /* string issuer */ 1:
|
|
17504
|
+
message.issuer = reader.string();
|
|
17192
17505
|
break;
|
|
17193
|
-
case /*
|
|
17194
|
-
message.
|
|
17506
|
+
case /* string client_id */ 2:
|
|
17507
|
+
message.clientId = reader.string();
|
|
17508
|
+
break;
|
|
17509
|
+
case /* string scopes */ 3:
|
|
17510
|
+
message.scopes = reader.string();
|
|
17511
|
+
break;
|
|
17512
|
+
case /* string resource */ 4:
|
|
17513
|
+
message.resource = reader.string();
|
|
17514
|
+
break;
|
|
17515
|
+
case /* string prompt */ 5:
|
|
17516
|
+
message.prompt = reader.string();
|
|
17517
|
+
break;
|
|
17518
|
+
case /* repeated uint32 redirect_ports */ 6:
|
|
17519
|
+
if (wireType === WireType.LengthDelimited)
|
|
17520
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
17521
|
+
message.redirectPorts.push(reader.uint32());
|
|
17522
|
+
else
|
|
17523
|
+
message.redirectPorts.push(reader.uint32());
|
|
17524
|
+
break;
|
|
17525
|
+
case /* string subject_token_source */ 7:
|
|
17526
|
+
message.subjectTokenSource = reader.string();
|
|
17527
|
+
break;
|
|
17528
|
+
case /* string user_id_claim */ 8:
|
|
17529
|
+
message.userIdClaim = reader.string();
|
|
17530
|
+
break;
|
|
17531
|
+
case /* string groups_claim */ 9:
|
|
17532
|
+
message.groupsClaim = reader.string();
|
|
17533
|
+
break;
|
|
17534
|
+
case /* MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType flow_type */ 10:
|
|
17535
|
+
message.flowType = reader.int32();
|
|
17195
17536
|
break;
|
|
17196
17537
|
default:
|
|
17197
17538
|
let u = options.readUnknownField;
|
|
@@ -17204,13 +17545,41 @@ class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_R
|
|
|
17204
17545
|
}
|
|
17205
17546
|
return message;
|
|
17206
17547
|
}
|
|
17207
|
-
internalBinaryWrite(message:
|
|
17208
|
-
/*
|
|
17209
|
-
if (message.
|
|
17210
|
-
|
|
17211
|
-
/*
|
|
17212
|
-
if (message.
|
|
17213
|
-
writer.tag(2, WireType.
|
|
17548
|
+
internalBinaryWrite(message: AuthAPI_ListMethods_SSOAuthMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17549
|
+
/* string issuer = 1; */
|
|
17550
|
+
if (message.issuer !== "")
|
|
17551
|
+
writer.tag(1, WireType.LengthDelimited).string(message.issuer);
|
|
17552
|
+
/* string client_id = 2; */
|
|
17553
|
+
if (message.clientId !== "")
|
|
17554
|
+
writer.tag(2, WireType.LengthDelimited).string(message.clientId);
|
|
17555
|
+
/* string scopes = 3; */
|
|
17556
|
+
if (message.scopes !== "")
|
|
17557
|
+
writer.tag(3, WireType.LengthDelimited).string(message.scopes);
|
|
17558
|
+
/* string resource = 4; */
|
|
17559
|
+
if (message.resource !== "")
|
|
17560
|
+
writer.tag(4, WireType.LengthDelimited).string(message.resource);
|
|
17561
|
+
/* string prompt = 5; */
|
|
17562
|
+
if (message.prompt !== "")
|
|
17563
|
+
writer.tag(5, WireType.LengthDelimited).string(message.prompt);
|
|
17564
|
+
/* repeated uint32 redirect_ports = 6; */
|
|
17565
|
+
if (message.redirectPorts.length) {
|
|
17566
|
+
writer.tag(6, WireType.LengthDelimited).fork();
|
|
17567
|
+
for (let i = 0; i < message.redirectPorts.length; i++)
|
|
17568
|
+
writer.uint32(message.redirectPorts[i]);
|
|
17569
|
+
writer.join();
|
|
17570
|
+
}
|
|
17571
|
+
/* string subject_token_source = 7; */
|
|
17572
|
+
if (message.subjectTokenSource !== "")
|
|
17573
|
+
writer.tag(7, WireType.LengthDelimited).string(message.subjectTokenSource);
|
|
17574
|
+
/* string user_id_claim = 8; */
|
|
17575
|
+
if (message.userIdClaim !== "")
|
|
17576
|
+
writer.tag(8, WireType.LengthDelimited).string(message.userIdClaim);
|
|
17577
|
+
/* string groups_claim = 9; */
|
|
17578
|
+
if (message.groupsClaim !== "")
|
|
17579
|
+
writer.tag(9, WireType.LengthDelimited).string(message.groupsClaim);
|
|
17580
|
+
/* MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod.FlowType flow_type = 10; */
|
|
17581
|
+
if (message.flowType !== 0)
|
|
17582
|
+
writer.tag(10, WireType.Varint).int32(message.flowType);
|
|
17214
17583
|
let u = options.writeUnknownFields;
|
|
17215
17584
|
if (u !== false)
|
|
17216
17585
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17218,16 +17587,373 @@ class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_R
|
|
|
17218
17587
|
}
|
|
17219
17588
|
}
|
|
17220
17589
|
/**
|
|
17221
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
17590
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod
|
|
17222
17591
|
*/
|
|
17223
|
-
export const
|
|
17592
|
+
export const AuthAPI_ListMethods_SSOAuthMethod = new AuthAPI_ListMethods_SSOAuthMethod$Type();
|
|
17224
17593
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17225
|
-
class
|
|
17594
|
+
class AuthAPI_ListMethods_MethodInfo$Type extends MessageType<AuthAPI_ListMethods_MethodInfo> {
|
|
17226
17595
|
constructor() {
|
|
17227
|
-
super("MiLaboratories.PL.API.AuthAPI.
|
|
17228
|
-
{ no:
|
|
17229
|
-
{ no:
|
|
17230
|
-
{ no:
|
|
17596
|
+
super("MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo", [
|
|
17597
|
+
{ no: 6, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17598
|
+
{ no: 7, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17599
|
+
{ no: 4, name: "basic", kind: "message", oneof: "method", T: () => AuthAPI_ListMethods_BasicAuthMethod },
|
|
17600
|
+
{ no: 5, name: "token", kind: "message", oneof: "method", T: () => AuthAPI_ListMethods_TokenAuthMethod },
|
|
17601
|
+
{ no: 8, name: "sso", kind: "message", oneof: "method", T: () => AuthAPI_ListMethods_SSOAuthMethod }
|
|
17602
|
+
]);
|
|
17603
|
+
}
|
|
17604
|
+
create(value?: PartialMessage<AuthAPI_ListMethods_MethodInfo>): AuthAPI_ListMethods_MethodInfo {
|
|
17605
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17606
|
+
message.id = "";
|
|
17607
|
+
message.description = "";
|
|
17608
|
+
message.method = { oneofKind: undefined };
|
|
17609
|
+
if (value !== undefined)
|
|
17610
|
+
reflectionMergePartial<AuthAPI_ListMethods_MethodInfo>(this, message, value);
|
|
17611
|
+
return message;
|
|
17612
|
+
}
|
|
17613
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_ListMethods_MethodInfo): AuthAPI_ListMethods_MethodInfo {
|
|
17614
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17615
|
+
while (reader.pos < end) {
|
|
17616
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17617
|
+
switch (fieldNo) {
|
|
17618
|
+
case /* string id */ 6:
|
|
17619
|
+
message.id = reader.string();
|
|
17620
|
+
break;
|
|
17621
|
+
case /* string description */ 7:
|
|
17622
|
+
message.description = reader.string();
|
|
17623
|
+
break;
|
|
17624
|
+
case /* MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod basic */ 4:
|
|
17625
|
+
message.method = {
|
|
17626
|
+
oneofKind: "basic",
|
|
17627
|
+
basic: AuthAPI_ListMethods_BasicAuthMethod.internalBinaryRead(reader, reader.uint32(), options, (message.method as any).basic)
|
|
17628
|
+
};
|
|
17629
|
+
break;
|
|
17630
|
+
case /* MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod token */ 5:
|
|
17631
|
+
message.method = {
|
|
17632
|
+
oneofKind: "token",
|
|
17633
|
+
token: AuthAPI_ListMethods_TokenAuthMethod.internalBinaryRead(reader, reader.uint32(), options, (message.method as any).token)
|
|
17634
|
+
};
|
|
17635
|
+
break;
|
|
17636
|
+
case /* MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod sso */ 8:
|
|
17637
|
+
message.method = {
|
|
17638
|
+
oneofKind: "sso",
|
|
17639
|
+
sso: AuthAPI_ListMethods_SSOAuthMethod.internalBinaryRead(reader, reader.uint32(), options, (message.method as any).sso)
|
|
17640
|
+
};
|
|
17641
|
+
break;
|
|
17642
|
+
default:
|
|
17643
|
+
let u = options.readUnknownField;
|
|
17644
|
+
if (u === "throw")
|
|
17645
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17646
|
+
let d = reader.skip(wireType);
|
|
17647
|
+
if (u !== false)
|
|
17648
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17649
|
+
}
|
|
17650
|
+
}
|
|
17651
|
+
return message;
|
|
17652
|
+
}
|
|
17653
|
+
internalBinaryWrite(message: AuthAPI_ListMethods_MethodInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17654
|
+
/* MiLaboratories.PL.API.AuthAPI.ListMethods.BasicAuthMethod basic = 4; */
|
|
17655
|
+
if (message.method.oneofKind === "basic")
|
|
17656
|
+
AuthAPI_ListMethods_BasicAuthMethod.internalBinaryWrite(message.method.basic, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
17657
|
+
/* MiLaboratories.PL.API.AuthAPI.ListMethods.TokenAuthMethod token = 5; */
|
|
17658
|
+
if (message.method.oneofKind === "token")
|
|
17659
|
+
AuthAPI_ListMethods_TokenAuthMethod.internalBinaryWrite(message.method.token, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
17660
|
+
/* string id = 6; */
|
|
17661
|
+
if (message.id !== "")
|
|
17662
|
+
writer.tag(6, WireType.LengthDelimited).string(message.id);
|
|
17663
|
+
/* string description = 7; */
|
|
17664
|
+
if (message.description !== "")
|
|
17665
|
+
writer.tag(7, WireType.LengthDelimited).string(message.description);
|
|
17666
|
+
/* MiLaboratories.PL.API.AuthAPI.ListMethods.SSOAuthMethod sso = 8; */
|
|
17667
|
+
if (message.method.oneofKind === "sso")
|
|
17668
|
+
AuthAPI_ListMethods_SSOAuthMethod.internalBinaryWrite(message.method.sso, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
17669
|
+
let u = options.writeUnknownFields;
|
|
17670
|
+
if (u !== false)
|
|
17671
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17672
|
+
return writer;
|
|
17673
|
+
}
|
|
17674
|
+
}
|
|
17675
|
+
/**
|
|
17676
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo
|
|
17677
|
+
*/
|
|
17678
|
+
export const AuthAPI_ListMethods_MethodInfo = new AuthAPI_ListMethods_MethodInfo$Type();
|
|
17679
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17680
|
+
class AuthAPI_BeginSSOLogin$Type extends MessageType<AuthAPI_BeginSSOLogin> {
|
|
17681
|
+
constructor() {
|
|
17682
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin", []);
|
|
17683
|
+
}
|
|
17684
|
+
create(value?: PartialMessage<AuthAPI_BeginSSOLogin>): AuthAPI_BeginSSOLogin {
|
|
17685
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17686
|
+
if (value !== undefined)
|
|
17687
|
+
reflectionMergePartial<AuthAPI_BeginSSOLogin>(this, message, value);
|
|
17688
|
+
return message;
|
|
17689
|
+
}
|
|
17690
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_BeginSSOLogin): AuthAPI_BeginSSOLogin {
|
|
17691
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17692
|
+
while (reader.pos < end) {
|
|
17693
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17694
|
+
switch (fieldNo) {
|
|
17695
|
+
default:
|
|
17696
|
+
let u = options.readUnknownField;
|
|
17697
|
+
if (u === "throw")
|
|
17698
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17699
|
+
let d = reader.skip(wireType);
|
|
17700
|
+
if (u !== false)
|
|
17701
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17702
|
+
}
|
|
17703
|
+
}
|
|
17704
|
+
return message;
|
|
17705
|
+
}
|
|
17706
|
+
internalBinaryWrite(message: AuthAPI_BeginSSOLogin, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17707
|
+
let u = options.writeUnknownFields;
|
|
17708
|
+
if (u !== false)
|
|
17709
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17710
|
+
return writer;
|
|
17711
|
+
}
|
|
17712
|
+
}
|
|
17713
|
+
/**
|
|
17714
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin
|
|
17715
|
+
*/
|
|
17716
|
+
export const AuthAPI_BeginSSOLogin = new AuthAPI_BeginSSOLogin$Type();
|
|
17717
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17718
|
+
class AuthAPI_BeginSSOLogin_Request$Type extends MessageType<AuthAPI_BeginSSOLogin_Request> {
|
|
17719
|
+
constructor() {
|
|
17720
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request", []);
|
|
17721
|
+
}
|
|
17722
|
+
create(value?: PartialMessage<AuthAPI_BeginSSOLogin_Request>): AuthAPI_BeginSSOLogin_Request {
|
|
17723
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17724
|
+
if (value !== undefined)
|
|
17725
|
+
reflectionMergePartial<AuthAPI_BeginSSOLogin_Request>(this, message, value);
|
|
17726
|
+
return message;
|
|
17727
|
+
}
|
|
17728
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_BeginSSOLogin_Request): AuthAPI_BeginSSOLogin_Request {
|
|
17729
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17730
|
+
while (reader.pos < end) {
|
|
17731
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17732
|
+
switch (fieldNo) {
|
|
17733
|
+
default:
|
|
17734
|
+
let u = options.readUnknownField;
|
|
17735
|
+
if (u === "throw")
|
|
17736
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17737
|
+
let d = reader.skip(wireType);
|
|
17738
|
+
if (u !== false)
|
|
17739
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17740
|
+
}
|
|
17741
|
+
}
|
|
17742
|
+
return message;
|
|
17743
|
+
}
|
|
17744
|
+
internalBinaryWrite(message: AuthAPI_BeginSSOLogin_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17745
|
+
let u = options.writeUnknownFields;
|
|
17746
|
+
if (u !== false)
|
|
17747
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17748
|
+
return writer;
|
|
17749
|
+
}
|
|
17750
|
+
}
|
|
17751
|
+
/**
|
|
17752
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Request
|
|
17753
|
+
*/
|
|
17754
|
+
export const AuthAPI_BeginSSOLogin_Request = new AuthAPI_BeginSSOLogin_Request$Type();
|
|
17755
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17756
|
+
class AuthAPI_BeginSSOLogin_PublicPKCE$Type extends MessageType<AuthAPI_BeginSSOLogin_PublicPKCE> {
|
|
17757
|
+
constructor() {
|
|
17758
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE", [
|
|
17759
|
+
{ no: 1, name: "nonce", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17760
|
+
{ no: 2, name: "expires_at", kind: "message", T: () => Timestamp }
|
|
17761
|
+
]);
|
|
17762
|
+
}
|
|
17763
|
+
create(value?: PartialMessage<AuthAPI_BeginSSOLogin_PublicPKCE>): AuthAPI_BeginSSOLogin_PublicPKCE {
|
|
17764
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17765
|
+
message.nonce = "";
|
|
17766
|
+
if (value !== undefined)
|
|
17767
|
+
reflectionMergePartial<AuthAPI_BeginSSOLogin_PublicPKCE>(this, message, value);
|
|
17768
|
+
return message;
|
|
17769
|
+
}
|
|
17770
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_BeginSSOLogin_PublicPKCE): AuthAPI_BeginSSOLogin_PublicPKCE {
|
|
17771
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17772
|
+
while (reader.pos < end) {
|
|
17773
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17774
|
+
switch (fieldNo) {
|
|
17775
|
+
case /* string nonce */ 1:
|
|
17776
|
+
message.nonce = reader.string();
|
|
17777
|
+
break;
|
|
17778
|
+
case /* google.protobuf.Timestamp expires_at */ 2:
|
|
17779
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
17780
|
+
break;
|
|
17781
|
+
default:
|
|
17782
|
+
let u = options.readUnknownField;
|
|
17783
|
+
if (u === "throw")
|
|
17784
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17785
|
+
let d = reader.skip(wireType);
|
|
17786
|
+
if (u !== false)
|
|
17787
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17788
|
+
}
|
|
17789
|
+
}
|
|
17790
|
+
return message;
|
|
17791
|
+
}
|
|
17792
|
+
internalBinaryWrite(message: AuthAPI_BeginSSOLogin_PublicPKCE, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17793
|
+
/* string nonce = 1; */
|
|
17794
|
+
if (message.nonce !== "")
|
|
17795
|
+
writer.tag(1, WireType.LengthDelimited).string(message.nonce);
|
|
17796
|
+
/* google.protobuf.Timestamp expires_at = 2; */
|
|
17797
|
+
if (message.expiresAt)
|
|
17798
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
17799
|
+
let u = options.writeUnknownFields;
|
|
17800
|
+
if (u !== false)
|
|
17801
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17802
|
+
return writer;
|
|
17803
|
+
}
|
|
17804
|
+
}
|
|
17805
|
+
/**
|
|
17806
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE
|
|
17807
|
+
*/
|
|
17808
|
+
export const AuthAPI_BeginSSOLogin_PublicPKCE = new AuthAPI_BeginSSOLogin_PublicPKCE$Type();
|
|
17809
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17810
|
+
class AuthAPI_BeginSSOLogin_Response$Type extends MessageType<AuthAPI_BeginSSOLogin_Response> {
|
|
17811
|
+
constructor() {
|
|
17812
|
+
super("MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Response", [
|
|
17813
|
+
{ no: 1, name: "public_pkce", kind: "message", oneof: "flow", T: () => AuthAPI_BeginSSOLogin_PublicPKCE }
|
|
17814
|
+
]);
|
|
17815
|
+
}
|
|
17816
|
+
create(value?: PartialMessage<AuthAPI_BeginSSOLogin_Response>): AuthAPI_BeginSSOLogin_Response {
|
|
17817
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17818
|
+
message.flow = { oneofKind: undefined };
|
|
17819
|
+
if (value !== undefined)
|
|
17820
|
+
reflectionMergePartial<AuthAPI_BeginSSOLogin_Response>(this, message, value);
|
|
17821
|
+
return message;
|
|
17822
|
+
}
|
|
17823
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_BeginSSOLogin_Response): AuthAPI_BeginSSOLogin_Response {
|
|
17824
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17825
|
+
while (reader.pos < end) {
|
|
17826
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17827
|
+
switch (fieldNo) {
|
|
17828
|
+
case /* MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE public_pkce */ 1:
|
|
17829
|
+
message.flow = {
|
|
17830
|
+
oneofKind: "publicPkce",
|
|
17831
|
+
publicPkce: AuthAPI_BeginSSOLogin_PublicPKCE.internalBinaryRead(reader, reader.uint32(), options, (message.flow as any).publicPkce)
|
|
17832
|
+
};
|
|
17833
|
+
break;
|
|
17834
|
+
default:
|
|
17835
|
+
let u = options.readUnknownField;
|
|
17836
|
+
if (u === "throw")
|
|
17837
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17838
|
+
let d = reader.skip(wireType);
|
|
17839
|
+
if (u !== false)
|
|
17840
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17841
|
+
}
|
|
17842
|
+
}
|
|
17843
|
+
return message;
|
|
17844
|
+
}
|
|
17845
|
+
internalBinaryWrite(message: AuthAPI_BeginSSOLogin_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17846
|
+
/* MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.PublicPKCE public_pkce = 1; */
|
|
17847
|
+
if (message.flow.oneofKind === "publicPkce")
|
|
17848
|
+
AuthAPI_BeginSSOLogin_PublicPKCE.internalBinaryWrite(message.flow.publicPkce, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
17849
|
+
let u = options.writeUnknownFields;
|
|
17850
|
+
if (u !== false)
|
|
17851
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17852
|
+
return writer;
|
|
17853
|
+
}
|
|
17854
|
+
}
|
|
17855
|
+
/**
|
|
17856
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.BeginSSOLogin.Response
|
|
17857
|
+
*/
|
|
17858
|
+
export const AuthAPI_BeginSSOLogin_Response = new AuthAPI_BeginSSOLogin_Response$Type();
|
|
17859
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17860
|
+
class AuthAPI_GetJWTToken$Type extends MessageType<AuthAPI_GetJWTToken> {
|
|
17861
|
+
constructor() {
|
|
17862
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken", []);
|
|
17863
|
+
}
|
|
17864
|
+
create(value?: PartialMessage<AuthAPI_GetJWTToken>): AuthAPI_GetJWTToken {
|
|
17865
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17866
|
+
if (value !== undefined)
|
|
17867
|
+
reflectionMergePartial<AuthAPI_GetJWTToken>(this, message, value);
|
|
17868
|
+
return message;
|
|
17869
|
+
}
|
|
17870
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetJWTToken): AuthAPI_GetJWTToken {
|
|
17871
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17872
|
+
while (reader.pos < end) {
|
|
17873
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17874
|
+
switch (fieldNo) {
|
|
17875
|
+
default:
|
|
17876
|
+
let u = options.readUnknownField;
|
|
17877
|
+
if (u === "throw")
|
|
17878
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17879
|
+
let d = reader.skip(wireType);
|
|
17880
|
+
if (u !== false)
|
|
17881
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17882
|
+
}
|
|
17883
|
+
}
|
|
17884
|
+
return message;
|
|
17885
|
+
}
|
|
17886
|
+
internalBinaryWrite(message: AuthAPI_GetJWTToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17887
|
+
let u = options.writeUnknownFields;
|
|
17888
|
+
if (u !== false)
|
|
17889
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17890
|
+
return writer;
|
|
17891
|
+
}
|
|
17892
|
+
}
|
|
17893
|
+
/**
|
|
17894
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken
|
|
17895
|
+
*/
|
|
17896
|
+
export const AuthAPI_GetJWTToken = new AuthAPI_GetJWTToken$Type();
|
|
17897
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17898
|
+
class AuthAPI_GetJWTToken_Request$Type extends MessageType<AuthAPI_GetJWTToken_Request> {
|
|
17899
|
+
constructor() {
|
|
17900
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request", [
|
|
17901
|
+
{ no: 1, name: "expiration", kind: "message", T: () => Duration },
|
|
17902
|
+
{ no: 2, name: "requested_role", kind: "enum", opt: true, T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
17903
|
+
]);
|
|
17904
|
+
}
|
|
17905
|
+
create(value?: PartialMessage<AuthAPI_GetJWTToken_Request>): AuthAPI_GetJWTToken_Request {
|
|
17906
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
17907
|
+
if (value !== undefined)
|
|
17908
|
+
reflectionMergePartial<AuthAPI_GetJWTToken_Request>(this, message, value);
|
|
17909
|
+
return message;
|
|
17910
|
+
}
|
|
17911
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetJWTToken_Request): AuthAPI_GetJWTToken_Request {
|
|
17912
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17913
|
+
while (reader.pos < end) {
|
|
17914
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17915
|
+
switch (fieldNo) {
|
|
17916
|
+
case /* google.protobuf.Duration expiration */ 1:
|
|
17917
|
+
message.expiration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
17918
|
+
break;
|
|
17919
|
+
case /* optional MiLaboratories.PL.API.AuthAPI.Role requested_role */ 2:
|
|
17920
|
+
message.requestedRole = reader.int32();
|
|
17921
|
+
break;
|
|
17922
|
+
default:
|
|
17923
|
+
let u = options.readUnknownField;
|
|
17924
|
+
if (u === "throw")
|
|
17925
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17926
|
+
let d = reader.skip(wireType);
|
|
17927
|
+
if (u !== false)
|
|
17928
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
return message;
|
|
17932
|
+
}
|
|
17933
|
+
internalBinaryWrite(message: AuthAPI_GetJWTToken_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17934
|
+
/* google.protobuf.Duration expiration = 1; */
|
|
17935
|
+
if (message.expiration)
|
|
17936
|
+
Duration.internalBinaryWrite(message.expiration, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
17937
|
+
/* optional MiLaboratories.PL.API.AuthAPI.Role requested_role = 2; */
|
|
17938
|
+
if (message.requestedRole !== undefined)
|
|
17939
|
+
writer.tag(2, WireType.Varint).int32(message.requestedRole);
|
|
17940
|
+
let u = options.writeUnknownFields;
|
|
17941
|
+
if (u !== false)
|
|
17942
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17943
|
+
return writer;
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17946
|
+
/**
|
|
17947
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request
|
|
17948
|
+
*/
|
|
17949
|
+
export const AuthAPI_GetJWTToken_Request = new AuthAPI_GetJWTToken_Request$Type();
|
|
17950
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17951
|
+
class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_Response> {
|
|
17952
|
+
constructor() {
|
|
17953
|
+
super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response", [
|
|
17954
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17955
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
17956
|
+
{ no: 3, name: "role", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
17231
17957
|
]);
|
|
17232
17958
|
}
|
|
17233
17959
|
create(value?: PartialMessage<AuthAPI_GetJWTToken_Response>): AuthAPI_GetJWTToken_Response {
|
|
@@ -17236,10 +17962,344 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
17236
17962
|
message.sessionId = new Uint8Array(0);
|
|
17237
17963
|
message.role = 0;
|
|
17238
17964
|
if (value !== undefined)
|
|
17239
|
-
reflectionMergePartial<AuthAPI_GetJWTToken_Response>(this, message, value);
|
|
17965
|
+
reflectionMergePartial<AuthAPI_GetJWTToken_Response>(this, message, value);
|
|
17966
|
+
return message;
|
|
17967
|
+
}
|
|
17968
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_GetJWTToken_Response): AuthAPI_GetJWTToken_Response {
|
|
17969
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17970
|
+
while (reader.pos < end) {
|
|
17971
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17972
|
+
switch (fieldNo) {
|
|
17973
|
+
case /* string token */ 1:
|
|
17974
|
+
message.token = reader.string();
|
|
17975
|
+
break;
|
|
17976
|
+
case /* bytes session_id */ 2:
|
|
17977
|
+
message.sessionId = reader.bytes();
|
|
17978
|
+
break;
|
|
17979
|
+
case /* MiLaboratories.PL.API.AuthAPI.Role role */ 3:
|
|
17980
|
+
message.role = reader.int32();
|
|
17981
|
+
break;
|
|
17982
|
+
default:
|
|
17983
|
+
let u = options.readUnknownField;
|
|
17984
|
+
if (u === "throw")
|
|
17985
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17986
|
+
let d = reader.skip(wireType);
|
|
17987
|
+
if (u !== false)
|
|
17988
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17989
|
+
}
|
|
17990
|
+
}
|
|
17991
|
+
return message;
|
|
17992
|
+
}
|
|
17993
|
+
internalBinaryWrite(message: AuthAPI_GetJWTToken_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17994
|
+
/* string token = 1; */
|
|
17995
|
+
if (message.token !== "")
|
|
17996
|
+
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
17997
|
+
/* bytes session_id = 2; */
|
|
17998
|
+
if (message.sessionId.length)
|
|
17999
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.sessionId);
|
|
18000
|
+
/* MiLaboratories.PL.API.AuthAPI.Role role = 3; */
|
|
18001
|
+
if (message.role !== 0)
|
|
18002
|
+
writer.tag(3, WireType.Varint).int32(message.role);
|
|
18003
|
+
let u = options.writeUnknownFields;
|
|
18004
|
+
if (u !== false)
|
|
18005
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18006
|
+
return writer;
|
|
18007
|
+
}
|
|
18008
|
+
}
|
|
18009
|
+
/**
|
|
18010
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response
|
|
18011
|
+
*/
|
|
18012
|
+
export const AuthAPI_GetJWTToken_Response = new AuthAPI_GetJWTToken_Response$Type();
|
|
18013
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18014
|
+
class AuthAPI_Login$Type extends MessageType<AuthAPI_Login> {
|
|
18015
|
+
constructor() {
|
|
18016
|
+
super("MiLaboratories.PL.API.AuthAPI.Login", []);
|
|
18017
|
+
}
|
|
18018
|
+
create(value?: PartialMessage<AuthAPI_Login>): AuthAPI_Login {
|
|
18019
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18020
|
+
if (value !== undefined)
|
|
18021
|
+
reflectionMergePartial<AuthAPI_Login>(this, message, value);
|
|
18022
|
+
return message;
|
|
18023
|
+
}
|
|
18024
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login): AuthAPI_Login {
|
|
18025
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18026
|
+
while (reader.pos < end) {
|
|
18027
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18028
|
+
switch (fieldNo) {
|
|
18029
|
+
default:
|
|
18030
|
+
let u = options.readUnknownField;
|
|
18031
|
+
if (u === "throw")
|
|
18032
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18033
|
+
let d = reader.skip(wireType);
|
|
18034
|
+
if (u !== false)
|
|
18035
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18036
|
+
}
|
|
18037
|
+
}
|
|
18038
|
+
return message;
|
|
18039
|
+
}
|
|
18040
|
+
internalBinaryWrite(message: AuthAPI_Login, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18041
|
+
let u = options.writeUnknownFields;
|
|
18042
|
+
if (u !== false)
|
|
18043
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18044
|
+
return writer;
|
|
18045
|
+
}
|
|
18046
|
+
}
|
|
18047
|
+
/**
|
|
18048
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login
|
|
18049
|
+
*/
|
|
18050
|
+
export const AuthAPI_Login = new AuthAPI_Login$Type();
|
|
18051
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18052
|
+
class AuthAPI_Login_BasicCredentials$Type extends MessageType<AuthAPI_Login_BasicCredentials> {
|
|
18053
|
+
constructor() {
|
|
18054
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials", [
|
|
18055
|
+
{ no: 1, name: "login", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18056
|
+
{ no: 2, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
18057
|
+
]);
|
|
18058
|
+
}
|
|
18059
|
+
create(value?: PartialMessage<AuthAPI_Login_BasicCredentials>): AuthAPI_Login_BasicCredentials {
|
|
18060
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18061
|
+
message.login = "";
|
|
18062
|
+
message.password = "";
|
|
18063
|
+
if (value !== undefined)
|
|
18064
|
+
reflectionMergePartial<AuthAPI_Login_BasicCredentials>(this, message, value);
|
|
18065
|
+
return message;
|
|
18066
|
+
}
|
|
18067
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login_BasicCredentials): AuthAPI_Login_BasicCredentials {
|
|
18068
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18069
|
+
while (reader.pos < end) {
|
|
18070
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18071
|
+
switch (fieldNo) {
|
|
18072
|
+
case /* string login */ 1:
|
|
18073
|
+
message.login = reader.string();
|
|
18074
|
+
break;
|
|
18075
|
+
case /* string password */ 2:
|
|
18076
|
+
message.password = reader.string();
|
|
18077
|
+
break;
|
|
18078
|
+
default:
|
|
18079
|
+
let u = options.readUnknownField;
|
|
18080
|
+
if (u === "throw")
|
|
18081
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18082
|
+
let d = reader.skip(wireType);
|
|
18083
|
+
if (u !== false)
|
|
18084
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18085
|
+
}
|
|
18086
|
+
}
|
|
18087
|
+
return message;
|
|
18088
|
+
}
|
|
18089
|
+
internalBinaryWrite(message: AuthAPI_Login_BasicCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18090
|
+
/* string login = 1; */
|
|
18091
|
+
if (message.login !== "")
|
|
18092
|
+
writer.tag(1, WireType.LengthDelimited).string(message.login);
|
|
18093
|
+
/* string password = 2; */
|
|
18094
|
+
if (message.password !== "")
|
|
18095
|
+
writer.tag(2, WireType.LengthDelimited).string(message.password);
|
|
18096
|
+
let u = options.writeUnknownFields;
|
|
18097
|
+
if (u !== false)
|
|
18098
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18099
|
+
return writer;
|
|
18100
|
+
}
|
|
18101
|
+
}
|
|
18102
|
+
/**
|
|
18103
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials
|
|
18104
|
+
*/
|
|
18105
|
+
export const AuthAPI_Login_BasicCredentials = new AuthAPI_Login_BasicCredentials$Type();
|
|
18106
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18107
|
+
class AuthAPI_Login_TokenCredentials$Type extends MessageType<AuthAPI_Login_TokenCredentials> {
|
|
18108
|
+
constructor() {
|
|
18109
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials", [
|
|
18110
|
+
{ no: 1, name: "token", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
18111
|
+
]);
|
|
18112
|
+
}
|
|
18113
|
+
create(value?: PartialMessage<AuthAPI_Login_TokenCredentials>): AuthAPI_Login_TokenCredentials {
|
|
18114
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18115
|
+
message.token = new Uint8Array(0);
|
|
18116
|
+
if (value !== undefined)
|
|
18117
|
+
reflectionMergePartial<AuthAPI_Login_TokenCredentials>(this, message, value);
|
|
18118
|
+
return message;
|
|
18119
|
+
}
|
|
18120
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login_TokenCredentials): AuthAPI_Login_TokenCredentials {
|
|
18121
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18122
|
+
while (reader.pos < end) {
|
|
18123
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18124
|
+
switch (fieldNo) {
|
|
18125
|
+
case /* bytes token */ 1:
|
|
18126
|
+
message.token = reader.bytes();
|
|
18127
|
+
break;
|
|
18128
|
+
default:
|
|
18129
|
+
let u = options.readUnknownField;
|
|
18130
|
+
if (u === "throw")
|
|
18131
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18132
|
+
let d = reader.skip(wireType);
|
|
18133
|
+
if (u !== false)
|
|
18134
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18135
|
+
}
|
|
18136
|
+
}
|
|
18137
|
+
return message;
|
|
18138
|
+
}
|
|
18139
|
+
internalBinaryWrite(message: AuthAPI_Login_TokenCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18140
|
+
/* bytes token = 1; */
|
|
18141
|
+
if (message.token.length)
|
|
18142
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.token);
|
|
18143
|
+
let u = options.writeUnknownFields;
|
|
18144
|
+
if (u !== false)
|
|
18145
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18146
|
+
return writer;
|
|
18147
|
+
}
|
|
18148
|
+
}
|
|
18149
|
+
/**
|
|
18150
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials
|
|
18151
|
+
*/
|
|
18152
|
+
export const AuthAPI_Login_TokenCredentials = new AuthAPI_Login_TokenCredentials$Type();
|
|
18153
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18154
|
+
class AuthAPI_Login_SSOCredentials$Type extends MessageType<AuthAPI_Login_SSOCredentials> {
|
|
18155
|
+
constructor() {
|
|
18156
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials", [
|
|
18157
|
+
{ no: 1, name: "token_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
18158
|
+
]);
|
|
18159
|
+
}
|
|
18160
|
+
create(value?: PartialMessage<AuthAPI_Login_SSOCredentials>): AuthAPI_Login_SSOCredentials {
|
|
18161
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18162
|
+
message.tokenResponse = new Uint8Array(0);
|
|
18163
|
+
if (value !== undefined)
|
|
18164
|
+
reflectionMergePartial<AuthAPI_Login_SSOCredentials>(this, message, value);
|
|
18165
|
+
return message;
|
|
18166
|
+
}
|
|
18167
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login_SSOCredentials): AuthAPI_Login_SSOCredentials {
|
|
18168
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18169
|
+
while (reader.pos < end) {
|
|
18170
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18171
|
+
switch (fieldNo) {
|
|
18172
|
+
case /* bytes token_response */ 1:
|
|
18173
|
+
message.tokenResponse = reader.bytes();
|
|
18174
|
+
break;
|
|
18175
|
+
default:
|
|
18176
|
+
let u = options.readUnknownField;
|
|
18177
|
+
if (u === "throw")
|
|
18178
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18179
|
+
let d = reader.skip(wireType);
|
|
18180
|
+
if (u !== false)
|
|
18181
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18182
|
+
}
|
|
18183
|
+
}
|
|
18184
|
+
return message;
|
|
18185
|
+
}
|
|
18186
|
+
internalBinaryWrite(message: AuthAPI_Login_SSOCredentials, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18187
|
+
/* bytes token_response = 1; */
|
|
18188
|
+
if (message.tokenResponse.length)
|
|
18189
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.tokenResponse);
|
|
18190
|
+
let u = options.writeUnknownFields;
|
|
18191
|
+
if (u !== false)
|
|
18192
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18193
|
+
return writer;
|
|
18194
|
+
}
|
|
18195
|
+
}
|
|
18196
|
+
/**
|
|
18197
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials
|
|
18198
|
+
*/
|
|
18199
|
+
export const AuthAPI_Login_SSOCredentials = new AuthAPI_Login_SSOCredentials$Type();
|
|
18200
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18201
|
+
class AuthAPI_Login_Request$Type extends MessageType<AuthAPI_Login_Request> {
|
|
18202
|
+
constructor() {
|
|
18203
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.Request", [
|
|
18204
|
+
{ no: 1, name: "basic", kind: "message", oneof: "credentials", T: () => AuthAPI_Login_BasicCredentials },
|
|
18205
|
+
{ no: 2, name: "token", kind: "message", oneof: "credentials", T: () => AuthAPI_Login_TokenCredentials },
|
|
18206
|
+
{ no: 5, name: "sso", kind: "message", oneof: "credentials", T: () => AuthAPI_Login_SSOCredentials },
|
|
18207
|
+
{ no: 3, name: "expiration", kind: "message", T: () => Duration },
|
|
18208
|
+
{ no: 4, name: "requested_role", kind: "enum", opt: true, T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
18209
|
+
]);
|
|
18210
|
+
}
|
|
18211
|
+
create(value?: PartialMessage<AuthAPI_Login_Request>): AuthAPI_Login_Request {
|
|
18212
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18213
|
+
message.credentials = { oneofKind: undefined };
|
|
18214
|
+
if (value !== undefined)
|
|
18215
|
+
reflectionMergePartial<AuthAPI_Login_Request>(this, message, value);
|
|
18216
|
+
return message;
|
|
18217
|
+
}
|
|
18218
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login_Request): AuthAPI_Login_Request {
|
|
18219
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18220
|
+
while (reader.pos < end) {
|
|
18221
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18222
|
+
switch (fieldNo) {
|
|
18223
|
+
case /* MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials basic */ 1:
|
|
18224
|
+
message.credentials = {
|
|
18225
|
+
oneofKind: "basic",
|
|
18226
|
+
basic: AuthAPI_Login_BasicCredentials.internalBinaryRead(reader, reader.uint32(), options, (message.credentials as any).basic)
|
|
18227
|
+
};
|
|
18228
|
+
break;
|
|
18229
|
+
case /* MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials token */ 2:
|
|
18230
|
+
message.credentials = {
|
|
18231
|
+
oneofKind: "token",
|
|
18232
|
+
token: AuthAPI_Login_TokenCredentials.internalBinaryRead(reader, reader.uint32(), options, (message.credentials as any).token)
|
|
18233
|
+
};
|
|
18234
|
+
break;
|
|
18235
|
+
case /* MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials sso */ 5:
|
|
18236
|
+
message.credentials = {
|
|
18237
|
+
oneofKind: "sso",
|
|
18238
|
+
sso: AuthAPI_Login_SSOCredentials.internalBinaryRead(reader, reader.uint32(), options, (message.credentials as any).sso)
|
|
18239
|
+
};
|
|
18240
|
+
break;
|
|
18241
|
+
case /* optional google.protobuf.Duration expiration */ 3:
|
|
18242
|
+
message.expiration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
18243
|
+
break;
|
|
18244
|
+
case /* optional MiLaboratories.PL.API.AuthAPI.Role requested_role */ 4:
|
|
18245
|
+
message.requestedRole = reader.int32();
|
|
18246
|
+
break;
|
|
18247
|
+
default:
|
|
18248
|
+
let u = options.readUnknownField;
|
|
18249
|
+
if (u === "throw")
|
|
18250
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18251
|
+
let d = reader.skip(wireType);
|
|
18252
|
+
if (u !== false)
|
|
18253
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18254
|
+
}
|
|
18255
|
+
}
|
|
18256
|
+
return message;
|
|
18257
|
+
}
|
|
18258
|
+
internalBinaryWrite(message: AuthAPI_Login_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18259
|
+
/* MiLaboratories.PL.API.AuthAPI.Login.BasicCredentials basic = 1; */
|
|
18260
|
+
if (message.credentials.oneofKind === "basic")
|
|
18261
|
+
AuthAPI_Login_BasicCredentials.internalBinaryWrite(message.credentials.basic, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
18262
|
+
/* MiLaboratories.PL.API.AuthAPI.Login.TokenCredentials token = 2; */
|
|
18263
|
+
if (message.credentials.oneofKind === "token")
|
|
18264
|
+
AuthAPI_Login_TokenCredentials.internalBinaryWrite(message.credentials.token, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
18265
|
+
/* optional google.protobuf.Duration expiration = 3; */
|
|
18266
|
+
if (message.expiration)
|
|
18267
|
+
Duration.internalBinaryWrite(message.expiration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
18268
|
+
/* optional MiLaboratories.PL.API.AuthAPI.Role requested_role = 4; */
|
|
18269
|
+
if (message.requestedRole !== undefined)
|
|
18270
|
+
writer.tag(4, WireType.Varint).int32(message.requestedRole);
|
|
18271
|
+
/* MiLaboratories.PL.API.AuthAPI.Login.SSOCredentials sso = 5; */
|
|
18272
|
+
if (message.credentials.oneofKind === "sso")
|
|
18273
|
+
AuthAPI_Login_SSOCredentials.internalBinaryWrite(message.credentials.sso, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
18274
|
+
let u = options.writeUnknownFields;
|
|
18275
|
+
if (u !== false)
|
|
18276
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18277
|
+
return writer;
|
|
18278
|
+
}
|
|
18279
|
+
}
|
|
18280
|
+
/**
|
|
18281
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.Request
|
|
18282
|
+
*/
|
|
18283
|
+
export const AuthAPI_Login_Request = new AuthAPI_Login_Request$Type();
|
|
18284
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18285
|
+
class AuthAPI_Login_Response$Type extends MessageType<AuthAPI_Login_Response> {
|
|
18286
|
+
constructor() {
|
|
18287
|
+
super("MiLaboratories.PL.API.AuthAPI.Login.Response", [
|
|
18288
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18289
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
18290
|
+
{ no: 3, name: "role", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
18291
|
+
]);
|
|
18292
|
+
}
|
|
18293
|
+
create(value?: PartialMessage<AuthAPI_Login_Response>): AuthAPI_Login_Response {
|
|
18294
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18295
|
+
message.token = "";
|
|
18296
|
+
message.sessionId = new Uint8Array(0);
|
|
18297
|
+
message.role = 0;
|
|
18298
|
+
if (value !== undefined)
|
|
18299
|
+
reflectionMergePartial<AuthAPI_Login_Response>(this, message, value);
|
|
17240
18300
|
return message;
|
|
17241
18301
|
}
|
|
17242
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
18302
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_Login_Response): AuthAPI_Login_Response {
|
|
17243
18303
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
17244
18304
|
while (reader.pos < end) {
|
|
17245
18305
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -17264,7 +18324,7 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
17264
18324
|
}
|
|
17265
18325
|
return message;
|
|
17266
18326
|
}
|
|
17267
|
-
internalBinaryWrite(message:
|
|
18327
|
+
internalBinaryWrite(message: AuthAPI_Login_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
17268
18328
|
/* string token = 1; */
|
|
17269
18329
|
if (message.token !== "")
|
|
17270
18330
|
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
@@ -17281,9 +18341,164 @@ class AuthAPI_GetJWTToken_Response$Type extends MessageType<AuthAPI_GetJWTToken_
|
|
|
17281
18341
|
}
|
|
17282
18342
|
}
|
|
17283
18343
|
/**
|
|
17284
|
-
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.
|
|
18344
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.Login.Response
|
|
17285
18345
|
*/
|
|
17286
|
-
export const
|
|
18346
|
+
export const AuthAPI_Login_Response = new AuthAPI_Login_Response$Type();
|
|
18347
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18348
|
+
class AuthAPI_RefreshToken$Type extends MessageType<AuthAPI_RefreshToken> {
|
|
18349
|
+
constructor() {
|
|
18350
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken", []);
|
|
18351
|
+
}
|
|
18352
|
+
create(value?: PartialMessage<AuthAPI_RefreshToken>): AuthAPI_RefreshToken {
|
|
18353
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18354
|
+
if (value !== undefined)
|
|
18355
|
+
reflectionMergePartial<AuthAPI_RefreshToken>(this, message, value);
|
|
18356
|
+
return message;
|
|
18357
|
+
}
|
|
18358
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RefreshToken): AuthAPI_RefreshToken {
|
|
18359
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18360
|
+
while (reader.pos < end) {
|
|
18361
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18362
|
+
switch (fieldNo) {
|
|
18363
|
+
default:
|
|
18364
|
+
let u = options.readUnknownField;
|
|
18365
|
+
if (u === "throw")
|
|
18366
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18367
|
+
let d = reader.skip(wireType);
|
|
18368
|
+
if (u !== false)
|
|
18369
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18370
|
+
}
|
|
18371
|
+
}
|
|
18372
|
+
return message;
|
|
18373
|
+
}
|
|
18374
|
+
internalBinaryWrite(message: AuthAPI_RefreshToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18375
|
+
let u = options.writeUnknownFields;
|
|
18376
|
+
if (u !== false)
|
|
18377
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18378
|
+
return writer;
|
|
18379
|
+
}
|
|
18380
|
+
}
|
|
18381
|
+
/**
|
|
18382
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken
|
|
18383
|
+
*/
|
|
18384
|
+
export const AuthAPI_RefreshToken = new AuthAPI_RefreshToken$Type();
|
|
18385
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18386
|
+
class AuthAPI_RefreshToken_Request$Type extends MessageType<AuthAPI_RefreshToken_Request> {
|
|
18387
|
+
constructor() {
|
|
18388
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken.Request", [
|
|
18389
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18390
|
+
{ no: 2, name: "expiration", kind: "message", T: () => Duration }
|
|
18391
|
+
]);
|
|
18392
|
+
}
|
|
18393
|
+
create(value?: PartialMessage<AuthAPI_RefreshToken_Request>): AuthAPI_RefreshToken_Request {
|
|
18394
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18395
|
+
message.token = "";
|
|
18396
|
+
if (value !== undefined)
|
|
18397
|
+
reflectionMergePartial<AuthAPI_RefreshToken_Request>(this, message, value);
|
|
18398
|
+
return message;
|
|
18399
|
+
}
|
|
18400
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RefreshToken_Request): AuthAPI_RefreshToken_Request {
|
|
18401
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18402
|
+
while (reader.pos < end) {
|
|
18403
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18404
|
+
switch (fieldNo) {
|
|
18405
|
+
case /* string token */ 1:
|
|
18406
|
+
message.token = reader.string();
|
|
18407
|
+
break;
|
|
18408
|
+
case /* optional google.protobuf.Duration expiration */ 2:
|
|
18409
|
+
message.expiration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.expiration);
|
|
18410
|
+
break;
|
|
18411
|
+
default:
|
|
18412
|
+
let u = options.readUnknownField;
|
|
18413
|
+
if (u === "throw")
|
|
18414
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18415
|
+
let d = reader.skip(wireType);
|
|
18416
|
+
if (u !== false)
|
|
18417
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18418
|
+
}
|
|
18419
|
+
}
|
|
18420
|
+
return message;
|
|
18421
|
+
}
|
|
18422
|
+
internalBinaryWrite(message: AuthAPI_RefreshToken_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18423
|
+
/* string token = 1; */
|
|
18424
|
+
if (message.token !== "")
|
|
18425
|
+
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
18426
|
+
/* optional google.protobuf.Duration expiration = 2; */
|
|
18427
|
+
if (message.expiration)
|
|
18428
|
+
Duration.internalBinaryWrite(message.expiration, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
18429
|
+
let u = options.writeUnknownFields;
|
|
18430
|
+
if (u !== false)
|
|
18431
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18432
|
+
return writer;
|
|
18433
|
+
}
|
|
18434
|
+
}
|
|
18435
|
+
/**
|
|
18436
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Request
|
|
18437
|
+
*/
|
|
18438
|
+
export const AuthAPI_RefreshToken_Request = new AuthAPI_RefreshToken_Request$Type();
|
|
18439
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
18440
|
+
class AuthAPI_RefreshToken_Response$Type extends MessageType<AuthAPI_RefreshToken_Response> {
|
|
18441
|
+
constructor() {
|
|
18442
|
+
super("MiLaboratories.PL.API.AuthAPI.RefreshToken.Response", [
|
|
18443
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18444
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
18445
|
+
{ no: 3, name: "role", kind: "enum", T: () => ["MiLaboratories.PL.API.AuthAPI.Role", AuthAPI_Role, "ROLE_"] }
|
|
18446
|
+
]);
|
|
18447
|
+
}
|
|
18448
|
+
create(value?: PartialMessage<AuthAPI_RefreshToken_Response>): AuthAPI_RefreshToken_Response {
|
|
18449
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
18450
|
+
message.token = "";
|
|
18451
|
+
message.sessionId = new Uint8Array(0);
|
|
18452
|
+
message.role = 0;
|
|
18453
|
+
if (value !== undefined)
|
|
18454
|
+
reflectionMergePartial<AuthAPI_RefreshToken_Response>(this, message, value);
|
|
18455
|
+
return message;
|
|
18456
|
+
}
|
|
18457
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuthAPI_RefreshToken_Response): AuthAPI_RefreshToken_Response {
|
|
18458
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18459
|
+
while (reader.pos < end) {
|
|
18460
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18461
|
+
switch (fieldNo) {
|
|
18462
|
+
case /* string token */ 1:
|
|
18463
|
+
message.token = reader.string();
|
|
18464
|
+
break;
|
|
18465
|
+
case /* bytes session_id */ 2:
|
|
18466
|
+
message.sessionId = reader.bytes();
|
|
18467
|
+
break;
|
|
18468
|
+
case /* MiLaboratories.PL.API.AuthAPI.Role role */ 3:
|
|
18469
|
+
message.role = reader.int32();
|
|
18470
|
+
break;
|
|
18471
|
+
default:
|
|
18472
|
+
let u = options.readUnknownField;
|
|
18473
|
+
if (u === "throw")
|
|
18474
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18475
|
+
let d = reader.skip(wireType);
|
|
18476
|
+
if (u !== false)
|
|
18477
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18478
|
+
}
|
|
18479
|
+
}
|
|
18480
|
+
return message;
|
|
18481
|
+
}
|
|
18482
|
+
internalBinaryWrite(message: AuthAPI_RefreshToken_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
18483
|
+
/* string token = 1; */
|
|
18484
|
+
if (message.token !== "")
|
|
18485
|
+
writer.tag(1, WireType.LengthDelimited).string(message.token);
|
|
18486
|
+
/* bytes session_id = 2; */
|
|
18487
|
+
if (message.sessionId.length)
|
|
18488
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.sessionId);
|
|
18489
|
+
/* MiLaboratories.PL.API.AuthAPI.Role role = 3; */
|
|
18490
|
+
if (message.role !== 0)
|
|
18491
|
+
writer.tag(3, WireType.Varint).int32(message.role);
|
|
18492
|
+
let u = options.writeUnknownFields;
|
|
18493
|
+
if (u !== false)
|
|
18494
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18495
|
+
return writer;
|
|
18496
|
+
}
|
|
18497
|
+
}
|
|
18498
|
+
/**
|
|
18499
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.AuthAPI.RefreshToken.Response
|
|
18500
|
+
*/
|
|
18501
|
+
export const AuthAPI_RefreshToken_Response = new AuthAPI_RefreshToken_Response$Type();
|
|
17287
18502
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
17288
18503
|
class AuthAPI_GetSessionInfo$Type extends MessageType<AuthAPI_GetSessionInfo> {
|
|
17289
18504
|
constructor() {
|
|
@@ -19180,6 +20395,9 @@ export const Platform = new ServiceType("MiLaboratories.PL.API.Platform", [
|
|
|
19180
20395
|
{ name: "ReleaseLease", options: { "google.api.http": { post: "/v1/locks/lease/release", body: "*" } }, I: LocksAPI_Lease_Release_Request, O: LocksAPI_Lease_Release_Response },
|
|
19181
20396
|
{ name: "AuthMethods", options: { "google.api.http": { get: "/v1/auth/methods" } }, I: AuthAPI_ListMethods_Request, O: AuthAPI_ListMethods_Response },
|
|
19182
20397
|
{ name: "GetJWTToken", options: { "google.api.http": { post: "/v1/auth/jwt-token", body: "*" } }, I: AuthAPI_GetJWTToken_Request, O: AuthAPI_GetJWTToken_Response },
|
|
20398
|
+
{ name: "Login", options: { "google.api.http": { post: "/v1/auth/login", body: "*" } }, I: AuthAPI_Login_Request, O: AuthAPI_Login_Response },
|
|
20399
|
+
{ name: "BeginSSOLogin", options: { "google.api.http": { post: "/v1/auth/sso/begin-login", body: "*" } }, I: AuthAPI_BeginSSOLogin_Request, O: AuthAPI_BeginSSOLogin_Response },
|
|
20400
|
+
{ name: "RefreshToken", options: { "google.api.http": { post: "/v1/auth/refresh", body: "*" } }, I: AuthAPI_RefreshToken_Request, O: AuthAPI_RefreshToken_Response },
|
|
19183
20401
|
{ name: "GetSessionInfo", options: { "google.api.http": { post: "/v1/auth/session-info", body: "*" } }, I: AuthAPI_GetSessionInfo_Request, O: AuthAPI_GetSessionInfo_Response },
|
|
19184
20402
|
{ name: "GrantAccess", options: { "google.api.http": { post: "/v1/auth/grant-access", body: "*" } }, I: AuthAPI_GrantAccess_Request, O: AuthAPI_GrantAccess_Response },
|
|
19185
20403
|
{ name: "RevokeAccess", options: { "google.api.http": { post: "/v1/auth/revoke-access", body: "*" } }, I: AuthAPI_RevokeAccess_Request, O: AuthAPI_RevokeAccess_Response },
|