@logto/cloud 0.2.5-fadb481 → 0.2.5-fd82773
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/lib/routes/index.d.ts +1442 -0
- package/package.json +34 -45
- package/build/env-set/index.d.ts +0 -5
- package/build/index.d.ts +0 -1
- package/build/libraries/services.d.ts +0 -16
- package/build/libraries/tenants.d.ts +0 -11
- package/build/middleware/with-auth.d.ts +0 -18
- package/build/middleware/with-error-report.d.ts +0 -5
- package/build/middleware/with-http-proxy.d.ts +0 -7
- package/build/middleware/with-pathname.d.ts +0 -11
- package/build/middleware/with-security-headers.d.ts +0 -2
- package/build/middleware/with-spa.d.ts +0 -28
- package/build/models/checkout-sessions.d.ts +0 -24
- package/build/models/consts/subscription-plan-quota.d.ts +0 -10
- package/build/models/subscription-plans.d.ts +0 -132
- package/build/models/subscriptions-usage.d.ts +0 -24
- package/build/models/subscriptions.d.ts +0 -31
- package/build/models/tenants-subscriptions.d.ts +0 -20
- package/build/queries/application.d.ts +0 -9
- package/build/queries/connector.d.ts +0 -11
- package/build/queries/index.d.ts +0 -104
- package/build/queries/roles.d.ts +0 -6
- package/build/queries/service-logs.d.ts +0 -10
- package/build/queries/system.d.ts +0 -22
- package/build/queries/tenants.d.ts +0 -30
- package/build/queries/users.d.ts +0 -7
- package/build/queries/utils.d.ts +0 -3
- package/build/routes/index.d.ts +0 -78
- package/build/routes/services.d.ts +0 -53
- package/build/routes/tenants.d.ts +0 -24
- package/build/routes-anonymous/index.d.ts +0 -13
- package/build/test-utils/context.d.ts +0 -14
- package/build/test-utils/function.d.ts +0 -1
- package/build/test-utils/libraries.d.ts +0 -26
- package/build/utils/connector/index.d.ts +0 -2
- package/build/utils/connector/seed.d.ts +0 -17
- package/build/utils/connector/types.d.ts +0 -11
- package/build/utils/email-service/index.d.ts +0 -13
- package/build/utils/email-service/sendgrid.d.ts +0 -6
- package/build/utils/email-service/utils.d.ts +0 -2
- package/build/utils/guard.d.ts +0 -3
- package/build/utils/logto.d.ts +0 -3
- package/build/utils/postgres.d.ts +0 -4
- package/build/utils/query.d.ts +0 -2
- package/build/utils/tenant.d.ts +0 -1
- package/build/utils/url.d.ts +0 -2
|
@@ -0,0 +1,1442 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.3.1
|
|
2
|
+
|
|
3
|
+
import { Json, JsonObject, RequestContext } from '@withtyped/server';
|
|
4
|
+
import { InferModelType } from '@withtyped/server/model';
|
|
5
|
+
|
|
6
|
+
declare const availableReportableUsageKeys: readonly [
|
|
7
|
+
"tokenLimit",
|
|
8
|
+
"machineToMachineLimit",
|
|
9
|
+
"resourcesLimit",
|
|
10
|
+
"enterpriseSsoLimit",
|
|
11
|
+
"hooksLimit",
|
|
12
|
+
"tenantMembersLimit",
|
|
13
|
+
"mfaEnabled",
|
|
14
|
+
"organizationsEnabled",
|
|
15
|
+
"organizationsLimit",
|
|
16
|
+
"securityFeaturesEnabled",
|
|
17
|
+
"userRolesLimit",
|
|
18
|
+
"machineToMachineRolesLimit",
|
|
19
|
+
"thirdPartyApplicationsLimit",
|
|
20
|
+
"samlApplicationsLimit"
|
|
21
|
+
];
|
|
22
|
+
export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
|
|
23
|
+
export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
|
|
24
|
+
declare enum LogtoSkuType {
|
|
25
|
+
Basic = "Basic",
|
|
26
|
+
AddOn = "AddOn"
|
|
27
|
+
}
|
|
28
|
+
declare enum TemplateType {
|
|
29
|
+
/** The template for sending verification code when user is signing in. */
|
|
30
|
+
SignIn = "SignIn",
|
|
31
|
+
/** The template for sending verification code when user is registering. */
|
|
32
|
+
Register = "Register",
|
|
33
|
+
/** The template for sending verification code when user is resetting password. */
|
|
34
|
+
ForgotPassword = "ForgotPassword",
|
|
35
|
+
/** The template for sending organization invitation. */
|
|
36
|
+
OrganizationInvitation = "OrganizationInvitation",
|
|
37
|
+
/** The template for generic usage. */
|
|
38
|
+
Generic = "Generic",
|
|
39
|
+
/** The template for validating user permission for sensitive operations. */
|
|
40
|
+
UserPermissionValidation = "UserPermissionValidation",
|
|
41
|
+
/** The template for binding a new identifier to an existing account. */
|
|
42
|
+
BindNewIdentifier = "BindNewIdentifier",
|
|
43
|
+
/** The template for sending MFA verification code. */
|
|
44
|
+
MfaVerification = "MfaVerification",
|
|
45
|
+
/** The template for binding MFA verification. */
|
|
46
|
+
BindMfa = "BindMfa"
|
|
47
|
+
}
|
|
48
|
+
declare enum OrganizationInvitationStatus {
|
|
49
|
+
Pending = "Pending",
|
|
50
|
+
Accepted = "Accepted",
|
|
51
|
+
Expired = "Expired",
|
|
52
|
+
Revoked = "Revoked"
|
|
53
|
+
}
|
|
54
|
+
/** The scopes (permissions) defined by the organization template. */
|
|
55
|
+
export type OrganizationScope = {
|
|
56
|
+
tenantId: string;
|
|
57
|
+
/** The globally unique identifier of the organization scope. */
|
|
58
|
+
id: string;
|
|
59
|
+
/** The organization scope's name, unique within the organization template. */
|
|
60
|
+
name: string;
|
|
61
|
+
/** A brief description of the organization scope. */
|
|
62
|
+
description: string | null;
|
|
63
|
+
};
|
|
64
|
+
declare enum LogtoJwtTokenKeyType {
|
|
65
|
+
AccessToken = "access-token",
|
|
66
|
+
ClientCredentials = "client-credentials"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The simplified organization role entity that is returned in the `roles` field
|
|
70
|
+
* of the organization.
|
|
71
|
+
*/
|
|
72
|
+
export type OrganizationRoleEntity = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
declare enum TenantTag {
|
|
77
|
+
Development = "development",
|
|
78
|
+
Production = "production"
|
|
79
|
+
}
|
|
80
|
+
declare enum TenantRole {
|
|
81
|
+
/** Admin of the tenant, who has all permissions. */
|
|
82
|
+
Admin = "admin",
|
|
83
|
+
/** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
|
|
84
|
+
Collaborator = "collaborator"
|
|
85
|
+
}
|
|
86
|
+
declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
affiliateId: string;
|
|
89
|
+
type: "hostname" | "query";
|
|
90
|
+
value: string;
|
|
91
|
+
}, "createdAt", "createdAt">;
|
|
92
|
+
export type AffiliateProperty = InferModelType<typeof AffiliateProperties>;
|
|
93
|
+
declare const Affiliates: import("@withtyped/server/lib/model/index.js").default<"affiliates", {
|
|
94
|
+
name: string;
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
id: string;
|
|
97
|
+
}, "id" | "createdAt", "id" | "createdAt">;
|
|
98
|
+
export type Affiliate = InferModelType<typeof Affiliates>;
|
|
99
|
+
declare const publicRegionNames: readonly [
|
|
100
|
+
"EU",
|
|
101
|
+
"US",
|
|
102
|
+
"AU",
|
|
103
|
+
"JP"
|
|
104
|
+
];
|
|
105
|
+
/** The type of region names for the public cloud. */
|
|
106
|
+
export type PublicRegionName = (typeof publicRegionNames)[number];
|
|
107
|
+
declare enum DatabaseRegionAccessRole {
|
|
108
|
+
/** Instance administrator - can manage collaborators and create tenants */
|
|
109
|
+
Admin = "admin",
|
|
110
|
+
/** Collaborator user - can only create tenants in the instance */
|
|
111
|
+
Collaborator = "collaborator"
|
|
112
|
+
}
|
|
113
|
+
declare const Regions: import("@withtyped/server/lib/model/index.js").default<"regions", {
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
name: string;
|
|
116
|
+
isPrivate: boolean;
|
|
117
|
+
displayName: string;
|
|
118
|
+
country: string;
|
|
119
|
+
dbUrl: string;
|
|
120
|
+
redisUrl: string | null;
|
|
121
|
+
tags: TenantTag[];
|
|
122
|
+
}, "createdAt" | "tags" | "isPrivate", "createdAt">;
|
|
123
|
+
export type Region = InferModelType<typeof Regions>;
|
|
124
|
+
export type AffiliateData = Affiliate & {
|
|
125
|
+
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
126
|
+
};
|
|
127
|
+
export type RegionResponse = Pick<Region, "name" | "displayName" | "country" | "isPrivate" | "tags"> & {
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated Temporary field for backward compatibility, will be removed in the future.
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
};
|
|
133
|
+
export type WithAuthContext<Context = RequestContext> = Context & {
|
|
134
|
+
auth: {
|
|
135
|
+
/** The ID of the authenticated subject (`sub`). */
|
|
136
|
+
id: string;
|
|
137
|
+
/** The scopes that the subject has (`scope`). */
|
|
138
|
+
scopes: string[];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
|
|
142
|
+
request: {
|
|
143
|
+
id?: string | undefined;
|
|
144
|
+
method?: import("@withtyped/server").RequestMethod | undefined;
|
|
145
|
+
headers: import("http").IncomingHttpHeaders;
|
|
146
|
+
url: URL;
|
|
147
|
+
body?: unknown;
|
|
148
|
+
};
|
|
149
|
+
}, "request"> & {
|
|
150
|
+
request: Record<string, unknown> & {
|
|
151
|
+
id?: string | undefined;
|
|
152
|
+
method?: import("@withtyped/server").RequestMethod | undefined;
|
|
153
|
+
headers: import("http").IncomingHttpHeaders;
|
|
154
|
+
url: URL;
|
|
155
|
+
body?: unknown;
|
|
156
|
+
} & {
|
|
157
|
+
body?: Json | undefined;
|
|
158
|
+
bodyRaw?: Buffer | undefined;
|
|
159
|
+
};
|
|
160
|
+
}>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
|
|
161
|
+
patch: {
|
|
162
|
+
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
createdAt: Date;
|
|
168
|
+
quota: {
|
|
169
|
+
mauLimit: number | null;
|
|
170
|
+
tokenLimit: number | null;
|
|
171
|
+
};
|
|
172
|
+
usage: {
|
|
173
|
+
activeUsers: number;
|
|
174
|
+
tokenUsage: number;
|
|
175
|
+
};
|
|
176
|
+
indicator: string;
|
|
177
|
+
isSuspended: boolean;
|
|
178
|
+
planId: string;
|
|
179
|
+
subscription: {
|
|
180
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
181
|
+
planId: string;
|
|
182
|
+
currentPeriodStart: Date;
|
|
183
|
+
currentPeriodEnd: Date;
|
|
184
|
+
isEnterprisePlan: boolean;
|
|
185
|
+
id?: string | undefined;
|
|
186
|
+
upcomingInvoice?: {
|
|
187
|
+
subtotal: number;
|
|
188
|
+
subtotalExcludingTax: number | null;
|
|
189
|
+
total: number;
|
|
190
|
+
totalExcludingTax: number | null;
|
|
191
|
+
} | null | undefined;
|
|
192
|
+
};
|
|
193
|
+
regionName: string;
|
|
194
|
+
tag: TenantTag;
|
|
195
|
+
openInvoices: {
|
|
196
|
+
id: string;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
199
|
+
updatedAt: Date;
|
|
200
|
+
customerId: string | null;
|
|
201
|
+
billingReason: string | null;
|
|
202
|
+
periodStart: Date;
|
|
203
|
+
periodEnd: Date;
|
|
204
|
+
amountDue: number;
|
|
205
|
+
amountPaid: number;
|
|
206
|
+
basicSkuId: string | null;
|
|
207
|
+
subscriptionId: string | null;
|
|
208
|
+
hostedInvoiceUrl: string | null;
|
|
209
|
+
invoicePdf: string | null;
|
|
210
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
211
|
+
dueDate: Date | null;
|
|
212
|
+
}[];
|
|
213
|
+
featureFlags?: {
|
|
214
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
};
|
|
218
|
+
options: {};
|
|
219
|
+
get: {
|
|
220
|
+
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
createdAt: Date;
|
|
224
|
+
quota: {
|
|
225
|
+
mauLimit: number | null;
|
|
226
|
+
tokenLimit: number | null;
|
|
227
|
+
};
|
|
228
|
+
usage: {
|
|
229
|
+
activeUsers: number;
|
|
230
|
+
tokenUsage: number;
|
|
231
|
+
};
|
|
232
|
+
indicator: string;
|
|
233
|
+
isSuspended: boolean;
|
|
234
|
+
planId: string;
|
|
235
|
+
subscription: {
|
|
236
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
237
|
+
planId: string;
|
|
238
|
+
currentPeriodStart: Date;
|
|
239
|
+
currentPeriodEnd: Date;
|
|
240
|
+
isEnterprisePlan: boolean;
|
|
241
|
+
id?: string | undefined;
|
|
242
|
+
upcomingInvoice?: {
|
|
243
|
+
subtotal: number;
|
|
244
|
+
subtotalExcludingTax: number | null;
|
|
245
|
+
total: number;
|
|
246
|
+
totalExcludingTax: number | null;
|
|
247
|
+
} | null | undefined;
|
|
248
|
+
};
|
|
249
|
+
regionName: string;
|
|
250
|
+
tag: TenantTag;
|
|
251
|
+
openInvoices: {
|
|
252
|
+
id: string;
|
|
253
|
+
createdAt: Date;
|
|
254
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
255
|
+
updatedAt: Date;
|
|
256
|
+
customerId: string | null;
|
|
257
|
+
billingReason: string | null;
|
|
258
|
+
periodStart: Date;
|
|
259
|
+
periodEnd: Date;
|
|
260
|
+
amountDue: number;
|
|
261
|
+
amountPaid: number;
|
|
262
|
+
basicSkuId: string | null;
|
|
263
|
+
subscriptionId: string | null;
|
|
264
|
+
hostedInvoiceUrl: string | null;
|
|
265
|
+
invoicePdf: string | null;
|
|
266
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
267
|
+
dueDate: Date | null;
|
|
268
|
+
}[];
|
|
269
|
+
featureFlags?: {
|
|
270
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
}[]>;
|
|
273
|
+
};
|
|
274
|
+
post: {
|
|
275
|
+
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
276
|
+
id?: string | undefined;
|
|
277
|
+
name?: string | undefined;
|
|
278
|
+
regionName?: string | undefined;
|
|
279
|
+
tag?: TenantTag | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
createdAt: Date;
|
|
284
|
+
quota: {
|
|
285
|
+
mauLimit: number | null;
|
|
286
|
+
tokenLimit: number | null;
|
|
287
|
+
};
|
|
288
|
+
usage: {
|
|
289
|
+
activeUsers: number;
|
|
290
|
+
tokenUsage: number;
|
|
291
|
+
};
|
|
292
|
+
indicator: string;
|
|
293
|
+
isSuspended: boolean;
|
|
294
|
+
planId: string;
|
|
295
|
+
subscription: {
|
|
296
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
297
|
+
planId: string;
|
|
298
|
+
currentPeriodStart: Date;
|
|
299
|
+
currentPeriodEnd: Date;
|
|
300
|
+
isEnterprisePlan: boolean;
|
|
301
|
+
id?: string | undefined;
|
|
302
|
+
upcomingInvoice?: {
|
|
303
|
+
subtotal: number;
|
|
304
|
+
subtotalExcludingTax: number | null;
|
|
305
|
+
total: number;
|
|
306
|
+
totalExcludingTax: number | null;
|
|
307
|
+
} | null | undefined;
|
|
308
|
+
};
|
|
309
|
+
regionName: string;
|
|
310
|
+
tag: TenantTag;
|
|
311
|
+
openInvoices: {
|
|
312
|
+
id: string;
|
|
313
|
+
createdAt: Date;
|
|
314
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
315
|
+
updatedAt: Date;
|
|
316
|
+
customerId: string | null;
|
|
317
|
+
billingReason: string | null;
|
|
318
|
+
periodStart: Date;
|
|
319
|
+
periodEnd: Date;
|
|
320
|
+
amountDue: number;
|
|
321
|
+
amountPaid: number;
|
|
322
|
+
basicSkuId: string | null;
|
|
323
|
+
subscriptionId: string | null;
|
|
324
|
+
hostedInvoiceUrl: string | null;
|
|
325
|
+
invoicePdf: string | null;
|
|
326
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
327
|
+
dueDate: Date | null;
|
|
328
|
+
}[];
|
|
329
|
+
featureFlags?: {
|
|
330
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
}>;
|
|
333
|
+
} & {
|
|
334
|
+
"/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
|
|
335
|
+
planId: string;
|
|
336
|
+
tenantIds: string[];
|
|
337
|
+
}, {
|
|
338
|
+
tenantId: string;
|
|
339
|
+
success: boolean;
|
|
340
|
+
error?: string | undefined;
|
|
341
|
+
updatedLineItems?: unknown[] | undefined;
|
|
342
|
+
}[]>;
|
|
343
|
+
};
|
|
344
|
+
put: {};
|
|
345
|
+
delete: {
|
|
346
|
+
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
|
|
347
|
+
};
|
|
348
|
+
copy: {};
|
|
349
|
+
head: {};
|
|
350
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
351
|
+
patch: {};
|
|
352
|
+
options: {};
|
|
353
|
+
get: {
|
|
354
|
+
"/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
|
|
355
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
356
|
+
quota: {
|
|
357
|
+
auditLogsRetentionDays: number | null;
|
|
358
|
+
mauLimit: number | null;
|
|
359
|
+
applicationsLimit: number | null;
|
|
360
|
+
thirdPartyApplicationsLimit: number | null;
|
|
361
|
+
scopesPerResourceLimit: number | null;
|
|
362
|
+
socialConnectorsLimit: number | null;
|
|
363
|
+
userRolesLimit: number | null;
|
|
364
|
+
machineToMachineRolesLimit: number | null;
|
|
365
|
+
scopesPerRoleLimit: number | null;
|
|
366
|
+
hooksLimit: number | null;
|
|
367
|
+
customJwtEnabled: boolean;
|
|
368
|
+
subjectTokenEnabled: boolean;
|
|
369
|
+
bringYourUiEnabled: boolean;
|
|
370
|
+
collectUserProfileEnabled: boolean;
|
|
371
|
+
tokenLimit: number | null;
|
|
372
|
+
machineToMachineLimit: number | null;
|
|
373
|
+
resourcesLimit: number | null;
|
|
374
|
+
enterpriseSsoLimit: number | null;
|
|
375
|
+
tenantMembersLimit: number | null;
|
|
376
|
+
mfaEnabled: boolean;
|
|
377
|
+
organizationsEnabled: boolean;
|
|
378
|
+
organizationsLimit: number | null;
|
|
379
|
+
securityFeaturesEnabled: boolean;
|
|
380
|
+
idpInitiatedSsoEnabled: boolean;
|
|
381
|
+
samlApplicationsLimit: number | null;
|
|
382
|
+
};
|
|
383
|
+
planId: string;
|
|
384
|
+
currentPeriodStart: Date;
|
|
385
|
+
currentPeriodEnd: Date;
|
|
386
|
+
isEnterprisePlan: boolean;
|
|
387
|
+
id?: string | undefined;
|
|
388
|
+
upcomingInvoice?: {
|
|
389
|
+
subtotal: number;
|
|
390
|
+
subtotalExcludingTax: number | null;
|
|
391
|
+
total: number;
|
|
392
|
+
totalExcludingTax: number | null;
|
|
393
|
+
} | null | undefined;
|
|
394
|
+
systemLimit?: {
|
|
395
|
+
applicationsLimit?: number | undefined;
|
|
396
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
397
|
+
scopesPerResourceLimit?: number | undefined;
|
|
398
|
+
socialConnectorsLimit?: number | undefined;
|
|
399
|
+
userRolesLimit?: number | undefined;
|
|
400
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
401
|
+
scopesPerRoleLimit?: number | undefined;
|
|
402
|
+
hooksLimit?: number | undefined;
|
|
403
|
+
machineToMachineLimit?: number | undefined;
|
|
404
|
+
resourcesLimit?: number | undefined;
|
|
405
|
+
enterpriseSsoLimit?: number | undefined;
|
|
406
|
+
tenantMembersLimit?: number | undefined;
|
|
407
|
+
organizationsLimit?: number | undefined;
|
|
408
|
+
samlApplicationsLimit?: number | undefined;
|
|
409
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
410
|
+
organizationUserRolesLimit?: number | undefined;
|
|
411
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
412
|
+
organizationScopesLimit?: number | undefined;
|
|
413
|
+
} | undefined;
|
|
414
|
+
}>;
|
|
415
|
+
} & {
|
|
416
|
+
"/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
|
|
417
|
+
usage: {
|
|
418
|
+
applicationsLimit: number;
|
|
419
|
+
thirdPartyApplicationsLimit: number;
|
|
420
|
+
scopesPerResourceLimit: number;
|
|
421
|
+
socialConnectorsLimit: number;
|
|
422
|
+
userRolesLimit: number;
|
|
423
|
+
machineToMachineRolesLimit: number;
|
|
424
|
+
scopesPerRoleLimit: number;
|
|
425
|
+
hooksLimit: number;
|
|
426
|
+
customJwtEnabled: boolean;
|
|
427
|
+
subjectTokenEnabled: boolean;
|
|
428
|
+
bringYourUiEnabled: boolean;
|
|
429
|
+
collectUserProfileEnabled: boolean;
|
|
430
|
+
machineToMachineLimit: number;
|
|
431
|
+
resourcesLimit: number;
|
|
432
|
+
enterpriseSsoLimit: number;
|
|
433
|
+
tenantMembersLimit: number;
|
|
434
|
+
mfaEnabled: boolean;
|
|
435
|
+
organizationsEnabled: boolean;
|
|
436
|
+
organizationsLimit: number;
|
|
437
|
+
securityFeaturesEnabled: boolean;
|
|
438
|
+
idpInitiatedSsoEnabled: boolean;
|
|
439
|
+
samlApplicationsLimit: number;
|
|
440
|
+
};
|
|
441
|
+
resources: Record<string, number>;
|
|
442
|
+
roles: Record<string, number>;
|
|
443
|
+
quota: {
|
|
444
|
+
auditLogsRetentionDays: number | null;
|
|
445
|
+
mauLimit: number | null;
|
|
446
|
+
applicationsLimit: number | null;
|
|
447
|
+
thirdPartyApplicationsLimit: number | null;
|
|
448
|
+
scopesPerResourceLimit: number | null;
|
|
449
|
+
socialConnectorsLimit: number | null;
|
|
450
|
+
userRolesLimit: number | null;
|
|
451
|
+
machineToMachineRolesLimit: number | null;
|
|
452
|
+
scopesPerRoleLimit: number | null;
|
|
453
|
+
hooksLimit: number | null;
|
|
454
|
+
customJwtEnabled: boolean;
|
|
455
|
+
subjectTokenEnabled: boolean;
|
|
456
|
+
bringYourUiEnabled: boolean;
|
|
457
|
+
collectUserProfileEnabled: boolean;
|
|
458
|
+
tokenLimit: number | null;
|
|
459
|
+
machineToMachineLimit: number | null;
|
|
460
|
+
resourcesLimit: number | null;
|
|
461
|
+
enterpriseSsoLimit: number | null;
|
|
462
|
+
tenantMembersLimit: number | null;
|
|
463
|
+
mfaEnabled: boolean;
|
|
464
|
+
organizationsEnabled: boolean;
|
|
465
|
+
organizationsLimit: number | null;
|
|
466
|
+
securityFeaturesEnabled: boolean;
|
|
467
|
+
idpInitiatedSsoEnabled: boolean;
|
|
468
|
+
samlApplicationsLimit: number | null;
|
|
469
|
+
};
|
|
470
|
+
basicQuota: {
|
|
471
|
+
auditLogsRetentionDays: number | null;
|
|
472
|
+
mauLimit: number | null;
|
|
473
|
+
applicationsLimit: number | null;
|
|
474
|
+
thirdPartyApplicationsLimit: number | null;
|
|
475
|
+
scopesPerResourceLimit: number | null;
|
|
476
|
+
socialConnectorsLimit: number | null;
|
|
477
|
+
userRolesLimit: number | null;
|
|
478
|
+
machineToMachineRolesLimit: number | null;
|
|
479
|
+
scopesPerRoleLimit: number | null;
|
|
480
|
+
hooksLimit: number | null;
|
|
481
|
+
customJwtEnabled: boolean;
|
|
482
|
+
subjectTokenEnabled: boolean;
|
|
483
|
+
bringYourUiEnabled: boolean;
|
|
484
|
+
collectUserProfileEnabled: boolean;
|
|
485
|
+
tokenLimit: number | null;
|
|
486
|
+
machineToMachineLimit: number | null;
|
|
487
|
+
resourcesLimit: number | null;
|
|
488
|
+
enterpriseSsoLimit: number | null;
|
|
489
|
+
tenantMembersLimit: number | null;
|
|
490
|
+
mfaEnabled: boolean;
|
|
491
|
+
organizationsEnabled: boolean;
|
|
492
|
+
organizationsLimit: number | null;
|
|
493
|
+
securityFeaturesEnabled: boolean;
|
|
494
|
+
idpInitiatedSsoEnabled: boolean;
|
|
495
|
+
samlApplicationsLimit: number | null;
|
|
496
|
+
};
|
|
497
|
+
}>;
|
|
498
|
+
};
|
|
499
|
+
post: {
|
|
500
|
+
"/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
|
|
501
|
+
usageKey: RealtimeReportableUsageKey;
|
|
502
|
+
}, {
|
|
503
|
+
message: string;
|
|
504
|
+
}>;
|
|
505
|
+
};
|
|
506
|
+
put: {};
|
|
507
|
+
delete: {};
|
|
508
|
+
copy: {};
|
|
509
|
+
head: {};
|
|
510
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
511
|
+
patch: {};
|
|
512
|
+
options: {};
|
|
513
|
+
get: {};
|
|
514
|
+
post: {
|
|
515
|
+
"/tenants/subscription-cache/invalidate": import("@withtyped/server").PathGuard<"/subscription-cache/invalidate", unknown, {
|
|
516
|
+
tenantIds: string[];
|
|
517
|
+
}, unknown>;
|
|
518
|
+
};
|
|
519
|
+
put: {};
|
|
520
|
+
delete: {};
|
|
521
|
+
copy: {};
|
|
522
|
+
head: {};
|
|
523
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
524
|
+
patch: {};
|
|
525
|
+
options: {};
|
|
526
|
+
get: {
|
|
527
|
+
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
|
|
528
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
529
|
+
planId: string;
|
|
530
|
+
currentPeriodStart: Date;
|
|
531
|
+
currentPeriodEnd: Date;
|
|
532
|
+
isEnterprisePlan: boolean;
|
|
533
|
+
id?: string | undefined;
|
|
534
|
+
upcomingInvoice?: {
|
|
535
|
+
subtotal: number;
|
|
536
|
+
subtotalExcludingTax: number | null;
|
|
537
|
+
total: number;
|
|
538
|
+
totalExcludingTax: number | null;
|
|
539
|
+
} | null | undefined;
|
|
540
|
+
}>;
|
|
541
|
+
} & {
|
|
542
|
+
"/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
|
|
543
|
+
usage: {
|
|
544
|
+
applicationsLimit: number;
|
|
545
|
+
thirdPartyApplicationsLimit: number;
|
|
546
|
+
scopesPerResourceLimit: number;
|
|
547
|
+
socialConnectorsLimit: number;
|
|
548
|
+
userRolesLimit: number;
|
|
549
|
+
machineToMachineRolesLimit: number;
|
|
550
|
+
scopesPerRoleLimit: number;
|
|
551
|
+
hooksLimit: number;
|
|
552
|
+
customJwtEnabled: boolean;
|
|
553
|
+
subjectTokenEnabled: boolean;
|
|
554
|
+
bringYourUiEnabled: boolean;
|
|
555
|
+
collectUserProfileEnabled: boolean;
|
|
556
|
+
machineToMachineLimit: number;
|
|
557
|
+
resourcesLimit: number;
|
|
558
|
+
enterpriseSsoLimit: number;
|
|
559
|
+
tenantMembersLimit: number;
|
|
560
|
+
mfaEnabled: boolean;
|
|
561
|
+
organizationsEnabled: boolean;
|
|
562
|
+
organizationsLimit: number;
|
|
563
|
+
securityFeaturesEnabled: boolean;
|
|
564
|
+
idpInitiatedSsoEnabled: boolean;
|
|
565
|
+
samlApplicationsLimit: number;
|
|
566
|
+
};
|
|
567
|
+
resources: Record<string, number>;
|
|
568
|
+
roles: Record<string, number>;
|
|
569
|
+
quota: {
|
|
570
|
+
auditLogsRetentionDays: number | null;
|
|
571
|
+
mauLimit: number | null;
|
|
572
|
+
applicationsLimit: number | null;
|
|
573
|
+
thirdPartyApplicationsLimit: number | null;
|
|
574
|
+
scopesPerResourceLimit: number | null;
|
|
575
|
+
socialConnectorsLimit: number | null;
|
|
576
|
+
userRolesLimit: number | null;
|
|
577
|
+
machineToMachineRolesLimit: number | null;
|
|
578
|
+
scopesPerRoleLimit: number | null;
|
|
579
|
+
hooksLimit: number | null;
|
|
580
|
+
customJwtEnabled: boolean;
|
|
581
|
+
subjectTokenEnabled: boolean;
|
|
582
|
+
bringYourUiEnabled: boolean;
|
|
583
|
+
collectUserProfileEnabled: boolean;
|
|
584
|
+
tokenLimit: number | null;
|
|
585
|
+
machineToMachineLimit: number | null;
|
|
586
|
+
resourcesLimit: number | null;
|
|
587
|
+
enterpriseSsoLimit: number | null;
|
|
588
|
+
tenantMembersLimit: number | null;
|
|
589
|
+
mfaEnabled: boolean;
|
|
590
|
+
organizationsEnabled: boolean;
|
|
591
|
+
organizationsLimit: number | null;
|
|
592
|
+
securityFeaturesEnabled: boolean;
|
|
593
|
+
idpInitiatedSsoEnabled: boolean;
|
|
594
|
+
samlApplicationsLimit: number | null;
|
|
595
|
+
};
|
|
596
|
+
basicQuota: {
|
|
597
|
+
auditLogsRetentionDays: number | null;
|
|
598
|
+
mauLimit: number | null;
|
|
599
|
+
applicationsLimit: number | null;
|
|
600
|
+
thirdPartyApplicationsLimit: number | null;
|
|
601
|
+
scopesPerResourceLimit: number | null;
|
|
602
|
+
socialConnectorsLimit: number | null;
|
|
603
|
+
userRolesLimit: number | null;
|
|
604
|
+
machineToMachineRolesLimit: number | null;
|
|
605
|
+
scopesPerRoleLimit: number | null;
|
|
606
|
+
hooksLimit: number | null;
|
|
607
|
+
customJwtEnabled: boolean;
|
|
608
|
+
subjectTokenEnabled: boolean;
|
|
609
|
+
bringYourUiEnabled: boolean;
|
|
610
|
+
collectUserProfileEnabled: boolean;
|
|
611
|
+
tokenLimit: number | null;
|
|
612
|
+
machineToMachineLimit: number | null;
|
|
613
|
+
resourcesLimit: number | null;
|
|
614
|
+
enterpriseSsoLimit: number | null;
|
|
615
|
+
tenantMembersLimit: number | null;
|
|
616
|
+
mfaEnabled: boolean;
|
|
617
|
+
organizationsEnabled: boolean;
|
|
618
|
+
organizationsLimit: number | null;
|
|
619
|
+
securityFeaturesEnabled: boolean;
|
|
620
|
+
idpInitiatedSsoEnabled: boolean;
|
|
621
|
+
samlApplicationsLimit: number | null;
|
|
622
|
+
};
|
|
623
|
+
}>;
|
|
624
|
+
} & {
|
|
625
|
+
"/tenants/:tenantId/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/periodic-usage", unknown, unknown, {
|
|
626
|
+
mauLimit: number;
|
|
627
|
+
tokenLimit: number;
|
|
628
|
+
}>;
|
|
629
|
+
} & {
|
|
630
|
+
"/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit", {
|
|
631
|
+
id: string;
|
|
632
|
+
name: string | null;
|
|
633
|
+
createdAt: Date;
|
|
634
|
+
defaultPriceId: string | null;
|
|
635
|
+
unitPrice: number | null;
|
|
636
|
+
type: LogtoSkuType;
|
|
637
|
+
quota: {
|
|
638
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
639
|
+
mauLimit?: number | null | undefined;
|
|
640
|
+
applicationsLimit?: number | null | undefined;
|
|
641
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
642
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
643
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
644
|
+
userRolesLimit?: number | null | undefined;
|
|
645
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
646
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
647
|
+
hooksLimit?: number | null | undefined;
|
|
648
|
+
customJwtEnabled?: boolean | undefined;
|
|
649
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
650
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
651
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
652
|
+
tokenLimit?: number | null | undefined;
|
|
653
|
+
machineToMachineLimit?: number | null | undefined;
|
|
654
|
+
resourcesLimit?: number | null | undefined;
|
|
655
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
656
|
+
tenantMembersLimit?: number | null | undefined;
|
|
657
|
+
mfaEnabled?: boolean | undefined;
|
|
658
|
+
organizationsEnabled?: boolean | undefined;
|
|
659
|
+
organizationsLimit?: number | null | undefined;
|
|
660
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
661
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
662
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
663
|
+
};
|
|
664
|
+
isDefault: boolean;
|
|
665
|
+
updatedAt: Date;
|
|
666
|
+
productId: string | null;
|
|
667
|
+
}>>>;
|
|
668
|
+
} & {
|
|
669
|
+
"/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
|
|
670
|
+
invoices: {
|
|
671
|
+
id: string;
|
|
672
|
+
createdAt: Date;
|
|
673
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
674
|
+
updatedAt: Date;
|
|
675
|
+
customerId: string | null;
|
|
676
|
+
billingReason: string | null;
|
|
677
|
+
periodStart: Date;
|
|
678
|
+
periodEnd: Date;
|
|
679
|
+
amountDue: number;
|
|
680
|
+
amountPaid: number;
|
|
681
|
+
basicSkuId: string | null;
|
|
682
|
+
subscriptionId: string | null;
|
|
683
|
+
hostedInvoiceUrl: string | null;
|
|
684
|
+
invoicePdf: string | null;
|
|
685
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
686
|
+
dueDate: Date | null;
|
|
687
|
+
planName: string | null;
|
|
688
|
+
skuId?: string | null | undefined;
|
|
689
|
+
}[];
|
|
690
|
+
}>;
|
|
691
|
+
} & {
|
|
692
|
+
"/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
|
|
693
|
+
type?: LogtoSkuType | undefined;
|
|
694
|
+
}, unknown, {
|
|
695
|
+
id: string;
|
|
696
|
+
name: string | null;
|
|
697
|
+
createdAt: Date;
|
|
698
|
+
defaultPriceId: string | null;
|
|
699
|
+
unitPrice: number | null;
|
|
700
|
+
type: LogtoSkuType;
|
|
701
|
+
quota: {
|
|
702
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
703
|
+
mauLimit?: number | null | undefined;
|
|
704
|
+
applicationsLimit?: number | null | undefined;
|
|
705
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
706
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
707
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
708
|
+
userRolesLimit?: number | null | undefined;
|
|
709
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
710
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
711
|
+
hooksLimit?: number | null | undefined;
|
|
712
|
+
customJwtEnabled?: boolean | undefined;
|
|
713
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
714
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
715
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
716
|
+
tokenLimit?: number | null | undefined;
|
|
717
|
+
machineToMachineLimit?: number | null | undefined;
|
|
718
|
+
resourcesLimit?: number | null | undefined;
|
|
719
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
720
|
+
tenantMembersLimit?: number | null | undefined;
|
|
721
|
+
mfaEnabled?: boolean | undefined;
|
|
722
|
+
organizationsEnabled?: boolean | undefined;
|
|
723
|
+
organizationsLimit?: number | null | undefined;
|
|
724
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
725
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
726
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
727
|
+
};
|
|
728
|
+
isDefault: boolean;
|
|
729
|
+
updatedAt: Date;
|
|
730
|
+
productId: string | null;
|
|
731
|
+
}[]>;
|
|
732
|
+
} & {
|
|
733
|
+
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
734
|
+
hostedInvoiceUrl: string;
|
|
735
|
+
}>;
|
|
736
|
+
};
|
|
737
|
+
post: {
|
|
738
|
+
"/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
|
|
739
|
+
callbackUrl?: string | undefined;
|
|
740
|
+
}, {
|
|
741
|
+
redirectUri: string;
|
|
742
|
+
}>;
|
|
743
|
+
};
|
|
744
|
+
put: {};
|
|
745
|
+
delete: {
|
|
746
|
+
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
|
|
747
|
+
};
|
|
748
|
+
copy: {};
|
|
749
|
+
head: {};
|
|
750
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
751
|
+
patch: {};
|
|
752
|
+
options: {};
|
|
753
|
+
get: {
|
|
754
|
+
"/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
|
|
755
|
+
from?: string | undefined;
|
|
756
|
+
}, unknown, {
|
|
757
|
+
count: number;
|
|
758
|
+
}>;
|
|
759
|
+
};
|
|
760
|
+
post: {
|
|
761
|
+
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
762
|
+
data: {
|
|
763
|
+
type: TemplateType;
|
|
764
|
+
payload: {
|
|
765
|
+
link?: string | undefined;
|
|
766
|
+
code?: string | undefined;
|
|
767
|
+
locale?: string | undefined;
|
|
768
|
+
uiLocales?: string | undefined;
|
|
769
|
+
} & {
|
|
770
|
+
[k: string]: unknown;
|
|
771
|
+
} & {
|
|
772
|
+
senderName?: string | undefined;
|
|
773
|
+
companyInformation?: string | undefined;
|
|
774
|
+
appLogo?: string | undefined;
|
|
775
|
+
};
|
|
776
|
+
to: string;
|
|
777
|
+
};
|
|
778
|
+
}, unknown>;
|
|
779
|
+
} & {
|
|
780
|
+
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
781
|
+
data: {
|
|
782
|
+
type: TemplateType;
|
|
783
|
+
to: string;
|
|
784
|
+
payload: {
|
|
785
|
+
code?: string | undefined;
|
|
786
|
+
link?: string | undefined;
|
|
787
|
+
locale?: string | undefined;
|
|
788
|
+
uiLocales?: string | undefined;
|
|
789
|
+
} & {
|
|
790
|
+
[k: string]: unknown;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
}, unknown>;
|
|
794
|
+
} & {
|
|
795
|
+
"/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
|
|
796
|
+
isTest?: string | undefined;
|
|
797
|
+
}, {
|
|
798
|
+
token: Record<string, Json>;
|
|
799
|
+
context: Record<string, Json>;
|
|
800
|
+
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
801
|
+
script: string;
|
|
802
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
803
|
+
} | {
|
|
804
|
+
token: Record<string, Json>;
|
|
805
|
+
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
806
|
+
script: string;
|
|
807
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
808
|
+
}, Record<string, unknown>>;
|
|
809
|
+
};
|
|
810
|
+
put: {
|
|
811
|
+
"/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, {
|
|
812
|
+
"jwt.accessToken"?: {
|
|
813
|
+
production?: string | undefined;
|
|
814
|
+
test?: string | undefined;
|
|
815
|
+
} | undefined;
|
|
816
|
+
"jwt.clientCredentials"?: {
|
|
817
|
+
production?: string | undefined;
|
|
818
|
+
test?: string | undefined;
|
|
819
|
+
} | undefined;
|
|
820
|
+
}, unknown>;
|
|
821
|
+
};
|
|
822
|
+
delete: {
|
|
823
|
+
"/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, unknown, unknown>;
|
|
824
|
+
};
|
|
825
|
+
copy: {};
|
|
826
|
+
head: {};
|
|
827
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
828
|
+
patch: {};
|
|
829
|
+
options: {};
|
|
830
|
+
get: {
|
|
831
|
+
"/skus": import("@withtyped/server").PathGuard<"/", {
|
|
832
|
+
type?: LogtoSkuType | undefined;
|
|
833
|
+
}, unknown, {
|
|
834
|
+
id: string;
|
|
835
|
+
name: string | null;
|
|
836
|
+
createdAt: Date;
|
|
837
|
+
defaultPriceId: string | null;
|
|
838
|
+
unitPrice: number | null;
|
|
839
|
+
type: LogtoSkuType;
|
|
840
|
+
quota: {
|
|
841
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
842
|
+
mauLimit?: number | null | undefined;
|
|
843
|
+
applicationsLimit?: number | null | undefined;
|
|
844
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
845
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
846
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
847
|
+
userRolesLimit?: number | null | undefined;
|
|
848
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
849
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
850
|
+
hooksLimit?: number | null | undefined;
|
|
851
|
+
customJwtEnabled?: boolean | undefined;
|
|
852
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
853
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
854
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
855
|
+
tokenLimit?: number | null | undefined;
|
|
856
|
+
machineToMachineLimit?: number | null | undefined;
|
|
857
|
+
resourcesLimit?: number | null | undefined;
|
|
858
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
859
|
+
tenantMembersLimit?: number | null | undefined;
|
|
860
|
+
mfaEnabled?: boolean | undefined;
|
|
861
|
+
organizationsEnabled?: boolean | undefined;
|
|
862
|
+
organizationsLimit?: number | null | undefined;
|
|
863
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
864
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
865
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
866
|
+
};
|
|
867
|
+
isDefault: boolean;
|
|
868
|
+
updatedAt: Date;
|
|
869
|
+
productId: string | null;
|
|
870
|
+
}[]>;
|
|
871
|
+
};
|
|
872
|
+
post: {
|
|
873
|
+
"/skus": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
874
|
+
type: LogtoSkuType;
|
|
875
|
+
quota: {
|
|
876
|
+
tokenLimit?: number | null | undefined;
|
|
877
|
+
machineToMachineLimit?: number | null | undefined;
|
|
878
|
+
resourcesLimit?: number | null | undefined;
|
|
879
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
880
|
+
hooksLimit?: number | null | undefined;
|
|
881
|
+
tenantMembersLimit?: number | null | undefined;
|
|
882
|
+
mfaEnabled?: boolean | undefined;
|
|
883
|
+
organizationsEnabled?: boolean | undefined;
|
|
884
|
+
organizationsLimit?: number | null | undefined;
|
|
885
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
886
|
+
userRolesLimit?: number | null | undefined;
|
|
887
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
888
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
889
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
890
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
891
|
+
mauLimit?: number | null | undefined;
|
|
892
|
+
applicationsLimit?: number | null | undefined;
|
|
893
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
894
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
895
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
896
|
+
customJwtEnabled?: boolean | undefined;
|
|
897
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
898
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
899
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
900
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
901
|
+
};
|
|
902
|
+
id?: string | undefined;
|
|
903
|
+
isDefault?: boolean | undefined;
|
|
904
|
+
}, {
|
|
905
|
+
id: string;
|
|
906
|
+
createdAt: Date;
|
|
907
|
+
type: LogtoSkuType;
|
|
908
|
+
isDefault: boolean;
|
|
909
|
+
updatedAt: Date;
|
|
910
|
+
quota: {
|
|
911
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
912
|
+
mauLimit?: number | null | undefined;
|
|
913
|
+
applicationsLimit?: number | null | undefined;
|
|
914
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
915
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
916
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
917
|
+
userRolesLimit?: number | null | undefined;
|
|
918
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
919
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
920
|
+
hooksLimit?: number | null | undefined;
|
|
921
|
+
customJwtEnabled?: boolean | undefined;
|
|
922
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
923
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
924
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
925
|
+
tokenLimit?: number | null | undefined;
|
|
926
|
+
machineToMachineLimit?: number | null | undefined;
|
|
927
|
+
resourcesLimit?: number | null | undefined;
|
|
928
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
929
|
+
tenantMembersLimit?: number | null | undefined;
|
|
930
|
+
mfaEnabled?: boolean | undefined;
|
|
931
|
+
organizationsEnabled?: boolean | undefined;
|
|
932
|
+
organizationsLimit?: number | null | undefined;
|
|
933
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
934
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
935
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
936
|
+
};
|
|
937
|
+
}>;
|
|
938
|
+
} & {
|
|
939
|
+
"/skus/:skuId/products": import("@withtyped/server").PathGuard<"/:skuId/products", {
|
|
940
|
+
isOneTime?: string | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
name: string;
|
|
943
|
+
unitPrice: number;
|
|
944
|
+
}, {
|
|
945
|
+
productId: string;
|
|
946
|
+
}>;
|
|
947
|
+
} & {
|
|
948
|
+
"/skus/:basicSkuId/usage-add-on-relations": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations", unknown, {
|
|
949
|
+
usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
|
|
950
|
+
addOnSkuId: string;
|
|
951
|
+
}, {
|
|
952
|
+
basicSkuId: string;
|
|
953
|
+
usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
|
|
954
|
+
addOnSkuId: string;
|
|
955
|
+
}>;
|
|
956
|
+
};
|
|
957
|
+
put: {};
|
|
958
|
+
delete: {
|
|
959
|
+
"/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
|
|
960
|
+
} & {
|
|
961
|
+
"/skus/:basicSkuId/usage-add-on-relations/:usageKey": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations/:usageKey", unknown, unknown, unknown>;
|
|
962
|
+
};
|
|
963
|
+
copy: {};
|
|
964
|
+
head: {};
|
|
965
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
966
|
+
patch: {};
|
|
967
|
+
options: {};
|
|
968
|
+
get: {
|
|
969
|
+
"/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
|
|
970
|
+
id: string;
|
|
971
|
+
createdAt: Date;
|
|
972
|
+
userId: string;
|
|
973
|
+
status: "open" | "complete" | "expired";
|
|
974
|
+
tenantId: string | null;
|
|
975
|
+
updatedAt: Date;
|
|
976
|
+
skuId: string | null;
|
|
977
|
+
planId: string | null;
|
|
978
|
+
}>;
|
|
979
|
+
};
|
|
980
|
+
post: {
|
|
981
|
+
"/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
982
|
+
successCallbackUrl: string;
|
|
983
|
+
tenantId?: string | undefined;
|
|
984
|
+
skuId?: string | undefined;
|
|
985
|
+
tenantName?: string | undefined;
|
|
986
|
+
tenantTag?: TenantTag | undefined;
|
|
987
|
+
tenantRegionName?: string | undefined;
|
|
988
|
+
cancelCallbackUrl?: string | undefined;
|
|
989
|
+
}, {
|
|
990
|
+
sessionId: string;
|
|
991
|
+
redirectUri?: string | null | undefined;
|
|
992
|
+
}>;
|
|
993
|
+
};
|
|
994
|
+
put: {};
|
|
995
|
+
delete: {};
|
|
996
|
+
copy: {};
|
|
997
|
+
head: {};
|
|
998
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
999
|
+
patch: {};
|
|
1000
|
+
options: {};
|
|
1001
|
+
get: {
|
|
1002
|
+
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, unknown, AffiliateData[]>;
|
|
1003
|
+
};
|
|
1004
|
+
post: {
|
|
1005
|
+
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
1006
|
+
name: string;
|
|
1007
|
+
}, {
|
|
1008
|
+
id: string;
|
|
1009
|
+
createdAt: Date;
|
|
1010
|
+
name: string;
|
|
1011
|
+
}>;
|
|
1012
|
+
} & {
|
|
1013
|
+
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
1014
|
+
type: "hostname" | "query";
|
|
1015
|
+
value: string;
|
|
1016
|
+
}, {
|
|
1017
|
+
createdAt: Date;
|
|
1018
|
+
affiliateId: string;
|
|
1019
|
+
type: "hostname" | "query";
|
|
1020
|
+
value: string;
|
|
1021
|
+
}>;
|
|
1022
|
+
};
|
|
1023
|
+
put: {};
|
|
1024
|
+
delete: {
|
|
1025
|
+
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
1026
|
+
type: "hostname" | "query";
|
|
1027
|
+
value: string;
|
|
1028
|
+
}, unknown>;
|
|
1029
|
+
};
|
|
1030
|
+
copy: {};
|
|
1031
|
+
head: {};
|
|
1032
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1033
|
+
patch: {};
|
|
1034
|
+
options: {};
|
|
1035
|
+
get: {};
|
|
1036
|
+
post: {
|
|
1037
|
+
"/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
1038
|
+
createdAt: string;
|
|
1039
|
+
userId: string;
|
|
1040
|
+
hostname?: string | undefined;
|
|
1041
|
+
query?: string | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
id: string;
|
|
1044
|
+
createdAt: Date;
|
|
1045
|
+
affiliateId: string | null;
|
|
1046
|
+
userId: string;
|
|
1047
|
+
createdVia: {
|
|
1048
|
+
createdAt: string;
|
|
1049
|
+
hostname?: string | undefined;
|
|
1050
|
+
query?: string | undefined;
|
|
1051
|
+
};
|
|
1052
|
+
}>;
|
|
1053
|
+
};
|
|
1054
|
+
put: {};
|
|
1055
|
+
delete: {};
|
|
1056
|
+
copy: {};
|
|
1057
|
+
head: {};
|
|
1058
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1059
|
+
patch: {
|
|
1060
|
+
"/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:invitationId/status", unknown, {
|
|
1061
|
+
status: OrganizationInvitationStatus.Accepted;
|
|
1062
|
+
}, unknown>;
|
|
1063
|
+
};
|
|
1064
|
+
options: {};
|
|
1065
|
+
get: {
|
|
1066
|
+
"/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
|
|
1067
|
+
id: string;
|
|
1068
|
+
createdAt: number;
|
|
1069
|
+
status: OrganizationInvitationStatus;
|
|
1070
|
+
tenantId: string;
|
|
1071
|
+
updatedAt: number;
|
|
1072
|
+
inviterId: string | null;
|
|
1073
|
+
invitee: string;
|
|
1074
|
+
acceptedUserId: string | null;
|
|
1075
|
+
organizationId: string;
|
|
1076
|
+
expiresAt: number;
|
|
1077
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1078
|
+
} & {
|
|
1079
|
+
tenantName: string;
|
|
1080
|
+
tenantTag: TenantTag;
|
|
1081
|
+
})[]>;
|
|
1082
|
+
} & {
|
|
1083
|
+
"/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
|
|
1084
|
+
id: string;
|
|
1085
|
+
createdAt: number;
|
|
1086
|
+
status: OrganizationInvitationStatus;
|
|
1087
|
+
tenantId: string;
|
|
1088
|
+
updatedAt: number;
|
|
1089
|
+
inviterId: string | null;
|
|
1090
|
+
invitee: string;
|
|
1091
|
+
acceptedUserId: string | null;
|
|
1092
|
+
organizationId: string;
|
|
1093
|
+
expiresAt: number;
|
|
1094
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1095
|
+
}>;
|
|
1096
|
+
};
|
|
1097
|
+
post: {};
|
|
1098
|
+
put: {};
|
|
1099
|
+
delete: {};
|
|
1100
|
+
copy: {};
|
|
1101
|
+
head: {};
|
|
1102
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1103
|
+
patch: {};
|
|
1104
|
+
options: {};
|
|
1105
|
+
get: {
|
|
1106
|
+
"/me/regions": import("@withtyped/server").PathGuard<"/regions", unknown, unknown, {
|
|
1107
|
+
regions: {
|
|
1108
|
+
id: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
country: string;
|
|
1111
|
+
displayName: string;
|
|
1112
|
+
tags: TenantTag[];
|
|
1113
|
+
isPrivate: boolean;
|
|
1114
|
+
}[];
|
|
1115
|
+
}>;
|
|
1116
|
+
};
|
|
1117
|
+
post: {};
|
|
1118
|
+
put: {};
|
|
1119
|
+
delete: {
|
|
1120
|
+
"/me": import("@withtyped/server").PathGuard<"/", unknown, unknown, unknown>;
|
|
1121
|
+
};
|
|
1122
|
+
copy: {};
|
|
1123
|
+
head: {};
|
|
1124
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1125
|
+
patch: {
|
|
1126
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, {
|
|
1127
|
+
limits: {
|
|
1128
|
+
machineToMachineLimit?: number | undefined;
|
|
1129
|
+
resourcesLimit?: number | undefined;
|
|
1130
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1131
|
+
hooksLimit?: number | undefined;
|
|
1132
|
+
tenantMembersLimit?: number | undefined;
|
|
1133
|
+
organizationsLimit?: number | undefined;
|
|
1134
|
+
userRolesLimit?: number | undefined;
|
|
1135
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1136
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1137
|
+
samlApplicationsLimit?: number | undefined;
|
|
1138
|
+
applicationsLimit?: number | undefined;
|
|
1139
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1140
|
+
socialConnectorsLimit?: number | undefined;
|
|
1141
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1142
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1143
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1144
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1145
|
+
organizationScopesLimit?: number | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
}, {
|
|
1148
|
+
id: string;
|
|
1149
|
+
createdAt: Date;
|
|
1150
|
+
updatedAt: Date;
|
|
1151
|
+
limits: {
|
|
1152
|
+
applicationsLimit?: number | undefined;
|
|
1153
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1154
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1155
|
+
socialConnectorsLimit?: number | undefined;
|
|
1156
|
+
userRolesLimit?: number | undefined;
|
|
1157
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1158
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1159
|
+
hooksLimit?: number | undefined;
|
|
1160
|
+
machineToMachineLimit?: number | undefined;
|
|
1161
|
+
resourcesLimit?: number | undefined;
|
|
1162
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1163
|
+
tenantMembersLimit?: number | undefined;
|
|
1164
|
+
organizationsLimit?: number | undefined;
|
|
1165
|
+
samlApplicationsLimit?: number | undefined;
|
|
1166
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1167
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1168
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1169
|
+
organizationScopesLimit?: number | undefined;
|
|
1170
|
+
};
|
|
1171
|
+
}>;
|
|
1172
|
+
};
|
|
1173
|
+
options: {};
|
|
1174
|
+
get: {
|
|
1175
|
+
"/system-limits": import("@withtyped/server").PathGuard<"/", {
|
|
1176
|
+
basicSkuId?: string | undefined;
|
|
1177
|
+
}, unknown, {
|
|
1178
|
+
id: string;
|
|
1179
|
+
createdAt: Date;
|
|
1180
|
+
updatedAt: Date;
|
|
1181
|
+
limits: {
|
|
1182
|
+
applicationsLimit?: number | undefined;
|
|
1183
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1184
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1185
|
+
socialConnectorsLimit?: number | undefined;
|
|
1186
|
+
userRolesLimit?: number | undefined;
|
|
1187
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1188
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1189
|
+
hooksLimit?: number | undefined;
|
|
1190
|
+
machineToMachineLimit?: number | undefined;
|
|
1191
|
+
resourcesLimit?: number | undefined;
|
|
1192
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1193
|
+
tenantMembersLimit?: number | undefined;
|
|
1194
|
+
organizationsLimit?: number | undefined;
|
|
1195
|
+
samlApplicationsLimit?: number | undefined;
|
|
1196
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1197
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1198
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1199
|
+
organizationScopesLimit?: number | undefined;
|
|
1200
|
+
};
|
|
1201
|
+
basicSkuIds: string[];
|
|
1202
|
+
}[]>;
|
|
1203
|
+
} & {
|
|
1204
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
|
|
1205
|
+
id: string;
|
|
1206
|
+
createdAt: Date;
|
|
1207
|
+
updatedAt: Date;
|
|
1208
|
+
limits: {
|
|
1209
|
+
applicationsLimit?: number | undefined;
|
|
1210
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1211
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1212
|
+
socialConnectorsLimit?: number | undefined;
|
|
1213
|
+
userRolesLimit?: number | undefined;
|
|
1214
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1215
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1216
|
+
hooksLimit?: number | undefined;
|
|
1217
|
+
machineToMachineLimit?: number | undefined;
|
|
1218
|
+
resourcesLimit?: number | undefined;
|
|
1219
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1220
|
+
tenantMembersLimit?: number | undefined;
|
|
1221
|
+
organizationsLimit?: number | undefined;
|
|
1222
|
+
samlApplicationsLimit?: number | undefined;
|
|
1223
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1224
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1225
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1226
|
+
organizationScopesLimit?: number | undefined;
|
|
1227
|
+
};
|
|
1228
|
+
basicSkuIds: string[];
|
|
1229
|
+
}>;
|
|
1230
|
+
};
|
|
1231
|
+
post: {
|
|
1232
|
+
"/system-limits": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
1233
|
+
limits: {
|
|
1234
|
+
machineToMachineLimit?: number | undefined;
|
|
1235
|
+
resourcesLimit?: number | undefined;
|
|
1236
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1237
|
+
hooksLimit?: number | undefined;
|
|
1238
|
+
tenantMembersLimit?: number | undefined;
|
|
1239
|
+
organizationsLimit?: number | undefined;
|
|
1240
|
+
userRolesLimit?: number | undefined;
|
|
1241
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1242
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1243
|
+
samlApplicationsLimit?: number | undefined;
|
|
1244
|
+
applicationsLimit?: number | undefined;
|
|
1245
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1246
|
+
socialConnectorsLimit?: number | undefined;
|
|
1247
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1248
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1249
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1250
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1251
|
+
organizationScopesLimit?: number | undefined;
|
|
1252
|
+
};
|
|
1253
|
+
id?: string | undefined;
|
|
1254
|
+
}, {
|
|
1255
|
+
id: string;
|
|
1256
|
+
createdAt: Date;
|
|
1257
|
+
updatedAt: Date;
|
|
1258
|
+
limits: {
|
|
1259
|
+
applicationsLimit?: number | undefined;
|
|
1260
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1261
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1262
|
+
socialConnectorsLimit?: number | undefined;
|
|
1263
|
+
userRolesLimit?: number | undefined;
|
|
1264
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1265
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1266
|
+
hooksLimit?: number | undefined;
|
|
1267
|
+
machineToMachineLimit?: number | undefined;
|
|
1268
|
+
resourcesLimit?: number | undefined;
|
|
1269
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1270
|
+
tenantMembersLimit?: number | undefined;
|
|
1271
|
+
organizationsLimit?: number | undefined;
|
|
1272
|
+
samlApplicationsLimit?: number | undefined;
|
|
1273
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1274
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1275
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1276
|
+
organizationScopesLimit?: number | undefined;
|
|
1277
|
+
};
|
|
1278
|
+
}>;
|
|
1279
|
+
} & {
|
|
1280
|
+
"/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
|
|
1281
|
+
basicSkuIds: string[];
|
|
1282
|
+
}, {
|
|
1283
|
+
relations: {
|
|
1284
|
+
createdAt: Date;
|
|
1285
|
+
updatedAt: Date;
|
|
1286
|
+
basicSkuId: string;
|
|
1287
|
+
systemLimitId: string;
|
|
1288
|
+
}[];
|
|
1289
|
+
}>;
|
|
1290
|
+
};
|
|
1291
|
+
put: {};
|
|
1292
|
+
delete: {
|
|
1293
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, unknown>;
|
|
1294
|
+
} & {
|
|
1295
|
+
"/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
|
|
1296
|
+
basicSkuIds: string[];
|
|
1297
|
+
}, unknown>;
|
|
1298
|
+
};
|
|
1299
|
+
copy: {};
|
|
1300
|
+
head: {};
|
|
1301
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1302
|
+
patch: {
|
|
1303
|
+
"/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
|
|
1304
|
+
role: DatabaseRegionAccessRole;
|
|
1305
|
+
}, {
|
|
1306
|
+
role: DatabaseRegionAccessRole;
|
|
1307
|
+
userId: string;
|
|
1308
|
+
}>;
|
|
1309
|
+
};
|
|
1310
|
+
options: {};
|
|
1311
|
+
get: {
|
|
1312
|
+
"/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
|
|
1313
|
+
users: {
|
|
1314
|
+
role: DatabaseRegionAccessRole;
|
|
1315
|
+
userId: string;
|
|
1316
|
+
}[];
|
|
1317
|
+
}>;
|
|
1318
|
+
};
|
|
1319
|
+
post: {
|
|
1320
|
+
"/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
|
|
1321
|
+
role: DatabaseRegionAccessRole;
|
|
1322
|
+
userId: string;
|
|
1323
|
+
}, {
|
|
1324
|
+
role: DatabaseRegionAccessRole;
|
|
1325
|
+
userId: string;
|
|
1326
|
+
}>;
|
|
1327
|
+
};
|
|
1328
|
+
put: {};
|
|
1329
|
+
delete: {
|
|
1330
|
+
"/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
|
|
1331
|
+
};
|
|
1332
|
+
copy: {};
|
|
1333
|
+
head: {};
|
|
1334
|
+
}, "/api">>, "/api">;
|
|
1335
|
+
export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
|
|
1336
|
+
request: {
|
|
1337
|
+
id?: string | undefined;
|
|
1338
|
+
method?: import("@withtyped/server").RequestMethod | undefined;
|
|
1339
|
+
headers: import("http").IncomingHttpHeaders;
|
|
1340
|
+
url: URL;
|
|
1341
|
+
body?: unknown;
|
|
1342
|
+
};
|
|
1343
|
+
}>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
|
|
1344
|
+
patch: {
|
|
1345
|
+
"/:tenantId/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/status", unknown, {
|
|
1346
|
+
status: OrganizationInvitationStatus.Revoked;
|
|
1347
|
+
}, {
|
|
1348
|
+
id: string;
|
|
1349
|
+
createdAt: number;
|
|
1350
|
+
status: OrganizationInvitationStatus;
|
|
1351
|
+
tenantId: string;
|
|
1352
|
+
updatedAt: number;
|
|
1353
|
+
inviterId: string | null;
|
|
1354
|
+
invitee: string;
|
|
1355
|
+
acceptedUserId: string | null;
|
|
1356
|
+
organizationId: string;
|
|
1357
|
+
expiresAt: number;
|
|
1358
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1359
|
+
}>;
|
|
1360
|
+
};
|
|
1361
|
+
options: {};
|
|
1362
|
+
get: {
|
|
1363
|
+
"/:tenantId/members": import("@withtyped/server").PathGuard<"/:tenantId/members", unknown, unknown, {
|
|
1364
|
+
id: string;
|
|
1365
|
+
name: string | null;
|
|
1366
|
+
username: string | null;
|
|
1367
|
+
primaryEmail: string | null;
|
|
1368
|
+
primaryPhone: string | null;
|
|
1369
|
+
avatar: string | null;
|
|
1370
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1371
|
+
}[]>;
|
|
1372
|
+
} & {
|
|
1373
|
+
"/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
|
|
1374
|
+
} & {
|
|
1375
|
+
"/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
|
|
1376
|
+
id: string;
|
|
1377
|
+
createdAt: number;
|
|
1378
|
+
status: OrganizationInvitationStatus;
|
|
1379
|
+
tenantId: string;
|
|
1380
|
+
updatedAt: number;
|
|
1381
|
+
inviterId: string | null;
|
|
1382
|
+
invitee: string;
|
|
1383
|
+
acceptedUserId: string | null;
|
|
1384
|
+
organizationId: string;
|
|
1385
|
+
expiresAt: number;
|
|
1386
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1387
|
+
} & {
|
|
1388
|
+
inviterName?: string | undefined;
|
|
1389
|
+
})[]>;
|
|
1390
|
+
};
|
|
1391
|
+
post: {
|
|
1392
|
+
"/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, {
|
|
1393
|
+
invitee: string | string[];
|
|
1394
|
+
roleName: TenantRole;
|
|
1395
|
+
expiresAt?: number | undefined;
|
|
1396
|
+
}, {
|
|
1397
|
+
id: string;
|
|
1398
|
+
createdAt: number;
|
|
1399
|
+
status: OrganizationInvitationStatus;
|
|
1400
|
+
tenantId: string;
|
|
1401
|
+
updatedAt: number;
|
|
1402
|
+
inviterId: string | null;
|
|
1403
|
+
invitee: string;
|
|
1404
|
+
acceptedUserId: string | null;
|
|
1405
|
+
organizationId: string;
|
|
1406
|
+
expiresAt: number;
|
|
1407
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1408
|
+
} | {
|
|
1409
|
+
id: string;
|
|
1410
|
+
createdAt: number;
|
|
1411
|
+
status: OrganizationInvitationStatus;
|
|
1412
|
+
tenantId: string;
|
|
1413
|
+
updatedAt: number;
|
|
1414
|
+
inviterId: string | null;
|
|
1415
|
+
invitee: string;
|
|
1416
|
+
acceptedUserId: string | null;
|
|
1417
|
+
organizationId: string;
|
|
1418
|
+
expiresAt: number;
|
|
1419
|
+
organizationRoles: OrganizationRoleEntity[];
|
|
1420
|
+
}[]>;
|
|
1421
|
+
} & {
|
|
1422
|
+
"/:tenantId/invitations/:invitationId/message": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/message", unknown, unknown, unknown>;
|
|
1423
|
+
};
|
|
1424
|
+
put: {
|
|
1425
|
+
"/:tenantId/members/:userId/roles": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/roles", unknown, {
|
|
1426
|
+
roleName: TenantRole;
|
|
1427
|
+
}, unknown>;
|
|
1428
|
+
};
|
|
1429
|
+
delete: {
|
|
1430
|
+
"/:tenantId/members/:userId": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId", unknown, unknown, unknown>;
|
|
1431
|
+
} & {
|
|
1432
|
+
"/:tenantId/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId", unknown, unknown, unknown>;
|
|
1433
|
+
};
|
|
1434
|
+
copy: {};
|
|
1435
|
+
head: {};
|
|
1436
|
+
}, "/api/tenants">>, "/api/tenants">;
|
|
1437
|
+
|
|
1438
|
+
export {
|
|
1439
|
+
router as default,
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
export {};
|