@logto/cloud 0.2.5-4f1d80b → 0.2.5-71b7fea

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