@logto/cloud 0.2.5-adb5eaf → 0.2.5-af943a1

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.
Files changed (2) hide show
  1. package/lib/routes/index.d.ts +288 -70
  2. package/package.json +1 -1
@@ -104,30 +104,31 @@ declare const publicRegionNames: readonly [
104
104
  ];
105
105
  /** The type of region names for the public cloud. */
106
106
  export type PublicRegionName = (typeof publicRegionNames)[number];
107
- /**
108
- * Data structure representing a Logto Cloud region.
109
- */
110
- export type Region = {
111
- /**
112
- * The unique identifier for the region.
113
- */
114
- id: string;
115
- /**
116
- * A human-readable name for the region.
117
- */
107
+ declare enum DatabaseRegionAccessRole {
108
+ /** Instance administrator - can manage collaborators and create tenants */
109
+ Admin = "admin",
110
+ /** Collaborator user - can only create tenants in the instance */
111
+ Collaborator = "collaborator"
112
+ }
113
+ declare const Regions: import("@withtyped/server/lib/model/index.js").default<"regions", {
114
+ createdAt: Date;
118
115
  name: string;
119
- /**
120
- * The country where the region is located.
121
- */
122
- country: string;
123
- /**
124
- * Indicates whether the region is private.
125
- */
126
116
  isPrivate: boolean;
117
+ displayName: string;
118
+ country: string;
119
+ dbUrl: string;
120
+ redisUrl: string | null;
121
+ tags: TenantTag[];
122
+ }, "createdAt" | "tags" | "isPrivate", "createdAt">;
123
+ export type Region = InferModelType<typeof Regions>;
124
+ export type AffiliateData = Affiliate & {
125
+ properties: Array<Pick<AffiliateProperty, "type" | "value">>;
126
+ };
127
+ export type RegionResponse = Pick<Region, "name" | "displayName" | "country" | "isPrivate" | "tags"> & {
127
128
  /**
128
- * Tenant tags available for selection when creating tenants in this region.
129
+ * @deprecated Temporary field for backward compatibility, will be removed in the future.
129
130
  */
130
- tags: TenantTag[];
131
+ id: string;
131
132
  };
132
133
  export type WithAuthContext<Context = RequestContext> = Context & {
133
134
  auth: {
@@ -137,9 +138,6 @@ export type WithAuthContext<Context = RequestContext> = Context & {
137
138
  scopes: string[];
138
139
  };
139
140
  };
140
- export type AffiliateData = Affiliate & {
141
- properties: Array<Pick<AffiliateProperty, "type" | "value">>;
142
- };
143
141
  declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
144
142
  request: {
145
143
  id?: string | undefined;
@@ -159,7 +157,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
159
157
  body?: Json | undefined;
160
158
  bodyRaw?: Buffer | undefined;
161
159
  };
162
- }>, 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<{
160
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
163
161
  patch: {
164
162
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
165
163
  name?: string | undefined;
@@ -209,7 +207,12 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
209
207
  subscriptionId: string | null;
210
208
  hostedInvoiceUrl: string | null;
211
209
  invoicePdf: string | null;
210
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
211
+ dueDate: Date | null;
212
212
  }[];
213
+ featureFlags?: {
214
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
215
+ } | undefined;
213
216
  }>;
214
217
  };
215
218
  options: {};
@@ -260,15 +263,20 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
260
263
  subscriptionId: string | null;
261
264
  hostedInvoiceUrl: string | null;
262
265
  invoicePdf: string | null;
266
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
267
+ dueDate: Date | null;
263
268
  }[];
269
+ featureFlags?: {
270
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
271
+ } | undefined;
264
272
  }[]>;
265
273
  };
266
274
  post: {
267
275
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
268
276
  id?: string | undefined;
269
277
  name?: string | undefined;
270
- tag?: TenantTag | undefined;
271
278
  regionName?: string | undefined;
279
+ tag?: TenantTag | undefined;
272
280
  }, {
273
281
  id: string;
274
282
  name: string;
@@ -315,8 +323,23 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
315
323
  subscriptionId: string | null;
316
324
  hostedInvoiceUrl: string | null;
317
325
  invoicePdf: string | null;
326
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
327
+ dueDate: Date | null;
318
328
  }[];
329
+ featureFlags?: {
330
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
331
+ } | undefined;
319
332
  }>;
333
+ } & {
334
+ "/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
335
+ planId: string;
336
+ tenantIds: string[];
337
+ }, {
338
+ tenantId: string;
339
+ success: boolean;
340
+ error?: string | undefined;
341
+ updatedLineItems?: unknown[] | undefined;
342
+ }[]>;
320
343
  };
321
344
  put: {};
322
345
  delete: {
@@ -368,6 +391,26 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
368
391
  total: number;
369
392
  totalExcludingTax: number | null;
370
393
  } | null | undefined;
394
+ systemLimit?: {
395
+ applicationsLimit?: number | null | undefined;
396
+ thirdPartyApplicationsLimit?: number | null | undefined;
397
+ scopesPerResourceLimit?: number | null | undefined;
398
+ socialConnectorsLimit?: number | null | undefined;
399
+ userRolesLimit?: number | null | undefined;
400
+ machineToMachineRolesLimit?: number | null | undefined;
401
+ scopesPerRoleLimit?: number | null | undefined;
402
+ hooksLimit?: number | null | undefined;
403
+ machineToMachineLimit?: number | null | undefined;
404
+ resourcesLimit?: number | null | undefined;
405
+ enterpriseSsoLimit?: number | null | undefined;
406
+ tenantMembersLimit?: number | null | undefined;
407
+ organizationsLimit?: number | null | undefined;
408
+ samlApplicationsLimit?: number | null | undefined;
409
+ usersPerOrganizationLimit?: number | null | undefined;
410
+ organizationUserRolesLimit?: number | null | undefined;
411
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
412
+ organizationScopesLimit?: number | null | undefined;
413
+ } | undefined;
371
414
  }>;
372
415
  } & {
373
416
  "/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
@@ -626,6 +669,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
626
669
  subscriptionId: string | null;
627
670
  hostedInvoiceUrl: string | null;
628
671
  invoicePdf: string | null;
672
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
673
+ dueDate: Date | null;
629
674
  planName: string | null;
630
675
  skuId?: string | null | undefined;
631
676
  }[];
@@ -707,6 +752,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
707
752
  link?: string | undefined;
708
753
  code?: string | undefined;
709
754
  locale?: string | undefined;
755
+ uiLocales?: string | undefined;
710
756
  } & {
711
757
  [k: string]: unknown;
712
758
  } & {
@@ -726,6 +772,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
726
772
  code?: string | undefined;
727
773
  link?: string | undefined;
728
774
  locale?: string | undefined;
775
+ uiLocales?: string | undefined;
729
776
  } & {
730
777
  [k: string]: unknown;
731
778
  };
@@ -811,7 +858,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
811
858
  };
812
859
  post: {
813
860
  "/skus": import("@withtyped/server").PathGuard<"/", unknown, {
814
- type: LogtoSkuType.AddOn;
861
+ type: LogtoSkuType;
815
862
  quota: {
816
863
  tokenLimit?: number | null | undefined;
817
864
  machineToMachineLimit?: number | null | undefined;
@@ -839,46 +886,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
839
886
  collectUserProfileEnabled?: boolean | undefined;
840
887
  idpInitiatedSsoEnabled?: boolean | undefined;
841
888
  };
842
- isDefault?: boolean | undefined;
843
- } | {
844
- type: LogtoSkuType.Basic;
845
- quota: {
846
- auditLogsRetentionDays: number | null;
847
- mauLimit: number | null;
848
- applicationsLimit: number | null;
849
- thirdPartyApplicationsLimit: number | null;
850
- scopesPerResourceLimit: number | null;
851
- socialConnectorsLimit: number | null;
852
- userRolesLimit: number | null;
853
- machineToMachineRolesLimit: number | null;
854
- scopesPerRoleLimit: number | null;
855
- hooksLimit: number | null;
856
- customJwtEnabled: boolean;
857
- subjectTokenEnabled: boolean;
858
- bringYourUiEnabled: boolean;
859
- collectUserProfileEnabled: boolean;
860
- tokenLimit: number | null;
861
- machineToMachineLimit: number | null;
862
- resourcesLimit: number | null;
863
- enterpriseSsoLimit: number | null;
864
- tenantMembersLimit: number | null;
865
- mfaEnabled: boolean;
866
- organizationsEnabled: boolean;
867
- organizationsLimit: number | null;
868
- securityFeaturesEnabled: boolean;
869
- idpInitiatedSsoEnabled: boolean;
870
- samlApplicationsLimit: number | null;
871
- };
872
- addOnRelations: {
873
- tokenLimit?: string | undefined;
874
- machineToMachineLimit?: string | undefined;
875
- resourcesLimit?: string | undefined;
876
- enterpriseSsoLimit?: string | undefined;
877
- tenantMembersLimit?: string | undefined;
878
- mfaEnabled?: string | undefined;
879
- organizationsLimit?: string | undefined;
880
- securityFeaturesEnabled?: string | undefined;
881
- };
889
+ id?: string | undefined;
882
890
  isDefault?: boolean | undefined;
883
891
  }, {
884
892
  id: string;
@@ -924,8 +932,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
924
932
  productId: string;
925
933
  }>;
926
934
  } & {
927
- "/skus/basic-sku-usage-add-on-relations": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations", unknown, {
928
- basicSkuId: string;
935
+ "/skus/:basicSkuId/usage-add-on-relations": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations", unknown, {
929
936
  usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
930
937
  addOnSkuId: string;
931
938
  }, {
@@ -938,7 +945,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
938
945
  delete: {
939
946
  "/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
940
947
  } & {
941
- "/skus/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey", unknown, unknown, unknown>;
948
+ "/skus/:basicSkuId/usage-add-on-relations/:usageKey": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations/:usageKey", unknown, unknown, unknown>;
942
949
  };
943
950
  copy: {};
944
951
  head: {};
@@ -1088,8 +1095,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
1088
1095
  id: string;
1089
1096
  name: string;
1090
1097
  country: string;
1091
- isPrivate: boolean;
1098
+ displayName: string;
1092
1099
  tags: TenantTag[];
1100
+ isPrivate: boolean;
1093
1101
  }[];
1094
1102
  }>;
1095
1103
  };
@@ -1100,6 +1108,216 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
1100
1108
  };
1101
1109
  copy: {};
1102
1110
  head: {};
1111
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1112
+ patch: {
1113
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, {
1114
+ limits: {
1115
+ machineToMachineLimit?: number | null | undefined;
1116
+ resourcesLimit?: number | null | undefined;
1117
+ enterpriseSsoLimit?: number | null | undefined;
1118
+ hooksLimit?: number | null | undefined;
1119
+ tenantMembersLimit?: number | null | undefined;
1120
+ organizationsLimit?: number | null | undefined;
1121
+ userRolesLimit?: number | null | undefined;
1122
+ machineToMachineRolesLimit?: number | null | undefined;
1123
+ thirdPartyApplicationsLimit?: number | null | undefined;
1124
+ samlApplicationsLimit?: number | null | undefined;
1125
+ applicationsLimit?: number | null | undefined;
1126
+ scopesPerResourceLimit?: number | null | undefined;
1127
+ socialConnectorsLimit?: number | null | undefined;
1128
+ scopesPerRoleLimit?: number | null | undefined;
1129
+ usersPerOrganizationLimit?: number | null | undefined;
1130
+ organizationUserRolesLimit?: number | null | undefined;
1131
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1132
+ organizationScopesLimit?: number | null | undefined;
1133
+ };
1134
+ }, {
1135
+ id: string;
1136
+ createdAt: Date;
1137
+ updatedAt: Date;
1138
+ limits: {
1139
+ applicationsLimit?: number | null | undefined;
1140
+ thirdPartyApplicationsLimit?: number | null | undefined;
1141
+ scopesPerResourceLimit?: number | null | undefined;
1142
+ socialConnectorsLimit?: number | null | undefined;
1143
+ userRolesLimit?: number | null | undefined;
1144
+ machineToMachineRolesLimit?: number | null | undefined;
1145
+ scopesPerRoleLimit?: number | null | undefined;
1146
+ hooksLimit?: number | null | undefined;
1147
+ machineToMachineLimit?: number | null | undefined;
1148
+ resourcesLimit?: number | null | undefined;
1149
+ enterpriseSsoLimit?: number | null | undefined;
1150
+ tenantMembersLimit?: number | null | undefined;
1151
+ organizationsLimit?: number | null | undefined;
1152
+ samlApplicationsLimit?: number | null | undefined;
1153
+ usersPerOrganizationLimit?: number | null | undefined;
1154
+ organizationUserRolesLimit?: number | null | undefined;
1155
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1156
+ organizationScopesLimit?: number | null | undefined;
1157
+ };
1158
+ }>;
1159
+ };
1160
+ options: {};
1161
+ get: {
1162
+ "/system-limits": import("@withtyped/server").PathGuard<"/", {
1163
+ basicSkuId?: string | undefined;
1164
+ }, unknown, {
1165
+ id: string;
1166
+ createdAt: Date;
1167
+ updatedAt: Date;
1168
+ limits: {
1169
+ applicationsLimit?: number | null | undefined;
1170
+ thirdPartyApplicationsLimit?: number | null | undefined;
1171
+ scopesPerResourceLimit?: number | null | undefined;
1172
+ socialConnectorsLimit?: number | null | undefined;
1173
+ userRolesLimit?: number | null | undefined;
1174
+ machineToMachineRolesLimit?: number | null | undefined;
1175
+ scopesPerRoleLimit?: number | null | undefined;
1176
+ hooksLimit?: number | null | undefined;
1177
+ machineToMachineLimit?: number | null | undefined;
1178
+ resourcesLimit?: number | null | undefined;
1179
+ enterpriseSsoLimit?: number | null | undefined;
1180
+ tenantMembersLimit?: number | null | undefined;
1181
+ organizationsLimit?: number | null | undefined;
1182
+ samlApplicationsLimit?: number | null | undefined;
1183
+ usersPerOrganizationLimit?: number | null | undefined;
1184
+ organizationUserRolesLimit?: number | null | undefined;
1185
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1186
+ organizationScopesLimit?: number | null | undefined;
1187
+ };
1188
+ basicSkuIds: string[];
1189
+ }[]>;
1190
+ } & {
1191
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
1192
+ id: string;
1193
+ createdAt: Date;
1194
+ updatedAt: Date;
1195
+ limits: {
1196
+ applicationsLimit?: number | null | undefined;
1197
+ thirdPartyApplicationsLimit?: number | null | undefined;
1198
+ scopesPerResourceLimit?: number | null | undefined;
1199
+ socialConnectorsLimit?: number | null | undefined;
1200
+ userRolesLimit?: number | null | undefined;
1201
+ machineToMachineRolesLimit?: number | null | undefined;
1202
+ scopesPerRoleLimit?: number | null | undefined;
1203
+ hooksLimit?: number | null | undefined;
1204
+ machineToMachineLimit?: number | null | undefined;
1205
+ resourcesLimit?: number | null | undefined;
1206
+ enterpriseSsoLimit?: number | null | undefined;
1207
+ tenantMembersLimit?: number | null | undefined;
1208
+ organizationsLimit?: number | null | undefined;
1209
+ samlApplicationsLimit?: number | null | undefined;
1210
+ usersPerOrganizationLimit?: number | null | undefined;
1211
+ organizationUserRolesLimit?: number | null | undefined;
1212
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1213
+ organizationScopesLimit?: number | null | undefined;
1214
+ };
1215
+ basicSkuIds: string[];
1216
+ }>;
1217
+ };
1218
+ post: {
1219
+ "/system-limits": import("@withtyped/server").PathGuard<"/", unknown, {
1220
+ limits: {
1221
+ machineToMachineLimit?: number | null | undefined;
1222
+ resourcesLimit?: number | null | undefined;
1223
+ enterpriseSsoLimit?: number | null | undefined;
1224
+ hooksLimit?: number | null | undefined;
1225
+ tenantMembersLimit?: number | null | undefined;
1226
+ organizationsLimit?: number | null | undefined;
1227
+ userRolesLimit?: number | null | undefined;
1228
+ machineToMachineRolesLimit?: number | null | undefined;
1229
+ thirdPartyApplicationsLimit?: number | null | undefined;
1230
+ samlApplicationsLimit?: number | null | undefined;
1231
+ applicationsLimit?: number | null | undefined;
1232
+ scopesPerResourceLimit?: number | null | undefined;
1233
+ socialConnectorsLimit?: number | null | undefined;
1234
+ scopesPerRoleLimit?: number | null | undefined;
1235
+ usersPerOrganizationLimit?: number | null | undefined;
1236
+ organizationUserRolesLimit?: number | null | undefined;
1237
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1238
+ organizationScopesLimit?: number | null | undefined;
1239
+ };
1240
+ id?: string | undefined;
1241
+ }, {
1242
+ id: string;
1243
+ createdAt: Date;
1244
+ updatedAt: Date;
1245
+ limits: {
1246
+ applicationsLimit?: number | null | undefined;
1247
+ thirdPartyApplicationsLimit?: number | null | undefined;
1248
+ scopesPerResourceLimit?: number | null | undefined;
1249
+ socialConnectorsLimit?: number | null | undefined;
1250
+ userRolesLimit?: number | null | undefined;
1251
+ machineToMachineRolesLimit?: number | null | undefined;
1252
+ scopesPerRoleLimit?: number | null | undefined;
1253
+ hooksLimit?: number | null | undefined;
1254
+ machineToMachineLimit?: number | null | undefined;
1255
+ resourcesLimit?: number | null | undefined;
1256
+ enterpriseSsoLimit?: number | null | undefined;
1257
+ tenantMembersLimit?: number | null | undefined;
1258
+ organizationsLimit?: number | null | undefined;
1259
+ samlApplicationsLimit?: number | null | undefined;
1260
+ usersPerOrganizationLimit?: number | null | undefined;
1261
+ organizationUserRolesLimit?: number | null | undefined;
1262
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1263
+ organizationScopesLimit?: number | null | undefined;
1264
+ };
1265
+ }>;
1266
+ } & {
1267
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1268
+ basicSkuIds: string[];
1269
+ }, {
1270
+ relations: {
1271
+ createdAt: Date;
1272
+ updatedAt: Date;
1273
+ basicSkuId: string;
1274
+ systemLimitId: string;
1275
+ }[];
1276
+ }>;
1277
+ };
1278
+ put: {};
1279
+ delete: {
1280
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, unknown>;
1281
+ } & {
1282
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1283
+ basicSkuIds: string[];
1284
+ }, unknown>;
1285
+ };
1286
+ copy: {};
1287
+ head: {};
1288
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1289
+ patch: {
1290
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
1291
+ role: DatabaseRegionAccessRole;
1292
+ }, {
1293
+ role: DatabaseRegionAccessRole;
1294
+ userId: string;
1295
+ }>;
1296
+ };
1297
+ options: {};
1298
+ get: {
1299
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
1300
+ users: {
1301
+ role: DatabaseRegionAccessRole;
1302
+ userId: string;
1303
+ }[];
1304
+ }>;
1305
+ };
1306
+ post: {
1307
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
1308
+ role: DatabaseRegionAccessRole;
1309
+ userId: string;
1310
+ }, {
1311
+ role: DatabaseRegionAccessRole;
1312
+ userId: string;
1313
+ }>;
1314
+ };
1315
+ put: {};
1316
+ delete: {
1317
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
1318
+ };
1319
+ copy: {};
1320
+ head: {};
1103
1321
  }, "/api">>, "/api">;
1104
1322
  export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
1105
1323
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-adb5eaf",
3
+ "version": "0.2.5-af943a1",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",