@loams/client 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +137 -2
- package/dist/gen/facade.d.ts +446 -0
- package/dist/gen/facade.js +441 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +32 -0
- package/dist/loams.d.ts +110 -0
- package/dist/loams.js +203 -0
- package/dist/node.d.ts +12 -0
- package/dist/node.js +43 -0
- package/dist/runtime/call.d.ts +132 -0
- package/dist/runtime/call.js +273 -0
- package/dist/runtime/consistency.d.ts +22 -0
- package/dist/runtime/consistency.js +68 -0
- package/dist/runtime/errors.d.ts +100 -0
- package/dist/runtime/errors.js +165 -0
- package/dist/runtime/pagination.d.ts +25 -0
- package/dist/runtime/pagination.js +47 -0
- package/dist/runtime/retry.d.ts +30 -0
- package/dist/runtime/retry.js +75 -0
- package/dist/runtime/streams.d.ts +30 -0
- package/dist/runtime/streams.js +61 -0
- package/dist/runtime/token-source.d.ts +57 -0
- package/dist/runtime/token-source.js +117 -0
- package/dist/runtime/transports.d.ts +58 -0
- package/dist/runtime/transports.js +66 -0
- package/dist/runtime/uuidv7.d.ts +10 -0
- package/dist/runtime/uuidv7.js +57 -0
- package/dist/system.d.ts +87 -0
- package/dist/system.js +152 -0
- package/dist/vendor/proto/admin.d.ts +6 -0
- package/dist/vendor/proto/admin.js +12 -0
- package/dist/vendor/proto/gen/loams/admin/v1/agent_pb.d.ts +902 -0
- package/dist/vendor/proto/gen/loams/admin/v1/agent_pb.js +215 -0
- package/dist/vendor/proto/gen/loams/admin/v1/audit_pb.d.ts +289 -0
- package/dist/vendor/proto/gen/loams/admin/v1/audit_pb.js +76 -0
- package/dist/vendor/proto/gen/loams/admin/v1/common_pb.d.ts +203 -0
- package/dist/vendor/proto/gen/loams/admin/v1/common_pb.js +118 -0
- package/dist/vendor/proto/gen/loams/admin/v1/key_pb.d.ts +284 -0
- package/dist/vendor/proto/gen/loams/admin/v1/key_pb.js +62 -0
- package/dist/vendor/proto/gen/loams/admin/v1/org_pb.d.ts +634 -0
- package/dist/vendor/proto/gen/loams/admin/v1/org_pb.js +142 -0
- package/dist/vendor/proto/gen/loams/admin/v1/project_pb.d.ts +662 -0
- package/dist/vendor/proto/gen/loams/admin/v1/project_pb.js +132 -0
- package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.d.ts +435 -0
- package/dist/vendor/proto/gen/loams/auth/v1/auth_pb.js +156 -0
- package/dist/vendor/proto/gen/loams/errors/v1/errors_pb.d.ts +45 -0
- package/dist/vendor/proto/gen/loams/errors/v1/errors_pb.js +17 -0
- package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.d.ts +501 -0
- package/dist/vendor/proto/gen/loams/instance/v1/instance_pb.js +170 -0
- package/dist/vendor/proto/gen/loams/options/v1/options_pb.d.ts +97 -0
- package/dist/vendor/proto/gen/loams/options/v1/options_pb.js +47 -0
- package/package.json +49 -4
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file loams/admin/v1/project.proto (package loams.admin.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_loams_admin_v1_common } from "./common_pb.js";
|
|
7
|
+
import { file_loams_options_v1_options } from "../../options/v1/options_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file loams/admin/v1/project.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_loams_admin_v1_project = /*@__PURE__*/ fileDesc("Chxsb2Ftcy9hZG1pbi92MS9wcm9qZWN0LnByb3RvEg5sb2Ftcy5hZG1pbi52MSKmAQoHUHJvamVjdBIKCgJpZBgBIAEoCRIMCgRzbHVnGAIgASgJEg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Vudmlyb25tZW50UmVzcG9uc2UiF5ACAZK1GBASDmdldEVudmlyb25tZW50EpgBChZHZXRFbnZpcm9ubWVudEFjdGl2aXR5Ei0ubG9hbXMuYWRtaW4udjEuR2V0RW52aXJvbm1lbnRBY3Rpdml0eVJlcXVlc3QaLi5sb2Ftcy5hZG1pbi52MS5HZXRFbnZpcm9ubWVudEFjdGl2aXR5UmVzcG9uc2UiH5ACAZK1GBgSFmdldEVudmlyb25tZW50QWN0aXZpdHkaQIq1GDwKDmFkbWluLnByb2plY3RzEipQcm9qZWN0cywgcHJvamVjdCBhY2Nlc3MgYW5kIGVudmlyb25tZW50cy5iBnByb3RvMw", [file_google_protobuf_timestamp, file_loams_admin_v1_common, file_loams_options_v1_options]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message loams.admin.v1.Project.
|
|
14
|
+
* Use `create(ProjectSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ProjectSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message loams.admin.v1.Grant.
|
|
19
|
+
* Use `create(GrantSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const GrantSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message loams.admin.v1.Environment.
|
|
24
|
+
* Use `create(EnvironmentSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const EnvironmentSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message loams.admin.v1.EnvironmentStats.
|
|
29
|
+
* Use `create(EnvironmentStatsSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const EnvironmentStatsSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message loams.admin.v1.ActivityDay.
|
|
34
|
+
* Use `create(ActivityDaySchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const ActivityDaySchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message loams.admin.v1.ListProjectsRequest.
|
|
39
|
+
* Use `create(ListProjectsRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const ListProjectsRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 5);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message loams.admin.v1.ListProjectsResponse.
|
|
44
|
+
* Use `create(ListProjectsResponseSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const ListProjectsResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 6);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message loams.admin.v1.CreateProjectRequest.
|
|
49
|
+
* Use `create(CreateProjectRequestSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const CreateProjectRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 7);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message loams.admin.v1.CreateProjectResponse.
|
|
54
|
+
* Use `create(CreateProjectResponseSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const CreateProjectResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 8);
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message loams.admin.v1.GetProjectRequest.
|
|
59
|
+
* Use `create(GetProjectRequestSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const GetProjectRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 9);
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message loams.admin.v1.GetProjectResponse.
|
|
64
|
+
* Use `create(GetProjectResponseSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const GetProjectResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 10);
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message loams.admin.v1.ListAccessRequest.
|
|
69
|
+
* Use `create(ListAccessRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const ListAccessRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 11);
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message loams.admin.v1.ListAccessResponse.
|
|
74
|
+
* Use `create(ListAccessResponseSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export const ListAccessResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 12);
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message loams.admin.v1.GrantAccessRequest.
|
|
79
|
+
* Use `create(GrantAccessRequestSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const GrantAccessRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 13);
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message loams.admin.v1.GrantAccessResponse.
|
|
84
|
+
* Use `create(GrantAccessResponseSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export const GrantAccessResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 14);
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message loams.admin.v1.ListEnvironmentsRequest.
|
|
89
|
+
* Use `create(ListEnvironmentsRequestSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export const ListEnvironmentsRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 15);
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message loams.admin.v1.ListEnvironmentsResponse.
|
|
94
|
+
* Use `create(ListEnvironmentsResponseSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const ListEnvironmentsResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 16);
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message loams.admin.v1.CreateEnvironmentRequest.
|
|
99
|
+
* Use `create(CreateEnvironmentRequestSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export const CreateEnvironmentRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 17);
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message loams.admin.v1.CreateEnvironmentResponse.
|
|
104
|
+
* Use `create(CreateEnvironmentResponseSchema)` to create a new message.
|
|
105
|
+
*/
|
|
106
|
+
export const CreateEnvironmentResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 18);
|
|
107
|
+
/**
|
|
108
|
+
* Describes the message loams.admin.v1.GetEnvironmentRequest.
|
|
109
|
+
* Use `create(GetEnvironmentRequestSchema)` to create a new message.
|
|
110
|
+
*/
|
|
111
|
+
export const GetEnvironmentRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 19);
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message loams.admin.v1.GetEnvironmentResponse.
|
|
114
|
+
* Use `create(GetEnvironmentResponseSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export const GetEnvironmentResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 20);
|
|
117
|
+
/**
|
|
118
|
+
* Describes the message loams.admin.v1.GetEnvironmentActivityRequest.
|
|
119
|
+
* Use `create(GetEnvironmentActivityRequestSchema)` to create a new message.
|
|
120
|
+
*/
|
|
121
|
+
export const GetEnvironmentActivityRequestSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 21);
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message loams.admin.v1.GetEnvironmentActivityResponse.
|
|
124
|
+
* Use `create(GetEnvironmentActivityResponseSchema)` to create a new message.
|
|
125
|
+
*/
|
|
126
|
+
export const GetEnvironmentActivityResponseSchema = /*@__PURE__*/ messageDesc(file_loams_admin_v1_project, 22);
|
|
127
|
+
/**
|
|
128
|
+
* Projects, project access and environments.
|
|
129
|
+
*
|
|
130
|
+
* @generated from service loams.admin.v1.ProjectService
|
|
131
|
+
*/
|
|
132
|
+
export const ProjectService = /*@__PURE__*/ serviceDesc(file_loams_admin_v1_project, 0);
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { OrgRole, User } from "../../admin/v1/common_pb.js";
|
|
4
|
+
import type { Org } from "../../admin/v1/org_pb.js";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file loams/auth/v1/auth.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_loams_auth_v1_auth: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* An OIDC provider people can sign in with.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message loams.auth.v1.OidcProvider
|
|
14
|
+
*/
|
|
15
|
+
export type OidcProvider = Message<"loams.auth.v1.OidcProvider"> & {
|
|
16
|
+
/**
|
|
17
|
+
* The `{provider}` of `/auth/oidc/{provider}/start`.
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* The button's label.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string name = 2;
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: loams.auth.v1.OidcProviderKind kind = 3;
|
|
30
|
+
*/
|
|
31
|
+
kind: OidcProviderKind;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message loams.auth.v1.OidcProvider.
|
|
35
|
+
* Use `create(OidcProviderSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export declare const OidcProviderSchema: GenMessage<OidcProvider>;
|
|
38
|
+
/**
|
|
39
|
+
* A signed-in person's session.
|
|
40
|
+
*
|
|
41
|
+
* @generated from message loams.auth.v1.Session
|
|
42
|
+
*/
|
|
43
|
+
export type Session = Message<"loams.auth.v1.Session"> & {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: loams.admin.v1.User user = 1;
|
|
46
|
+
*/
|
|
47
|
+
user?: User | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: loams.admin.v1.Org org = 2;
|
|
50
|
+
*/
|
|
51
|
+
org?: Org | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from field: loams.admin.v1.OrgRole role = 3;
|
|
54
|
+
*/
|
|
55
|
+
role: OrgRole;
|
|
56
|
+
/**
|
|
57
|
+
* Sent back in the `X-CSRF-Token` header on every cookie-authenticated
|
|
58
|
+
* call that is not a GET, as the REST console did.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string csrf_token = 4;
|
|
61
|
+
*/
|
|
62
|
+
csrfToken: string;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 5;
|
|
65
|
+
*/
|
|
66
|
+
expiresAt?: Timestamp | undefined;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message loams.auth.v1.Session.
|
|
70
|
+
* Use `create(SessionSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export declare const SessionSchema: GenMessage<Session>;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from message loams.auth.v1.ListProvidersRequest
|
|
75
|
+
*/
|
|
76
|
+
export type ListProvidersRequest = Message<"loams.auth.v1.ListProvidersRequest"> & {};
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message loams.auth.v1.ListProvidersRequest.
|
|
79
|
+
* Use `create(ListProvidersRequestSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export declare const ListProvidersRequestSchema: GenMessage<ListProvidersRequest>;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message loams.auth.v1.ListProvidersResponse
|
|
84
|
+
*/
|
|
85
|
+
export type ListProvidersResponse = Message<"loams.auth.v1.ListProvidersResponse"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: bool password = 1;
|
|
88
|
+
*/
|
|
89
|
+
password: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: bool totp = 2;
|
|
92
|
+
*/
|
|
93
|
+
totp: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: bool passkeys = 3;
|
|
96
|
+
*/
|
|
97
|
+
passkeys: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: repeated loams.auth.v1.OidcProvider oidc = 4;
|
|
100
|
+
*/
|
|
101
|
+
oidc: OidcProvider[];
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message loams.auth.v1.ListProvidersResponse.
|
|
105
|
+
* Use `create(ListProvidersResponseSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const ListProvidersResponseSchema: GenMessage<ListProvidersResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message loams.auth.v1.CompleteSetupRequest
|
|
110
|
+
*/
|
|
111
|
+
export type CompleteSetupRequest = Message<"loams.auth.v1.CompleteSetupRequest"> & {
|
|
112
|
+
/**
|
|
113
|
+
* The token `loams` printed at first start; not needed from loopback.
|
|
114
|
+
*
|
|
115
|
+
* @generated from field: string setup_token = 1;
|
|
116
|
+
*/
|
|
117
|
+
setupToken: string;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: string org_name = 2;
|
|
120
|
+
*/
|
|
121
|
+
orgName: string;
|
|
122
|
+
/**
|
|
123
|
+
* The owner's name.
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string name = 3;
|
|
126
|
+
*/
|
|
127
|
+
name: string;
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: string email = 4;
|
|
130
|
+
*/
|
|
131
|
+
email: string;
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: string password = 5;
|
|
134
|
+
*/
|
|
135
|
+
password: string;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message loams.auth.v1.CompleteSetupRequest.
|
|
139
|
+
* Use `create(CompleteSetupRequestSchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
export declare const CompleteSetupRequestSchema: GenMessage<CompleteSetupRequest>;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from message loams.auth.v1.CompleteSetupResponse
|
|
144
|
+
*/
|
|
145
|
+
export type CompleteSetupResponse = Message<"loams.auth.v1.CompleteSetupResponse"> & {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: loams.auth.v1.Session session = 1;
|
|
148
|
+
*/
|
|
149
|
+
session?: Session | undefined;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message loams.auth.v1.CompleteSetupResponse.
|
|
153
|
+
* Use `create(CompleteSetupResponseSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export declare const CompleteSetupResponseSchema: GenMessage<CompleteSetupResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from message loams.auth.v1.GetSessionRequest
|
|
158
|
+
*/
|
|
159
|
+
export type GetSessionRequest = Message<"loams.auth.v1.GetSessionRequest"> & {};
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message loams.auth.v1.GetSessionRequest.
|
|
162
|
+
* Use `create(GetSessionRequestSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
export declare const GetSessionRequestSchema: GenMessage<GetSessionRequest>;
|
|
165
|
+
/**
|
|
166
|
+
* @generated from message loams.auth.v1.GetSessionResponse
|
|
167
|
+
*/
|
|
168
|
+
export type GetSessionResponse = Message<"loams.auth.v1.GetSessionResponse"> & {
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: loams.auth.v1.Session session = 1;
|
|
171
|
+
*/
|
|
172
|
+
session?: Session | undefined;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Describes the message loams.auth.v1.GetSessionResponse.
|
|
176
|
+
* Use `create(GetSessionResponseSchema)` to create a new message.
|
|
177
|
+
*/
|
|
178
|
+
export declare const GetSessionResponseSchema: GenMessage<GetSessionResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from message loams.auth.v1.CreateSessionRequest
|
|
181
|
+
*/
|
|
182
|
+
export type CreateSessionRequest = Message<"loams.auth.v1.CreateSessionRequest"> & {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string email = 1;
|
|
185
|
+
*/
|
|
186
|
+
email: string;
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string password = 2;
|
|
189
|
+
*/
|
|
190
|
+
password: string;
|
|
191
|
+
/**
|
|
192
|
+
* Required when the person has a second factor enrolled.
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: string totp_code = 3;
|
|
195
|
+
*/
|
|
196
|
+
totpCode: string;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Describes the message loams.auth.v1.CreateSessionRequest.
|
|
200
|
+
* Use `create(CreateSessionRequestSchema)` to create a new message.
|
|
201
|
+
*/
|
|
202
|
+
export declare const CreateSessionRequestSchema: GenMessage<CreateSessionRequest>;
|
|
203
|
+
/**
|
|
204
|
+
* @generated from message loams.auth.v1.CreateSessionResponse
|
|
205
|
+
*/
|
|
206
|
+
export type CreateSessionResponse = Message<"loams.auth.v1.CreateSessionResponse"> & {
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: loams.auth.v1.Session session = 1;
|
|
209
|
+
*/
|
|
210
|
+
session?: Session | undefined;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message loams.auth.v1.CreateSessionResponse.
|
|
214
|
+
* Use `create(CreateSessionResponseSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export declare const CreateSessionResponseSchema: GenMessage<CreateSessionResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* @generated from message loams.auth.v1.DeleteSessionRequest
|
|
219
|
+
*/
|
|
220
|
+
export type DeleteSessionRequest = Message<"loams.auth.v1.DeleteSessionRequest"> & {};
|
|
221
|
+
/**
|
|
222
|
+
* Describes the message loams.auth.v1.DeleteSessionRequest.
|
|
223
|
+
* Use `create(DeleteSessionRequestSchema)` to create a new message.
|
|
224
|
+
*/
|
|
225
|
+
export declare const DeleteSessionRequestSchema: GenMessage<DeleteSessionRequest>;
|
|
226
|
+
/**
|
|
227
|
+
* @generated from message loams.auth.v1.DeleteSessionResponse
|
|
228
|
+
*/
|
|
229
|
+
export type DeleteSessionResponse = Message<"loams.auth.v1.DeleteSessionResponse"> & {};
|
|
230
|
+
/**
|
|
231
|
+
* Describes the message loams.auth.v1.DeleteSessionResponse.
|
|
232
|
+
* Use `create(DeleteSessionResponseSchema)` to create a new message.
|
|
233
|
+
*/
|
|
234
|
+
export declare const DeleteSessionResponseSchema: GenMessage<DeleteSessionResponse>;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from message loams.auth.v1.DecideConsentRequest
|
|
237
|
+
*/
|
|
238
|
+
export type DecideConsentRequest = Message<"loams.auth.v1.DecideConsentRequest"> & {
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: loams.auth.v1.ConsentDecision decision = 1;
|
|
241
|
+
*/
|
|
242
|
+
decision: ConsentDecision;
|
|
243
|
+
/**
|
|
244
|
+
* The rest is the authorization request the consent screen was opened
|
|
245
|
+
* with, passed through unchanged.
|
|
246
|
+
*
|
|
247
|
+
* @generated from field: string client_id = 2;
|
|
248
|
+
*/
|
|
249
|
+
clientId: string;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string redirect_uri = 3;
|
|
252
|
+
*/
|
|
253
|
+
redirectUri: string;
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string scope = 4;
|
|
256
|
+
*/
|
|
257
|
+
scope: string;
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string audience = 5;
|
|
260
|
+
*/
|
|
261
|
+
audience: string;
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: string state = 6;
|
|
264
|
+
*/
|
|
265
|
+
state: string;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: string code_challenge = 7;
|
|
268
|
+
*/
|
|
269
|
+
codeChallenge: string;
|
|
270
|
+
/**
|
|
271
|
+
* "S256", the only method accepted.
|
|
272
|
+
*
|
|
273
|
+
* @generated from field: string code_challenge_method = 8;
|
|
274
|
+
*/
|
|
275
|
+
codeChallengeMethod: string;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Describes the message loams.auth.v1.DecideConsentRequest.
|
|
279
|
+
* Use `create(DecideConsentRequestSchema)` to create a new message.
|
|
280
|
+
*/
|
|
281
|
+
export declare const DecideConsentRequestSchema: GenMessage<DecideConsentRequest>;
|
|
282
|
+
/**
|
|
283
|
+
* @generated from message loams.auth.v1.DecideConsentResponse
|
|
284
|
+
*/
|
|
285
|
+
export type DecideConsentResponse = Message<"loams.auth.v1.DecideConsentResponse"> & {
|
|
286
|
+
/**
|
|
287
|
+
* Where to send the browser: the client's `redirect_uri` with a `code` (or
|
|
288
|
+
* an `error` when the person denied).
|
|
289
|
+
*
|
|
290
|
+
* @generated from field: string redirect_to = 1;
|
|
291
|
+
*/
|
|
292
|
+
redirectTo: string;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Describes the message loams.auth.v1.DecideConsentResponse.
|
|
296
|
+
* Use `create(DecideConsentResponseSchema)` to create a new message.
|
|
297
|
+
*/
|
|
298
|
+
export declare const DecideConsentResponseSchema: GenMessage<DecideConsentResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* The kind of an OIDC provider, which picks its button and its quirks.
|
|
301
|
+
*
|
|
302
|
+
* @generated from enum loams.auth.v1.OidcProviderKind
|
|
303
|
+
*/
|
|
304
|
+
export declare enum OidcProviderKind {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_UNSPECIFIED = 0;
|
|
307
|
+
*/
|
|
308
|
+
UNSPECIFIED = 0,
|
|
309
|
+
/**
|
|
310
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_KEYCLOAK = 1;
|
|
311
|
+
*/
|
|
312
|
+
KEYCLOAK = 1,
|
|
313
|
+
/**
|
|
314
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_OKTA = 2;
|
|
315
|
+
*/
|
|
316
|
+
OKTA = 2,
|
|
317
|
+
/**
|
|
318
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_ENTRA = 3;
|
|
319
|
+
*/
|
|
320
|
+
ENTRA = 3,
|
|
321
|
+
/**
|
|
322
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_GOOGLE = 4;
|
|
323
|
+
*/
|
|
324
|
+
GOOGLE = 4,
|
|
325
|
+
/**
|
|
326
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_AUTHENTIK = 5;
|
|
327
|
+
*/
|
|
328
|
+
AUTHENTIK = 5,
|
|
329
|
+
/**
|
|
330
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_DEX = 6;
|
|
331
|
+
*/
|
|
332
|
+
DEX = 6,
|
|
333
|
+
/**
|
|
334
|
+
* @generated from enum value: OIDC_PROVIDER_KIND_GENERIC = 7;
|
|
335
|
+
*/
|
|
336
|
+
GENERIC = 7
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Describes the enum loams.auth.v1.OidcProviderKind.
|
|
340
|
+
*/
|
|
341
|
+
export declare const OidcProviderKindSchema: GenEnum<OidcProviderKind>;
|
|
342
|
+
/**
|
|
343
|
+
* The person's answer on the consent screen.
|
|
344
|
+
*
|
|
345
|
+
* @generated from enum loams.auth.v1.ConsentDecision
|
|
346
|
+
*/
|
|
347
|
+
export declare enum ConsentDecision {
|
|
348
|
+
/**
|
|
349
|
+
* @generated from enum value: CONSENT_DECISION_UNSPECIFIED = 0;
|
|
350
|
+
*/
|
|
351
|
+
UNSPECIFIED = 0,
|
|
352
|
+
/**
|
|
353
|
+
* @generated from enum value: CONSENT_DECISION_ALLOW = 1;
|
|
354
|
+
*/
|
|
355
|
+
ALLOW = 1,
|
|
356
|
+
/**
|
|
357
|
+
* @generated from enum value: CONSENT_DECISION_DENY = 2;
|
|
358
|
+
*/
|
|
359
|
+
DENY = 2
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Describes the enum loams.auth.v1.ConsentDecision.
|
|
363
|
+
*/
|
|
364
|
+
export declare const ConsentDecisionSchema: GenEnum<ConsentDecision>;
|
|
365
|
+
/**
|
|
366
|
+
* Sign-in providers, first-run setup, sessions and OAuth consent.
|
|
367
|
+
*
|
|
368
|
+
* @generated from service loams.auth.v1.AuthService
|
|
369
|
+
*/
|
|
370
|
+
export declare const AuthService: GenService<{
|
|
371
|
+
/**
|
|
372
|
+
* How people sign in to this instance. No auth.
|
|
373
|
+
*
|
|
374
|
+
* @generated from rpc loams.auth.v1.AuthService.ListProviders
|
|
375
|
+
*/
|
|
376
|
+
listProviders: {
|
|
377
|
+
methodKind: "unary";
|
|
378
|
+
input: typeof ListProvidersRequestSchema;
|
|
379
|
+
output: typeof ListProvidersResponseSchema;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* First-run setup: creates the org and its owner, and signs the owner in.
|
|
383
|
+
* (replaces `POST /api/v1/setup`)
|
|
384
|
+
*
|
|
385
|
+
* @generated from rpc loams.auth.v1.AuthService.CompleteSetup
|
|
386
|
+
*/
|
|
387
|
+
completeSetup: {
|
|
388
|
+
methodKind: "unary";
|
|
389
|
+
input: typeof CompleteSetupRequestSchema;
|
|
390
|
+
output: typeof CompleteSetupResponseSchema;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* The caller's session. (replaces `GET /api/v1/session`)
|
|
394
|
+
*
|
|
395
|
+
* @generated from rpc loams.auth.v1.AuthService.GetSession
|
|
396
|
+
*/
|
|
397
|
+
getSession: {
|
|
398
|
+
methodKind: "unary";
|
|
399
|
+
input: typeof GetSessionRequestSchema;
|
|
400
|
+
output: typeof GetSessionResponseSchema;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Signs in with a password (and a TOTP code when the person has one).
|
|
404
|
+
* (replaces `POST /api/v1/session`)
|
|
405
|
+
*
|
|
406
|
+
* @generated from rpc loams.auth.v1.AuthService.CreateSession
|
|
407
|
+
*/
|
|
408
|
+
createSession: {
|
|
409
|
+
methodKind: "unary";
|
|
410
|
+
input: typeof CreateSessionRequestSchema;
|
|
411
|
+
output: typeof CreateSessionResponseSchema;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Signs out; signing out without a session is not an error.
|
|
415
|
+
* (replaces `DELETE /api/v1/session`)
|
|
416
|
+
*
|
|
417
|
+
* @generated from rpc loams.auth.v1.AuthService.DeleteSession
|
|
418
|
+
*/
|
|
419
|
+
deleteSession: {
|
|
420
|
+
methodKind: "unary";
|
|
421
|
+
input: typeof DeleteSessionRequestSchema;
|
|
422
|
+
output: typeof DeleteSessionResponseSchema;
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* The signed-in person's answer on the OAuth consent screen; answers where
|
|
426
|
+
* to send the browser next. Console-internal. (replaces `POST /api/v1/oauth/consent`)
|
|
427
|
+
*
|
|
428
|
+
* @generated from rpc loams.auth.v1.AuthService.DecideConsent
|
|
429
|
+
*/
|
|
430
|
+
decideConsent: {
|
|
431
|
+
methodKind: "unary";
|
|
432
|
+
input: typeof DecideConsentRequestSchema;
|
|
433
|
+
output: typeof DecideConsentResponseSchema;
|
|
434
|
+
};
|
|
435
|
+
}>;
|