@logto/cloud 0.2.5-e14156b → 0.2.5-e2f0837
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 +1030 -357
- package/package.json +8 -6
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,50 @@ 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
|
+
"mauLimit",
|
|
74
|
+
"machineToMachineLimit",
|
|
75
|
+
"resourcesLimit",
|
|
76
|
+
"enterpriseSsoLimit",
|
|
77
|
+
"hooksLimit",
|
|
78
|
+
"tenantMembersLimit",
|
|
79
|
+
"mfaEnabled",
|
|
80
|
+
"organizationsEnabled",
|
|
81
|
+
"organizationsLimit",
|
|
82
|
+
"securityFeaturesEnabled",
|
|
83
|
+
"userRolesLimit",
|
|
84
|
+
"machineToMachineRolesLimit",
|
|
85
|
+
"thirdPartyApplicationsLimit",
|
|
86
|
+
"samlApplicationsLimit",
|
|
87
|
+
"customDomainsLimit"
|
|
88
|
+
];
|
|
89
|
+
export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
|
|
90
|
+
export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit" | "mauLimit">;
|
|
72
91
|
declare enum LogtoSkuType {
|
|
73
92
|
Basic = "Basic",
|
|
74
93
|
AddOn = "AddOn"
|
|
75
94
|
}
|
|
76
|
-
declare
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
declare enum UsageReportingType {
|
|
96
|
+
TokenUsage = "tokenUsage",
|
|
97
|
+
MauUsageWithM2MTokens = "mauUsageWithM2MTokens"
|
|
98
|
+
}
|
|
99
|
+
declare enum DatabaseRegionAccessRole {
|
|
100
|
+
/** Instance administrator - can manage collaborators and create tenants */
|
|
101
|
+
Admin = "admin",
|
|
102
|
+
/** Collaborator user - can only create tenants in the instance */
|
|
103
|
+
Collaborator = "collaborator"
|
|
104
|
+
}
|
|
105
|
+
declare enum QuotaScope {
|
|
106
|
+
/**
|
|
107
|
+
* Shared quota across multiple regions or tenants under the same enterprise.
|
|
108
|
+
*/
|
|
109
|
+
Shared = "shared",
|
|
110
|
+
/**
|
|
111
|
+
* Tenant level dedicated quota.
|
|
112
|
+
*/
|
|
113
|
+
Dedicated = "dedicated"
|
|
92
114
|
}
|
|
93
|
-
export type AffiliateData = Affiliate & {
|
|
94
|
-
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
95
|
-
};
|
|
96
115
|
declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
|
|
97
116
|
request: {
|
|
98
117
|
id?: string | undefined;
|
|
@@ -112,21 +131,23 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
112
131
|
body?: Json | undefined;
|
|
113
132
|
bodyRaw?: Buffer | undefined;
|
|
114
133
|
};
|
|
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<{
|
|
134
|
+
}>, 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<{
|
|
116
135
|
patch: {
|
|
117
136
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
118
137
|
name?: string | undefined;
|
|
119
138
|
}, {
|
|
120
139
|
id: string;
|
|
121
140
|
name: string;
|
|
141
|
+
createdAt: Date;
|
|
122
142
|
quota: {
|
|
123
143
|
mauLimit: number | null;
|
|
124
144
|
tokenLimit: number | null;
|
|
125
145
|
};
|
|
126
|
-
createdAt: Date;
|
|
127
146
|
usage: {
|
|
128
|
-
|
|
147
|
+
userTokenUsage: number;
|
|
148
|
+
m2mTokenUsage: number;
|
|
129
149
|
tokenUsage: number;
|
|
150
|
+
activeUsers: number;
|
|
130
151
|
};
|
|
131
152
|
indicator: string;
|
|
132
153
|
isSuspended: boolean;
|
|
@@ -136,6 +157,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
136
157
|
planId: string;
|
|
137
158
|
currentPeriodStart: Date;
|
|
138
159
|
currentPeriodEnd: Date;
|
|
160
|
+
isEnterprisePlan: boolean;
|
|
161
|
+
quotaScope: "dedicated" | "shared";
|
|
139
162
|
id?: string | undefined;
|
|
140
163
|
upcomingInvoice?: {
|
|
141
164
|
subtotal: number;
|
|
@@ -143,14 +166,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
143
166
|
total: number;
|
|
144
167
|
totalExcludingTax: number | null;
|
|
145
168
|
} | null | undefined;
|
|
146
|
-
isAddOnAvailable?: boolean | undefined;
|
|
147
169
|
};
|
|
148
|
-
regionName:
|
|
170
|
+
regionName: string;
|
|
149
171
|
tag: TenantTag;
|
|
150
172
|
openInvoices: {
|
|
151
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
152
173
|
id: string;
|
|
153
174
|
createdAt: Date;
|
|
175
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
|
|
154
176
|
updatedAt: Date;
|
|
155
177
|
customerId: string | null;
|
|
156
178
|
billingReason: string | null;
|
|
@@ -158,10 +180,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
158
180
|
periodEnd: Date;
|
|
159
181
|
amountDue: number;
|
|
160
182
|
amountPaid: number;
|
|
183
|
+
basicSkuId: string | null;
|
|
161
184
|
subscriptionId: string | null;
|
|
162
185
|
hostedInvoiceUrl: string | null;
|
|
163
186
|
invoicePdf: string | null;
|
|
187
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
188
|
+
dueDate: Date | null;
|
|
164
189
|
}[];
|
|
190
|
+
featureFlags?: {
|
|
191
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
192
|
+
} | undefined;
|
|
165
193
|
}>;
|
|
166
194
|
};
|
|
167
195
|
options: {};
|
|
@@ -169,14 +197,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
169
197
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
170
198
|
id: string;
|
|
171
199
|
name: string;
|
|
200
|
+
createdAt: Date;
|
|
172
201
|
quota: {
|
|
173
202
|
mauLimit: number | null;
|
|
174
203
|
tokenLimit: number | null;
|
|
175
204
|
};
|
|
176
|
-
createdAt: Date;
|
|
177
205
|
usage: {
|
|
178
|
-
|
|
206
|
+
userTokenUsage: number;
|
|
207
|
+
m2mTokenUsage: number;
|
|
179
208
|
tokenUsage: number;
|
|
209
|
+
activeUsers: number;
|
|
180
210
|
};
|
|
181
211
|
indicator: string;
|
|
182
212
|
isSuspended: boolean;
|
|
@@ -186,6 +216,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
186
216
|
planId: string;
|
|
187
217
|
currentPeriodStart: Date;
|
|
188
218
|
currentPeriodEnd: Date;
|
|
219
|
+
isEnterprisePlan: boolean;
|
|
220
|
+
quotaScope: "dedicated" | "shared";
|
|
189
221
|
id?: string | undefined;
|
|
190
222
|
upcomingInvoice?: {
|
|
191
223
|
subtotal: number;
|
|
@@ -193,14 +225,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
193
225
|
total: number;
|
|
194
226
|
totalExcludingTax: number | null;
|
|
195
227
|
} | null | undefined;
|
|
196
|
-
isAddOnAvailable?: boolean | undefined;
|
|
197
228
|
};
|
|
198
|
-
regionName:
|
|
229
|
+
regionName: string;
|
|
199
230
|
tag: TenantTag;
|
|
200
231
|
openInvoices: {
|
|
201
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
202
232
|
id: string;
|
|
203
233
|
createdAt: Date;
|
|
234
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
|
|
204
235
|
updatedAt: Date;
|
|
205
236
|
customerId: string | null;
|
|
206
237
|
billingReason: string | null;
|
|
@@ -208,28 +239,37 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
208
239
|
periodEnd: Date;
|
|
209
240
|
amountDue: number;
|
|
210
241
|
amountPaid: number;
|
|
242
|
+
basicSkuId: string | null;
|
|
211
243
|
subscriptionId: string | null;
|
|
212
244
|
hostedInvoiceUrl: string | null;
|
|
213
245
|
invoicePdf: string | null;
|
|
246
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
247
|
+
dueDate: Date | null;
|
|
214
248
|
}[];
|
|
249
|
+
featureFlags?: {
|
|
250
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
251
|
+
} | undefined;
|
|
215
252
|
}[]>;
|
|
216
253
|
};
|
|
217
254
|
post: {
|
|
218
255
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
256
|
+
id?: string | undefined;
|
|
219
257
|
name?: string | undefined;
|
|
258
|
+
regionName?: string | undefined;
|
|
220
259
|
tag?: TenantTag | undefined;
|
|
221
|
-
regionName?: RegionName | undefined;
|
|
222
260
|
}, {
|
|
223
261
|
id: string;
|
|
224
262
|
name: string;
|
|
263
|
+
createdAt: Date;
|
|
225
264
|
quota: {
|
|
226
265
|
mauLimit: number | null;
|
|
227
266
|
tokenLimit: number | null;
|
|
228
267
|
};
|
|
229
|
-
createdAt: Date;
|
|
230
268
|
usage: {
|
|
231
|
-
|
|
269
|
+
userTokenUsage: number;
|
|
270
|
+
m2mTokenUsage: number;
|
|
232
271
|
tokenUsage: number;
|
|
272
|
+
activeUsers: number;
|
|
233
273
|
};
|
|
234
274
|
indicator: string;
|
|
235
275
|
isSuspended: boolean;
|
|
@@ -239,6 +279,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
239
279
|
planId: string;
|
|
240
280
|
currentPeriodStart: Date;
|
|
241
281
|
currentPeriodEnd: Date;
|
|
282
|
+
isEnterprisePlan: boolean;
|
|
283
|
+
quotaScope: "dedicated" | "shared";
|
|
242
284
|
id?: string | undefined;
|
|
243
285
|
upcomingInvoice?: {
|
|
244
286
|
subtotal: number;
|
|
@@ -246,14 +288,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
246
288
|
total: number;
|
|
247
289
|
totalExcludingTax: number | null;
|
|
248
290
|
} | null | undefined;
|
|
249
|
-
isAddOnAvailable?: boolean | undefined;
|
|
250
291
|
};
|
|
251
|
-
regionName:
|
|
292
|
+
regionName: string;
|
|
252
293
|
tag: TenantTag;
|
|
253
294
|
openInvoices: {
|
|
254
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
255
295
|
id: string;
|
|
256
296
|
createdAt: Date;
|
|
297
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
|
|
257
298
|
updatedAt: Date;
|
|
258
299
|
customerId: string | null;
|
|
259
300
|
billingReason: string | null;
|
|
@@ -261,11 +302,27 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
261
302
|
periodEnd: Date;
|
|
262
303
|
amountDue: number;
|
|
263
304
|
amountPaid: number;
|
|
305
|
+
basicSkuId: string | null;
|
|
264
306
|
subscriptionId: string | null;
|
|
265
307
|
hostedInvoiceUrl: string | null;
|
|
266
308
|
invoicePdf: string | null;
|
|
309
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
310
|
+
dueDate: Date | null;
|
|
267
311
|
}[];
|
|
312
|
+
featureFlags?: {
|
|
313
|
+
isMultipleCustomDomainsEnabled?: boolean | undefined;
|
|
314
|
+
} | undefined;
|
|
268
315
|
}>;
|
|
316
|
+
} & {
|
|
317
|
+
"/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
|
|
318
|
+
planId: string;
|
|
319
|
+
tenantIds: string[];
|
|
320
|
+
}, {
|
|
321
|
+
tenantId: string;
|
|
322
|
+
success: boolean;
|
|
323
|
+
error?: string | undefined;
|
|
324
|
+
updatedLineItems?: unknown[] | undefined;
|
|
325
|
+
}[]>;
|
|
269
326
|
};
|
|
270
327
|
put: {};
|
|
271
328
|
delete: {
|
|
@@ -279,9 +336,60 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
279
336
|
get: {
|
|
280
337
|
"/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
|
|
281
338
|
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
339
|
+
quota: {
|
|
340
|
+
auditLogsRetentionDays: number | null;
|
|
341
|
+
subjectTokenEnabled: boolean;
|
|
342
|
+
mauLimit: number | null;
|
|
343
|
+
applicationsLimit: number | null;
|
|
344
|
+
thirdPartyApplicationsLimit: number | null;
|
|
345
|
+
scopesPerResourceLimit: number | null;
|
|
346
|
+
socialConnectorsLimit: number | null;
|
|
347
|
+
userRolesLimit: number | null;
|
|
348
|
+
machineToMachineRolesLimit: number | null;
|
|
349
|
+
scopesPerRoleLimit: number | null;
|
|
350
|
+
hooksLimit: number | null;
|
|
351
|
+
customJwtEnabled: boolean;
|
|
352
|
+
bringYourUiEnabled: boolean;
|
|
353
|
+
collectUserProfileEnabled: boolean;
|
|
354
|
+
tokenLimit: number | null;
|
|
355
|
+
machineToMachineLimit: number | null;
|
|
356
|
+
resourcesLimit: number | null;
|
|
357
|
+
enterpriseSsoLimit: number | null;
|
|
358
|
+
tenantMembersLimit: number | null;
|
|
359
|
+
mfaEnabled: boolean;
|
|
360
|
+
organizationsEnabled: boolean;
|
|
361
|
+
organizationsLimit: number | null;
|
|
362
|
+
securityFeaturesEnabled: boolean;
|
|
363
|
+
idpInitiatedSsoEnabled: boolean;
|
|
364
|
+
samlApplicationsLimit: number | null;
|
|
365
|
+
customDomainsLimit: number | null;
|
|
366
|
+
};
|
|
282
367
|
planId: string;
|
|
283
368
|
currentPeriodStart: Date;
|
|
284
369
|
currentPeriodEnd: Date;
|
|
370
|
+
quotaScope: "dedicated" | "shared";
|
|
371
|
+
isEnterprisePlan: boolean;
|
|
372
|
+
systemLimit: {
|
|
373
|
+
applicationsLimit?: number | undefined;
|
|
374
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
375
|
+
scopesPerResourceLimit?: number | undefined;
|
|
376
|
+
socialConnectorsLimit?: number | undefined;
|
|
377
|
+
userRolesLimit?: number | undefined;
|
|
378
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
379
|
+
scopesPerRoleLimit?: number | undefined;
|
|
380
|
+
hooksLimit?: number | undefined;
|
|
381
|
+
machineToMachineLimit?: number | undefined;
|
|
382
|
+
resourcesLimit?: number | undefined;
|
|
383
|
+
enterpriseSsoLimit?: number | undefined;
|
|
384
|
+
tenantMembersLimit?: number | undefined;
|
|
385
|
+
organizationsLimit?: number | undefined;
|
|
386
|
+
samlApplicationsLimit?: number | undefined;
|
|
387
|
+
customDomainsLimit?: number | undefined;
|
|
388
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
389
|
+
organizationUserRolesLimit?: number | undefined;
|
|
390
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
391
|
+
organizationScopesLimit?: number | undefined;
|
|
392
|
+
};
|
|
285
393
|
id?: string | undefined;
|
|
286
394
|
upcomingInvoice?: {
|
|
287
395
|
subtotal: number;
|
|
@@ -289,112 +397,126 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
289
397
|
total: number;
|
|
290
398
|
totalExcludingTax: number | null;
|
|
291
399
|
} | null | undefined;
|
|
292
|
-
isAddOnAvailable?: boolean | undefined;
|
|
293
|
-
}>;
|
|
294
|
-
} & {
|
|
295
|
-
"/tenants/my/subscription/quota": import("@withtyped/server").PathGuard<"/my/subscription/quota", unknown, unknown, {
|
|
296
|
-
mauLimit: number | null;
|
|
297
|
-
tokenLimit: number | null;
|
|
298
|
-
applicationsLimit: number | null;
|
|
299
|
-
machineToMachineLimit: number | null;
|
|
300
|
-
resourcesLimit: number | null;
|
|
301
|
-
scopesPerResourceLimit: number | null;
|
|
302
|
-
socialConnectorsLimit: number | null;
|
|
303
|
-
machineToMachineRolesLimit: number | null;
|
|
304
|
-
scopesPerRoleLimit: number | null;
|
|
305
|
-
hooksLimit: number | null;
|
|
306
|
-
auditLogsRetentionDays: number | null;
|
|
307
|
-
mfaEnabled: boolean;
|
|
308
|
-
organizationsEnabled: boolean;
|
|
309
|
-
thirdPartyApplicationsLimit: number | null;
|
|
310
|
-
tenantMembersLimit: number | null;
|
|
311
|
-
customJwtEnabled: boolean;
|
|
312
|
-
subjectTokenEnabled: boolean;
|
|
313
|
-
bringYourUiEnabled: boolean;
|
|
314
|
-
userRolesLimit: number | null;
|
|
315
|
-
enterpriseSsoLimit: number | null;
|
|
316
|
-
}>;
|
|
317
|
-
} & {
|
|
318
|
-
"/tenants/my/subscription/usage": import("@withtyped/server").PathGuard<"/my/subscription/usage", unknown, unknown, {
|
|
319
|
-
applicationsLimit: number;
|
|
320
|
-
machineToMachineLimit: number;
|
|
321
|
-
resourcesLimit: number;
|
|
322
|
-
scopesPerResourceLimit: number;
|
|
323
|
-
socialConnectorsLimit: number;
|
|
324
|
-
machineToMachineRolesLimit: number;
|
|
325
|
-
scopesPerRoleLimit: number;
|
|
326
|
-
hooksLimit: number;
|
|
327
|
-
mfaEnabled: boolean;
|
|
328
|
-
organizationsEnabled: boolean;
|
|
329
|
-
thirdPartyApplicationsLimit: number;
|
|
330
|
-
tenantMembersLimit: number;
|
|
331
|
-
customJwtEnabled: boolean;
|
|
332
|
-
subjectTokenEnabled: boolean;
|
|
333
|
-
bringYourUiEnabled: boolean;
|
|
334
|
-
userRolesLimit: number;
|
|
335
|
-
enterpriseSsoLimit: number;
|
|
336
400
|
}>;
|
|
337
|
-
} & {
|
|
338
|
-
"/tenants/my/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/my/subscription/usage/:entityName/scopes", {
|
|
339
|
-
entityId?: string | undefined;
|
|
340
|
-
}, unknown, Record<string, number>>;
|
|
341
401
|
} & {
|
|
342
402
|
"/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
|
|
403
|
+
quota: {
|
|
404
|
+
auditLogsRetentionDays: number | null;
|
|
405
|
+
subjectTokenEnabled: boolean;
|
|
406
|
+
mauLimit: number | null;
|
|
407
|
+
applicationsLimit: number | null;
|
|
408
|
+
thirdPartyApplicationsLimit: number | null;
|
|
409
|
+
scopesPerResourceLimit: number | null;
|
|
410
|
+
socialConnectorsLimit: number | null;
|
|
411
|
+
userRolesLimit: number | null;
|
|
412
|
+
machineToMachineRolesLimit: number | null;
|
|
413
|
+
scopesPerRoleLimit: number | null;
|
|
414
|
+
hooksLimit: number | null;
|
|
415
|
+
customJwtEnabled: boolean;
|
|
416
|
+
bringYourUiEnabled: boolean;
|
|
417
|
+
collectUserProfileEnabled: boolean;
|
|
418
|
+
tokenLimit: number | null;
|
|
419
|
+
machineToMachineLimit: number | null;
|
|
420
|
+
resourcesLimit: number | null;
|
|
421
|
+
enterpriseSsoLimit: number | null;
|
|
422
|
+
tenantMembersLimit: number | null;
|
|
423
|
+
mfaEnabled: boolean;
|
|
424
|
+
organizationsEnabled: boolean;
|
|
425
|
+
organizationsLimit: number | null;
|
|
426
|
+
securityFeaturesEnabled: boolean;
|
|
427
|
+
idpInitiatedSsoEnabled: boolean;
|
|
428
|
+
samlApplicationsLimit: number | null;
|
|
429
|
+
customDomainsLimit: number | null;
|
|
430
|
+
};
|
|
343
431
|
usage: {
|
|
344
432
|
applicationsLimit: number;
|
|
345
|
-
|
|
346
|
-
resourcesLimit: number;
|
|
433
|
+
thirdPartyApplicationsLimit: number;
|
|
347
434
|
scopesPerResourceLimit: number;
|
|
348
435
|
socialConnectorsLimit: number;
|
|
436
|
+
userRolesLimit: number;
|
|
349
437
|
machineToMachineRolesLimit: number;
|
|
350
438
|
scopesPerRoleLimit: number;
|
|
351
439
|
hooksLimit: number;
|
|
352
|
-
mfaEnabled: boolean;
|
|
353
|
-
organizationsEnabled: boolean;
|
|
354
|
-
thirdPartyApplicationsLimit: number;
|
|
355
|
-
tenantMembersLimit: number;
|
|
356
440
|
customJwtEnabled: boolean;
|
|
357
|
-
subjectTokenEnabled: boolean;
|
|
358
441
|
bringYourUiEnabled: boolean;
|
|
359
|
-
|
|
442
|
+
collectUserProfileEnabled: boolean;
|
|
443
|
+
machineToMachineLimit: number;
|
|
444
|
+
resourcesLimit: number;
|
|
360
445
|
enterpriseSsoLimit: number;
|
|
446
|
+
tenantMembersLimit: number;
|
|
447
|
+
mfaEnabled: boolean;
|
|
448
|
+
organizationsEnabled: boolean;
|
|
449
|
+
organizationsLimit: number;
|
|
450
|
+
securityFeaturesEnabled: boolean;
|
|
451
|
+
idpInitiatedSsoEnabled: boolean;
|
|
452
|
+
samlApplicationsLimit: number;
|
|
453
|
+
customDomainsLimit: number;
|
|
361
454
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
455
|
+
basicQuota: {
|
|
456
|
+
auditLogsRetentionDays: number | null;
|
|
457
|
+
subjectTokenEnabled: boolean;
|
|
365
458
|
mauLimit: number | null;
|
|
366
|
-
tokenLimit: number | null;
|
|
367
459
|
applicationsLimit: number | null;
|
|
368
|
-
|
|
369
|
-
resourcesLimit: number | null;
|
|
460
|
+
thirdPartyApplicationsLimit: number | null;
|
|
370
461
|
scopesPerResourceLimit: number | null;
|
|
371
462
|
socialConnectorsLimit: number | null;
|
|
463
|
+
userRolesLimit: number | null;
|
|
372
464
|
machineToMachineRolesLimit: number | null;
|
|
373
465
|
scopesPerRoleLimit: number | null;
|
|
374
466
|
hooksLimit: number | null;
|
|
375
|
-
auditLogsRetentionDays: number | null;
|
|
376
|
-
mfaEnabled: boolean;
|
|
377
|
-
organizationsEnabled: boolean;
|
|
378
|
-
thirdPartyApplicationsLimit: number | null;
|
|
379
|
-
tenantMembersLimit: number | null;
|
|
380
467
|
customJwtEnabled: boolean;
|
|
381
|
-
subjectTokenEnabled: boolean;
|
|
382
468
|
bringYourUiEnabled: boolean;
|
|
383
|
-
|
|
469
|
+
collectUserProfileEnabled: boolean;
|
|
470
|
+
tokenLimit: number | null;
|
|
471
|
+
machineToMachineLimit: number | null;
|
|
472
|
+
resourcesLimit: number | null;
|
|
384
473
|
enterpriseSsoLimit: number | null;
|
|
474
|
+
tenantMembersLimit: number | null;
|
|
475
|
+
mfaEnabled: boolean;
|
|
476
|
+
organizationsEnabled: boolean;
|
|
477
|
+
organizationsLimit: number | null;
|
|
478
|
+
securityFeaturesEnabled: boolean;
|
|
479
|
+
idpInitiatedSsoEnabled: boolean;
|
|
480
|
+
samlApplicationsLimit: number | null;
|
|
481
|
+
customDomainsLimit: number | null;
|
|
385
482
|
};
|
|
386
483
|
}>;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
484
|
+
};
|
|
485
|
+
post: {
|
|
486
|
+
"/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
|
|
487
|
+
usageKey: RealtimeReportableUsageKey;
|
|
488
|
+
}, {
|
|
489
|
+
message: string;
|
|
391
490
|
}>;
|
|
392
|
-
}
|
|
491
|
+
};
|
|
492
|
+
put: {};
|
|
493
|
+
delete: {};
|
|
494
|
+
copy: {};
|
|
495
|
+
head: {};
|
|
496
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
497
|
+
patch: {};
|
|
498
|
+
options: {};
|
|
499
|
+
get: {};
|
|
500
|
+
post: {
|
|
501
|
+
"/tenants/subscription-cache/invalidate": import("@withtyped/server").PathGuard<"/subscription-cache/invalidate", unknown, {
|
|
502
|
+
tenantIds: string[];
|
|
503
|
+
}, unknown>;
|
|
504
|
+
};
|
|
505
|
+
put: {};
|
|
506
|
+
delete: {};
|
|
507
|
+
copy: {};
|
|
508
|
+
head: {};
|
|
509
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
510
|
+
patch: {};
|
|
511
|
+
options: {};
|
|
512
|
+
get: {
|
|
393
513
|
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
|
|
394
514
|
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
395
515
|
planId: string;
|
|
396
516
|
currentPeriodStart: Date;
|
|
397
517
|
currentPeriodEnd: Date;
|
|
518
|
+
isEnterprisePlan: boolean;
|
|
519
|
+
quotaScope: "dedicated" | "shared";
|
|
398
520
|
id?: string | undefined;
|
|
399
521
|
upcomingInvoice?: {
|
|
400
522
|
subtotal: number;
|
|
@@ -402,112 +524,146 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
402
524
|
total: number;
|
|
403
525
|
totalExcludingTax: number | null;
|
|
404
526
|
} | null | undefined;
|
|
405
|
-
isAddOnAvailable?: boolean | undefined;
|
|
406
|
-
}>;
|
|
407
|
-
} & {
|
|
408
|
-
"/tenants/:tenantId/subscription/quota": import("@withtyped/server").PathGuard<"/:tenantId/subscription/quota", unknown, unknown, {
|
|
409
|
-
mauLimit: number | null;
|
|
410
|
-
tokenLimit: number | null;
|
|
411
|
-
applicationsLimit: number | null;
|
|
412
|
-
machineToMachineLimit: number | null;
|
|
413
|
-
resourcesLimit: number | null;
|
|
414
|
-
scopesPerResourceLimit: number | null;
|
|
415
|
-
socialConnectorsLimit: number | null;
|
|
416
|
-
machineToMachineRolesLimit: number | null;
|
|
417
|
-
scopesPerRoleLimit: number | null;
|
|
418
|
-
hooksLimit: number | null;
|
|
419
|
-
auditLogsRetentionDays: number | null;
|
|
420
|
-
mfaEnabled: boolean;
|
|
421
|
-
organizationsEnabled: boolean;
|
|
422
|
-
thirdPartyApplicationsLimit: number | null;
|
|
423
|
-
tenantMembersLimit: number | null;
|
|
424
|
-
customJwtEnabled: boolean;
|
|
425
|
-
subjectTokenEnabled: boolean;
|
|
426
|
-
bringYourUiEnabled: boolean;
|
|
427
|
-
userRolesLimit: number | null;
|
|
428
|
-
enterpriseSsoLimit: number | null;
|
|
429
|
-
}>;
|
|
430
|
-
} & {
|
|
431
|
-
"/tenants/:tenantId/subscription/usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage", unknown, unknown, {
|
|
432
|
-
applicationsLimit: number;
|
|
433
|
-
machineToMachineLimit: number;
|
|
434
|
-
resourcesLimit: number;
|
|
435
|
-
scopesPerResourceLimit: number;
|
|
436
|
-
socialConnectorsLimit: number;
|
|
437
|
-
machineToMachineRolesLimit: number;
|
|
438
|
-
scopesPerRoleLimit: number;
|
|
439
|
-
hooksLimit: number;
|
|
440
|
-
mfaEnabled: boolean;
|
|
441
|
-
organizationsEnabled: boolean;
|
|
442
|
-
thirdPartyApplicationsLimit: number;
|
|
443
|
-
tenantMembersLimit: number;
|
|
444
|
-
customJwtEnabled: boolean;
|
|
445
|
-
subjectTokenEnabled: boolean;
|
|
446
|
-
bringYourUiEnabled: boolean;
|
|
447
|
-
userRolesLimit: number;
|
|
448
|
-
enterpriseSsoLimit: number;
|
|
449
527
|
}>;
|
|
450
|
-
} & {
|
|
451
|
-
"/tenants/:tenantId/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage/:entityName/scopes", {
|
|
452
|
-
entityId?: string | undefined;
|
|
453
|
-
}, unknown, Record<string, number>>;
|
|
454
528
|
} & {
|
|
455
529
|
"/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
|
|
530
|
+
quota: {
|
|
531
|
+
auditLogsRetentionDays: number | null;
|
|
532
|
+
subjectTokenEnabled: boolean;
|
|
533
|
+
mauLimit: number | null;
|
|
534
|
+
applicationsLimit: number | null;
|
|
535
|
+
thirdPartyApplicationsLimit: number | null;
|
|
536
|
+
scopesPerResourceLimit: number | null;
|
|
537
|
+
socialConnectorsLimit: number | null;
|
|
538
|
+
userRolesLimit: number | null;
|
|
539
|
+
machineToMachineRolesLimit: number | null;
|
|
540
|
+
scopesPerRoleLimit: number | null;
|
|
541
|
+
hooksLimit: number | null;
|
|
542
|
+
customJwtEnabled: boolean;
|
|
543
|
+
bringYourUiEnabled: boolean;
|
|
544
|
+
collectUserProfileEnabled: boolean;
|
|
545
|
+
tokenLimit: number | null;
|
|
546
|
+
machineToMachineLimit: number | null;
|
|
547
|
+
resourcesLimit: number | null;
|
|
548
|
+
enterpriseSsoLimit: number | null;
|
|
549
|
+
tenantMembersLimit: number | null;
|
|
550
|
+
mfaEnabled: boolean;
|
|
551
|
+
organizationsEnabled: boolean;
|
|
552
|
+
organizationsLimit: number | null;
|
|
553
|
+
securityFeaturesEnabled: boolean;
|
|
554
|
+
idpInitiatedSsoEnabled: boolean;
|
|
555
|
+
samlApplicationsLimit: number | null;
|
|
556
|
+
customDomainsLimit: number | null;
|
|
557
|
+
};
|
|
456
558
|
usage: {
|
|
457
559
|
applicationsLimit: number;
|
|
458
|
-
|
|
459
|
-
resourcesLimit: number;
|
|
560
|
+
thirdPartyApplicationsLimit: number;
|
|
460
561
|
scopesPerResourceLimit: number;
|
|
461
562
|
socialConnectorsLimit: number;
|
|
563
|
+
userRolesLimit: number;
|
|
462
564
|
machineToMachineRolesLimit: number;
|
|
463
565
|
scopesPerRoleLimit: number;
|
|
464
566
|
hooksLimit: number;
|
|
465
|
-
mfaEnabled: boolean;
|
|
466
|
-
organizationsEnabled: boolean;
|
|
467
|
-
thirdPartyApplicationsLimit: number;
|
|
468
|
-
tenantMembersLimit: number;
|
|
469
567
|
customJwtEnabled: boolean;
|
|
470
|
-
subjectTokenEnabled: boolean;
|
|
471
568
|
bringYourUiEnabled: boolean;
|
|
472
|
-
|
|
569
|
+
collectUserProfileEnabled: boolean;
|
|
570
|
+
machineToMachineLimit: number;
|
|
571
|
+
resourcesLimit: number;
|
|
473
572
|
enterpriseSsoLimit: number;
|
|
573
|
+
tenantMembersLimit: number;
|
|
574
|
+
mfaEnabled: boolean;
|
|
575
|
+
organizationsEnabled: boolean;
|
|
576
|
+
organizationsLimit: number;
|
|
577
|
+
securityFeaturesEnabled: boolean;
|
|
578
|
+
idpInitiatedSsoEnabled: boolean;
|
|
579
|
+
samlApplicationsLimit: number;
|
|
580
|
+
customDomainsLimit: number;
|
|
474
581
|
};
|
|
475
582
|
resources: Record<string, number>;
|
|
476
583
|
roles: Record<string, number>;
|
|
477
|
-
|
|
584
|
+
basicQuota: {
|
|
585
|
+
auditLogsRetentionDays: number | null;
|
|
586
|
+
subjectTokenEnabled: boolean;
|
|
478
587
|
mauLimit: number | null;
|
|
479
|
-
tokenLimit: number | null;
|
|
480
588
|
applicationsLimit: number | null;
|
|
481
|
-
|
|
482
|
-
resourcesLimit: number | null;
|
|
589
|
+
thirdPartyApplicationsLimit: number | null;
|
|
483
590
|
scopesPerResourceLimit: number | null;
|
|
484
591
|
socialConnectorsLimit: number | null;
|
|
592
|
+
userRolesLimit: number | null;
|
|
485
593
|
machineToMachineRolesLimit: number | null;
|
|
486
594
|
scopesPerRoleLimit: number | null;
|
|
487
595
|
hooksLimit: number | null;
|
|
488
|
-
auditLogsRetentionDays: number | null;
|
|
489
|
-
mfaEnabled: boolean;
|
|
490
|
-
organizationsEnabled: boolean;
|
|
491
|
-
thirdPartyApplicationsLimit: number | null;
|
|
492
|
-
tenantMembersLimit: number | null;
|
|
493
596
|
customJwtEnabled: boolean;
|
|
494
|
-
subjectTokenEnabled: boolean;
|
|
495
597
|
bringYourUiEnabled: boolean;
|
|
496
|
-
|
|
598
|
+
collectUserProfileEnabled: boolean;
|
|
599
|
+
tokenLimit: number | null;
|
|
600
|
+
machineToMachineLimit: number | null;
|
|
601
|
+
resourcesLimit: number | null;
|
|
497
602
|
enterpriseSsoLimit: number | null;
|
|
603
|
+
tenantMembersLimit: number | null;
|
|
604
|
+
mfaEnabled: boolean;
|
|
605
|
+
organizationsEnabled: boolean;
|
|
606
|
+
organizationsLimit: number | null;
|
|
607
|
+
securityFeaturesEnabled: boolean;
|
|
608
|
+
idpInitiatedSsoEnabled: boolean;
|
|
609
|
+
samlApplicationsLimit: number | null;
|
|
610
|
+
customDomainsLimit: number | null;
|
|
498
611
|
};
|
|
499
612
|
}>;
|
|
500
613
|
} & {
|
|
501
614
|
"/tenants/:tenantId/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/periodic-usage", unknown, unknown, {
|
|
502
615
|
mauLimit: number;
|
|
503
616
|
tokenLimit: number;
|
|
617
|
+
userTokenLimit: number;
|
|
618
|
+
m2mTokenLimit: number;
|
|
504
619
|
}>;
|
|
620
|
+
} & {
|
|
621
|
+
"/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit", {
|
|
622
|
+
id: string;
|
|
623
|
+
name: string | null;
|
|
624
|
+
createdAt: Date;
|
|
625
|
+
defaultPriceId: string | null;
|
|
626
|
+
unitPrice: number | null;
|
|
627
|
+
type: LogtoSkuType;
|
|
628
|
+
quota: {
|
|
629
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
630
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
631
|
+
mauLimit?: number | null | undefined;
|
|
632
|
+
applicationsLimit?: number | null | undefined;
|
|
633
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
634
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
635
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
636
|
+
userRolesLimit?: number | null | undefined;
|
|
637
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
638
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
639
|
+
hooksLimit?: number | null | undefined;
|
|
640
|
+
customJwtEnabled?: boolean | undefined;
|
|
641
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
642
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
643
|
+
tokenLimit?: number | null | undefined;
|
|
644
|
+
machineToMachineLimit?: number | null | undefined;
|
|
645
|
+
resourcesLimit?: number | null | undefined;
|
|
646
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
647
|
+
tenantMembersLimit?: number | null | undefined;
|
|
648
|
+
mfaEnabled?: boolean | undefined;
|
|
649
|
+
organizationsEnabled?: boolean | undefined;
|
|
650
|
+
organizationsLimit?: number | null | undefined;
|
|
651
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
652
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
653
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
654
|
+
customDomainsLimit?: number | null | undefined;
|
|
655
|
+
};
|
|
656
|
+
isDefault: boolean;
|
|
657
|
+
isDevPlan: boolean;
|
|
658
|
+
updatedAt: Date;
|
|
659
|
+
productId: string | null;
|
|
660
|
+
}>>>;
|
|
505
661
|
} & {
|
|
506
662
|
"/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
|
|
507
663
|
invoices: {
|
|
508
|
-
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
509
664
|
id: string;
|
|
510
665
|
createdAt: Date;
|
|
666
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
|
|
511
667
|
updatedAt: Date;
|
|
512
668
|
customerId: string | null;
|
|
513
669
|
billingReason: string | null;
|
|
@@ -515,28 +671,68 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
515
671
|
periodEnd: Date;
|
|
516
672
|
amountDue: number;
|
|
517
673
|
amountPaid: number;
|
|
674
|
+
basicSkuId: string | null;
|
|
518
675
|
subscriptionId: string | null;
|
|
519
676
|
hostedInvoiceUrl: string | null;
|
|
520
677
|
invoicePdf: string | null;
|
|
678
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
679
|
+
dueDate: Date | null;
|
|
521
680
|
planName: string | null;
|
|
522
681
|
skuId?: string | null | undefined;
|
|
523
682
|
}[];
|
|
524
683
|
}>;
|
|
525
684
|
} & {
|
|
526
|
-
"/tenants/:tenantId/
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
685
|
+
"/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
|
|
686
|
+
type?: LogtoSkuType | undefined;
|
|
687
|
+
}, unknown, {
|
|
688
|
+
id: string;
|
|
689
|
+
name: string | null;
|
|
690
|
+
createdAt: Date;
|
|
691
|
+
defaultPriceId: string | null;
|
|
692
|
+
unitPrice: number | null;
|
|
693
|
+
type: LogtoSkuType;
|
|
694
|
+
quota: {
|
|
695
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
696
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
697
|
+
mauLimit?: number | null | undefined;
|
|
698
|
+
applicationsLimit?: number | null | undefined;
|
|
699
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
700
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
701
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
702
|
+
userRolesLimit?: number | null | undefined;
|
|
703
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
704
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
705
|
+
hooksLimit?: number | null | undefined;
|
|
706
|
+
customJwtEnabled?: boolean | undefined;
|
|
707
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
708
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
709
|
+
tokenLimit?: number | null | undefined;
|
|
710
|
+
machineToMachineLimit?: number | null | undefined;
|
|
711
|
+
resourcesLimit?: number | null | undefined;
|
|
712
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
713
|
+
tenantMembersLimit?: number | null | undefined;
|
|
714
|
+
mfaEnabled?: boolean | undefined;
|
|
715
|
+
organizationsEnabled?: boolean | undefined;
|
|
716
|
+
organizationsLimit?: number | null | undefined;
|
|
717
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
718
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
719
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
720
|
+
customDomainsLimit?: number | null | undefined;
|
|
721
|
+
};
|
|
722
|
+
isDefault: boolean;
|
|
723
|
+
isDevPlan: boolean;
|
|
724
|
+
updatedAt: Date;
|
|
725
|
+
productId: string | null;
|
|
726
|
+
}[]>;
|
|
727
|
+
} & {
|
|
728
|
+
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
729
|
+
hostedInvoiceUrl: string;
|
|
730
|
+
}>;
|
|
731
|
+
};
|
|
732
|
+
post: {
|
|
733
|
+
"/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
|
|
734
|
+
callbackUrl?: string | undefined;
|
|
735
|
+
}, {
|
|
540
736
|
redirectUri: string;
|
|
541
737
|
}>;
|
|
542
738
|
};
|
|
@@ -559,42 +755,92 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
559
755
|
post: {
|
|
560
756
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
561
757
|
data: {
|
|
562
|
-
type: TemplateType
|
|
758
|
+
type: TemplateType;
|
|
563
759
|
payload: {
|
|
564
|
-
code?: string | undefined;
|
|
565
760
|
link?: string | undefined;
|
|
566
|
-
|
|
761
|
+
code?: string | undefined;
|
|
762
|
+
locale?: string | undefined;
|
|
763
|
+
uiLocales?: string | undefined;
|
|
764
|
+
} & {
|
|
765
|
+
[k: string]: unknown;
|
|
766
|
+
} & {
|
|
567
767
|
senderName?: string | undefined;
|
|
568
768
|
companyInformation?: string | undefined;
|
|
569
769
|
appLogo?: string | undefined;
|
|
770
|
+
} & {
|
|
771
|
+
organization?: {
|
|
772
|
+
id: string;
|
|
773
|
+
name: string;
|
|
774
|
+
branding: {
|
|
775
|
+
logoUrl?: string | undefined;
|
|
776
|
+
darkLogoUrl?: string | undefined;
|
|
777
|
+
favicon?: string | undefined;
|
|
778
|
+
darkFavicon?: string | undefined;
|
|
779
|
+
};
|
|
780
|
+
} | undefined;
|
|
781
|
+
inviter?: {
|
|
782
|
+
id: string;
|
|
783
|
+
name: string | null;
|
|
784
|
+
username: string | null;
|
|
785
|
+
primaryEmail: string | null;
|
|
786
|
+
primaryPhone: string | null;
|
|
787
|
+
avatar: string | null;
|
|
788
|
+
profile: Partial<{
|
|
789
|
+
familyName: string;
|
|
790
|
+
givenName: string;
|
|
791
|
+
middleName: string;
|
|
792
|
+
nickname: string;
|
|
793
|
+
preferredUsername: string;
|
|
794
|
+
profile: string;
|
|
795
|
+
website: string;
|
|
796
|
+
gender: string;
|
|
797
|
+
birthdate: string;
|
|
798
|
+
zoneinfo: string;
|
|
799
|
+
locale: string;
|
|
800
|
+
address: Partial<{
|
|
801
|
+
formatted: string;
|
|
802
|
+
streetAddress: string;
|
|
803
|
+
locality: string;
|
|
804
|
+
region: string;
|
|
805
|
+
postalCode: string;
|
|
806
|
+
country: string;
|
|
807
|
+
}>;
|
|
808
|
+
}>;
|
|
809
|
+
} | undefined;
|
|
570
810
|
};
|
|
571
811
|
to: string;
|
|
812
|
+
ip?: string | undefined;
|
|
572
813
|
};
|
|
573
814
|
}, unknown>;
|
|
574
815
|
} & {
|
|
575
816
|
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
576
817
|
data: {
|
|
577
|
-
type: TemplateType
|
|
818
|
+
type: TemplateType;
|
|
578
819
|
to: string;
|
|
579
820
|
payload: {
|
|
580
821
|
code?: string | undefined;
|
|
581
822
|
link?: string | undefined;
|
|
582
|
-
|
|
823
|
+
locale?: string | undefined;
|
|
824
|
+
uiLocales?: string | undefined;
|
|
825
|
+
} & {
|
|
826
|
+
[k: string]: unknown;
|
|
827
|
+
};
|
|
828
|
+
ip?: string | undefined;
|
|
583
829
|
};
|
|
584
830
|
}, unknown>;
|
|
585
831
|
} & {
|
|
586
832
|
"/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
|
|
587
833
|
isTest?: string | undefined;
|
|
588
834
|
}, {
|
|
835
|
+
token: Record<string, Json>;
|
|
589
836
|
context: Record<string, Json>;
|
|
590
|
-
script: string;
|
|
591
837
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
592
|
-
|
|
838
|
+
script: string;
|
|
593
839
|
environmentVariables?: Record<string, string> | undefined;
|
|
594
840
|
} | {
|
|
595
|
-
script: string;
|
|
596
|
-
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
597
841
|
token: Record<string, Json>;
|
|
842
|
+
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
843
|
+
script: string;
|
|
598
844
|
environmentVariables?: Record<string, string> | undefined;
|
|
599
845
|
}, Record<string, unknown>>;
|
|
600
846
|
};
|
|
@@ -615,60 +861,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
615
861
|
};
|
|
616
862
|
copy: {};
|
|
617
863
|
head: {};
|
|
618
|
-
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
619
|
-
patch: {};
|
|
620
|
-
options: {};
|
|
621
|
-
get: {
|
|
622
|
-
"/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
623
|
-
id: string;
|
|
624
|
-
createdAt: Date;
|
|
625
|
-
name: string;
|
|
626
|
-
updatedAt: Date;
|
|
627
|
-
quota: {
|
|
628
|
-
mauLimit: number | null;
|
|
629
|
-
tokenLimit: number | null;
|
|
630
|
-
applicationsLimit: number | null;
|
|
631
|
-
machineToMachineLimit: number | null;
|
|
632
|
-
resourcesLimit: number | null;
|
|
633
|
-
scopesPerResourceLimit: number | null;
|
|
634
|
-
customDomainEnabled: boolean;
|
|
635
|
-
omniSignInEnabled: boolean;
|
|
636
|
-
builtInEmailConnectorEnabled: boolean;
|
|
637
|
-
socialConnectorsLimit: number | null;
|
|
638
|
-
standardConnectorsLimit: number | null;
|
|
639
|
-
rolesLimit: number | null;
|
|
640
|
-
machineToMachineRolesLimit: number | null;
|
|
641
|
-
scopesPerRoleLimit: number | null;
|
|
642
|
-
hooksLimit: number | null;
|
|
643
|
-
auditLogsRetentionDays: number | null;
|
|
644
|
-
mfaEnabled: boolean;
|
|
645
|
-
organizationsEnabled: boolean;
|
|
646
|
-
ssoEnabled: boolean;
|
|
647
|
-
thirdPartyApplicationsLimit: number | null;
|
|
648
|
-
tenantMembersLimit: number | null;
|
|
649
|
-
customJwtEnabled: boolean;
|
|
650
|
-
subjectTokenEnabled: boolean;
|
|
651
|
-
bringYourUiEnabled: boolean;
|
|
652
|
-
};
|
|
653
|
-
stripeProducts: {
|
|
654
|
-
type: "flat" | "tier1" | "tier2" | "tier3";
|
|
655
|
-
id: string;
|
|
656
|
-
name: string;
|
|
657
|
-
price: {
|
|
658
|
-
id: string;
|
|
659
|
-
unitAmountDecimal: string;
|
|
660
|
-
quantity?: 1 | undefined;
|
|
661
|
-
unitAmount?: number | null | undefined;
|
|
662
|
-
};
|
|
663
|
-
description?: string | undefined;
|
|
664
|
-
}[];
|
|
665
|
-
}[]>;
|
|
666
|
-
};
|
|
667
|
-
post: {};
|
|
668
|
-
put: {};
|
|
669
|
-
delete: {};
|
|
670
|
-
copy: {};
|
|
671
|
-
head: {};
|
|
672
864
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
673
865
|
patch: {};
|
|
674
866
|
options: {};
|
|
@@ -676,39 +868,156 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
676
868
|
"/skus": import("@withtyped/server").PathGuard<"/", {
|
|
677
869
|
type?: LogtoSkuType | undefined;
|
|
678
870
|
}, unknown, {
|
|
679
|
-
type: LogtoSkuType;
|
|
680
871
|
id: string;
|
|
681
872
|
name: string | null;
|
|
873
|
+
createdAt: Date;
|
|
874
|
+
defaultPriceId: string | null;
|
|
875
|
+
unitPrice: number | null;
|
|
876
|
+
type: LogtoSkuType;
|
|
682
877
|
quota: {
|
|
878
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
879
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
683
880
|
mauLimit?: number | null | undefined;
|
|
684
|
-
tokenLimit?: number | null | undefined;
|
|
685
881
|
applicationsLimit?: number | null | undefined;
|
|
686
|
-
|
|
687
|
-
resourcesLimit?: number | null | undefined;
|
|
882
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
688
883
|
scopesPerResourceLimit?: number | null | undefined;
|
|
689
884
|
socialConnectorsLimit?: number | null | undefined;
|
|
885
|
+
userRolesLimit?: number | null | undefined;
|
|
690
886
|
machineToMachineRolesLimit?: number | null | undefined;
|
|
691
887
|
scopesPerRoleLimit?: number | null | undefined;
|
|
692
888
|
hooksLimit?: number | null | undefined;
|
|
693
|
-
|
|
889
|
+
customJwtEnabled?: boolean | undefined;
|
|
890
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
891
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
892
|
+
tokenLimit?: number | null | undefined;
|
|
893
|
+
machineToMachineLimit?: number | null | undefined;
|
|
894
|
+
resourcesLimit?: number | null | undefined;
|
|
895
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
896
|
+
tenantMembersLimit?: number | null | undefined;
|
|
694
897
|
mfaEnabled?: boolean | undefined;
|
|
695
898
|
organizationsEnabled?: boolean | undefined;
|
|
899
|
+
organizationsLimit?: number | null | undefined;
|
|
900
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
901
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
902
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
903
|
+
customDomainsLimit?: number | null | undefined;
|
|
904
|
+
};
|
|
905
|
+
isDefault: boolean;
|
|
906
|
+
isDevPlan: boolean;
|
|
907
|
+
updatedAt: Date;
|
|
908
|
+
productId: string | null;
|
|
909
|
+
}[]>;
|
|
910
|
+
} & {
|
|
911
|
+
"/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, unknown, {
|
|
912
|
+
basicSkuId: string;
|
|
913
|
+
usageReportingType: UsageReportingType | null;
|
|
914
|
+
}>;
|
|
915
|
+
};
|
|
916
|
+
post: {
|
|
917
|
+
"/skus": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
918
|
+
type: LogtoSkuType;
|
|
919
|
+
quota: {
|
|
920
|
+
mauLimit?: number | null | undefined;
|
|
921
|
+
applicationsLimit?: number | null | undefined;
|
|
696
922
|
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
697
|
-
|
|
923
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
924
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
925
|
+
userRolesLimit?: number | null | undefined;
|
|
926
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
927
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
928
|
+
hooksLimit?: number | null | undefined;
|
|
929
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
698
930
|
customJwtEnabled?: boolean | undefined;
|
|
699
931
|
subjectTokenEnabled?: boolean | undefined;
|
|
700
932
|
bringYourUiEnabled?: boolean | undefined;
|
|
701
|
-
|
|
933
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
934
|
+
tokenLimit?: number | null | undefined;
|
|
935
|
+
machineToMachineLimit?: number | null | undefined;
|
|
936
|
+
resourcesLimit?: number | null | undefined;
|
|
702
937
|
enterpriseSsoLimit?: number | null | undefined;
|
|
938
|
+
tenantMembersLimit?: number | null | undefined;
|
|
939
|
+
mfaEnabled?: boolean | undefined;
|
|
940
|
+
organizationsEnabled?: boolean | undefined;
|
|
941
|
+
organizationsLimit?: number | null | undefined;
|
|
942
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
943
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
944
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
945
|
+
customDomainsLimit?: number | null | undefined;
|
|
703
946
|
};
|
|
947
|
+
id?: string | undefined;
|
|
948
|
+
isDefault?: boolean | undefined;
|
|
949
|
+
isDevPlan?: boolean | undefined;
|
|
950
|
+
usageReportingType?: UsageReportingType | undefined;
|
|
951
|
+
}, {
|
|
704
952
|
createdAt: Date;
|
|
953
|
+
id: string;
|
|
954
|
+
type: LogtoSkuType;
|
|
955
|
+
isDefault: boolean;
|
|
956
|
+
isDevPlan: boolean;
|
|
705
957
|
updatedAt: Date;
|
|
706
|
-
|
|
707
|
-
|
|
958
|
+
quota: {
|
|
959
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
960
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
961
|
+
mauLimit?: number | null | undefined;
|
|
962
|
+
applicationsLimit?: number | null | undefined;
|
|
963
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
964
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
965
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
966
|
+
userRolesLimit?: number | null | undefined;
|
|
967
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
968
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
969
|
+
hooksLimit?: number | null | undefined;
|
|
970
|
+
customJwtEnabled?: boolean | undefined;
|
|
971
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
972
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
973
|
+
tokenLimit?: number | null | undefined;
|
|
974
|
+
machineToMachineLimit?: number | null | undefined;
|
|
975
|
+
resourcesLimit?: number | null | undefined;
|
|
976
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
977
|
+
tenantMembersLimit?: number | null | undefined;
|
|
978
|
+
mfaEnabled?: boolean | undefined;
|
|
979
|
+
organizationsEnabled?: boolean | undefined;
|
|
980
|
+
organizationsLimit?: number | null | undefined;
|
|
981
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
982
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
983
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
984
|
+
customDomainsLimit?: number | null | undefined;
|
|
985
|
+
};
|
|
986
|
+
}>;
|
|
987
|
+
} & {
|
|
988
|
+
"/skus/:skuId/products": import("@withtyped/server").PathGuard<"/:skuId/products", {
|
|
989
|
+
isOneTime?: string | undefined;
|
|
990
|
+
}, {
|
|
991
|
+
name: string;
|
|
992
|
+
unitPrice: number;
|
|
993
|
+
}, {
|
|
994
|
+
productId: string;
|
|
995
|
+
}>;
|
|
996
|
+
} & {
|
|
997
|
+
"/skus/:basicSkuId/usage-add-on-relations": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations", unknown, {
|
|
998
|
+
usageKey: "mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit";
|
|
999
|
+
addOnSkuId: string;
|
|
1000
|
+
}, {
|
|
1001
|
+
usageKey: "mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit";
|
|
1002
|
+
basicSkuId: string;
|
|
1003
|
+
addOnSkuId: string;
|
|
1004
|
+
}>;
|
|
1005
|
+
};
|
|
1006
|
+
put: {
|
|
1007
|
+
"/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, {
|
|
1008
|
+
usageReportingType: UsageReportingType;
|
|
1009
|
+
}, {
|
|
1010
|
+
basicSkuId: string;
|
|
1011
|
+
usageReportingType: UsageReportingType;
|
|
1012
|
+
}>;
|
|
1013
|
+
};
|
|
1014
|
+
delete: {
|
|
1015
|
+
"/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
|
|
1016
|
+
} & {
|
|
1017
|
+
"/skus/:basicSkuId/usage-add-on-relations/:usageKey": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations/:usageKey", unknown, unknown, unknown>;
|
|
1018
|
+
} & {
|
|
1019
|
+
"/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, unknown, unknown>;
|
|
708
1020
|
};
|
|
709
|
-
post: {};
|
|
710
|
-
put: {};
|
|
711
|
-
delete: {};
|
|
712
1021
|
copy: {};
|
|
713
1022
|
head: {};
|
|
714
1023
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
@@ -716,25 +1025,24 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
716
1025
|
options: {};
|
|
717
1026
|
get: {
|
|
718
1027
|
"/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
|
|
719
|
-
|
|
1028
|
+
tenantId: string | null;
|
|
720
1029
|
createdAt: Date;
|
|
721
|
-
|
|
1030
|
+
id: string;
|
|
722
1031
|
status: "open" | "complete" | "expired";
|
|
723
|
-
tenantId: string | null;
|
|
724
1032
|
updatedAt: Date;
|
|
725
|
-
planId: string;
|
|
1033
|
+
planId: string | null;
|
|
726
1034
|
skuId: string | null;
|
|
1035
|
+
userId: string;
|
|
727
1036
|
}>;
|
|
728
1037
|
};
|
|
729
1038
|
post: {
|
|
730
1039
|
"/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
731
|
-
planId: string;
|
|
732
1040
|
successCallbackUrl: string;
|
|
733
1041
|
tenantId?: string | undefined;
|
|
734
1042
|
skuId?: string | undefined;
|
|
735
|
-
tenantName?: string | undefined;
|
|
736
1043
|
tenantTag?: TenantTag | undefined;
|
|
737
|
-
|
|
1044
|
+
tenantName?: string | undefined;
|
|
1045
|
+
tenantRegionName?: string | undefined;
|
|
738
1046
|
cancelCallbackUrl?: string | undefined;
|
|
739
1047
|
}, {
|
|
740
1048
|
sessionId: string;
|
|
@@ -745,66 +1053,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
745
1053
|
delete: {};
|
|
746
1054
|
copy: {};
|
|
747
1055
|
head: {};
|
|
748
|
-
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
749
|
-
patch: {};
|
|
750
|
-
options: {};
|
|
751
|
-
get: {
|
|
752
|
-
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, unknown, AffiliateData[]>;
|
|
753
|
-
};
|
|
754
|
-
post: {
|
|
755
|
-
"/affiliates": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
756
|
-
name: string;
|
|
757
|
-
}, {
|
|
758
|
-
id: string;
|
|
759
|
-
createdAt: Date;
|
|
760
|
-
name: string;
|
|
761
|
-
}>;
|
|
762
|
-
} & {
|
|
763
|
-
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
764
|
-
type: "hostname" | "query";
|
|
765
|
-
value: string;
|
|
766
|
-
}, {
|
|
767
|
-
createdAt: Date;
|
|
768
|
-
affiliateId: string;
|
|
769
|
-
type: "hostname" | "query";
|
|
770
|
-
value: string;
|
|
771
|
-
}>;
|
|
772
|
-
};
|
|
773
|
-
put: {};
|
|
774
|
-
delete: {
|
|
775
|
-
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
776
|
-
type: "hostname" | "query";
|
|
777
|
-
value: string;
|
|
778
|
-
}, unknown>;
|
|
779
|
-
};
|
|
780
|
-
copy: {};
|
|
781
|
-
head: {};
|
|
782
|
-
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
783
|
-
patch: {};
|
|
784
|
-
options: {};
|
|
785
|
-
get: {};
|
|
786
|
-
post: {
|
|
787
|
-
"/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
788
|
-
createdAt: string;
|
|
789
|
-
userId: string;
|
|
790
|
-
hostname?: string | undefined;
|
|
791
|
-
query?: string | undefined;
|
|
792
|
-
}, {
|
|
793
|
-
id: string;
|
|
794
|
-
createdAt: Date;
|
|
795
|
-
affiliateId: string | null;
|
|
796
|
-
userId: string;
|
|
797
|
-
createdVia: {
|
|
798
|
-
createdAt: string;
|
|
799
|
-
hostname?: string | undefined;
|
|
800
|
-
query?: string | undefined;
|
|
801
|
-
};
|
|
802
|
-
}>;
|
|
803
|
-
};
|
|
804
|
-
put: {};
|
|
805
|
-
delete: {};
|
|
806
|
-
copy: {};
|
|
807
|
-
head: {};
|
|
808
1056
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
809
1057
|
patch: {
|
|
810
1058
|
"/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:invitationId/status", unknown, {
|
|
@@ -814,10 +1062,10 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
814
1062
|
options: {};
|
|
815
1063
|
get: {
|
|
816
1064
|
"/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
|
|
817
|
-
|
|
1065
|
+
tenantId: string;
|
|
818
1066
|
createdAt: number;
|
|
1067
|
+
id: string;
|
|
819
1068
|
status: OrganizationInvitationStatus;
|
|
820
|
-
tenantId: string;
|
|
821
1069
|
updatedAt: number;
|
|
822
1070
|
inviterId: string | null;
|
|
823
1071
|
invitee: string;
|
|
@@ -826,15 +1074,15 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
826
1074
|
expiresAt: number;
|
|
827
1075
|
organizationRoles: OrganizationRoleEntity[];
|
|
828
1076
|
} & {
|
|
829
|
-
tenantName: string;
|
|
830
1077
|
tenantTag: TenantTag;
|
|
1078
|
+
tenantName: string;
|
|
831
1079
|
})[]>;
|
|
832
1080
|
} & {
|
|
833
1081
|
"/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
|
|
834
|
-
|
|
1082
|
+
tenantId: string;
|
|
835
1083
|
createdAt: number;
|
|
1084
|
+
id: string;
|
|
836
1085
|
status: OrganizationInvitationStatus;
|
|
837
|
-
tenantId: string;
|
|
838
1086
|
updatedAt: number;
|
|
839
1087
|
inviterId: string | null;
|
|
840
1088
|
invitee: string;
|
|
@@ -849,6 +1097,189 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
849
1097
|
delete: {};
|
|
850
1098
|
copy: {};
|
|
851
1099
|
head: {};
|
|
1100
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1101
|
+
patch: {
|
|
1102
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, {
|
|
1103
|
+
limits: {
|
|
1104
|
+
applicationsLimit?: number | undefined;
|
|
1105
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1106
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1107
|
+
socialConnectorsLimit?: number | undefined;
|
|
1108
|
+
userRolesLimit?: number | undefined;
|
|
1109
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1110
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1111
|
+
hooksLimit?: number | undefined;
|
|
1112
|
+
machineToMachineLimit?: number | undefined;
|
|
1113
|
+
resourcesLimit?: number | undefined;
|
|
1114
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1115
|
+
tenantMembersLimit?: number | undefined;
|
|
1116
|
+
organizationsLimit?: number | undefined;
|
|
1117
|
+
samlApplicationsLimit?: number | undefined;
|
|
1118
|
+
customDomainsLimit?: number | undefined;
|
|
1119
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1120
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1121
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1122
|
+
organizationScopesLimit?: number | undefined;
|
|
1123
|
+
};
|
|
1124
|
+
}, {
|
|
1125
|
+
createdAt: Date;
|
|
1126
|
+
id: string;
|
|
1127
|
+
updatedAt: Date;
|
|
1128
|
+
limits: {
|
|
1129
|
+
applicationsLimit?: number | undefined;
|
|
1130
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1131
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1132
|
+
socialConnectorsLimit?: number | undefined;
|
|
1133
|
+
userRolesLimit?: number | undefined;
|
|
1134
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1135
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1136
|
+
hooksLimit?: number | undefined;
|
|
1137
|
+
machineToMachineLimit?: number | undefined;
|
|
1138
|
+
resourcesLimit?: number | undefined;
|
|
1139
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1140
|
+
tenantMembersLimit?: number | undefined;
|
|
1141
|
+
organizationsLimit?: number | undefined;
|
|
1142
|
+
samlApplicationsLimit?: number | undefined;
|
|
1143
|
+
customDomainsLimit?: number | undefined;
|
|
1144
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1145
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1146
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1147
|
+
organizationScopesLimit?: number | undefined;
|
|
1148
|
+
};
|
|
1149
|
+
}>;
|
|
1150
|
+
};
|
|
1151
|
+
options: {};
|
|
1152
|
+
get: {
|
|
1153
|
+
"/system-limits": import("@withtyped/server").PathGuard<"/", {
|
|
1154
|
+
basicSkuId?: string | undefined;
|
|
1155
|
+
}, unknown, {
|
|
1156
|
+
createdAt: Date;
|
|
1157
|
+
id: string;
|
|
1158
|
+
updatedAt: Date;
|
|
1159
|
+
limits: {
|
|
1160
|
+
applicationsLimit?: number | undefined;
|
|
1161
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1162
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1163
|
+
socialConnectorsLimit?: number | undefined;
|
|
1164
|
+
userRolesLimit?: number | undefined;
|
|
1165
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1166
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1167
|
+
hooksLimit?: number | undefined;
|
|
1168
|
+
machineToMachineLimit?: number | undefined;
|
|
1169
|
+
resourcesLimit?: number | undefined;
|
|
1170
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1171
|
+
tenantMembersLimit?: number | undefined;
|
|
1172
|
+
organizationsLimit?: number | undefined;
|
|
1173
|
+
samlApplicationsLimit?: number | undefined;
|
|
1174
|
+
customDomainsLimit?: number | undefined;
|
|
1175
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1176
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1177
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1178
|
+
organizationScopesLimit?: number | undefined;
|
|
1179
|
+
};
|
|
1180
|
+
basicSkuIds: string[];
|
|
1181
|
+
}[]>;
|
|
1182
|
+
} & {
|
|
1183
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
|
|
1184
|
+
createdAt: Date;
|
|
1185
|
+
id: string;
|
|
1186
|
+
updatedAt: Date;
|
|
1187
|
+
limits: {
|
|
1188
|
+
applicationsLimit?: number | undefined;
|
|
1189
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1190
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1191
|
+
socialConnectorsLimit?: number | undefined;
|
|
1192
|
+
userRolesLimit?: number | undefined;
|
|
1193
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1194
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1195
|
+
hooksLimit?: number | undefined;
|
|
1196
|
+
machineToMachineLimit?: number | undefined;
|
|
1197
|
+
resourcesLimit?: number | undefined;
|
|
1198
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1199
|
+
tenantMembersLimit?: number | undefined;
|
|
1200
|
+
organizationsLimit?: number | undefined;
|
|
1201
|
+
samlApplicationsLimit?: number | undefined;
|
|
1202
|
+
customDomainsLimit?: number | undefined;
|
|
1203
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1204
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1205
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1206
|
+
organizationScopesLimit?: number | undefined;
|
|
1207
|
+
};
|
|
1208
|
+
basicSkuIds: string[];
|
|
1209
|
+
}>;
|
|
1210
|
+
};
|
|
1211
|
+
post: {
|
|
1212
|
+
"/system-limits": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
1213
|
+
limits: {
|
|
1214
|
+
applicationsLimit?: number | undefined;
|
|
1215
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1216
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1217
|
+
socialConnectorsLimit?: number | undefined;
|
|
1218
|
+
userRolesLimit?: number | undefined;
|
|
1219
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1220
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1221
|
+
hooksLimit?: number | undefined;
|
|
1222
|
+
machineToMachineLimit?: number | undefined;
|
|
1223
|
+
resourcesLimit?: number | undefined;
|
|
1224
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1225
|
+
tenantMembersLimit?: number | undefined;
|
|
1226
|
+
organizationsLimit?: number | undefined;
|
|
1227
|
+
samlApplicationsLimit?: number | undefined;
|
|
1228
|
+
customDomainsLimit?: number | undefined;
|
|
1229
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1230
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1231
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1232
|
+
organizationScopesLimit?: number | undefined;
|
|
1233
|
+
};
|
|
1234
|
+
id?: string | undefined;
|
|
1235
|
+
}, {
|
|
1236
|
+
createdAt: Date;
|
|
1237
|
+
id: string;
|
|
1238
|
+
updatedAt: Date;
|
|
1239
|
+
limits: {
|
|
1240
|
+
applicationsLimit?: number | undefined;
|
|
1241
|
+
thirdPartyApplicationsLimit?: number | undefined;
|
|
1242
|
+
scopesPerResourceLimit?: number | undefined;
|
|
1243
|
+
socialConnectorsLimit?: number | undefined;
|
|
1244
|
+
userRolesLimit?: number | undefined;
|
|
1245
|
+
machineToMachineRolesLimit?: number | undefined;
|
|
1246
|
+
scopesPerRoleLimit?: number | undefined;
|
|
1247
|
+
hooksLimit?: number | undefined;
|
|
1248
|
+
machineToMachineLimit?: number | undefined;
|
|
1249
|
+
resourcesLimit?: number | undefined;
|
|
1250
|
+
enterpriseSsoLimit?: number | undefined;
|
|
1251
|
+
tenantMembersLimit?: number | undefined;
|
|
1252
|
+
organizationsLimit?: number | undefined;
|
|
1253
|
+
samlApplicationsLimit?: number | undefined;
|
|
1254
|
+
customDomainsLimit?: number | undefined;
|
|
1255
|
+
usersPerOrganizationLimit?: number | undefined;
|
|
1256
|
+
organizationUserRolesLimit?: number | undefined;
|
|
1257
|
+
organizationMachineToMachineRolesLimit?: number | undefined;
|
|
1258
|
+
organizationScopesLimit?: number | undefined;
|
|
1259
|
+
};
|
|
1260
|
+
}>;
|
|
1261
|
+
} & {
|
|
1262
|
+
"/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
|
|
1263
|
+
basicSkuIds: string[];
|
|
1264
|
+
}, {
|
|
1265
|
+
relations: {
|
|
1266
|
+
createdAt: Date;
|
|
1267
|
+
updatedAt: Date;
|
|
1268
|
+
basicSkuId: string;
|
|
1269
|
+
systemLimitId: string;
|
|
1270
|
+
}[];
|
|
1271
|
+
}>;
|
|
1272
|
+
};
|
|
1273
|
+
put: {};
|
|
1274
|
+
delete: {
|
|
1275
|
+
"/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, unknown>;
|
|
1276
|
+
} & {
|
|
1277
|
+
"/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
|
|
1278
|
+
basicSkuIds: string[];
|
|
1279
|
+
}, unknown>;
|
|
1280
|
+
};
|
|
1281
|
+
copy: {};
|
|
1282
|
+
head: {};
|
|
852
1283
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
853
1284
|
patch: {};
|
|
854
1285
|
options: {};
|
|
@@ -860,6 +1291,248 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
860
1291
|
};
|
|
861
1292
|
copy: {};
|
|
862
1293
|
head: {};
|
|
1294
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1295
|
+
patch: {
|
|
1296
|
+
"/me/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
|
|
1297
|
+
role: DatabaseRegionAccessRole;
|
|
1298
|
+
}, {
|
|
1299
|
+
role: DatabaseRegionAccessRole;
|
|
1300
|
+
userId: string;
|
|
1301
|
+
}>;
|
|
1302
|
+
};
|
|
1303
|
+
options: {};
|
|
1304
|
+
get: {
|
|
1305
|
+
"/me/regions": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
1306
|
+
regions: {
|
|
1307
|
+
id: string;
|
|
1308
|
+
name: string;
|
|
1309
|
+
country: string;
|
|
1310
|
+
displayName: string;
|
|
1311
|
+
tags: TenantTag[];
|
|
1312
|
+
isPrivate: boolean;
|
|
1313
|
+
customTenantIdPrefix: string | null;
|
|
1314
|
+
}[];
|
|
1315
|
+
}>;
|
|
1316
|
+
} & {
|
|
1317
|
+
"/me/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
|
|
1318
|
+
users: {
|
|
1319
|
+
role: DatabaseRegionAccessRole;
|
|
1320
|
+
userId: string;
|
|
1321
|
+
}[];
|
|
1322
|
+
}>;
|
|
1323
|
+
};
|
|
1324
|
+
post: {
|
|
1325
|
+
"/me/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
|
|
1326
|
+
role: DatabaseRegionAccessRole;
|
|
1327
|
+
userId: string;
|
|
1328
|
+
}, {
|
|
1329
|
+
role: DatabaseRegionAccessRole;
|
|
1330
|
+
userId: string;
|
|
1331
|
+
}>;
|
|
1332
|
+
};
|
|
1333
|
+
put: {};
|
|
1334
|
+
delete: {
|
|
1335
|
+
"/me/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
|
|
1336
|
+
};
|
|
1337
|
+
copy: {};
|
|
1338
|
+
head: {};
|
|
1339
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
1340
|
+
patch: {};
|
|
1341
|
+
options: {};
|
|
1342
|
+
get: {
|
|
1343
|
+
"/me/logto-enterprises": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
1344
|
+
logtoEnterprises: {
|
|
1345
|
+
createdAt: Date;
|
|
1346
|
+
id: string;
|
|
1347
|
+
name: string | null;
|
|
1348
|
+
updatedAt: Date;
|
|
1349
|
+
quotaScope: QuotaScope;
|
|
1350
|
+
}[];
|
|
1351
|
+
}>;
|
|
1352
|
+
} & {
|
|
1353
|
+
"/me/logto-enterprises/:id": import("@withtyped/server").PathGuard<"/:id", {
|
|
1354
|
+
includeSharedQuota?: string | undefined;
|
|
1355
|
+
includeUsages?: string | undefined;
|
|
1356
|
+
includeSkuItems?: string | undefined;
|
|
1357
|
+
}, unknown, {
|
|
1358
|
+
createdAt: Date;
|
|
1359
|
+
id: string;
|
|
1360
|
+
name: string | null;
|
|
1361
|
+
updatedAt: Date;
|
|
1362
|
+
regionNames: string[];
|
|
1363
|
+
quotaScope: QuotaScope;
|
|
1364
|
+
quota?: {
|
|
1365
|
+
usageReportingType: UsageReportingType;
|
|
1366
|
+
basicQuota: {
|
|
1367
|
+
auditLogsRetentionDays: number | null;
|
|
1368
|
+
subjectTokenEnabled: boolean;
|
|
1369
|
+
mauLimit: number | null;
|
|
1370
|
+
applicationsLimit: number | null;
|
|
1371
|
+
thirdPartyApplicationsLimit: number | null;
|
|
1372
|
+
scopesPerResourceLimit: number | null;
|
|
1373
|
+
socialConnectorsLimit: number | null;
|
|
1374
|
+
userRolesLimit: number | null;
|
|
1375
|
+
machineToMachineRolesLimit: number | null;
|
|
1376
|
+
scopesPerRoleLimit: number | null;
|
|
1377
|
+
hooksLimit: number | null;
|
|
1378
|
+
customJwtEnabled: boolean;
|
|
1379
|
+
bringYourUiEnabled: boolean;
|
|
1380
|
+
collectUserProfileEnabled: boolean;
|
|
1381
|
+
tokenLimit: number | null;
|
|
1382
|
+
machineToMachineLimit: number | null;
|
|
1383
|
+
resourcesLimit: number | null;
|
|
1384
|
+
enterpriseSsoLimit: number | null;
|
|
1385
|
+
tenantMembersLimit: number | null;
|
|
1386
|
+
mfaEnabled: boolean;
|
|
1387
|
+
organizationsEnabled: boolean;
|
|
1388
|
+
organizationsLimit: number | null;
|
|
1389
|
+
securityFeaturesEnabled: boolean;
|
|
1390
|
+
idpInitiatedSsoEnabled: boolean;
|
|
1391
|
+
samlApplicationsLimit: number | null;
|
|
1392
|
+
customDomainsLimit: number | null;
|
|
1393
|
+
};
|
|
1394
|
+
aggregatedQuota: {
|
|
1395
|
+
auditLogsRetentionDays: number | null;
|
|
1396
|
+
subjectTokenEnabled: boolean;
|
|
1397
|
+
mauLimit: number | null;
|
|
1398
|
+
applicationsLimit: number | null;
|
|
1399
|
+
thirdPartyApplicationsLimit: number | null;
|
|
1400
|
+
scopesPerResourceLimit: number | null;
|
|
1401
|
+
socialConnectorsLimit: number | null;
|
|
1402
|
+
userRolesLimit: number | null;
|
|
1403
|
+
machineToMachineRolesLimit: number | null;
|
|
1404
|
+
scopesPerRoleLimit: number | null;
|
|
1405
|
+
hooksLimit: number | null;
|
|
1406
|
+
customJwtEnabled: boolean;
|
|
1407
|
+
bringYourUiEnabled: boolean;
|
|
1408
|
+
collectUserProfileEnabled: boolean;
|
|
1409
|
+
tokenLimit: number | null;
|
|
1410
|
+
machineToMachineLimit: number | null;
|
|
1411
|
+
resourcesLimit: number | null;
|
|
1412
|
+
enterpriseSsoLimit: number | null;
|
|
1413
|
+
tenantMembersLimit: number | null;
|
|
1414
|
+
mfaEnabled: boolean;
|
|
1415
|
+
organizationsEnabled: boolean;
|
|
1416
|
+
organizationsLimit: number | null;
|
|
1417
|
+
securityFeaturesEnabled: boolean;
|
|
1418
|
+
idpInitiatedSsoEnabled: boolean;
|
|
1419
|
+
samlApplicationsLimit: number | null;
|
|
1420
|
+
customDomainsLimit: number | null;
|
|
1421
|
+
};
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
subscription?: {
|
|
1424
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
1425
|
+
currentPeriodStart: Date;
|
|
1426
|
+
currentPeriodEnd: Date;
|
|
1427
|
+
quotaScope: "dedicated" | "shared";
|
|
1428
|
+
isEnterprisePlan: boolean;
|
|
1429
|
+
id?: string | undefined;
|
|
1430
|
+
upcomingInvoice?: {
|
|
1431
|
+
subtotal: number;
|
|
1432
|
+
subtotalExcludingTax: number | null;
|
|
1433
|
+
total: number;
|
|
1434
|
+
totalExcludingTax: number | null;
|
|
1435
|
+
} | null | undefined;
|
|
1436
|
+
} | undefined;
|
|
1437
|
+
usages?: {
|
|
1438
|
+
mauLimit: number;
|
|
1439
|
+
applicationsLimit: number;
|
|
1440
|
+
thirdPartyApplicationsLimit: number;
|
|
1441
|
+
socialConnectorsLimit: number;
|
|
1442
|
+
userRolesLimit: number;
|
|
1443
|
+
machineToMachineRolesLimit: number;
|
|
1444
|
+
hooksLimit: number;
|
|
1445
|
+
customJwtEnabled: boolean;
|
|
1446
|
+
bringYourUiEnabled: boolean;
|
|
1447
|
+
collectUserProfileEnabled: boolean;
|
|
1448
|
+
tokenLimit: number;
|
|
1449
|
+
machineToMachineLimit: number;
|
|
1450
|
+
resourcesLimit: number;
|
|
1451
|
+
enterpriseSsoLimit: number;
|
|
1452
|
+
tenantMembersLimit: number;
|
|
1453
|
+
mfaEnabled: boolean;
|
|
1454
|
+
organizationsEnabled: boolean;
|
|
1455
|
+
organizationsLimit: number;
|
|
1456
|
+
securityFeaturesEnabled: boolean;
|
|
1457
|
+
idpInitiatedSsoEnabled: boolean;
|
|
1458
|
+
samlApplicationsLimit: number;
|
|
1459
|
+
customDomainsLimit: number;
|
|
1460
|
+
userTokenLimit: number;
|
|
1461
|
+
m2mTokenLimit: number;
|
|
1462
|
+
} | undefined;
|
|
1463
|
+
subscriptionSkuItems?: {
|
|
1464
|
+
count: number;
|
|
1465
|
+
logtoSkuId: string;
|
|
1466
|
+
type: LogtoSkuType;
|
|
1467
|
+
isDevPlan: boolean;
|
|
1468
|
+
quota: {
|
|
1469
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
1470
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
1471
|
+
mauLimit?: number | null | undefined;
|
|
1472
|
+
applicationsLimit?: number | null | undefined;
|
|
1473
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
1474
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
1475
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
1476
|
+
userRolesLimit?: number | null | undefined;
|
|
1477
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
1478
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
1479
|
+
hooksLimit?: number | null | undefined;
|
|
1480
|
+
customJwtEnabled?: boolean | undefined;
|
|
1481
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
1482
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
1483
|
+
tokenLimit?: number | null | undefined;
|
|
1484
|
+
machineToMachineLimit?: number | null | undefined;
|
|
1485
|
+
resourcesLimit?: number | null | undefined;
|
|
1486
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
1487
|
+
tenantMembersLimit?: number | null | undefined;
|
|
1488
|
+
mfaEnabled?: boolean | undefined;
|
|
1489
|
+
organizationsEnabled?: boolean | undefined;
|
|
1490
|
+
organizationsLimit?: number | null | undefined;
|
|
1491
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
1492
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
1493
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
1494
|
+
customDomainsLimit?: number | null | undefined;
|
|
1495
|
+
};
|
|
1496
|
+
unitPrice?: number | null | undefined;
|
|
1497
|
+
}[] | undefined;
|
|
1498
|
+
}>;
|
|
1499
|
+
} & {
|
|
1500
|
+
"/me/logto-enterprises/:id/invoices": import("@withtyped/server").PathGuard<"/:id/invoices", unknown, unknown, {
|
|
1501
|
+
invoices: {
|
|
1502
|
+
createdAt: Date;
|
|
1503
|
+
id: string;
|
|
1504
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
|
|
1505
|
+
updatedAt: Date;
|
|
1506
|
+
customerId: string | null;
|
|
1507
|
+
basicSkuId: string | null;
|
|
1508
|
+
billingReason: string | null;
|
|
1509
|
+
periodStart: Date;
|
|
1510
|
+
periodEnd: Date;
|
|
1511
|
+
amountDue: number;
|
|
1512
|
+
amountPaid: number;
|
|
1513
|
+
subscriptionId: string | null;
|
|
1514
|
+
hostedInvoiceUrl: string | null;
|
|
1515
|
+
invoicePdf: string | null;
|
|
1516
|
+
collectionMethod: "charge_automatically" | "send_invoice" | null;
|
|
1517
|
+
dueDate: Date | null;
|
|
1518
|
+
}[];
|
|
1519
|
+
}>;
|
|
1520
|
+
} & {
|
|
1521
|
+
"/me/logto-enterprises/:enterpriseId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:enterpriseId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
1522
|
+
hostedInvoiceUrl: string;
|
|
1523
|
+
}>;
|
|
1524
|
+
};
|
|
1525
|
+
post: {
|
|
1526
|
+
"/me/logto-enterprises/:id/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:id/stripe-customer-portal", unknown, {
|
|
1527
|
+
callbackUrl?: string | undefined;
|
|
1528
|
+
}, {
|
|
1529
|
+
redirectUri: string;
|
|
1530
|
+
}>;
|
|
1531
|
+
};
|
|
1532
|
+
put: {};
|
|
1533
|
+
delete: {};
|
|
1534
|
+
copy: {};
|
|
1535
|
+
head: {};
|
|
863
1536
|
}, "/api">>, "/api">;
|
|
864
1537
|
export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
|
|
865
1538
|
request: {
|
|
@@ -874,10 +1547,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
|
|
|
874
1547
|
"/:tenantId/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/status", unknown, {
|
|
875
1548
|
status: OrganizationInvitationStatus.Revoked;
|
|
876
1549
|
}, {
|
|
877
|
-
|
|
1550
|
+
tenantId: string;
|
|
878
1551
|
createdAt: number;
|
|
1552
|
+
id: string;
|
|
879
1553
|
status: OrganizationInvitationStatus;
|
|
880
|
-
tenantId: string;
|
|
881
1554
|
updatedAt: number;
|
|
882
1555
|
inviterId: string | null;
|
|
883
1556
|
invitee: string;
|
|
@@ -902,10 +1575,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
|
|
|
902
1575
|
"/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
|
|
903
1576
|
} & {
|
|
904
1577
|
"/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
|
|
905
|
-
|
|
1578
|
+
tenantId: string;
|
|
906
1579
|
createdAt: number;
|
|
1580
|
+
id: string;
|
|
907
1581
|
status: OrganizationInvitationStatus;
|
|
908
|
-
tenantId: string;
|
|
909
1582
|
updatedAt: number;
|
|
910
1583
|
inviterId: string | null;
|
|
911
1584
|
invitee: string;
|
|
@@ -923,10 +1596,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
|
|
|
923
1596
|
roleName: TenantRole;
|
|
924
1597
|
expiresAt?: number | undefined;
|
|
925
1598
|
}, {
|
|
926
|
-
|
|
1599
|
+
tenantId: string;
|
|
927
1600
|
createdAt: number;
|
|
1601
|
+
id: string;
|
|
928
1602
|
status: OrganizationInvitationStatus;
|
|
929
|
-
tenantId: string;
|
|
930
1603
|
updatedAt: number;
|
|
931
1604
|
inviterId: string | null;
|
|
932
1605
|
invitee: string;
|
|
@@ -935,10 +1608,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
|
|
|
935
1608
|
expiresAt: number;
|
|
936
1609
|
organizationRoles: OrganizationRoleEntity[];
|
|
937
1610
|
} | {
|
|
938
|
-
|
|
1611
|
+
tenantId: string;
|
|
939
1612
|
createdAt: number;
|
|
1613
|
+
id: string;
|
|
940
1614
|
status: OrganizationInvitationStatus;
|
|
941
|
-
tenantId: string;
|
|
942
1615
|
updatedAt: number;
|
|
943
1616
|
inviterId: string | null;
|
|
944
1617
|
invitee: string;
|