@logto/cloud 0.2.5-4f1d80b → 0.2.5-5deb133

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.
@@ -0,0 +1,419 @@
1
+ // Generated by dts-bundle-generator v8.0.1
2
+
3
+ import { RequestContext } from '@withtyped/server';
4
+ import { InferModelType } from '@withtyped/server/model';
5
+
6
+ export type WithAuthContext<Context = RequestContext> = Context & {
7
+ auth: {
8
+ id: string;
9
+ scopes: string[];
10
+ };
11
+ };
12
+ declare enum VerificationCodeType {
13
+ SignIn = "SignIn",
14
+ Register = "Register",
15
+ ForgotPassword = "ForgotPassword",
16
+ Generic = "Generic",
17
+ /** @deprecated Use `Generic` type template for sending test sms/email use case */
18
+ Test = "Test"
19
+ }
20
+ declare enum TenantTag {
21
+ Development = "development",
22
+ Staging = "staging",
23
+ Production = "production"
24
+ }
25
+ declare const AffiliateProperties: import("@withtyped/server/model").default<"affiliate_properties", {
26
+ createdAt: Date;
27
+ affiliateId: string;
28
+ type: "hostname" | "query";
29
+ value: string;
30
+ }, "createdAt", "createdAt">;
31
+ export type AffiliateProperty = InferModelType<typeof AffiliateProperties>;
32
+ declare const Affiliates: import("@withtyped/server/model").default<"affiliates", {
33
+ id: string;
34
+ createdAt: Date;
35
+ name: string;
36
+ }, "createdAt" | "id", "createdAt" | "id">;
37
+ export type Affiliate = InferModelType<typeof Affiliates>;
38
+ export type AffiliateData = Affiliate & {
39
+ properties: Array<Pick<AffiliateProperty, "type" | "value">>;
40
+ };
41
+ declare const router: import("@withtyped/server").Router<WithAuthContext, 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<{
42
+ options: {};
43
+ patch: {
44
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
45
+ name?: string | undefined;
46
+ }, {
47
+ id: string;
48
+ name: string;
49
+ indicator: string;
50
+ isSuspended: boolean;
51
+ planId: string;
52
+ subscription: {
53
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
54
+ planId: string;
55
+ currentPeriodStart: Date;
56
+ currentPeriodEnd: Date;
57
+ };
58
+ tag: TenantTag;
59
+ usage: {
60
+ activeUsers: number;
61
+ cost: number;
62
+ };
63
+ openInvoices: {
64
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
65
+ createdAt: Date;
66
+ id: string;
67
+ updatedAt: Date;
68
+ customerId: string | null;
69
+ billingReason: string | null;
70
+ periodStart: Date;
71
+ periodEnd: Date;
72
+ amountDue: number;
73
+ amountPaid: number;
74
+ subscriptionId: string | null;
75
+ hostedInvoiceUrl: string | null;
76
+ invoicePdf: string | null;
77
+ }[];
78
+ }>;
79
+ };
80
+ get: {
81
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
82
+ id: string;
83
+ name: string;
84
+ indicator: string;
85
+ isSuspended: boolean;
86
+ planId: string;
87
+ subscription: {
88
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
89
+ planId: string;
90
+ currentPeriodStart: Date;
91
+ currentPeriodEnd: Date;
92
+ };
93
+ tag: TenantTag;
94
+ usage: {
95
+ activeUsers: number;
96
+ cost: number;
97
+ };
98
+ openInvoices: {
99
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
100
+ createdAt: Date;
101
+ id: string;
102
+ updatedAt: Date;
103
+ customerId: string | null;
104
+ billingReason: string | null;
105
+ periodStart: Date;
106
+ periodEnd: Date;
107
+ amountDue: number;
108
+ amountPaid: number;
109
+ subscriptionId: string | null;
110
+ hostedInvoiceUrl: string | null;
111
+ invoicePdf: string | null;
112
+ }[];
113
+ }[]>;
114
+ };
115
+ post: {
116
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
117
+ name?: string | undefined;
118
+ tag?: TenantTag | undefined;
119
+ }, {
120
+ id: string;
121
+ name: string;
122
+ indicator: string;
123
+ isSuspended: boolean;
124
+ planId: string;
125
+ subscription: {
126
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
127
+ planId: string;
128
+ currentPeriodStart: Date;
129
+ currentPeriodEnd: Date;
130
+ };
131
+ tag: TenantTag;
132
+ usage: {
133
+ activeUsers: number;
134
+ cost: number;
135
+ };
136
+ openInvoices: {
137
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
138
+ createdAt: Date;
139
+ id: string;
140
+ updatedAt: Date;
141
+ customerId: string | null;
142
+ billingReason: string | null;
143
+ periodStart: Date;
144
+ periodEnd: Date;
145
+ amountDue: number;
146
+ amountPaid: number;
147
+ subscriptionId: string | null;
148
+ hostedInvoiceUrl: string | null;
149
+ invoicePdf: string | null;
150
+ }[];
151
+ }>;
152
+ };
153
+ put: {};
154
+ delete: {
155
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
156
+ };
157
+ copy: {};
158
+ head: {};
159
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
160
+ options: {};
161
+ patch: {};
162
+ get: {
163
+ "/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
164
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
165
+ planId: string;
166
+ currentPeriodStart: Date;
167
+ currentPeriodEnd: Date;
168
+ }>;
169
+ } & {
170
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
171
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
172
+ planId: string;
173
+ currentPeriodStart: Date;
174
+ currentPeriodEnd: Date;
175
+ }>;
176
+ } & {
177
+ "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
178
+ invoices: {
179
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
180
+ createdAt: Date;
181
+ id: string;
182
+ updatedAt: Date;
183
+ customerId: string | null;
184
+ billingReason: string | null;
185
+ periodStart: Date;
186
+ periodEnd: Date;
187
+ amountDue: number;
188
+ amountPaid: number;
189
+ subscriptionId: string | null;
190
+ hostedInvoiceUrl: string | null;
191
+ invoicePdf: string | null;
192
+ planName: string | null;
193
+ }[];
194
+ }>;
195
+ } & {
196
+ "/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
197
+ hostedInvoiceUrl: string;
198
+ }>;
199
+ } & {
200
+ "/tenants/:tenantId/usage": import("@withtyped/server").PathGuard<"/:tenantId/usage", unknown, unknown, {
201
+ activeUsers: number;
202
+ cost: number;
203
+ }>;
204
+ };
205
+ post: {
206
+ "/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
207
+ callbackUrl?: string | undefined;
208
+ }, {
209
+ redirectUri: string;
210
+ }>;
211
+ };
212
+ put: {};
213
+ delete: {
214
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
215
+ };
216
+ copy: {};
217
+ head: {};
218
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
219
+ options: {};
220
+ patch: {};
221
+ get: {
222
+ "/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
223
+ from?: string | undefined;
224
+ }, unknown, {
225
+ count: number;
226
+ }>;
227
+ };
228
+ post: {
229
+ "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
230
+ data: {
231
+ type: VerificationCodeType;
232
+ payload: {
233
+ code: string;
234
+ senderName?: string | undefined;
235
+ companyInformation?: string | undefined;
236
+ appLogo?: string | undefined;
237
+ };
238
+ to: string;
239
+ };
240
+ }, unknown>;
241
+ } & {
242
+ "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
243
+ data: {
244
+ type: VerificationCodeType;
245
+ to: string;
246
+ payload: {
247
+ code: string;
248
+ };
249
+ };
250
+ }, unknown>;
251
+ };
252
+ put: {};
253
+ delete: {};
254
+ copy: {};
255
+ head: {};
256
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
257
+ options: {};
258
+ patch: {};
259
+ get: {
260
+ "/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
261
+ createdAt: Date;
262
+ id: string;
263
+ name: string;
264
+ quota: {
265
+ mauLimit: number | null;
266
+ tokenLimit: number | null;
267
+ applicationsLimit: number | null;
268
+ machineToMachineLimit: number | null;
269
+ resourcesLimit: number | null;
270
+ scopesPerResourceLimit: number | null;
271
+ customDomainEnabled: boolean;
272
+ omniSignInEnabled: boolean;
273
+ builtInEmailConnectorEnabled: boolean;
274
+ socialConnectorsLimit: number | null;
275
+ standardConnectorsLimit: number | null;
276
+ rolesLimit: number | null;
277
+ machineToMachineRolesLimit: number | null;
278
+ scopesPerRoleLimit: number | null;
279
+ hooksLimit: number | null;
280
+ auditLogsRetentionDays: number | null;
281
+ mfaEnabled: boolean;
282
+ organizationsEnabled: boolean;
283
+ ssoEnabled: boolean;
284
+ };
285
+ stripeProducts: {
286
+ type: "flat" | "tier1" | "tier2" | "tier3";
287
+ id: string;
288
+ name: string;
289
+ price: {
290
+ id: string;
291
+ unitAmountDecimal: string;
292
+ quantity?: 1 | undefined;
293
+ unitAmount?: number | null | undefined;
294
+ };
295
+ description?: string | undefined;
296
+ }[];
297
+ updatedAt: Date;
298
+ }[]>;
299
+ };
300
+ post: {};
301
+ put: {};
302
+ delete: {};
303
+ copy: {};
304
+ head: {};
305
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
306
+ options: {};
307
+ patch: {};
308
+ get: {
309
+ "/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
310
+ name: string;
311
+ id: string;
312
+ indicator: string;
313
+ isSuspended: boolean;
314
+ tag: TenantTag;
315
+ }>;
316
+ };
317
+ post: {};
318
+ put: {};
319
+ delete: {};
320
+ copy: {};
321
+ head: {};
322
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
323
+ options: {};
324
+ patch: {};
325
+ get: {
326
+ "/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
327
+ status: "open" | "complete" | "expired";
328
+ createdAt: Date;
329
+ id: string;
330
+ userId: string;
331
+ updatedAt: Date;
332
+ tenantId: string | null;
333
+ planId: string;
334
+ }>;
335
+ };
336
+ post: {
337
+ "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
338
+ planId: string;
339
+ successCallbackUrl: string;
340
+ tenantId?: string | undefined;
341
+ cancelCallbackUrl?: string | undefined;
342
+ tenantTag?: TenantTag | undefined;
343
+ tenantName?: string | undefined;
344
+ }, {
345
+ sessionId: string;
346
+ redirectUri?: string | null | undefined;
347
+ }>;
348
+ };
349
+ put: {};
350
+ delete: {};
351
+ copy: {};
352
+ head: {};
353
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
354
+ options: {};
355
+ patch: {};
356
+ get: {
357
+ "/affiliates": import("@withtyped/server").PathGuard<"/", unknown, unknown, AffiliateData[]>;
358
+ };
359
+ post: {
360
+ "/affiliates": import("@withtyped/server").PathGuard<"/", unknown, {
361
+ name: string;
362
+ }, {
363
+ createdAt: Date;
364
+ id: string;
365
+ name: string;
366
+ }>;
367
+ } & {
368
+ "/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
369
+ value: string;
370
+ type: "hostname" | "query";
371
+ }, {
372
+ value: string;
373
+ type: "hostname" | "query";
374
+ createdAt: Date;
375
+ affiliateId: string;
376
+ }>;
377
+ };
378
+ put: {};
379
+ delete: {
380
+ "/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
381
+ value: string;
382
+ type: "hostname" | "query";
383
+ }, unknown>;
384
+ };
385
+ copy: {};
386
+ head: {};
387
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
388
+ options: {};
389
+ patch: {};
390
+ get: {};
391
+ post: {
392
+ "/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
393
+ createdAt: string;
394
+ userId: string;
395
+ hostname?: string | undefined;
396
+ query?: string | undefined;
397
+ }, {
398
+ createdAt: Date;
399
+ id: string;
400
+ affiliateId: string | null;
401
+ userId: string;
402
+ createdVia: {
403
+ createdAt: string;
404
+ hostname?: string | undefined;
405
+ query?: string | undefined;
406
+ };
407
+ }>;
408
+ };
409
+ put: {};
410
+ delete: {};
411
+ copy: {};
412
+ head: {};
413
+ }, "/api">>, "/api">;
414
+
415
+ export {
416
+ router as default,
417
+ };
418
+
419
+ export {};
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-4f1d80b",
3
+ "version": "0.2.5-5deb133",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
7
7
  "license": "Elastic-2.0",
8
8
  "type": "module",
9
9
  "files": [
10
- "build"
10
+ "lib"
11
11
  ],
12
12
  "exports": {
13
- "./routes": "./build/routes/index.js"
13
+ "./routes": "./lib/routes/index.js"
14
14
  },
15
15
  "imports": {
16
16
  "#src/*": "./build/*"
17
17
  },
18
18
  "devDependencies": {
19
- "@silverhand/eslint-config": "3.0.1",
20
- "@silverhand/jest-config": "3.0.0",
21
- "@silverhand/ts-config": "3.0.0",
19
+ "@silverhand/eslint-config": "4.0.1",
20
+ "@silverhand/jest-config": "4.0.0",
21
+ "@silverhand/ts-config": "4.0.0",
22
22
  "@types/accepts": "^1.3.5",
23
23
  "@types/http-proxy": "^1.17.9",
24
24
  "@types/jest": "^29.4.0",
@@ -26,11 +26,11 @@
26
26
  "@types/node": "^18.11.18",
27
27
  "@types/yargs": "^17.0.24",
28
28
  "dts-bundle-generator": "^8.0.1",
29
- "eslint": "^8.21.0",
29
+ "eslint": "^8.44.0",
30
30
  "jest": "^29.5.0",
31
- "lint-staged": "^13.0.0",
31
+ "lint-staged": "^15.0.0",
32
32
  "nodemon": "^3.0.0",
33
- "prettier": "^2.8.1",
33
+ "prettier": "^3.0.0",
34
34
  "typescript": "^5.0.0"
35
35
  },
36
36
  "engines": {
@@ -38,6 +38,9 @@
38
38
  },
39
39
  "eslintConfig": {
40
40
  "extends": "@silverhand",
41
+ "rules": {
42
+ "no-console": "error"
43
+ },
41
44
  "ignorePatterns": [
42
45
  "types.test.ts"
43
46
  ]
@@ -47,14 +50,14 @@
47
50
  "access": "public"
48
51
  },
49
52
  "dependencies": {
50
- "@silverhand/essentials": "^2.7.0",
53
+ "@silverhand/essentials": "^2.8.6",
51
54
  "@withtyped/server": "^0.12.7"
52
55
  },
53
56
  "scripts": {
54
57
  "precommit": "lint-staged",
55
- "build": "rm -rf build/ && tsc -p tsconfig.build.json",
58
+ "build": "rm -rf build/ && tsc -p tsconfig.build.json && pnpm build:lib",
56
59
  "//": "It is not used to build the service itself.",
57
- "build:lib": "rm -rf build/ && dts-bundle-generator src/routes/index.ts --project tsconfig.build.json -o build/routes/index.d.ts",
60
+ "build:lib": "rm -rf lib/ && dts-bundle-generator src/routes/index.ts --project tsconfig.build.json -o lib/routes/index.d.ts",
58
61
  "build:test": "rm -rf build/ && tsc -p tsconfig.test.json --sourcemap",
59
62
  "lint": "eslint --ext .ts src",
60
63
  "lint:report": "pnpm lint --format json --output-file report.json",
@@ -1,257 +0,0 @@
1
- // Generated by dts-bundle-generator v8.0.1
2
-
3
- import { RequestContext } from '@withtyped/server';
4
-
5
- export type WithAuthContext<Context = RequestContext> = Context & {
6
- auth: {
7
- id: string;
8
- scopes: string[];
9
- };
10
- };
11
- declare enum TenantTag {
12
- Development = "development",
13
- Staging = "staging",
14
- Production = "production"
15
- }
16
- declare enum VerificationCodeType {
17
- SignIn = "SignIn",
18
- Register = "Register",
19
- ForgotPassword = "ForgotPassword",
20
- /** @deprecated */
21
- Continue = "Continue",
22
- Generic = "Generic",
23
- /** @deprecated Use `Generic` type template for sending test sms/email use case */
24
- Test = "Test"
25
- }
26
- declare const router: import("@withtyped/server").Router<WithAuthContext, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
27
- options: {};
28
- patch: {
29
- "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
30
- name?: string | undefined;
31
- tag?: TenantTag | undefined;
32
- }, {
33
- name: string;
34
- id: string;
35
- indicator: string;
36
- tag: TenantTag;
37
- }>;
38
- };
39
- get: {
40
- "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
41
- id: string;
42
- name: string;
43
- indicator: string;
44
- tag: TenantTag;
45
- subscriptionPlan: {
46
- id: string;
47
- name: string;
48
- quota: {
49
- mauLimit: number | null;
50
- applicationsLimit: number;
51
- machineToMachineLimit: number;
52
- resourcesLimit: number;
53
- scopesPerResourceLimit: number;
54
- customDomainEnabled: boolean;
55
- omniSignInEnabled: boolean;
56
- builtInEmailConnectorEnabled: boolean;
57
- socialConnectorsLimit: number | null;
58
- standardConnectorsLimit: number;
59
- rolesLimit: number;
60
- scopesPerRoleLimit: number | null;
61
- hooksLimit: number;
62
- auditLogsRetentionDays: number;
63
- };
64
- stripeProducts: {
65
- description?: string | undefined;
66
- id: string;
67
- name: string;
68
- type: "flat" | "tier1" | "tier2" | "tier3";
69
- price: {
70
- quantity?: 1 | undefined;
71
- unitAmount?: number | null | undefined;
72
- id: string;
73
- unitAmountDecimal: string;
74
- };
75
- }[];
76
- createdAt: Date;
77
- updatedAt: Date;
78
- };
79
- }[]>;
80
- } & {
81
- "/tenants/my": import("@withtyped/server").PathGuard<"/my", unknown, unknown, {
82
- id: string;
83
- name: string;
84
- indicator: string;
85
- tag: TenantTag;
86
- subscriptionPlan: {
87
- id: string;
88
- name: string;
89
- quota: {
90
- mauLimit: number | null;
91
- applicationsLimit: number;
92
- machineToMachineLimit: number;
93
- resourcesLimit: number;
94
- scopesPerResourceLimit: number;
95
- customDomainEnabled: boolean;
96
- omniSignInEnabled: boolean;
97
- builtInEmailConnectorEnabled: boolean;
98
- socialConnectorsLimit: number | null;
99
- standardConnectorsLimit: number;
100
- rolesLimit: number;
101
- scopesPerRoleLimit: number | null;
102
- hooksLimit: number;
103
- auditLogsRetentionDays: number;
104
- };
105
- stripeProducts: {
106
- description?: string | undefined;
107
- id: string;
108
- name: string;
109
- type: "flat" | "tier1" | "tier2" | "tier3";
110
- price: {
111
- quantity?: 1 | undefined;
112
- unitAmount?: number | null | undefined;
113
- id: string;
114
- unitAmountDecimal: string;
115
- };
116
- }[];
117
- createdAt: Date;
118
- updatedAt: Date;
119
- };
120
- }>;
121
- };
122
- post: {
123
- "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
124
- name?: string | undefined;
125
- tag?: TenantTag | undefined;
126
- }, {
127
- name: string;
128
- id: string;
129
- indicator: string;
130
- tag: TenantTag;
131
- }>;
132
- };
133
- put: {};
134
- head: {};
135
- delete: {
136
- "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
137
- };
138
- copy: {};
139
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
140
- options: {};
141
- patch: {};
142
- get: {
143
- "/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
144
- from?: string | undefined;
145
- }, unknown, unknown>;
146
- };
147
- post: {
148
- "/services/send-email": import("@withtyped/server").PathGuard<"/send-email", unknown, {
149
- data: {
150
- type: VerificationCodeType;
151
- to: string;
152
- payload: {
153
- senderName?: string | undefined;
154
- companyInformation?: string | undefined;
155
- appLogo?: string | undefined;
156
- code: string;
157
- };
158
- };
159
- }, unknown>;
160
- } & {
161
- "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
162
- data: {
163
- type: VerificationCodeType;
164
- to: string;
165
- payload: {
166
- senderName?: string | undefined;
167
- companyInformation?: string | undefined;
168
- appLogo?: string | undefined;
169
- code: string;
170
- };
171
- };
172
- }, unknown>;
173
- } & {
174
- "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
175
- data: {
176
- type: VerificationCodeType;
177
- to: string;
178
- payload: {
179
- senderName?: string | undefined;
180
- companyInformation?: string | undefined;
181
- appLogo?: string | undefined;
182
- code: string;
183
- };
184
- };
185
- }, unknown>;
186
- };
187
- put: {};
188
- head: {};
189
- delete: {};
190
- copy: {};
191
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
192
- options: {};
193
- patch: {};
194
- get: {
195
- "/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
196
- id: string;
197
- name: string;
198
- quota: {
199
- mauLimit: number | null;
200
- applicationsLimit: number;
201
- machineToMachineLimit: number;
202
- resourcesLimit: number;
203
- scopesPerResourceLimit: number;
204
- customDomainEnabled: boolean;
205
- omniSignInEnabled: boolean;
206
- builtInEmailConnectorEnabled: boolean;
207
- socialConnectorsLimit: number | null;
208
- standardConnectorsLimit: number;
209
- rolesLimit: number;
210
- scopesPerRoleLimit: number | null;
211
- hooksLimit: number;
212
- auditLogsRetentionDays: number;
213
- };
214
- stripeProducts: {
215
- description?: string | undefined;
216
- id: string;
217
- name: string;
218
- type: "flat" | "tier1" | "tier2" | "tier3";
219
- price: {
220
- quantity?: 1 | undefined;
221
- unitAmount?: number | null | undefined;
222
- id: string;
223
- unitAmountDecimal: string;
224
- };
225
- }[];
226
- createdAt: Date;
227
- updatedAt: Date;
228
- }[]>;
229
- };
230
- post: {};
231
- put: {};
232
- head: {};
233
- delete: {};
234
- copy: {};
235
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
236
- options: {};
237
- patch: {};
238
- get: {};
239
- post: {
240
- "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
241
- tenantId?: string | undefined;
242
- cancelCallbackUrl?: string | undefined;
243
- planId: string;
244
- successCallbackUrl: string;
245
- }, unknown>;
246
- };
247
- put: {};
248
- head: {};
249
- delete: {};
250
- copy: {};
251
- }, "/api">>, "/api">;
252
-
253
- export {
254
- router as default,
255
- };
256
-
257
- export {};