@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,446 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The proto revision this SDK was generated from (`LOAMS_PROTO_REV`,
|
|
3
|
+
* design §44 §10.3). `loams.system.version()` checks it against the
|
|
4
|
+
* server's `GetInstance.api_versions`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PROTO_REV = "v1";
|
|
7
|
+
import type { MessageInitShape } from '@bufbuild/protobuf';
|
|
8
|
+
import type { DescService } from '@bufbuild/protobuf';
|
|
9
|
+
import type { CallOptions } from '../runtime/call.js';
|
|
10
|
+
import type { AddTeamMemberRequestSchema, AddTeamMemberResponse, CreateAgentRequestSchema, CreateAgentResponse, CreateEnvironmentRequestSchema, CreateEnvironmentResponse, CreateInvitationRequestSchema, CreateInvitationResponse, CreateKeyRequestSchema, CreateKeyResponse, CreateProjectRequestSchema, CreateProjectResponse, CreateServiceAccountRequestSchema, CreateServiceAccountResponse, CreateTeamRequestSchema, CreateTeamResponse, CreateTrustPolicyRequestSchema, CreateTrustPolicyResponse, GetAgentRequestSchema, GetAgentResponse, GetEnvironmentActivityRequestSchema, GetEnvironmentActivityResponse, GetEnvironmentRequestSchema, GetEnvironmentResponse, GetOrgRequestSchema, GetOrgResponse, GetProjectRequestSchema, GetProjectResponse, GetTeamRequestSchema, GetTeamResponse, GrantAccessRequestSchema, GrantAccessResponse, ListAccessRequestSchema, ListAccessResponse, ListAgentTokensRequestSchema, ListAgentTokensResponse, ListAgentsRequestSchema, ListAgentsResponse, ListAuditEventsRequestSchema, ListAuditEventsResponse, ListEnvironmentsRequestSchema, ListEnvironmentsResponse, ListInvitationsRequestSchema, ListInvitationsResponse, ListKeysRequestSchema, ListKeysResponse, ListMembersRequestSchema, ListMembersResponse, ListProjectsRequestSchema, ListProjectsResponse, ListServiceAccountsRequestSchema, ListServiceAccountsResponse, ListTeamsRequestSchema, ListTeamsResponse, ListTrustPoliciesRequestSchema, ListTrustPoliciesResponse, RemoveMemberRequestSchema, RemoveMemberResponse, ResumeAgentRequestSchema, ResumeAgentResponse, RevokeKeyRequestSchema, RevokeKeyResponse, RevokeTokenRequestSchema, RevokeTokenResponse, SuspendAgentRequestSchema, SuspendAgentResponse, UpdateAgentRequestSchema, UpdateAgentResponse, UpdateOrgRequestSchema, UpdateOrgResponse, WatchAuditEventsRequestSchema, WatchAuditEventsResponse } from '../vendor/proto/admin.js';
|
|
11
|
+
import type { CompleteSetupRequestSchema, CompleteSetupResponse, CreateSessionRequestSchema, CreateSessionResponse, DecideConsentRequestSchema, DecideConsentResponse, DeleteSessionRequestSchema, DeleteSessionResponse, GetSessionRequestSchema, GetSessionResponse, ListProvidersRequestSchema, ListProvidersResponse } from '../vendor/proto/gen/loams/auth/v1/auth_pb.js';
|
|
12
|
+
import type { GetInstanceRequestSchema, GetInstanceResponse, WhoAmIRequestSchema, WhoAmIResponse } from '../vendor/proto/gen/loams/instance/v1/instance_pb.js';
|
|
13
|
+
import type { ActivateDeploymentRequestSchema, ActivateDeploymentResponse, AuthenticateRequestSchema, AuthenticateResponse, CreateAppRequestSchema, CreateAppResponse, DeleteAppRequestSchema, DeleteAppResponse, DeployRequestSchema, DeployResponse, GetAppRequestSchema, GetAppResponse, GetDeploymentRequestSchema, GetDeploymentResponse, GetIndexStatusRequestSchema, GetIndexStatusResponse, ListAppsRequestSchema, ListAppsResponse, ListDeploymentsRequestSchema, ListDeploymentsResponse, ModifyQuerySetRequestSchema, ModifyQuerySetResponse, MutateRequestSchema, MutateResponse, QueryRequestSchema, QueryResponse, TailLogsRequestSchema, TailLogsResponse, Transition, UpdateAppRequestSchema, UpdateAppResponse, WatchRequestSchema } from '@loams/live/live';
|
|
14
|
+
/**
|
|
15
|
+
* `loams.admin.agents` — Agents, their tokens and trust policies, and service accounts.
|
|
16
|
+
*
|
|
17
|
+
* Wraps `loams.admin.v1.AgentService`.
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminAgentsModule {
|
|
20
|
+
/** The SDK module, as it appears on `loams.admin.agents`. */
|
|
21
|
+
readonly module: 'admin.agents';
|
|
22
|
+
/** The service behind the module. */
|
|
23
|
+
readonly service: 'loams.admin.v1.AgentService';
|
|
24
|
+
/** Whether the package's wire contract may still change. */
|
|
25
|
+
readonly unstable: false;
|
|
26
|
+
/**
|
|
27
|
+
* `loams.admin.v1.AgentService/CreateAgent`, retried: manual.
|
|
28
|
+
*/
|
|
29
|
+
create(request: MessageInitShape<typeof CreateAgentRequestSchema>, options?: CallOptions): Promise<CreateAgentResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* `loams.admin.v1.AgentService/CreateServiceAccount`, retried: manual.
|
|
32
|
+
*/
|
|
33
|
+
createServiceAccount(request: MessageInitShape<typeof CreateServiceAccountRequestSchema>, options?: CallOptions): Promise<CreateServiceAccountResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* `loams.admin.v1.AgentService/CreateTrustPolicy`, retried: manual.
|
|
36
|
+
*/
|
|
37
|
+
createTrustPolicy(request: MessageInitShape<typeof CreateTrustPolicyRequestSchema>, options?: CallOptions): Promise<CreateTrustPolicyResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* `loams.admin.v1.AgentService/GetAgent`, retried: safe.
|
|
40
|
+
*/
|
|
41
|
+
get(request: MessageInitShape<typeof GetAgentRequestSchema>, options?: CallOptions): Promise<GetAgentResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* `loams.admin.v1.AgentService/ListAgents`, retried: safe. AIP-158: page with `agents` and follow `next_page_token` through `loams.paginate`.
|
|
44
|
+
*/
|
|
45
|
+
list(request: MessageInitShape<typeof ListAgentsRequestSchema>, options?: CallOptions): Promise<ListAgentsResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* `loams.admin.v1.AgentService/ListServiceAccounts`, retried: safe. AIP-158: page with `service_accounts` and follow `next_page_token` through `loams.paginate`.
|
|
48
|
+
*/
|
|
49
|
+
listServiceAccounts(request: MessageInitShape<typeof ListServiceAccountsRequestSchema>, options?: CallOptions): Promise<ListServiceAccountsResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* `loams.admin.v1.AgentService/ListAgentTokens`, retried: safe. AIP-158: page with `tokens` and follow `next_page_token` through `loams.paginate`.
|
|
52
|
+
*/
|
|
53
|
+
listTokens(request: MessageInitShape<typeof ListAgentTokensRequestSchema>, options?: CallOptions): Promise<ListAgentTokensResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* `loams.admin.v1.AgentService/ListTrustPolicies`, retried: safe. AIP-158: page with `trust_policies` and follow `next_page_token` through `loams.paginate`.
|
|
56
|
+
*/
|
|
57
|
+
listTrustPolicies(request: MessageInitShape<typeof ListTrustPoliciesRequestSchema>, options?: CallOptions): Promise<ListTrustPoliciesResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* `loams.admin.v1.AgentService/ResumeAgent`, retried: safe.
|
|
60
|
+
*/
|
|
61
|
+
resume(request: MessageInitShape<typeof ResumeAgentRequestSchema>, options?: CallOptions): Promise<ResumeAgentResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* `loams.admin.v1.AgentService/SuspendAgent`, retried: safe.
|
|
64
|
+
*/
|
|
65
|
+
suspend(request: MessageInitShape<typeof SuspendAgentRequestSchema>, options?: CallOptions): Promise<SuspendAgentResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* `loams.admin.v1.AgentService/UpdateAgent`, retried: safe.
|
|
68
|
+
*/
|
|
69
|
+
update(request: MessageInitShape<typeof UpdateAgentRequestSchema>, options?: CallOptions): Promise<UpdateAgentResponse>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* `loams.admin.audit` — The audit log: who did what, to what, and whether it was allowed.
|
|
73
|
+
*
|
|
74
|
+
* Wraps `loams.admin.v1.AuditService`.
|
|
75
|
+
*/
|
|
76
|
+
export interface AdminAuditModule {
|
|
77
|
+
/** The SDK module, as it appears on `loams.admin.audit`. */
|
|
78
|
+
readonly module: 'admin.audit';
|
|
79
|
+
/** The service behind the module. */
|
|
80
|
+
readonly service: 'loams.admin.v1.AuditService';
|
|
81
|
+
/** Whether the package's wire contract may still change. */
|
|
82
|
+
readonly unstable: false;
|
|
83
|
+
/**
|
|
84
|
+
* `loams.admin.v1.AuditService/ListAuditEvents`, retried: safe. AIP-158: page with `events` and follow `next_page_token` through `loams.paginate`.
|
|
85
|
+
*/
|
|
86
|
+
list(request: MessageInitShape<typeof ListAuditEventsRequestSchema>, options?: CallOptions): Promise<ListAuditEventsResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* `loams.admin.v1.AuditService/WatchAuditEvents`, retried: safe.
|
|
89
|
+
*/
|
|
90
|
+
watch(request: MessageInitShape<typeof WatchAuditEventsRequestSchema>, options?: CallOptions): AsyncIterable<WatchAuditEventsResponse>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* `loams.admin.keys` — API keys, and revoking agent tokens.
|
|
94
|
+
*
|
|
95
|
+
* Wraps `loams.admin.v1.KeyService`.
|
|
96
|
+
*/
|
|
97
|
+
export interface AdminKeysModule {
|
|
98
|
+
/** The SDK module, as it appears on `loams.admin.keys`. */
|
|
99
|
+
readonly module: 'admin.keys';
|
|
100
|
+
/** The service behind the module. */
|
|
101
|
+
readonly service: 'loams.admin.v1.KeyService';
|
|
102
|
+
/** Whether the package's wire contract may still change. */
|
|
103
|
+
readonly unstable: false;
|
|
104
|
+
/**
|
|
105
|
+
* `loams.admin.v1.KeyService/CreateKey`, retried: manual.
|
|
106
|
+
*/
|
|
107
|
+
create(request: MessageInitShape<typeof CreateKeyRequestSchema>, options?: CallOptions): Promise<CreateKeyResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* `loams.admin.v1.KeyService/ListKeys`, retried: safe. AIP-158: page with `keys` and follow `next_page_token` through `loams.paginate`.
|
|
110
|
+
*/
|
|
111
|
+
list(request: MessageInitShape<typeof ListKeysRequestSchema>, options?: CallOptions): Promise<ListKeysResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* `loams.admin.v1.KeyService/RevokeKey`, retried: safe.
|
|
114
|
+
*/
|
|
115
|
+
revoke(request: MessageInitShape<typeof RevokeKeyRequestSchema>, options?: CallOptions): Promise<RevokeKeyResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* `loams.admin.v1.KeyService/RevokeToken`, retried: safe.
|
|
118
|
+
*/
|
|
119
|
+
revokeToken(request: MessageInitShape<typeof RevokeTokenRequestSchema>, options?: CallOptions): Promise<RevokeTokenResponse>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* `loams.admin.org` — The org: settings, members, invitations and teams.
|
|
123
|
+
*
|
|
124
|
+
* Wraps `loams.admin.v1.OrgService`.
|
|
125
|
+
*/
|
|
126
|
+
export interface AdminOrgModule {
|
|
127
|
+
/** The SDK module, as it appears on `loams.admin.org`. */
|
|
128
|
+
readonly module: 'admin.org';
|
|
129
|
+
/** The service behind the module. */
|
|
130
|
+
readonly service: 'loams.admin.v1.OrgService';
|
|
131
|
+
/** Whether the package's wire contract may still change. */
|
|
132
|
+
readonly unstable: false;
|
|
133
|
+
/**
|
|
134
|
+
* `loams.admin.v1.OrgService/AddTeamMember`, retried: safe.
|
|
135
|
+
*/
|
|
136
|
+
addTeamMember(request: MessageInitShape<typeof AddTeamMemberRequestSchema>, options?: CallOptions): Promise<AddTeamMemberResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* `loams.admin.v1.OrgService/CreateInvitation`, retried: manual.
|
|
139
|
+
*/
|
|
140
|
+
createInvitation(request: MessageInitShape<typeof CreateInvitationRequestSchema>, options?: CallOptions): Promise<CreateInvitationResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* `loams.admin.v1.OrgService/CreateTeam`, retried: manual.
|
|
143
|
+
*/
|
|
144
|
+
createTeam(request: MessageInitShape<typeof CreateTeamRequestSchema>, options?: CallOptions): Promise<CreateTeamResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* `loams.admin.v1.OrgService/GetOrg`, retried: safe.
|
|
147
|
+
*/
|
|
148
|
+
get(request: MessageInitShape<typeof GetOrgRequestSchema>, options?: CallOptions): Promise<GetOrgResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* `loams.admin.v1.OrgService/GetTeam`, retried: safe.
|
|
151
|
+
*/
|
|
152
|
+
getTeam(request: MessageInitShape<typeof GetTeamRequestSchema>, options?: CallOptions): Promise<GetTeamResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* `loams.admin.v1.OrgService/ListInvitations`, retried: safe. AIP-158: page with `invitations` and follow `next_page_token` through `loams.paginate`.
|
|
155
|
+
*/
|
|
156
|
+
listInvitations(request: MessageInitShape<typeof ListInvitationsRequestSchema>, options?: CallOptions): Promise<ListInvitationsResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* `loams.admin.v1.OrgService/ListMembers`, retried: safe. AIP-158: page with `members` and follow `next_page_token` through `loams.paginate`.
|
|
159
|
+
*/
|
|
160
|
+
listMembers(request: MessageInitShape<typeof ListMembersRequestSchema>, options?: CallOptions): Promise<ListMembersResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* `loams.admin.v1.OrgService/ListTeams`, retried: safe. AIP-158: page with `teams` and follow `next_page_token` through `loams.paginate`.
|
|
163
|
+
*/
|
|
164
|
+
listTeams(request: MessageInitShape<typeof ListTeamsRequestSchema>, options?: CallOptions): Promise<ListTeamsResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* `loams.admin.v1.OrgService/RemoveMember`, retried: safe.
|
|
167
|
+
*/
|
|
168
|
+
removeMember(request: MessageInitShape<typeof RemoveMemberRequestSchema>, options?: CallOptions): Promise<RemoveMemberResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* `loams.admin.v1.OrgService/UpdateOrg`, retried: safe.
|
|
171
|
+
*/
|
|
172
|
+
update(request: MessageInitShape<typeof UpdateOrgRequestSchema>, options?: CallOptions): Promise<UpdateOrgResponse>;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* `loams.admin.projects` — Projects, project access and environments.
|
|
176
|
+
*
|
|
177
|
+
* Wraps `loams.admin.v1.ProjectService`.
|
|
178
|
+
*/
|
|
179
|
+
export interface AdminProjectsModule {
|
|
180
|
+
/** The SDK module, as it appears on `loams.admin.projects`. */
|
|
181
|
+
readonly module: 'admin.projects';
|
|
182
|
+
/** The service behind the module. */
|
|
183
|
+
readonly service: 'loams.admin.v1.ProjectService';
|
|
184
|
+
/** Whether the package's wire contract may still change. */
|
|
185
|
+
readonly unstable: false;
|
|
186
|
+
/**
|
|
187
|
+
* `loams.admin.v1.ProjectService/CreateProject`, retried: manual.
|
|
188
|
+
*/
|
|
189
|
+
create(request: MessageInitShape<typeof CreateProjectRequestSchema>, options?: CallOptions): Promise<CreateProjectResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* `loams.admin.v1.ProjectService/CreateEnvironment`, retried: manual.
|
|
192
|
+
*/
|
|
193
|
+
createEnvironment(request: MessageInitShape<typeof CreateEnvironmentRequestSchema>, options?: CallOptions): Promise<CreateEnvironmentResponse>;
|
|
194
|
+
/**
|
|
195
|
+
* `loams.admin.v1.ProjectService/GetProject`, retried: safe.
|
|
196
|
+
*/
|
|
197
|
+
get(request: MessageInitShape<typeof GetProjectRequestSchema>, options?: CallOptions): Promise<GetProjectResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* `loams.admin.v1.ProjectService/GetEnvironment`, retried: safe.
|
|
200
|
+
*/
|
|
201
|
+
getEnvironment(request: MessageInitShape<typeof GetEnvironmentRequestSchema>, options?: CallOptions): Promise<GetEnvironmentResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* `loams.admin.v1.ProjectService/GetEnvironmentActivity`, retried: safe.
|
|
204
|
+
*/
|
|
205
|
+
getEnvironmentActivity(request: MessageInitShape<typeof GetEnvironmentActivityRequestSchema>, options?: CallOptions): Promise<GetEnvironmentActivityResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* `loams.admin.v1.ProjectService/GrantAccess`, retried: safe.
|
|
208
|
+
*/
|
|
209
|
+
grantAccess(request: MessageInitShape<typeof GrantAccessRequestSchema>, options?: CallOptions): Promise<GrantAccessResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* `loams.admin.v1.ProjectService/ListProjects`, retried: safe. AIP-158: page with `projects` and follow `next_page_token` through `loams.paginate`.
|
|
212
|
+
*/
|
|
213
|
+
list(request: MessageInitShape<typeof ListProjectsRequestSchema>, options?: CallOptions): Promise<ListProjectsResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* `loams.admin.v1.ProjectService/ListAccess`, retried: safe. AIP-158: page with `grants` and follow `next_page_token` through `loams.paginate`.
|
|
216
|
+
*/
|
|
217
|
+
listAccess(request: MessageInitShape<typeof ListAccessRequestSchema>, options?: CallOptions): Promise<ListAccessResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* `loams.admin.v1.ProjectService/ListEnvironments`, retried: safe. AIP-158: page with `environments` and follow `next_page_token` through `loams.paginate`.
|
|
220
|
+
*/
|
|
221
|
+
listEnvironments(request: MessageInitShape<typeof ListEnvironmentsRequestSchema>, options?: CallOptions): Promise<ListEnvironmentsResponse>;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* `loams.auth` — Sign-in providers, first-run setup, sessions and OAuth consent.
|
|
225
|
+
*
|
|
226
|
+
* Wraps `loams.auth.v1.AuthService`.
|
|
227
|
+
*/
|
|
228
|
+
export interface AuthModule {
|
|
229
|
+
/** The SDK module, as it appears on `loams.auth`. */
|
|
230
|
+
readonly module: 'auth';
|
|
231
|
+
/** The service behind the module. */
|
|
232
|
+
readonly service: 'loams.auth.v1.AuthService';
|
|
233
|
+
/** Whether the package's wire contract may still change. */
|
|
234
|
+
readonly unstable: false;
|
|
235
|
+
/**
|
|
236
|
+
* `loams.auth.v1.AuthService/CompleteSetup`, retried: manual.
|
|
237
|
+
*/
|
|
238
|
+
completeSetup(request: MessageInitShape<typeof CompleteSetupRequestSchema>, options?: CallOptions): Promise<CompleteSetupResponse>;
|
|
239
|
+
/**
|
|
240
|
+
* `loams.auth.v1.AuthService/CreateSession`, retried: manual.
|
|
241
|
+
*/
|
|
242
|
+
createSession(request: MessageInitShape<typeof CreateSessionRequestSchema>, options?: CallOptions): Promise<CreateSessionResponse>;
|
|
243
|
+
/**
|
|
244
|
+
* `loams.auth.v1.AuthService/DecideConsent`, retried: manual.
|
|
245
|
+
*/
|
|
246
|
+
decideConsent(request: MessageInitShape<typeof DecideConsentRequestSchema>, options?: CallOptions): Promise<DecideConsentResponse>;
|
|
247
|
+
/**
|
|
248
|
+
* `loams.auth.v1.AuthService/DeleteSession`, retried: safe.
|
|
249
|
+
*/
|
|
250
|
+
deleteSession(request: MessageInitShape<typeof DeleteSessionRequestSchema>, options?: CallOptions): Promise<DeleteSessionResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* `loams.auth.v1.AuthService/GetSession`, retried: safe.
|
|
253
|
+
*/
|
|
254
|
+
getSession(request: MessageInitShape<typeof GetSessionRequestSchema>, options?: CallOptions): Promise<GetSessionResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* `loams.auth.v1.AuthService/ListProviders`, retried: safe.
|
|
257
|
+
*/
|
|
258
|
+
listProviders(request: MessageInitShape<typeof ListProvidersRequestSchema>, options?: CallOptions): Promise<ListProvidersResponse>;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* `loams.instance` — What this instance is, and who the caller is on it.
|
|
262
|
+
*
|
|
263
|
+
* Wraps `loams.instance.v1.InstanceService`.
|
|
264
|
+
*/
|
|
265
|
+
export interface InstanceModule {
|
|
266
|
+
/** The SDK module, as it appears on `loams.instance`. */
|
|
267
|
+
readonly module: 'instance';
|
|
268
|
+
/** The service behind the module. */
|
|
269
|
+
readonly service: 'loams.instance.v1.InstanceService';
|
|
270
|
+
/** Whether the package's wire contract may still change. */
|
|
271
|
+
readonly unstable: false;
|
|
272
|
+
/**
|
|
273
|
+
* `loams.instance.v1.InstanceService/GetInstance`, retried: safe.
|
|
274
|
+
*/
|
|
275
|
+
getInstance(request: MessageInitShape<typeof GetInstanceRequestSchema>, options?: CallOptions): Promise<GetInstanceResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* `loams.instance.v1.InstanceService/WhoAmI`, retried: safe.
|
|
278
|
+
*/
|
|
279
|
+
whoAmI(request: MessageInitShape<typeof WhoAmIRequestSchema>, options?: CallOptions): Promise<WhoAmIResponse>;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* `loams.live` — Live sync: watch a query set over a server stream.
|
|
283
|
+
*
|
|
284
|
+
* Wraps `loams.live.v1.LiveService`. Its wire contract may still change, so `buf breaking` skips it and an SDK marks it experimental (§44 §10.3).
|
|
285
|
+
*/
|
|
286
|
+
export interface LiveModule {
|
|
287
|
+
/** The SDK module, as it appears on `loams.live`. */
|
|
288
|
+
readonly module: 'live';
|
|
289
|
+
/** The service behind the module. */
|
|
290
|
+
readonly service: 'loams.live.v1.LiveService';
|
|
291
|
+
/** Whether the package's wire contract may still change. */
|
|
292
|
+
readonly unstable: true;
|
|
293
|
+
/**
|
|
294
|
+
* `loams.live.v1.LiveService/Authenticate`, retried: manual.
|
|
295
|
+
*/
|
|
296
|
+
authenticate(request: MessageInitShape<typeof AuthenticateRequestSchema>, options?: CallOptions): Promise<AuthenticateResponse>;
|
|
297
|
+
/**
|
|
298
|
+
* `loams.live.v1.LiveService/ModifyQuerySet`, retried: manual.
|
|
299
|
+
*/
|
|
300
|
+
modifyQuerySet(request: MessageInitShape<typeof ModifyQuerySetRequestSchema>, options?: CallOptions): Promise<ModifyQuerySetResponse>;
|
|
301
|
+
/**
|
|
302
|
+
* `loams.live.v1.LiveService/Watch`, retried: manual.
|
|
303
|
+
*/
|
|
304
|
+
watch(request: MessageInitShape<typeof WatchRequestSchema>, options?: CallOptions): AsyncIterable<Transition>;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* `loams.live.admin` — Live administration: apps, deploy, roll back, index status and function logs.
|
|
308
|
+
*
|
|
309
|
+
* Wraps `loams.live.v1.LiveAdminService`. Its wire contract may still change, so `buf breaking` skips it and an SDK marks it experimental (§44 §10.3).
|
|
310
|
+
*/
|
|
311
|
+
export interface LiveAdminModule {
|
|
312
|
+
/** The SDK module, as it appears on `loams.live.admin`. */
|
|
313
|
+
readonly module: 'live.admin';
|
|
314
|
+
/** The service behind the module. */
|
|
315
|
+
readonly service: 'loams.live.v1.LiveAdminService';
|
|
316
|
+
/** Whether the package's wire contract may still change. */
|
|
317
|
+
readonly unstable: true;
|
|
318
|
+
/**
|
|
319
|
+
* `loams.live.v1.LiveAdminService/ActivateDeployment`, retried: manual.
|
|
320
|
+
*/
|
|
321
|
+
activateDeployment(request: MessageInitShape<typeof ActivateDeploymentRequestSchema>, options?: CallOptions): Promise<ActivateDeploymentResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* `loams.live.v1.LiveAdminService/CreateApp`, retried: manual.
|
|
324
|
+
*/
|
|
325
|
+
createApp(request: MessageInitShape<typeof CreateAppRequestSchema>, options?: CallOptions): Promise<CreateAppResponse>;
|
|
326
|
+
/**
|
|
327
|
+
* `loams.live.v1.LiveAdminService/DeleteApp`, retried: manual.
|
|
328
|
+
*/
|
|
329
|
+
deleteApp(request: MessageInitShape<typeof DeleteAppRequestSchema>, options?: CallOptions): Promise<DeleteAppResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* `loams.live.v1.LiveAdminService/Deploy`, retried: manual.
|
|
332
|
+
*/
|
|
333
|
+
deploy(request: MessageInitShape<typeof DeployRequestSchema>, options?: CallOptions): Promise<DeployResponse>;
|
|
334
|
+
/**
|
|
335
|
+
* `loams.live.v1.LiveAdminService/GetApp`, retried: safe.
|
|
336
|
+
*/
|
|
337
|
+
getApp(request: MessageInitShape<typeof GetAppRequestSchema>, options?: CallOptions): Promise<GetAppResponse>;
|
|
338
|
+
/**
|
|
339
|
+
* `loams.live.v1.LiveAdminService/GetDeployment`, retried: safe.
|
|
340
|
+
*/
|
|
341
|
+
getDeployment(request: MessageInitShape<typeof GetDeploymentRequestSchema>, options?: CallOptions): Promise<GetDeploymentResponse>;
|
|
342
|
+
/**
|
|
343
|
+
* `loams.live.v1.LiveAdminService/GetIndexStatus`, retried: safe.
|
|
344
|
+
*/
|
|
345
|
+
getIndexStatus(request: MessageInitShape<typeof GetIndexStatusRequestSchema>, options?: CallOptions): Promise<GetIndexStatusResponse>;
|
|
346
|
+
/**
|
|
347
|
+
* `loams.live.v1.LiveAdminService/ListApps`, retried: safe. AIP-158: page with `apps` and follow `next_page_token` through `loams.paginate`.
|
|
348
|
+
*/
|
|
349
|
+
listApps(request: MessageInitShape<typeof ListAppsRequestSchema>, options?: CallOptions): Promise<ListAppsResponse>;
|
|
350
|
+
/**
|
|
351
|
+
* `loams.live.v1.LiveAdminService/ListDeployments`, retried: safe. AIP-158: page with `deployments` and follow `next_page_token` through `loams.paginate`.
|
|
352
|
+
*/
|
|
353
|
+
listDeployments(request: MessageInitShape<typeof ListDeploymentsRequestSchema>, options?: CallOptions): Promise<ListDeploymentsResponse>;
|
|
354
|
+
/**
|
|
355
|
+
* `loams.live.v1.LiveAdminService/TailLogs`, retried: manual.
|
|
356
|
+
*/
|
|
357
|
+
tailLogs(request: MessageInitShape<typeof TailLogsRequestSchema>, options?: CallOptions): AsyncIterable<TailLogsResponse>;
|
|
358
|
+
/**
|
|
359
|
+
* `loams.live.v1.LiveAdminService/UpdateApp`, retried: manual.
|
|
360
|
+
*/
|
|
361
|
+
updateApp(request: MessageInitShape<typeof UpdateAppRequestSchema>, options?: CallOptions): Promise<UpdateAppResponse>;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* A second facade name for the same RPCs, exposed as `loams.tables`.
|
|
365
|
+
*
|
|
366
|
+
* Wraps `loams.live.v1.LiveService`. Its wire contract may still change, so `buf breaking` skips it and an SDK marks it experimental (§44 §10.3).
|
|
367
|
+
*/
|
|
368
|
+
export interface TablesModule {
|
|
369
|
+
/** The SDK module, as it appears on `loams.tables`. */
|
|
370
|
+
readonly module: 'tables';
|
|
371
|
+
/** The service behind the module. */
|
|
372
|
+
readonly service: 'loams.live.v1.LiveService';
|
|
373
|
+
/** Whether the package's wire contract may still change. */
|
|
374
|
+
readonly unstable: true;
|
|
375
|
+
/**
|
|
376
|
+
* `loams.live.v1.LiveService/Mutate`, retried: manual.
|
|
377
|
+
*/
|
|
378
|
+
mutate(request: MessageInitShape<typeof MutateRequestSchema>, options?: CallOptions): Promise<MutateResponse>;
|
|
379
|
+
/**
|
|
380
|
+
* `loams.live.v1.LiveService/Query`, retried: manual.
|
|
381
|
+
*/
|
|
382
|
+
query(request: MessageInitShape<typeof QueryRequestSchema>, options?: CallOptions): Promise<QueryResponse>;
|
|
383
|
+
}
|
|
384
|
+
/** One facade call, as the runtime dispatches it. */
|
|
385
|
+
export interface CallBinding {
|
|
386
|
+
/** The module the call is exposed on. */
|
|
387
|
+
readonly module: string;
|
|
388
|
+
/** The call's name in TypeScript case. */
|
|
389
|
+
readonly name: string;
|
|
390
|
+
/** The name `FacadeOptions` gave it, in `snake_case`. */
|
|
391
|
+
readonly protoName: string;
|
|
392
|
+
/** The method that backs the call. */
|
|
393
|
+
readonly method: string;
|
|
394
|
+
/** The RPC, as `package.Service/Method`, which is the path curl and grpcurl use. */
|
|
395
|
+
readonly rpc: string;
|
|
396
|
+
readonly service: string;
|
|
397
|
+
readonly package: string;
|
|
398
|
+
readonly idempotency: 'no_side_effects' | 'idempotent' | 'none';
|
|
399
|
+
readonly retry: 'safe' | 'manual';
|
|
400
|
+
readonly streaming: 'unary' | 'server';
|
|
401
|
+
readonly pagination: {
|
|
402
|
+
readonly items: string;
|
|
403
|
+
readonly nextPageToken: string;
|
|
404
|
+
} | null;
|
|
405
|
+
}
|
|
406
|
+
/** One SDK module and its calls. */
|
|
407
|
+
export interface ModuleBinding {
|
|
408
|
+
readonly name: string;
|
|
409
|
+
readonly summary: string;
|
|
410
|
+
readonly service: string;
|
|
411
|
+
readonly package: string;
|
|
412
|
+
readonly unstable: boolean;
|
|
413
|
+
/** True for a second facade name for the same RPCs, which has no summary of its own. */
|
|
414
|
+
readonly derived: boolean;
|
|
415
|
+
readonly calls: readonly CallBinding[];
|
|
416
|
+
}
|
|
417
|
+
/** Every annotated service, as the module catalogue. Order is by module name. */
|
|
418
|
+
export declare const MODULES: readonly ModuleBinding[];
|
|
419
|
+
/**
|
|
420
|
+
* The generated service descriptors, by fully qualified name. The runtime
|
|
421
|
+
* turns each into a Connect client with `createClient`, so a module is
|
|
422
|
+
* backed by the stubs `protoc-gen-es` wrote from the same protos rather
|
|
423
|
+
* than by a hand-written client.
|
|
424
|
+
*/
|
|
425
|
+
export declare const SERVICE_DESCRIPTORS: Readonly<Record<string, DescService>>;
|
|
426
|
+
/** The proto packages this SDK speaks, as `GetInstance.api_versions` names them. */
|
|
427
|
+
export declare const PROTO_PACKAGES: readonly ["google.protobuf", "loams.admin.v1", "loams.approvals.v1", "loams.auth.v1", "loams.collection.v1", "loams.devices.v1", "loams.errors.v1", "loams.graph.v1", "loams.house.v1", "loams.instance.v1", "loams.live.v1", "loams.live.worker.v1", "loams.notifications.v1", "loams.operations.v1", "loams.options.v1", "loams.postgres.v1", "loams.repos.v1"];
|
|
428
|
+
/**
|
|
429
|
+
* Every `reason` in `docs/api/reasons.md` (design §44 §7.4, D611). Within
|
|
430
|
+
* an API major version a reason is never renamed and never removed, so
|
|
431
|
+
* this union only grows; a caller switching on it is exhaustive.
|
|
432
|
+
*/
|
|
433
|
+
export declare const REASONS: readonly ["approval_expired", "approval_already_decided", "approval_stale_revision", "requester_cannot_approve", "decision_proof_invalid", "step_up_required", "reason_required", "invalid_decision", "pairing_expired", "pairing_used", "device_revoked", "push_target_unknown", "not_implemented", "feature_not_in_variant", "house_not_configured", "house_syntax_error", "house_unknown_table", "house_unknown_database", "house_access_denied", "house_read_only", "house_timeout", "house_memory_limit", "house_too_many_queries", "house_quota_exceeded", "house_disabled_function", "house_cancelled", "house_query_not_found", "house_query_failed", "project_not_found", "branch_has_children", "branch_protected", "lsn_out_of_retention", "endpoint_exists_for_branch", "compute_start_failed", "quota_exceeded", "storage_unavailable", "secret_already_issued", "repo_not_found", "repo_already_exists", "repo_deleting", "ref_stale", "ref_protected", "out_of_scope", "object_format_unsupported", "fork_too_deep", "sequencer_unavailable", "idempotency_key_reused", "workspace_not_found", "workspace_fenced", "workspace_read_only", "workspace_name_taken", "object_missing", "secret_detected", "env_unsealed", "env_access_denied", "env_foreign_reference", "live_bad_cursor", "live_worker_crashed", "live_deploy_conflict", "live_schema_violation", "live_index_not_ready", "live_app_disabled", "live_app_exists", "live_function_error", "live_function_timeout", "live_function_out_of_memory", "live_limit_exceeded", "live_app_mismatch", "live_origin_not_allowed", "session_rotate", "session_gone", "node_draining", "role_required", "setup_required", "token_missing", "token_malformed", "token_revoked", "token_not_yet_valid", "token_bad_signature", "token_wrong_audience", "token_wrong_issuer", "token_unknown_key", "token_algorithm_not_allowed", "api_key_invalid", "credential_not_accepted", "credential_in_query_string", "csrf_token_invalid", "principal_not_allowed", "cors_origin_not_allowed", "auth_unavailable", "invalid_argument", "not_found", "already_exists", "permission_denied", "token_expired", "unauthenticated", "failed_precondition", "resource_exhausted", "unavailable", "deadline_exceeded", "aborted", "internal"];
|
|
434
|
+
/** A stable, machine-readable cause of a failed RPC. */
|
|
435
|
+
export type Reason = (typeof REASONS)[number];
|
|
436
|
+
/** The Connect code each reason is raised under, from the same registry. */
|
|
437
|
+
export declare const REASON_CODES: Readonly<Record<Reason, string>>;
|
|
438
|
+
/**
|
|
439
|
+
* The reason a package the build variant does not carry answers with
|
|
440
|
+
* (design §44 §4, D600). Every RPC of such a package refuses with it and
|
|
441
|
+
* names the variant in `metadata.variant`; the runtime turns that refusal
|
|
442
|
+
* into `FeatureNotInVariantError` so a caller can branch on it without
|
|
443
|
+
* calling first — `loams.system.available()` answers the same question from
|
|
444
|
+
* `GetInstance.services[]` without a failing call at all.
|
|
445
|
+
*/
|
|
446
|
+
export declare const FEATURE_NOT_IN_VARIANT: "feature_not_in_variant";
|