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