@logto/cloud 0.2.5-faca9a9 → 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 +1117 -112
- package/package.json +14 -17
package/lib/routes/index.d.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.3.1
|
|
2
2
|
|
|
3
|
-
import { RequestContext } from '@withtyped/server';
|
|
3
|
+
import { Json, JsonObject, RequestContext } from '@withtyped/server';
|
|
4
4
|
import { InferModelType } from '@withtyped/server/model';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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"
|
|
19
27
|
}
|
|
20
28
|
declare enum TemplateType {
|
|
21
29
|
/** The template for sending verification code when user is signing in. */
|
|
@@ -27,12 +35,54 @@ declare enum TemplateType {
|
|
|
27
35
|
/** The template for sending organization invitation. */
|
|
28
36
|
OrganizationInvitation = "OrganizationInvitation",
|
|
29
37
|
/** The template for generic usage. */
|
|
30
|
-
Generic = "Generic"
|
|
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"
|
|
31
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
|
+
};
|
|
32
76
|
declare enum TenantTag {
|
|
33
77
|
Development = "development",
|
|
34
78
|
Production = "production"
|
|
35
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
|
+
}
|
|
36
86
|
declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
|
|
37
87
|
createdAt: Date;
|
|
38
88
|
affiliateId: string;
|
|
@@ -41,25 +91,86 @@ declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js"
|
|
|
41
91
|
}, "createdAt", "createdAt">;
|
|
42
92
|
export type AffiliateProperty = InferModelType<typeof AffiliateProperties>;
|
|
43
93
|
declare const Affiliates: import("@withtyped/server/lib/model/index.js").default<"affiliates", {
|
|
94
|
+
name: string;
|
|
95
|
+
createdAt: Date;
|
|
44
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", {
|
|
45
114
|
createdAt: Date;
|
|
46
115
|
name: string;
|
|
47
|
-
|
|
48
|
-
|
|
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>;
|
|
49
124
|
export type AffiliateData = Affiliate & {
|
|
50
125
|
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
51
126
|
};
|
|
52
|
-
|
|
53
|
-
|
|
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<{
|
|
54
161
|
patch: {
|
|
55
162
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
56
163
|
name?: string | undefined;
|
|
57
164
|
}, {
|
|
58
165
|
id: string;
|
|
59
166
|
name: string;
|
|
167
|
+
createdAt: Date;
|
|
168
|
+
quota: {
|
|
169
|
+
mauLimit: number | null;
|
|
170
|
+
tokenLimit: number | null;
|
|
171
|
+
};
|
|
60
172
|
usage: {
|
|
61
173
|
activeUsers: number;
|
|
62
|
-
cost: number;
|
|
63
174
|
tokenUsage: number;
|
|
64
175
|
};
|
|
65
176
|
indicator: string;
|
|
@@ -70,12 +181,21 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
70
181
|
planId: string;
|
|
71
182
|
currentPeriodStart: Date;
|
|
72
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;
|
|
73
192
|
};
|
|
193
|
+
regionName: string;
|
|
74
194
|
tag: TenantTag;
|
|
75
195
|
openInvoices: {
|
|
76
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
77
|
-
createdAt: Date;
|
|
78
196
|
id: string;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
79
199
|
updatedAt: Date;
|
|
80
200
|
customerId: string | null;
|
|
81
201
|
billingReason: string | null;
|
|
@@ -83,19 +203,30 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
83
203
|
periodEnd: Date;
|
|
84
204
|
amountDue: number;
|
|
85
205
|
amountPaid: number;
|
|
206
|
+
basicSkuId: string | null;
|
|
86
207
|
subscriptionId: string | null;
|
|
87
208
|
hostedInvoiceUrl: string | null;
|
|
88
209
|
invoicePdf: string | null;
|
|
210
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
211
|
+
dueDate: Date | null;
|
|
89
212
|
}[];
|
|
213
|
+
featureFlags?: {
|
|
214
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
215
|
+
} | undefined;
|
|
90
216
|
}>;
|
|
91
217
|
};
|
|
218
|
+
options: {};
|
|
92
219
|
get: {
|
|
93
220
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
94
221
|
id: string;
|
|
95
222
|
name: string;
|
|
223
|
+
createdAt: Date;
|
|
224
|
+
quota: {
|
|
225
|
+
mauLimit: number | null;
|
|
226
|
+
tokenLimit: number | null;
|
|
227
|
+
};
|
|
96
228
|
usage: {
|
|
97
229
|
activeUsers: number;
|
|
98
|
-
cost: number;
|
|
99
230
|
tokenUsage: number;
|
|
100
231
|
};
|
|
101
232
|
indicator: string;
|
|
@@ -106,12 +237,21 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
106
237
|
planId: string;
|
|
107
238
|
currentPeriodStart: Date;
|
|
108
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;
|
|
109
248
|
};
|
|
249
|
+
regionName: string;
|
|
110
250
|
tag: TenantTag;
|
|
111
251
|
openInvoices: {
|
|
112
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
113
|
-
createdAt: Date;
|
|
114
252
|
id: string;
|
|
253
|
+
createdAt: Date;
|
|
254
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
115
255
|
updatedAt: Date;
|
|
116
256
|
customerId: string | null;
|
|
117
257
|
billingReason: string | null;
|
|
@@ -119,22 +259,34 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
119
259
|
periodEnd: Date;
|
|
120
260
|
amountDue: number;
|
|
121
261
|
amountPaid: number;
|
|
262
|
+
basicSkuId: string | null;
|
|
122
263
|
subscriptionId: string | null;
|
|
123
264
|
hostedInvoiceUrl: string | null;
|
|
124
265
|
invoicePdf: string | null;
|
|
266
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
267
|
+
dueDate: Date | null;
|
|
125
268
|
}[];
|
|
269
|
+
featureFlags?: {
|
|
270
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
271
|
+
} | undefined;
|
|
126
272
|
}[]>;
|
|
127
273
|
};
|
|
128
274
|
post: {
|
|
129
275
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
276
|
+
id?: string | undefined;
|
|
130
277
|
name?: string | undefined;
|
|
278
|
+
regionName?: string | undefined;
|
|
131
279
|
tag?: TenantTag | undefined;
|
|
132
280
|
}, {
|
|
133
281
|
id: string;
|
|
134
282
|
name: string;
|
|
283
|
+
createdAt: Date;
|
|
284
|
+
quota: {
|
|
285
|
+
mauLimit: number | null;
|
|
286
|
+
tokenLimit: number | null;
|
|
287
|
+
};
|
|
135
288
|
usage: {
|
|
136
289
|
activeUsers: number;
|
|
137
|
-
cost: number;
|
|
138
290
|
tokenUsage: number;
|
|
139
291
|
};
|
|
140
292
|
indicator: string;
|
|
@@ -145,12 +297,21 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
145
297
|
planId: string;
|
|
146
298
|
currentPeriodStart: Date;
|
|
147
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;
|
|
148
308
|
};
|
|
309
|
+
regionName: string;
|
|
149
310
|
tag: TenantTag;
|
|
150
311
|
openInvoices: {
|
|
151
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
152
|
-
createdAt: Date;
|
|
153
312
|
id: string;
|
|
313
|
+
createdAt: Date;
|
|
314
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
154
315
|
updatedAt: Date;
|
|
155
316
|
customerId: string | null;
|
|
156
317
|
billingReason: string | null;
|
|
@@ -158,11 +319,27 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
158
319
|
periodEnd: Date;
|
|
159
320
|
amountDue: number;
|
|
160
321
|
amountPaid: number;
|
|
322
|
+
basicSkuId: string | null;
|
|
161
323
|
subscriptionId: string | null;
|
|
162
324
|
hostedInvoiceUrl: string | null;
|
|
163
325
|
invoicePdf: string | null;
|
|
326
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
327
|
+
dueDate: Date | null;
|
|
164
328
|
}[];
|
|
329
|
+
featureFlags?: {
|
|
330
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
331
|
+
} | undefined;
|
|
165
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
|
+
}[]>;
|
|
166
343
|
};
|
|
167
344
|
put: {};
|
|
168
345
|
delete: {
|
|
@@ -171,28 +348,329 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
171
348
|
copy: {};
|
|
172
349
|
head: {};
|
|
173
350
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
174
|
-
options: {};
|
|
175
351
|
patch: {};
|
|
352
|
+
options: {};
|
|
176
353
|
get: {
|
|
177
354
|
"/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
|
|
178
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
|
+
};
|
|
179
383
|
planId: string;
|
|
180
384
|
currentPeriodStart: Date;
|
|
181
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;
|
|
182
414
|
}>;
|
|
183
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: {
|
|
184
527
|
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
|
|
185
528
|
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
186
529
|
planId: string;
|
|
187
530
|
currentPeriodStart: Date;
|
|
188
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
|
+
};
|
|
189
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
|
+
}>>>;
|
|
190
668
|
} & {
|
|
191
669
|
"/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
|
|
192
670
|
invoices: {
|
|
193
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
194
|
-
createdAt: Date;
|
|
195
671
|
id: string;
|
|
672
|
+
createdAt: Date;
|
|
673
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
196
674
|
updatedAt: Date;
|
|
197
675
|
customerId: string | null;
|
|
198
676
|
billingReason: string | null;
|
|
@@ -200,22 +678,61 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
200
678
|
periodEnd: Date;
|
|
201
679
|
amountDue: number;
|
|
202
680
|
amountPaid: number;
|
|
681
|
+
basicSkuId: string | null;
|
|
203
682
|
subscriptionId: string | null;
|
|
204
683
|
hostedInvoiceUrl: string | null;
|
|
205
684
|
invoicePdf: string | null;
|
|
685
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
686
|
+
dueDate: Date | null;
|
|
206
687
|
planName: string | null;
|
|
688
|
+
skuId?: string | null | undefined;
|
|
207
689
|
}[];
|
|
208
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
|
+
}[]>;
|
|
209
732
|
} & {
|
|
210
733
|
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
211
734
|
hostedInvoiceUrl: string;
|
|
212
735
|
}>;
|
|
213
|
-
} & {
|
|
214
|
-
"/tenants/:tenantId/usage": import("@withtyped/server").PathGuard<"/:tenantId/usage", unknown, unknown, {
|
|
215
|
-
activeUsers: number;
|
|
216
|
-
cost: number;
|
|
217
|
-
tokenUsage: number;
|
|
218
|
-
}>;
|
|
219
736
|
};
|
|
220
737
|
post: {
|
|
221
738
|
"/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
|
|
@@ -231,8 +748,8 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
231
748
|
copy: {};
|
|
232
749
|
head: {};
|
|
233
750
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
234
|
-
options: {};
|
|
235
751
|
patch: {};
|
|
752
|
+
options: {};
|
|
236
753
|
get: {
|
|
237
754
|
"/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
|
|
238
755
|
from?: string | undefined;
|
|
@@ -243,10 +760,15 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
243
760
|
post: {
|
|
244
761
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
245
762
|
data: {
|
|
246
|
-
type: TemplateType
|
|
763
|
+
type: TemplateType;
|
|
247
764
|
payload: {
|
|
248
|
-
code?: string | undefined;
|
|
249
765
|
link?: string | undefined;
|
|
766
|
+
code?: string | undefined;
|
|
767
|
+
locale?: string | undefined;
|
|
768
|
+
uiLocales?: string | undefined;
|
|
769
|
+
} & {
|
|
770
|
+
[k: string]: unknown;
|
|
771
|
+
} & {
|
|
250
772
|
senderName?: string | undefined;
|
|
251
773
|
companyInformation?: string | undefined;
|
|
252
774
|
appLogo?: string | undefined;
|
|
@@ -257,108 +779,213 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
257
779
|
} & {
|
|
258
780
|
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
259
781
|
data: {
|
|
260
|
-
type: TemplateType
|
|
782
|
+
type: TemplateType;
|
|
261
783
|
to: string;
|
|
262
784
|
payload: {
|
|
263
785
|
code?: string | undefined;
|
|
264
786
|
link?: string | undefined;
|
|
787
|
+
locale?: string | undefined;
|
|
788
|
+
uiLocales?: string | undefined;
|
|
789
|
+
} & {
|
|
790
|
+
[k: string]: unknown;
|
|
265
791
|
};
|
|
266
792
|
};
|
|
267
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>;
|
|
268
824
|
};
|
|
269
|
-
put: {};
|
|
270
|
-
delete: {};
|
|
271
825
|
copy: {};
|
|
272
826
|
head: {};
|
|
273
827
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
274
|
-
options: {};
|
|
275
828
|
patch: {};
|
|
829
|
+
options: {};
|
|
276
830
|
get: {
|
|
277
|
-
"/
|
|
278
|
-
|
|
831
|
+
"/skus": import("@withtyped/server").PathGuard<"/", {
|
|
832
|
+
type?: LogtoSkuType | undefined;
|
|
833
|
+
}, unknown, {
|
|
279
834
|
id: string;
|
|
280
|
-
name: string;
|
|
835
|
+
name: string | null;
|
|
836
|
+
createdAt: Date;
|
|
837
|
+
defaultPriceId: string | null;
|
|
838
|
+
unitPrice: number | null;
|
|
839
|
+
type: LogtoSkuType;
|
|
281
840
|
quota: {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
applicationsLimit
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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;
|
|
302
866
|
};
|
|
303
|
-
|
|
304
|
-
type: "flat" | "tier1" | "tier2" | "tier3";
|
|
305
|
-
id: string;
|
|
306
|
-
name: string;
|
|
307
|
-
price: {
|
|
308
|
-
id: string;
|
|
309
|
-
unitAmountDecimal: string;
|
|
310
|
-
quantity?: 1 | undefined;
|
|
311
|
-
unitAmount?: number | null | undefined;
|
|
312
|
-
};
|
|
313
|
-
description?: string | undefined;
|
|
314
|
-
}[];
|
|
867
|
+
isDefault: boolean;
|
|
315
868
|
updatedAt: Date;
|
|
869
|
+
productId: string | null;
|
|
316
870
|
}[]>;
|
|
317
871
|
};
|
|
318
|
-
post: {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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
|
+
}, {
|
|
329
905
|
id: string;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
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;
|
|
333
955
|
}>;
|
|
334
956
|
};
|
|
335
|
-
post: {};
|
|
336
957
|
put: {};
|
|
337
|
-
delete: {
|
|
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
|
+
};
|
|
338
963
|
copy: {};
|
|
339
964
|
head: {};
|
|
340
965
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
341
|
-
options: {};
|
|
342
966
|
patch: {};
|
|
967
|
+
options: {};
|
|
343
968
|
get: {
|
|
344
969
|
"/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
|
|
345
|
-
status: "open" | "complete" | "expired";
|
|
346
|
-
createdAt: Date;
|
|
347
970
|
id: string;
|
|
971
|
+
createdAt: Date;
|
|
348
972
|
userId: string;
|
|
349
|
-
|
|
973
|
+
status: "open" | "complete" | "expired";
|
|
350
974
|
tenantId: string | null;
|
|
351
|
-
|
|
975
|
+
updatedAt: Date;
|
|
976
|
+
skuId: string | null;
|
|
977
|
+
planId: string | null;
|
|
352
978
|
}>;
|
|
353
979
|
};
|
|
354
980
|
post: {
|
|
355
981
|
"/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
356
|
-
planId: string;
|
|
357
982
|
successCallbackUrl: string;
|
|
358
983
|
tenantId?: string | undefined;
|
|
359
|
-
|
|
360
|
-
tenantTag?: TenantTag | undefined;
|
|
984
|
+
skuId?: string | undefined;
|
|
361
985
|
tenantName?: string | undefined;
|
|
986
|
+
tenantTag?: TenantTag | undefined;
|
|
987
|
+
tenantRegionName?: string | undefined;
|
|
988
|
+
cancelCallbackUrl?: string | undefined;
|
|
362
989
|
}, {
|
|
363
990
|
sessionId: string;
|
|
364
991
|
redirectUri?: string | null | undefined;
|
|
@@ -369,8 +996,8 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
369
996
|
copy: {};
|
|
370
997
|
head: {};
|
|
371
998
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
372
|
-
options: {};
|
|
373
999
|
patch: {};
|
|
1000
|
+
options: {};
|
|
374
1001
|
get: {
|
|
375
1002
|
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, unknown, AffiliateData[]>;
|
|
376
1003
|
};
|
|
@@ -378,33 +1005,33 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
378
1005
|
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
379
1006
|
name: string;
|
|
380
1007
|
}, {
|
|
381
|
-
createdAt: Date;
|
|
382
1008
|
id: string;
|
|
1009
|
+
createdAt: Date;
|
|
383
1010
|
name: string;
|
|
384
1011
|
}>;
|
|
385
1012
|
} & {
|
|
386
1013
|
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
387
|
-
value: string;
|
|
388
1014
|
type: "hostname" | "query";
|
|
389
|
-
}, {
|
|
390
1015
|
value: string;
|
|
391
|
-
|
|
1016
|
+
}, {
|
|
392
1017
|
createdAt: Date;
|
|
393
1018
|
affiliateId: string;
|
|
1019
|
+
type: "hostname" | "query";
|
|
1020
|
+
value: string;
|
|
394
1021
|
}>;
|
|
395
1022
|
};
|
|
396
1023
|
put: {};
|
|
397
1024
|
delete: {
|
|
398
1025
|
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
399
|
-
value: string;
|
|
400
1026
|
type: "hostname" | "query";
|
|
1027
|
+
value: string;
|
|
401
1028
|
}, unknown>;
|
|
402
1029
|
};
|
|
403
1030
|
copy: {};
|
|
404
1031
|
head: {};
|
|
405
1032
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
406
|
-
options: {};
|
|
407
1033
|
patch: {};
|
|
1034
|
+
options: {};
|
|
408
1035
|
get: {};
|
|
409
1036
|
post: {
|
|
410
1037
|
"/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
@@ -413,8 +1040,8 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
413
1040
|
hostname?: string | undefined;
|
|
414
1041
|
query?: string | undefined;
|
|
415
1042
|
}, {
|
|
416
|
-
createdAt: Date;
|
|
417
1043
|
id: string;
|
|
1044
|
+
createdAt: Date;
|
|
418
1045
|
affiliateId: string | null;
|
|
419
1046
|
userId: string;
|
|
420
1047
|
createdVia: {
|
|
@@ -428,7 +1055,385 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
428
1055
|
delete: {};
|
|
429
1056
|
copy: {};
|
|
430
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: {};
|
|
431
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">;
|
|
432
1437
|
|
|
433
1438
|
export {
|
|
434
1439
|
router as default,
|