@stackframe/stack 2.7.21 → 2.7.22
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/CHANGELOG.md +10 -0
- package/dist/admin-app-impl-CTQhv9tV.d.ts +395 -0
- package/dist/admin-app-impl-DpyRKp1e.d.mts +395 -0
- package/dist/components/selected-team-switcher.d.mts +18 -6
- package/dist/components/selected-team-switcher.d.ts +18 -6
- package/dist/components/team-icon.d.mts +18 -6
- package/dist/components/team-icon.d.ts +18 -6
- package/dist/components-page/stack-handler.d.mts +18 -6
- package/dist/components-page/stack-handler.d.ts +18 -6
- package/dist/esm/lib/stack-app/api-keys/index.js +14 -0
- package/dist/esm/lib/stack-app/api-keys/index.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js +291 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/esm/lib/{stack-app.js → stack-app/apps/implementations/client-app-impl.js} +36 -1109
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.js +142 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.js +24 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js +527 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/index.js +16 -0
- package/dist/esm/lib/stack-app/apps/index.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js +7 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.js +7 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.js +7 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/esm/lib/stack-app/common.js +6 -0
- package/dist/esm/lib/stack-app/common.js.map +1 -0
- package/dist/esm/lib/stack-app/connected-accounts/index.js +1 -0
- package/dist/esm/lib/stack-app/connected-accounts/index.js.map +1 -0
- package/dist/esm/lib/stack-app/contact-channels/index.js +39 -0
- package/dist/esm/lib/stack-app/contact-channels/index.js.map +1 -0
- package/dist/esm/lib/stack-app/email-templates/index.js +11 -0
- package/dist/esm/lib/stack-app/email-templates/index.js.map +1 -0
- package/dist/esm/lib/stack-app/index.js +16 -0
- package/dist/esm/lib/stack-app/index.js.map +1 -0
- package/dist/esm/lib/stack-app/permissions/index.js +20 -0
- package/dist/esm/lib/stack-app/permissions/index.js.map +1 -0
- package/dist/esm/lib/stack-app/project-configs/index.js +1 -0
- package/dist/esm/lib/stack-app/project-configs/index.js.map +1 -0
- package/dist/esm/lib/stack-app/projects/index.js +57 -0
- package/dist/esm/lib/stack-app/projects/index.js.map +1 -0
- package/dist/esm/lib/stack-app/teams/index.js +38 -0
- package/dist/esm/lib/stack-app/teams/index.js.map +1 -0
- package/dist/esm/lib/stack-app/users/index.js +47 -0
- package/dist/esm/lib/stack-app/users/index.js.map +1 -0
- package/dist/generated/quetzal-translations.d.mts +2 -2
- package/dist/generated/quetzal-translations.d.ts +2 -2
- package/dist/{lib/stack-app.d.mts → index-C7D6Vt7X.d.mts} +138 -354
- package/dist/{lib/stack-app.d.ts → index-DQk7XJpU.d.ts} +138 -354
- package/dist/index.d.mts +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/lib/hooks.d.mts +17 -5
- package/dist/lib/hooks.d.ts +17 -5
- package/dist/lib/stack-app/api-keys/index.d.mts +40 -0
- package/dist/lib/stack-app/api-keys/index.d.ts +40 -0
- package/dist/lib/stack-app/api-keys/index.js +39 -0
- package/dist/lib/stack-app/api-keys/index.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.mts +30 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts +30 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js +316 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.mts +30 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts +30 -0
- package/dist/lib/{stack-app.js → stack-app/apps/implementations/client-app-impl.js} +74 -1152
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/common.d.mts +45 -0
- package/dist/lib/stack-app/apps/implementations/common.d.ts +45 -0
- package/dist/lib/stack-app/apps/implementations/common.js +187 -0
- package/dist/lib/stack-app/apps/implementations/common.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/index.d.mts +36 -0
- package/dist/lib/stack-app/apps/implementations/index.d.ts +36 -0
- package/dist/lib/stack-app/apps/implementations/index.js +51 -0
- package/dist/lib/stack-app/apps/implementations/index.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.mts +30 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts +30 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.js +552 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/index.d.mts +23 -0
- package/dist/lib/stack-app/apps/index.d.ts +23 -0
- package/dist/lib/stack-app/apps/index.js +37 -0
- package/dist/lib/stack-app/apps/index.js.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.mts +23 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts +23 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.js +32 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.d.mts +23 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.d.ts +23 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.js +32 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.d.mts +23 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.d.ts +23 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.js +32 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/lib/stack-app/common.d.mts +63 -0
- package/dist/lib/stack-app/common.d.ts +63 -0
- package/dist/lib/stack-app/common.js +31 -0
- package/dist/lib/stack-app/common.js.map +1 -0
- package/dist/lib/stack-app/connected-accounts/index.d.mts +13 -0
- package/dist/lib/stack-app/connected-accounts/index.d.ts +13 -0
- package/dist/lib/stack-app/connected-accounts/index.js +19 -0
- package/dist/lib/stack-app/connected-accounts/index.js.map +1 -0
- package/dist/lib/stack-app/contact-channels/index.d.mts +38 -0
- package/dist/lib/stack-app/contact-channels/index.d.ts +38 -0
- package/dist/lib/stack-app/contact-channels/index.js +67 -0
- package/dist/lib/stack-app/contact-channels/index.js.map +1 -0
- package/dist/lib/stack-app/email-templates/index.d.mts +15 -0
- package/dist/lib/stack-app/email-templates/index.d.ts +15 -0
- package/dist/lib/stack-app/email-templates/index.js +36 -0
- package/dist/lib/stack-app/email-templates/index.js.map +1 -0
- package/dist/lib/stack-app/index.d.mts +23 -0
- package/dist/lib/stack-app/index.d.ts +23 -0
- package/dist/lib/stack-app/index.js +38 -0
- package/dist/lib/stack-app/index.js.map +1 -0
- package/dist/lib/stack-app/permissions/index.d.mts +21 -0
- package/dist/lib/stack-app/permissions/index.d.ts +21 -0
- package/dist/lib/stack-app/permissions/index.js +46 -0
- package/dist/lib/stack-app/permissions/index.js.map +1 -0
- package/dist/lib/stack-app/project-configs/index.d.mts +82 -0
- package/dist/lib/stack-app/project-configs/index.d.ts +82 -0
- package/dist/lib/stack-app/project-configs/index.js +19 -0
- package/dist/lib/stack-app/project-configs/index.js.map +1 -0
- package/dist/lib/stack-app/projects/index.d.mts +23 -0
- package/dist/lib/stack-app/projects/index.d.ts +23 -0
- package/dist/lib/stack-app/projects/index.js +83 -0
- package/dist/lib/stack-app/projects/index.js.map +1 -0
- package/dist/lib/stack-app/teams/index.d.mts +23 -0
- package/dist/lib/stack-app/teams/index.d.ts +23 -0
- package/dist/lib/stack-app/teams/index.js +66 -0
- package/dist/lib/stack-app/teams/index.js.map +1 -0
- package/dist/lib/stack-app/users/index.d.mts +23 -0
- package/dist/lib/stack-app/users/index.d.ts +23 -0
- package/dist/lib/stack-app/users/index.js +74 -0
- package/dist/lib/stack-app/users/index.js.map +1 -0
- package/dist/providers/stack-provider-client.d.mts +17 -5
- package/dist/providers/stack-provider-client.d.ts +17 -5
- package/dist/providers/stack-provider.d.mts +18 -6
- package/dist/providers/stack-provider.d.ts +18 -6
- package/package.json +4 -4
- package/dist/esm/lib/stack-app.js.map +0 -1
- package/dist/lib/stack-app.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions, a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson, b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../index-C7D6Vt7X.mjs';
|
|
2
|
+
import '@stackframe/stack-shared';
|
|
3
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
4
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
5
|
+
import '../common.mjs';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../api-keys/index.mjs';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../email-templates/index.mjs';
|
|
15
|
+
import '../permissions/index.mjs';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../connected-accounts/index.mjs';
|
|
21
|
+
import '../contact-channels/index.mjs';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../project-configs/index.mjs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions, a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson, b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../index-DQk7XJpU.js';
|
|
2
|
+
import '@stackframe/stack-shared';
|
|
3
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
4
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
5
|
+
import '../common.js';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../api-keys/index.js';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../email-templates/index.js';
|
|
15
|
+
import '../permissions/index.js';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../connected-accounts/index.js';
|
|
21
|
+
import '../contact-channels/index.js';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../project-configs/index.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/stack-app/apps/index.ts
|
|
21
|
+
var apps_exports = {};
|
|
22
|
+
__export(apps_exports, {
|
|
23
|
+
StackAdminApp: () => import_admin_app.StackAdminApp,
|
|
24
|
+
StackClientApp: () => import_client_app.StackClientApp,
|
|
25
|
+
StackServerApp: () => import_server_app.StackServerApp
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(apps_exports);
|
|
28
|
+
var import_client_app = require("./interfaces/client-app");
|
|
29
|
+
var import_server_app = require("./interfaces/server-app");
|
|
30
|
+
var import_admin_app = require("./interfaces/admin-app");
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
StackAdminApp,
|
|
34
|
+
StackClientApp,
|
|
35
|
+
StackServerApp
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/stack-app/apps/index.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nexport {\n StackClientApp\n} from \"./interfaces/client-app\";\nexport type {\n StackClientAppConstructor,\n StackClientAppConstructorOptions,\n StackClientAppJson\n} from \"./interfaces/client-app\";\n\nexport {\n StackServerApp\n} from \"./interfaces/server-app\";\nexport type {\n StackServerAppConstructor,\n StackServerAppConstructorOptions\n} from \"./interfaces/server-app\";\n\nexport {\n StackAdminApp\n} from \"./interfaces/admin-app\";\nexport type {\n StackAdminAppConstructor,\n StackAdminAppConstructorOptions\n} from \"./interfaces/admin-app\";\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAEO;AAOP,wBAEO;AAMP,uBAEO;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
+
import '../../api-keys/index.mjs';
|
|
5
|
+
import '../../common.mjs';
|
|
6
|
+
import '../../email-templates/index.mjs';
|
|
7
|
+
import '../../permissions/index.mjs';
|
|
8
|
+
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions } from '../../../../index-C7D6Vt7X.mjs';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
10
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
11
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
13
|
+
import '@stackframe/stack-shared';
|
|
14
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
15
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.mjs';
|
|
21
|
+
import '../../contact-channels/index.mjs';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.mjs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
+
import '../../api-keys/index.js';
|
|
5
|
+
import '../../common.js';
|
|
6
|
+
import '../../email-templates/index.js';
|
|
7
|
+
import '../../permissions/index.js';
|
|
8
|
+
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions } from '../../../../index-DQk7XJpU.js';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
10
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
11
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
13
|
+
import '@stackframe/stack-shared';
|
|
14
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
15
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.js';
|
|
21
|
+
import '../../contact-channels/index.js';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/stack-app/apps/interfaces/admin-app.ts
|
|
21
|
+
var admin_app_exports = {};
|
|
22
|
+
__export(admin_app_exports, {
|
|
23
|
+
StackAdminApp: () => StackAdminApp
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(admin_app_exports);
|
|
26
|
+
var import_implementations = require("../implementations");
|
|
27
|
+
var StackAdminApp = import_implementations._StackAdminAppImpl;
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
StackAdminApp
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=admin-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/stack-app/apps/interfaces/admin-app.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nimport { EmailTemplateType } from \"@stackframe/stack-shared/dist/interface/crud/email-templates\";\nimport { InternalSession } from \"@stackframe/stack-shared/dist/sessions\";\nimport { Result } from \"@stackframe/stack-shared/dist/utils/results\";\nimport { ApiKey, ApiKeyCreateOptions, ApiKeyFirstView } from \"../../api-keys\";\nimport { AsyncStoreProperty, EmailConfig } from \"../../common\";\nimport { AdminEmailTemplate, AdminEmailTemplateUpdateOptions } from \"../../email-templates\";\nimport { AdminTeamPermission, AdminTeamPermissionDefinition, AdminTeamPermissionDefinitionCreateOptions, AdminTeamPermissionDefinitionUpdateOptions } from \"../../permissions\";\nimport { AdminProject } from \"../../projects\";\nimport { _StackAdminAppImpl } from \"../implementations\";\nimport { StackServerApp, StackServerAppConstructorOptions } from \"./server-app\";\n\n\nexport type StackAdminAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = (\n | (\n & StackServerAppConstructorOptions<HasTokenStore, ProjectId>\n & {\n superSecretAdminKey?: string,\n }\n )\n | (\n & Omit<StackServerAppConstructorOptions<HasTokenStore, ProjectId>, \"publishableClientKey\" | \"secretServerKey\">\n & {\n projectOwnerSession: InternalSession,\n }\n )\n);\n\n\nexport type StackAdminApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (\n & AsyncStoreProperty<\"project\", [], AdminProject, false>\n & AsyncStoreProperty<\"apiKeys\", [], ApiKey[], true>\n & AsyncStoreProperty<\"teamPermissionDefinitions\", [], AdminTeamPermissionDefinition[], true>\n & {\n useEmailTemplates(): AdminEmailTemplate[],\n listEmailTemplates(): Promise<AdminEmailTemplate[]>,\n updateEmailTemplate(type: EmailTemplateType, data: AdminEmailTemplateUpdateOptions): Promise<void>,\n resetEmailTemplate(type: EmailTemplateType): Promise<void>,\n\n createApiKey(options: ApiKeyCreateOptions): Promise<ApiKeyFirstView>,\n\n createTeamPermissionDefinition(data: AdminTeamPermissionDefinitionCreateOptions): Promise<AdminTeamPermission>,\n updateTeamPermissionDefinition(permissionId: string, data: AdminTeamPermissionDefinitionUpdateOptions): Promise<void>,\n deleteTeamPermissionDefinition(permissionId: string): Promise<void>,\n\n useSvixToken(): string,\n\n sendTestEmail(options: {\n recipientEmail: string,\n emailConfig: EmailConfig,\n }): Promise<Result<undefined, { errorMessage: string }>>,\n }\n & StackServerApp<HasTokenStore, ProjectId>\n);\nexport type StackAdminAppConstructor = {\n new <\n HasTokenStore extends boolean,\n ProjectId extends string\n >(options: StackAdminAppConstructorOptions<HasTokenStore, ProjectId>): StackAdminApp<HasTokenStore, ProjectId>,\n new (options: StackAdminAppConstructorOptions<boolean, string>): StackAdminApp<boolean, string>,\n};\nexport const StackAdminApp: StackAdminAppConstructor = _StackAdminAppImpl;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA,6BAAmC;AAoD5B,IAAM,gBAA0C;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@stackframe/stack-shared';
|
|
2
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
+
import '../../common.mjs';
|
|
5
|
+
export { a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson } from '../../../../index-C7D6Vt7X.mjs';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../../api-keys/index.mjs';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../../email-templates/index.mjs';
|
|
15
|
+
import '../../permissions/index.mjs';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.mjs';
|
|
21
|
+
import '../../contact-channels/index.mjs';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.mjs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@stackframe/stack-shared';
|
|
2
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
+
import '../../common.js';
|
|
5
|
+
export { a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson } from '../../../../index-DQk7XJpU.js';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../../api-keys/index.js';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../../email-templates/index.js';
|
|
15
|
+
import '../../permissions/index.js';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.js';
|
|
21
|
+
import '../../contact-channels/index.js';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/stack-app/apps/interfaces/client-app.ts
|
|
21
|
+
var client_app_exports = {};
|
|
22
|
+
__export(client_app_exports, {
|
|
23
|
+
StackClientApp: () => StackClientApp
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(client_app_exports);
|
|
26
|
+
var import_implementations = require("../implementations");
|
|
27
|
+
var StackClientApp = import_implementations._StackClientAppImpl;
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
StackClientApp
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=client-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/stack-app/apps/interfaces/client-app.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nimport { KnownErrors } from \"@stackframe/stack-shared\";\nimport { CurrentUserCrud } from \"@stackframe/stack-shared/dist/interface/crud/current-user\";\nimport { Result } from \"@stackframe/stack-shared/dist/utils/results\";\nimport { AsyncStoreProperty, GetUserOptions, HandlerUrls, OAuthScopesOnSignIn, RedirectMethod, RedirectToOptions, TokenStoreInit, stackAppInternalsSymbol } from \"../../common\";\nimport { Project } from \"../../projects\";\nimport { ProjectCurrentUser } from \"../../users\";\nimport { _StackClientAppImpl } from \"../implementations\";\n\n\nexport type StackClientAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = {\n baseUrl?: string | { browser: string, server: string },\n projectId?: ProjectId,\n publishableClientKey?: string,\n urls?: Partial<HandlerUrls>,\n oauthScopesOnSignIn?: Partial<OAuthScopesOnSignIn>,\n tokenStore: TokenStoreInit<HasTokenStore>,\n redirectMethod?: RedirectMethod,\n\n /**\n * By default, the Stack app will automatically prefetch some data from Stack's server when this app is first\n * constructed. This improves the performance of your app, but will create network requests that are unnecessary if\n * the app is never used or disposed of immediately. To disable this behavior, set this option to true.\n */\n noAutomaticPrefetch?: boolean,\n};\n\n\nexport type StackClientAppJson<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppConstructorOptions<HasTokenStore, ProjectId> & {\n uniqueIdentifier: string,\n // note: if you add more fields here, make sure to ensure the checkString in the constructor has/doesn't have them\n};\n\nexport type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (\n & {\n readonly projectId: ProjectId,\n\n readonly urls: Readonly<HandlerUrls>,\n\n signInWithOAuth(provider: string): Promise<void>,\n signInWithCredential(options: { email: string, password: string, noRedirect?: boolean }): Promise<Result<undefined, KnownErrors[\"EmailPasswordMismatch\"] | KnownErrors[\"InvalidTotpCode\"]>>,\n signUpWithCredential(options: { email: string, password: string, noRedirect?: boolean, verificationCallbackUrl?: string }): Promise<Result<undefined, KnownErrors[\"UserEmailAlreadyExists\"] | KnownErrors[\"PasswordRequirementsNotMet\"]>>,\n signInWithPasskey(): Promise<Result<undefined, KnownErrors[\"PasskeyAuthenticationFailed\"]| KnownErrors[\"InvalidTotpCode\"] | KnownErrors[\"PasskeyWebAuthnError\"]>>,\n callOAuthCallback(): Promise<boolean>,\n sendForgotPasswordEmail(email: string, options?: { callbackUrl?: string }): Promise<Result<undefined, KnownErrors[\"UserNotFound\"]>>,\n sendMagicLinkEmail(email: string, options?: { callbackUrl?: string }): Promise<Result<{ nonce: string }, KnownErrors[\"RedirectUrlNotWhitelisted\"]>>,\n resetPassword(options: { code: string, password: string }): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"]>>,\n verifyPasswordResetCode(code: string): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"]>>,\n verifyTeamInvitationCode(code: string): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"]>>,\n acceptTeamInvitation(code: string): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"]>>,\n getTeamInvitationDetails(code: string): Promise<Result<{ teamDisplayName: string }, KnownErrors[\"VerificationCodeError\"]>>,\n verifyEmail(code: string): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"]>>,\n signInWithMagicLink(code: string): Promise<Result<undefined, KnownErrors[\"VerificationCodeError\"] | KnownErrors[\"InvalidTotpCode\"]>>,\n\n redirectToOAuthCallback(): Promise<void>,\n\n useUser(options: GetUserOptions<HasTokenStore> & { or: 'redirect' }): ProjectCurrentUser<ProjectId>,\n useUser(options: GetUserOptions<HasTokenStore> & { or: 'throw' }): ProjectCurrentUser<ProjectId>,\n useUser(options?: GetUserOptions<HasTokenStore>): ProjectCurrentUser<ProjectId> | null,\n\n getUser(options: GetUserOptions<HasTokenStore> & { or: 'redirect' }): Promise<ProjectCurrentUser<ProjectId>>,\n getUser(options: GetUserOptions<HasTokenStore> & { or: 'throw' }): Promise<ProjectCurrentUser<ProjectId>>,\n getUser(options?: GetUserOptions<HasTokenStore>): Promise<ProjectCurrentUser<ProjectId> | null>,\n\n useNavigate(): (to: string) => void,\n\n [stackAppInternalsSymbol]: {\n toClientJson(): StackClientAppJson<HasTokenStore, ProjectId>,\n setCurrentUser(userJsonPromise: Promise<CurrentUserCrud['Client']['Read'] | null>): void,\n },\n }\n & AsyncStoreProperty<\"project\", [], Project, false>\n & { [K in `redirectTo${Capitalize<keyof Omit<HandlerUrls, 'handler' | 'oauthCallback'>>}`]: (options?: RedirectToOptions) => Promise<void> }\n);\nexport type StackClientAppConstructor = {\n new <\n TokenStoreType extends string,\n HasTokenStore extends (TokenStoreType extends {} ? true : boolean),\n ProjectId extends string\n >(options: StackClientAppConstructorOptions<HasTokenStore, ProjectId>): StackClientApp<HasTokenStore, ProjectId>,\n new (options: StackClientAppConstructorOptions<boolean, string>): StackClientApp<boolean, string>,\n\n [stackAppInternalsSymbol]: {\n fromClientJson<HasTokenStore extends boolean, ProjectId extends string>(\n json: StackClientAppJson<HasTokenStore, ProjectId>\n ): StackClientApp<HasTokenStore, ProjectId>,\n },\n};\nexport const StackClientApp: StackClientAppConstructor = _StackClientAppImpl;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,6BAAoC;AAiF7B,IAAM,iBAA4C;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '../../common.mjs';
|
|
2
|
+
export { b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../../index-C7D6Vt7X.mjs';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
4
|
+
import '@stackframe/stack-shared';
|
|
5
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../../api-keys/index.mjs';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../../email-templates/index.mjs';
|
|
15
|
+
import '../../permissions/index.mjs';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.mjs';
|
|
21
|
+
import '../../contact-channels/index.mjs';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.mjs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '../../common.js';
|
|
2
|
+
export { b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../../index-DQk7XJpU.js';
|
|
3
|
+
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
4
|
+
import '@stackframe/stack-shared';
|
|
5
|
+
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
6
|
+
import '@stackframe/stack-shared/dist/utils/results';
|
|
7
|
+
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
+
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
+
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
+
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
+
import '../../api-keys/index.js';
|
|
12
|
+
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
+
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
+
import '../../email-templates/index.js';
|
|
15
|
+
import '../../permissions/index.js';
|
|
16
|
+
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
+
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
+
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
+
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
+
import '../../connected-accounts/index.js';
|
|
21
|
+
import '../../contact-channels/index.js';
|
|
22
|
+
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
+
import '../../project-configs/index.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/stack-app/apps/interfaces/server-app.ts
|
|
21
|
+
var server_app_exports = {};
|
|
22
|
+
__export(server_app_exports, {
|
|
23
|
+
StackServerApp: () => StackServerApp
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(server_app_exports);
|
|
26
|
+
var import_implementations = require("../implementations");
|
|
27
|
+
var StackServerApp = import_implementations._StackServerAppImpl;
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
StackServerApp
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=server-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/stack-app/apps/interfaces/server-app.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nimport { AsyncStoreProperty, GetUserOptions } from \"../../common\";\nimport { ServerListUsersOptions, ServerTeam, ServerTeamCreateOptions } from \"../../teams\";\nimport { ProjectCurrentServerUser, ServerUser, ServerUserCreateOptions } from \"../../users\";\nimport { _StackServerAppImpl } from \"../implementations\";\nimport { StackClientApp, StackClientAppConstructorOptions } from \"./client-app\";\n\n\nexport type StackServerAppConstructorOptions<HasTokenStore extends boolean, ProjectId extends string> = StackClientAppConstructorOptions<HasTokenStore, ProjectId> & {\n secretServerKey?: string,\n};\n\nexport type StackServerApp<HasTokenStore extends boolean = boolean, ProjectId extends string = string> = (\n & {\n createTeam(data: ServerTeamCreateOptions): Promise<ServerTeam>,\n /**\n * @deprecated use `getUser()` instead\n */\n getServerUser(): Promise<ProjectCurrentServerUser<ProjectId> | null>,\n\n createUser(options: ServerUserCreateOptions): Promise<ServerUser>,\n\n useUser(options: GetUserOptions<HasTokenStore> & { or: 'redirect' }): ProjectCurrentServerUser<ProjectId>,\n useUser(options: GetUserOptions<HasTokenStore> & { or: 'throw' }): ProjectCurrentServerUser<ProjectId>,\n useUser(options?: GetUserOptions<HasTokenStore>): ProjectCurrentServerUser<ProjectId> | null,\n\n getUser(options: GetUserOptions<HasTokenStore> & { or: 'redirect' }): Promise<ProjectCurrentServerUser<ProjectId>>,\n getUser(options: GetUserOptions<HasTokenStore> & { or: 'throw' }): Promise<ProjectCurrentServerUser<ProjectId>>,\n getUser(options?: GetUserOptions<HasTokenStore>): Promise<ProjectCurrentServerUser<ProjectId> | null>,\n\n useUsers(options?: ServerListUsersOptions): ServerUser[] & { nextCursor: string | null },\n listUsers(options?: ServerListUsersOptions): Promise<ServerUser[] & { nextCursor: string | null }>,\n }\n & AsyncStoreProperty<\"user\", [id: string], ServerUser | null, false>\n & Omit<AsyncStoreProperty<\"users\", [], ServerUser[], true>, \"listUsers\" | \"useUsers\">\n & AsyncStoreProperty<\"team\", [id: string], ServerTeam | null, false>\n & AsyncStoreProperty<\"teams\", [], ServerTeam[], true>\n & StackClientApp<HasTokenStore, ProjectId>\n);\nexport type StackServerAppConstructor = {\n new <\n TokenStoreType extends string,\n HasTokenStore extends (TokenStoreType extends {} ? true : boolean),\n ProjectId extends string\n >(options: StackServerAppConstructorOptions<HasTokenStore, ProjectId>): StackServerApp<HasTokenStore, ProjectId>,\n new (options: StackServerAppConstructorOptions<boolean, string>): StackServerApp<boolean, string>,\n};\nexport const StackServerApp: StackServerAppConstructor = _StackServerAppImpl;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,6BAAoC;AA2C7B,IAAM,iBAA4C;","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ProviderType } from '@stackframe/stack-shared/dist/utils/oauth';
|
|
2
|
+
|
|
3
|
+
type RedirectToOptions = {
|
|
4
|
+
replace?: boolean;
|
|
5
|
+
noRedirectBack?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type AsyncStoreProperty<Name extends string, Args extends any[], Value, IsMultiple extends boolean> = {
|
|
8
|
+
[key in `${IsMultiple extends true ? "list" : "get"}${Capitalize<Name>}`]: (...args: Args) => Promise<Value>;
|
|
9
|
+
} & {
|
|
10
|
+
[key in `use${Capitalize<Name>}`]: (...args: Args) => Value;
|
|
11
|
+
};
|
|
12
|
+
type EmailConfig = {
|
|
13
|
+
host: string;
|
|
14
|
+
port: number;
|
|
15
|
+
username: string;
|
|
16
|
+
password: string;
|
|
17
|
+
senderEmail: string;
|
|
18
|
+
senderName: string;
|
|
19
|
+
};
|
|
20
|
+
type RedirectMethod = "window" | "nextjs" | "none" | {
|
|
21
|
+
useNavigate: () => (to: string) => void;
|
|
22
|
+
navigate?: (to: string) => void;
|
|
23
|
+
};
|
|
24
|
+
type GetUserOptions<HasTokenStore> = {
|
|
25
|
+
or?: 'redirect' | 'throw' | 'return-null';
|
|
26
|
+
tokenStore?: TokenStoreInit;
|
|
27
|
+
} & (HasTokenStore extends false ? {
|
|
28
|
+
tokenStore: TokenStoreInit;
|
|
29
|
+
} : {});
|
|
30
|
+
type RequestLike = {
|
|
31
|
+
headers: {
|
|
32
|
+
get: (name: string) => string | null;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type TokenStoreInit<HasTokenStore extends boolean = boolean> = HasTokenStore extends true ? ("cookie" | "nextjs-cookie" | "memory" | RequestLike | {
|
|
36
|
+
accessToken: string;
|
|
37
|
+
refreshToken: string;
|
|
38
|
+
}) : HasTokenStore extends false ? null : TokenStoreInit<true> | TokenStoreInit<false>;
|
|
39
|
+
type HandlerUrls = {
|
|
40
|
+
handler: string;
|
|
41
|
+
signIn: string;
|
|
42
|
+
signUp: string;
|
|
43
|
+
afterSignIn: string;
|
|
44
|
+
afterSignUp: string;
|
|
45
|
+
signOut: string;
|
|
46
|
+
afterSignOut: string;
|
|
47
|
+
emailVerification: string;
|
|
48
|
+
passwordReset: string;
|
|
49
|
+
forgotPassword: string;
|
|
50
|
+
home: string;
|
|
51
|
+
oauthCallback: string;
|
|
52
|
+
magicLinkCallback: string;
|
|
53
|
+
accountSettings: string;
|
|
54
|
+
teamInvitation: string;
|
|
55
|
+
error: string;
|
|
56
|
+
};
|
|
57
|
+
type OAuthScopesOnSignIn = {
|
|
58
|
+
[key in ProviderType]: string[];
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
declare const stackAppInternalsSymbol: unique symbol;
|
|
62
|
+
|
|
63
|
+
export { type AsyncStoreProperty, type EmailConfig, type GetUserOptions, type HandlerUrls, type OAuthScopesOnSignIn, type RedirectMethod, type RedirectToOptions, type RequestLike, type TokenStoreInit, stackAppInternalsSymbol };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ProviderType } from '@stackframe/stack-shared/dist/utils/oauth';
|
|
2
|
+
|
|
3
|
+
type RedirectToOptions = {
|
|
4
|
+
replace?: boolean;
|
|
5
|
+
noRedirectBack?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type AsyncStoreProperty<Name extends string, Args extends any[], Value, IsMultiple extends boolean> = {
|
|
8
|
+
[key in `${IsMultiple extends true ? "list" : "get"}${Capitalize<Name>}`]: (...args: Args) => Promise<Value>;
|
|
9
|
+
} & {
|
|
10
|
+
[key in `use${Capitalize<Name>}`]: (...args: Args) => Value;
|
|
11
|
+
};
|
|
12
|
+
type EmailConfig = {
|
|
13
|
+
host: string;
|
|
14
|
+
port: number;
|
|
15
|
+
username: string;
|
|
16
|
+
password: string;
|
|
17
|
+
senderEmail: string;
|
|
18
|
+
senderName: string;
|
|
19
|
+
};
|
|
20
|
+
type RedirectMethod = "window" | "nextjs" | "none" | {
|
|
21
|
+
useNavigate: () => (to: string) => void;
|
|
22
|
+
navigate?: (to: string) => void;
|
|
23
|
+
};
|
|
24
|
+
type GetUserOptions<HasTokenStore> = {
|
|
25
|
+
or?: 'redirect' | 'throw' | 'return-null';
|
|
26
|
+
tokenStore?: TokenStoreInit;
|
|
27
|
+
} & (HasTokenStore extends false ? {
|
|
28
|
+
tokenStore: TokenStoreInit;
|
|
29
|
+
} : {});
|
|
30
|
+
type RequestLike = {
|
|
31
|
+
headers: {
|
|
32
|
+
get: (name: string) => string | null;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type TokenStoreInit<HasTokenStore extends boolean = boolean> = HasTokenStore extends true ? ("cookie" | "nextjs-cookie" | "memory" | RequestLike | {
|
|
36
|
+
accessToken: string;
|
|
37
|
+
refreshToken: string;
|
|
38
|
+
}) : HasTokenStore extends false ? null : TokenStoreInit<true> | TokenStoreInit<false>;
|
|
39
|
+
type HandlerUrls = {
|
|
40
|
+
handler: string;
|
|
41
|
+
signIn: string;
|
|
42
|
+
signUp: string;
|
|
43
|
+
afterSignIn: string;
|
|
44
|
+
afterSignUp: string;
|
|
45
|
+
signOut: string;
|
|
46
|
+
afterSignOut: string;
|
|
47
|
+
emailVerification: string;
|
|
48
|
+
passwordReset: string;
|
|
49
|
+
forgotPassword: string;
|
|
50
|
+
home: string;
|
|
51
|
+
oauthCallback: string;
|
|
52
|
+
magicLinkCallback: string;
|
|
53
|
+
accountSettings: string;
|
|
54
|
+
teamInvitation: string;
|
|
55
|
+
error: string;
|
|
56
|
+
};
|
|
57
|
+
type OAuthScopesOnSignIn = {
|
|
58
|
+
[key in ProviderType]: string[];
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
declare const stackAppInternalsSymbol: unique symbol;
|
|
62
|
+
|
|
63
|
+
export { type AsyncStoreProperty, type EmailConfig, type GetUserOptions, type HandlerUrls, type OAuthScopesOnSignIn, type RedirectMethod, type RedirectToOptions, type RequestLike, type TokenStoreInit, stackAppInternalsSymbol };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/stack-app/common.ts
|
|
21
|
+
var common_exports = {};
|
|
22
|
+
__export(common_exports, {
|
|
23
|
+
stackAppInternalsSymbol: () => stackAppInternalsSymbol
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(common_exports);
|
|
26
|
+
var stackAppInternalsSymbol = Symbol.for("StackAuth--DO-NOT-USE-OR-YOU-WILL-BE-FIRED--StackAppInternals");
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
stackAppInternalsSymbol
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/stack-app/common.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nimport { ProviderType } from \"@stackframe/stack-shared/dist/utils/oauth\";\n\nexport type RedirectToOptions = {\n replace?: boolean,\n noRedirectBack?: boolean,\n};\n\nexport type AsyncStoreProperty<Name extends string, Args extends any[], Value, IsMultiple extends boolean> =\n & { [key in `${IsMultiple extends true ? \"list\" : \"get\"}${Capitalize<Name>}`]: (...args: Args) => Promise<Value> }\n & { [key in `use${Capitalize<Name>}`]: (...args: Args) => Value }\n\nexport type EmailConfig = {\n host: string,\n port: number,\n username: string,\n password: string,\n senderEmail: string,\n senderName: string,\n}\n\nexport type RedirectMethod = \"window\"\n | \"nextjs\"\n | \"none\"\n | {\n useNavigate: () => (to: string) => void,\n navigate?: (to: string) => void,\n }\n\n\nexport type GetUserOptions<HasTokenStore> =\n & {\n or?: 'redirect' | 'throw' | 'return-null',\n tokenStore?: TokenStoreInit,\n }\n & (HasTokenStore extends false ? {\n tokenStore: TokenStoreInit,\n } : {});\n\nexport type RequestLike = {\n headers: {\n get: (name: string) => string | null,\n },\n};\n\nexport type TokenStoreInit<HasTokenStore extends boolean = boolean> =\n HasTokenStore extends true ? (\n | \"cookie\"\n | \"nextjs-cookie\"\n | \"memory\"\n | RequestLike\n | { accessToken: string, refreshToken: string }\n )\n : HasTokenStore extends false ? null\n : TokenStoreInit<true> | TokenStoreInit<false>;\n\nexport type HandlerUrls = {\n handler: string,\n signIn: string,\n signUp: string,\n afterSignIn: string,\n afterSignUp: string,\n signOut: string,\n afterSignOut: string,\n emailVerification: string,\n passwordReset: string,\n forgotPassword: string,\n home: string,\n oauthCallback: string,\n magicLinkCallback: string,\n accountSettings: string,\n teamInvitation: string,\n error: string,\n}\n\nexport type OAuthScopesOnSignIn = {\n [key in ProviderType]: string[];\n};\n\n/** @internal */\nexport const stackAppInternalsSymbol = Symbol.for(\"StackAuth--DO-NOT-USE-OR-YOU-WILL-BE-FIRED--StackAppInternals\");\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmFO,IAAM,0BAA0B,OAAO,IAAI,+DAA+D;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/lib/stack-app/connected-accounts/index.ts
|
|
17
|
+
var connected_accounts_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(connected_accounts_exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/stack-app/connected-accounts/index.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\n\n\nexport type Connection = {\n id: string,\n};\n\nexport type OAuthConnection = {\n getAccessToken(): Promise<{ accessToken: string }>,\n useAccessToken(): { accessToken: string },\n} & Connection;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|