@3sixty/engine-server-types 0.20.0-next.4 → 0.20.0-next.6

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 (116) hide show
  1. package/dist/es/components/authentication.js +41 -7
  2. package/dist/es/components/authentication.js.map +1 -1
  3. package/dist/es/components/authenticationAccount.js +86 -0
  4. package/dist/es/components/authenticationAccount.js.map +1 -0
  5. package/dist/es/components/authenticationAccountAdmin.js +47 -0
  6. package/dist/es/components/authenticationAccountAdmin.js.map +1 -0
  7. package/dist/es/components/authenticationAdmin.js +11 -9
  8. package/dist/es/components/authenticationAdmin.js.map +1 -1
  9. package/dist/es/components/authenticationProvider.js +45 -0
  10. package/dist/es/components/authenticationProvider.js.map +1 -0
  11. package/dist/es/components/oauth.js +32 -0
  12. package/dist/es/components/oauth.js.map +1 -0
  13. package/dist/es/components/organization.js +44 -0
  14. package/dist/es/components/organization.js.map +1 -0
  15. package/dist/es/components/organizationRequestAdmin.js +41 -0
  16. package/dist/es/components/organizationRequestAdmin.js.map +1 -0
  17. package/dist/es/components/restRouteProcessor.js +19 -9
  18. package/dist/es/components/restRouteProcessor.js.map +1 -1
  19. package/dist/es/components/socketRouteProcessor.js +19 -9
  20. package/dist/es/components/socketRouteProcessor.js.map +1 -1
  21. package/dist/es/index.js +18 -0
  22. package/dist/es/index.js.map +1 -1
  23. package/dist/es/models/IEngineServerConfig.js.map +1 -1
  24. package/dist/es/models/config/authenticationAccountAdminComponentConfig.js +2 -0
  25. package/dist/es/models/config/authenticationAccountAdminComponentConfig.js.map +1 -0
  26. package/dist/es/models/config/authenticationAccountComponentConfig.js +2 -0
  27. package/dist/es/models/config/authenticationAccountComponentConfig.js.map +1 -0
  28. package/dist/es/models/config/authenticationProviderConfig.js +2 -0
  29. package/dist/es/models/config/authenticationProviderConfig.js.map +1 -0
  30. package/dist/es/models/config/oauthComponentConfig.js +2 -0
  31. package/dist/es/models/config/oauthComponentConfig.js.map +1 -0
  32. package/dist/es/models/config/organizationComponentConfig.js +2 -0
  33. package/dist/es/models/config/organizationComponentConfig.js.map +1 -0
  34. package/dist/es/models/config/organizationRequestAdminComponentConfig.js +2 -0
  35. package/dist/es/models/config/organizationRequestAdminComponentConfig.js.map +1 -0
  36. package/dist/es/models/config/restRouteProcessorConfig.js.map +1 -1
  37. package/dist/es/models/config/socketRouteProcessorConfig.js.map +1 -1
  38. package/dist/es/models/types/authenticationAccountAdminComponentType.js +17 -0
  39. package/dist/es/models/types/authenticationAccountAdminComponentType.js.map +1 -0
  40. package/dist/es/models/types/authenticationAccountComponentType.js +17 -0
  41. package/dist/es/models/types/authenticationAccountComponentType.js.map +1 -0
  42. package/dist/es/models/types/authenticationProviderType.js +21 -0
  43. package/dist/es/models/types/authenticationProviderType.js.map +1 -0
  44. package/dist/es/models/types/oauthComponentType.js +13 -0
  45. package/dist/es/models/types/oauthComponentType.js.map +1 -0
  46. package/dist/es/models/types/organizationComponentType.js +17 -0
  47. package/dist/es/models/types/organizationComponentType.js.map +1 -0
  48. package/dist/es/models/types/organizationRequestAdminComponentType.js +17 -0
  49. package/dist/es/models/types/organizationRequestAdminComponentType.js.map +1 -0
  50. package/dist/es/models/types/restRouteProcessorType.js +10 -1
  51. package/dist/es/models/types/restRouteProcessorType.js.map +1 -1
  52. package/dist/es/models/types/socketRouteProcessorType.js +10 -1
  53. package/dist/es/models/types/socketRouteProcessorType.js.map +1 -1
  54. package/dist/types/components/authentication.d.ts +16 -0
  55. package/dist/types/components/authenticationAccount.d.ts +37 -0
  56. package/dist/types/components/authenticationAccountAdmin.d.ts +12 -0
  57. package/dist/types/components/authenticationProvider.d.ts +12 -0
  58. package/dist/types/components/oauth.d.ts +12 -0
  59. package/dist/types/components/organization.d.ts +12 -0
  60. package/dist/types/components/organizationRequestAdmin.d.ts +12 -0
  61. package/dist/types/index.d.ts +18 -0
  62. package/dist/types/models/IEngineServerConfig.d.ts +30 -0
  63. package/dist/types/models/config/authenticationAccountAdminComponentConfig.d.ts +13 -0
  64. package/dist/types/models/config/authenticationAccountComponentConfig.d.ts +13 -0
  65. package/dist/types/models/config/authenticationProviderConfig.d.ts +17 -0
  66. package/dist/types/models/config/oauthComponentConfig.d.ts +9 -0
  67. package/dist/types/models/config/organizationComponentConfig.d.ts +13 -0
  68. package/dist/types/models/config/organizationRequestAdminComponentConfig.d.ts +13 -0
  69. package/dist/types/models/config/restRouteProcessorConfig.d.ts +8 -1
  70. package/dist/types/models/config/socketRouteProcessorConfig.d.ts +8 -1
  71. package/dist/types/models/types/authenticationAccountAdminComponentType.d.ts +17 -0
  72. package/dist/types/models/types/authenticationAccountComponentType.d.ts +17 -0
  73. package/dist/types/models/types/authenticationProviderType.d.ts +21 -0
  74. package/dist/types/models/types/oauthComponentType.d.ts +13 -0
  75. package/dist/types/models/types/organizationComponentType.d.ts +17 -0
  76. package/dist/types/models/types/organizationRequestAdminComponentType.d.ts +17 -0
  77. package/dist/types/models/types/restRouteProcessorType.d.ts +8 -0
  78. package/dist/types/models/types/socketRouteProcessorType.d.ts +8 -0
  79. package/docs/changelog.md +30 -0
  80. package/docs/examples.md +91 -0
  81. package/docs/reference/functions/initialiseAccountDataEntityStorage.md +30 -0
  82. package/docs/reference/functions/initialiseAuthenticationAccountAdminComponent.md +31 -0
  83. package/docs/reference/functions/initialiseAuthenticationAccountComponent.md +31 -0
  84. package/docs/reference/functions/initialiseAuthenticationPasswordResetEntityStorage.md +30 -0
  85. package/docs/reference/functions/initialiseAuthenticationProvider.md +31 -0
  86. package/docs/reference/functions/initialiseAuthenticationUserEntityStorage.md +30 -0
  87. package/docs/reference/functions/initialiseOAuthComponent.md +31 -0
  88. package/docs/reference/functions/initialiseOrganizationComponent.md +31 -0
  89. package/docs/reference/functions/initialiseOrganizationEntityStorage.md +31 -0
  90. package/docs/reference/functions/initialiseOrganizationRequestAdminComponent.md +31 -0
  91. package/docs/reference/functions/initialiseOrganizationRequestEntityStorage.md +30 -0
  92. package/docs/reference/index.md +29 -0
  93. package/docs/reference/interfaces/IEngineServerConfig.md +36 -0
  94. package/docs/reference/type-aliases/AuthenticationAccountAdminComponentConfig.md +5 -0
  95. package/docs/reference/type-aliases/AuthenticationAccountAdminComponentType.md +5 -0
  96. package/docs/reference/type-aliases/AuthenticationAccountComponentConfig.md +5 -0
  97. package/docs/reference/type-aliases/AuthenticationAccountComponentType.md +5 -0
  98. package/docs/reference/type-aliases/AuthenticationProviderConfig.md +5 -0
  99. package/docs/reference/type-aliases/AuthenticationProviderType.md +5 -0
  100. package/docs/reference/type-aliases/OAuthComponentConfig.md +17 -0
  101. package/docs/reference/type-aliases/OAuthComponentType.md +5 -0
  102. package/docs/reference/type-aliases/OrganizationComponentConfig.md +5 -0
  103. package/docs/reference/type-aliases/OrganizationComponentType.md +5 -0
  104. package/docs/reference/type-aliases/OrganizationRequestAdminComponentConfig.md +5 -0
  105. package/docs/reference/type-aliases/OrganizationRequestAdminComponentType.md +5 -0
  106. package/docs/reference/type-aliases/RestRouteProcessorConfig.md +1 -1
  107. package/docs/reference/type-aliases/SocketRouteProcessorConfig.md +1 -1
  108. package/docs/reference/variables/AuthenticationAccountAdminComponentType.md +19 -0
  109. package/docs/reference/variables/AuthenticationAccountComponentType.md +19 -0
  110. package/docs/reference/variables/AuthenticationProviderType.md +25 -0
  111. package/docs/reference/variables/OAuthComponentType.md +13 -0
  112. package/docs/reference/variables/OrganizationComponentType.md +19 -0
  113. package/docs/reference/variables/OrganizationRequestAdminComponentType.md +19 -0
  114. package/docs/reference/variables/RestRouteProcessorType.md +12 -0
  115. package/docs/reference/variables/SocketRouteProcessorType.md +12 -0
  116. package/package.json +10 -3
@@ -1,4 +1,5 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
+ // Copyright 2026 3Sixty Trade Ltd.
2
3
  // SPDX-License-Identifier: Apache-2.0.
3
4
  /**
4
5
  * REST route processor types.
@@ -9,6 +10,10 @@ export const RestRouteProcessorType = {
9
10
  * Auth header.
10
11
  */
11
12
  AuthHeader: "auth-header",
13
+ /**
14
+ * Authentication account, sets the identity and organization of the signed in account.
15
+ */
16
+ AuthenticationAccount: "authentication-account",
12
17
  /**
13
18
  * Logging.
14
19
  */
@@ -48,6 +53,10 @@ export const RestRouteProcessorType = {
48
53
  /**
49
54
  * Authorization.
50
55
  */
51
- Authorization: "authorization"
56
+ Authorization: "authorization",
57
+ /**
58
+ * Origin check, rejects cookie authenticated state changing requests from other origins.
59
+ */
60
+ OriginCheck: "origin-check"
52
61
  };
53
62
  //# sourceMappingURL=restRouteProcessorType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"restRouteProcessorType.js","sources":["../../../../src/models/types/restRouteProcessorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,eAAe,EAAE,mBAAmB;IAEpC;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,aAAa,EAAE,eAAe;CACrB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * REST route processor types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RestRouteProcessorType = {\n\t/**\n\t * Auth header.\n\t */\n\tAuthHeader: \"auth-header\",\n\n\t/**\n\t * Logging.\n\t */\n\tLogging: \"logging\",\n\n\t/**\n\t * Context ID.\n\t */\n\tContextId: \"context-id\",\n\n\t/**\n\t * Static Context ID.\n\t */\n\tStaticContextId: \"static-context-id\",\n\n\t/**\n\t * Tenant.\n\t */\n\tTenant: \"tenant\",\n\n\t/**\n\t * Single Tenant.\n\t */\n\tSingleTenant: \"single-tenant\",\n\n\t/**\n\t * Tenant override.\n\t */\n\tTenantOverride: \"tenant-override\",\n\n\t/**\n\t * REST Route.\n\t */\n\tRestRoute: \"rest-route\",\n\n\t/**\n\t * Metrics.\n\t */\n\tMetrics: \"metrics\",\n\n\t/**\n\t * Tracing.\n\t */\n\tTracing: \"tracing\",\n\n\t/**\n\t * Authorization.\n\t */\n\tAuthorization: \"authorization\"\n} as const;\n\n/**\n * REST route processor types.\n */\nexport type RestRouteProcessorType =\n\t(typeof RestRouteProcessorType)[keyof typeof RestRouteProcessorType];\n"]}
1
+ {"version":3,"file":"restRouteProcessorType.js","sources":["../../../../src/models/types/restRouteProcessorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,mCAAmC;AACnC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,qBAAqB,EAAE,wBAAwB;IAE/C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,eAAe,EAAE,mBAAmB;IAEpC;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// Copyright 2026 3Sixty Trade Ltd.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * REST route processor types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RestRouteProcessorType = {\n\t/**\n\t * Auth header.\n\t */\n\tAuthHeader: \"auth-header\",\n\n\t/**\n\t * Authentication account, sets the identity and organization of the signed in account.\n\t */\n\tAuthenticationAccount: \"authentication-account\",\n\n\t/**\n\t * Logging.\n\t */\n\tLogging: \"logging\",\n\n\t/**\n\t * Context ID.\n\t */\n\tContextId: \"context-id\",\n\n\t/**\n\t * Static Context ID.\n\t */\n\tStaticContextId: \"static-context-id\",\n\n\t/**\n\t * Tenant.\n\t */\n\tTenant: \"tenant\",\n\n\t/**\n\t * Single Tenant.\n\t */\n\tSingleTenant: \"single-tenant\",\n\n\t/**\n\t * Tenant override.\n\t */\n\tTenantOverride: \"tenant-override\",\n\n\t/**\n\t * REST Route.\n\t */\n\tRestRoute: \"rest-route\",\n\n\t/**\n\t * Metrics.\n\t */\n\tMetrics: \"metrics\",\n\n\t/**\n\t * Tracing.\n\t */\n\tTracing: \"tracing\",\n\n\t/**\n\t * Authorization.\n\t */\n\tAuthorization: \"authorization\",\n\n\t/**\n\t * Origin check, rejects cookie authenticated state changing requests from other origins.\n\t */\n\tOriginCheck: \"origin-check\"\n} as const;\n\n/**\n * REST route processor types.\n */\nexport type RestRouteProcessorType =\n\t(typeof RestRouteProcessorType)[keyof typeof RestRouteProcessorType];\n"]}
@@ -1,4 +1,5 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
+ // Copyright 2026 3Sixty Trade Ltd.
2
3
  // SPDX-License-Identifier: Apache-2.0.
3
4
  /**
4
5
  * Socket route processor types.
@@ -9,6 +10,10 @@ export const SocketRouteProcessorType = {
9
10
  * Auth header.
10
11
  */
11
12
  AuthHeader: "auth-header",
13
+ /**
14
+ * Authentication account, sets the identity and organization of the signed in account.
15
+ */
16
+ AuthenticationAccount: "authentication-account",
12
17
  /**
13
18
  * Logging.
14
19
  */
@@ -40,6 +45,10 @@ export const SocketRouteProcessorType = {
40
45
  /**
41
46
  * Authorization.
42
47
  */
43
- Authorization: "authorization"
48
+ Authorization: "authorization",
49
+ /**
50
+ * Origin check, rejects cookie authenticated socket connections from other origins.
51
+ */
52
+ OriginCheck: "origin-check"
44
53
  };
45
54
  //# sourceMappingURL=socketRouteProcessorType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"socketRouteProcessorType.js","sources":["../../../../src/models/types/socketRouteProcessorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,eAAe,EAAE,mBAAmB;IAEpC;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,WAAW,EAAE,cAAc;IAE3B;;OAEG;IACH,aAAa,EAAE,eAAe;CACrB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Socket route processor types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const SocketRouteProcessorType = {\n\t/**\n\t * Auth header.\n\t */\n\tAuthHeader: \"auth-header\",\n\n\t/**\n\t * Logging.\n\t */\n\tLogging: \"logging\",\n\n\t/**\n\t * Context ID.\n\t */\n\tContextId: \"context-id\",\n\n\t/**\n\t * Static Context ID.\n\t */\n\tStaticContextId: \"static-context-id\",\n\n\t/**\n\t * Tenant.\n\t */\n\tTenant: \"tenant\",\n\n\t/**\n\t * Single Tenant.\n\t */\n\tSingleTenant: \"single-tenant\",\n\n\t/**\n\t * Tenant override.\n\t */\n\tTenantOverride: \"tenant-override\",\n\n\t/**\n\t * Socket Route.\n\t */\n\tSocketRoute: \"socket-route\",\n\n\t/**\n\t * Authorization.\n\t */\n\tAuthorization: \"authorization\"\n} as const;\n\n/**\n * Socket route processor types.\n */\nexport type SocketRouteProcessorType =\n\t(typeof SocketRouteProcessorType)[keyof typeof SocketRouteProcessorType];\n"]}
1
+ {"version":3,"file":"socketRouteProcessorType.js","sources":["../../../../src/models/types/socketRouteProcessorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,mCAAmC;AACnC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,qBAAqB,EAAE,wBAAwB;IAE/C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,YAAY;IAEvB;;OAEG;IACH,eAAe,EAAE,mBAAmB;IAEpC;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,WAAW,EAAE,cAAc;IAE3B;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// Copyright 2026 3Sixty Trade Ltd.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Socket route processor types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const SocketRouteProcessorType = {\n\t/**\n\t * Auth header.\n\t */\n\tAuthHeader: \"auth-header\",\n\n\t/**\n\t * Authentication account, sets the identity and organization of the signed in account.\n\t */\n\tAuthenticationAccount: \"authentication-account\",\n\n\t/**\n\t * Logging.\n\t */\n\tLogging: \"logging\",\n\n\t/**\n\t * Context ID.\n\t */\n\tContextId: \"context-id\",\n\n\t/**\n\t * Static Context ID.\n\t */\n\tStaticContextId: \"static-context-id\",\n\n\t/**\n\t * Tenant.\n\t */\n\tTenant: \"tenant\",\n\n\t/**\n\t * Single Tenant.\n\t */\n\tSingleTenant: \"single-tenant\",\n\n\t/**\n\t * Tenant override.\n\t */\n\tTenantOverride: \"tenant-override\",\n\n\t/**\n\t * Socket Route.\n\t */\n\tSocketRoute: \"socket-route\",\n\n\t/**\n\t * Authorization.\n\t */\n\tAuthorization: \"authorization\",\n\n\t/**\n\t * Origin check, rejects cookie authenticated socket connections from other origins.\n\t */\n\tOriginCheck: \"origin-check\"\n} as const;\n\n/**\n * Socket route processor types.\n */\nexport type SocketRouteProcessorType =\n\t(typeof SocketRouteProcessorType)[keyof typeof SocketRouteProcessorType];\n"]}
@@ -2,6 +2,22 @@ import { ComponentFactory } from "@3sixty/core";
2
2
  import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
3
  import type { AuthenticationComponentConfig } from "../models/config/authenticationComponentConfig.js";
4
4
  import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the entity storage of the authentication users, shared by every component that uses
7
+ * it so the schema and partitions match.
8
+ * @param engineCore The engine core.
9
+ * @param context The context for the engine.
10
+ * @param storageType The configured storage type.
11
+ */
12
+ export declare function initialiseAuthenticationUserEntityStorage(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, storageType: string | undefined): void;
13
+ /**
14
+ * Initialise the entity storage of the password reset and sign up verification tokens, partitioned
15
+ * like the accounts they belong to.
16
+ * @param engineCore The engine core.
17
+ * @param context The context for the engine.
18
+ * @param storageType The configured storage type.
19
+ */
20
+ export declare function initialiseAuthenticationPasswordResetEntityStorage(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, storageType: string | undefined): void;
5
21
  /**
6
22
  * Initialise the authentication component.
7
23
  * @param engineCore The engine core.
@@ -0,0 +1,37 @@
1
+ import { ComponentFactory } from "@3sixty/core";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { AuthenticationAccountComponentConfig } from "../models/config/authenticationAccountComponentConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the entity storage of the account data, shared by every component that uses it so the
7
+ * schema and partitions match.
8
+ * @param engineCore The engine core.
9
+ * @param context The context for the engine.
10
+ * @param storageType The configured storage type.
11
+ */
12
+ export declare function initialiseAccountDataEntityStorage(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, storageType: string | undefined): void;
13
+ /**
14
+ * Initialise the entity storage of the requests to join an organization, shared by every component
15
+ * that uses it so the schema and partitions match.
16
+ * @param engineCore The engine core.
17
+ * @param context The context for the engine.
18
+ * @param storageType The configured storage type.
19
+ */
20
+ export declare function initialiseOrganizationRequestEntityStorage(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, storageType: string | undefined): void;
21
+ /**
22
+ * Initialise the entity storage of the registered organizations, inside the tenant partition like
23
+ * the accounts that join them. Every component that checks an organization is registered
24
+ * initialises it, so the check never runs against missing storage.
25
+ * @param engineCore The engine core.
26
+ * @param context The context for the engine.
27
+ * @param storageType The configured storage type.
28
+ */
29
+ export declare function initialiseOrganizationEntityStorage(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, storageType: string | undefined): void;
30
+ /**
31
+ * Initialise the authentication account component.
32
+ * @param engineCore The engine core.
33
+ * @param context The context for the engine.
34
+ * @param instanceConfig The instance config.
35
+ * @returns The instance created and the factory for it.
36
+ */
37
+ export declare function initialiseAuthenticationAccountComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationAccountComponentConfig): EngineTypeInitialiserReturn<AuthenticationAccountComponentConfig, typeof ComponentFactory>;
@@ -0,0 +1,12 @@
1
+ import { ComponentFactory } from "@3sixty/core";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { AuthenticationAccountAdminComponentConfig } from "../models/config/authenticationAccountAdminComponentConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the authentication account admin component.
7
+ * @param engineCore The engine core.
8
+ * @param context The context for the engine.
9
+ * @param instanceConfig The instance config.
10
+ * @returns The instance created and the factory for it.
11
+ */
12
+ export declare function initialiseAuthenticationAccountAdminComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationAccountAdminComponentConfig): EngineTypeInitialiserReturn<AuthenticationAccountAdminComponentConfig, typeof ComponentFactory>;
@@ -0,0 +1,12 @@
1
+ import { AuthenticationProviderFactory } from "@3sixty/api-auth-models";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { AuthenticationProviderConfig } from "../models/config/authenticationProviderConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise an authentication provider, registered under its authentication provider id.
7
+ * @param engineCore The engine core.
8
+ * @param context The context for the engine.
9
+ * @param instanceConfig The instance config.
10
+ * @returns The instance created and the factory for it.
11
+ */
12
+ export declare function initialiseAuthenticationProvider(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationProviderConfig): EngineTypeInitialiserReturn<AuthenticationProviderConfig, typeof AuthenticationProviderFactory>;
@@ -0,0 +1,12 @@
1
+ import { ComponentFactory } from "@3sixty/core";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { OAuthComponentConfig } from "../models/config/oauthComponentConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the OAuth sign in component.
7
+ * @param engineCore The engine core.
8
+ * @param context The context for the engine.
9
+ * @param instanceConfig The instance config.
10
+ * @returns The instance created and the factory for it.
11
+ */
12
+ export declare function initialiseOAuthComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: OAuthComponentConfig): EngineTypeInitialiserReturn<OAuthComponentConfig, typeof ComponentFactory>;
@@ -0,0 +1,12 @@
1
+ import { ComponentFactory } from "@3sixty/core";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { OrganizationComponentConfig } from "../models/config/organizationComponentConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the organization component.
7
+ * @param engineCore The engine core.
8
+ * @param context The context for the engine.
9
+ * @param instanceConfig The instance config.
10
+ * @returns The instance created and the factory for it.
11
+ */
12
+ export declare function initialiseOrganizationComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: OrganizationComponentConfig): EngineTypeInitialiserReturn<OrganizationComponentConfig, typeof ComponentFactory>;
@@ -0,0 +1,12 @@
1
+ import { ComponentFactory } from "@3sixty/core";
2
+ import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@3sixty/engine-models";
3
+ import type { OrganizationRequestAdminComponentConfig } from "../models/config/organizationRequestAdminComponentConfig.js";
4
+ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
5
+ /**
6
+ * Initialise the organization request admin component.
7
+ * @param engineCore The engine core.
8
+ * @param context The context for the engine.
9
+ * @param instanceConfig The instance config.
10
+ * @returns The instance created and the factory for it.
11
+ */
12
+ export declare function initialiseOrganizationRequestAdminComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: OrganizationRequestAdminComponentConfig): EngineTypeInitialiserReturn<OrganizationRequestAdminComponentConfig, typeof ComponentFactory>;
@@ -1,26 +1,44 @@
1
1
  export * from "./components/authentication.js";
2
+ export * from "./components/authenticationAccount.js";
3
+ export * from "./components/authenticationAccountAdmin.js";
2
4
  export * from "./components/authenticationAdmin.js";
3
5
  export * from "./components/authenticationAudit.js";
6
+ export * from "./components/authenticationProvider.js";
4
7
  export * from "./components/authenticationRate.js";
5
8
  export * from "./components/information.js";
6
9
  export * from "./components/mimeTypeProcessor.js";
10
+ export * from "./components/oauth.js";
11
+ export * from "./components/organization.js";
12
+ export * from "./components/organizationRequestAdmin.js";
7
13
  export * from "./components/restRouteProcessor.js";
8
14
  export * from "./components/socketRouteProcessor.js";
15
+ export * from "./models/config/authenticationAccountAdminComponentConfig.js";
16
+ export * from "./models/config/authenticationAccountComponentConfig.js";
9
17
  export * from "./models/config/authenticationAdminComponentConfig.js";
10
18
  export * from "./models/config/authenticationAuditComponentConfig.js";
11
19
  export * from "./models/config/authenticationComponentConfig.js";
20
+ export * from "./models/config/authenticationProviderConfig.js";
12
21
  export * from "./models/config/authenticationRateComponentConfig.js";
13
22
  export * from "./models/config/informationComponentConfig.js";
14
23
  export * from "./models/config/mimeTypeProcessorConfig.js";
24
+ export * from "./models/config/oauthComponentConfig.js";
25
+ export * from "./models/config/organizationComponentConfig.js";
26
+ export * from "./models/config/organizationRequestAdminComponentConfig.js";
15
27
  export * from "./models/config/restRouteProcessorConfig.js";
16
28
  export * from "./models/config/socketRouteProcessorConfig.js";
17
29
  export * from "./models/IEngineServerConfig.js";
30
+ export * from "./models/types/authenticationAccountAdminComponentType.js";
31
+ export * from "./models/types/authenticationAccountComponentType.js";
18
32
  export * from "./models/types/authenticationAdminComponentType.js";
19
33
  export * from "./models/types/authenticationAuditComponentType.js";
20
34
  export * from "./models/types/authenticationComponentType.js";
35
+ export * from "./models/types/authenticationProviderType.js";
21
36
  export * from "./models/types/authenticationRateComponentType.js";
22
37
  export * from "./models/types/informationComponentType.js";
23
38
  export * from "./models/types/mimeTypeProcessorType.js";
39
+ export * from "./models/types/oauthComponentType.js";
40
+ export * from "./models/types/organizationComponentType.js";
41
+ export * from "./models/types/organizationRequestAdminComponentType.js";
24
42
  export * from "./models/types/restRouteProcessorType.js";
25
43
  export * from "./models/types/socketRouteProcessorType.js";
26
44
  export * from "./models/types/webServerType.js";
@@ -1,12 +1,18 @@
1
1
  import type { IWebServerOptions } from "@3sixty/api-models";
2
2
  import type { IEngineCoreTypeConfig } from "@3sixty/engine-models";
3
3
  import type { IEngineConfig } from "@3sixty/engine-types";
4
+ import type { AuthenticationAccountAdminComponentConfig } from "./config/authenticationAccountAdminComponentConfig.js";
5
+ import type { AuthenticationAccountComponentConfig } from "./config/authenticationAccountComponentConfig.js";
4
6
  import type { AuthenticationAdminComponentConfig } from "./config/authenticationAdminComponentConfig.js";
5
7
  import type { AuthenticationAuditComponentConfig } from "./config/authenticationAuditComponentConfig.js";
6
8
  import type { AuthenticationComponentConfig } from "./config/authenticationComponentConfig.js";
9
+ import type { AuthenticationProviderConfig } from "./config/authenticationProviderConfig.js";
7
10
  import type { AuthenticationRateComponentConfig } from "./config/authenticationRateComponentConfig.js";
8
11
  import type { InformationComponentConfig } from "./config/informationComponentConfig.js";
9
12
  import type { MimeTypeProcessorConfig } from "./config/mimeTypeProcessorConfig.js";
13
+ import type { OAuthComponentConfig } from "./config/oauthComponentConfig.js";
14
+ import type { OrganizationComponentConfig } from "./config/organizationComponentConfig.js";
15
+ import type { OrganizationRequestAdminComponentConfig } from "./config/organizationRequestAdminComponentConfig.js";
10
16
  import type { RestRouteProcessorConfig } from "./config/restRouteProcessorConfig.js";
11
17
  import type { SocketRouteProcessorConfig } from "./config/socketRouteProcessorConfig.js";
12
18
  import type { WebServerType } from "./types/webServerType.js";
@@ -60,5 +66,29 @@ export interface IEngineServerConfig extends IEngineConfig {
60
66
  * Authentication admin component options which can be overridden by individual components by specifying types other than default.
61
67
  */
62
68
  authenticationAdminComponent?: IEngineCoreTypeConfig<AuthenticationAdminComponentConfig>[];
69
+ /**
70
+ * Authentication providers, each registered under its authentication provider id.
71
+ */
72
+ authenticationProvider?: IEngineCoreTypeConfig<AuthenticationProviderConfig>[];
73
+ /**
74
+ * Authentication account component options, for the data stored against the signed in account.
75
+ */
76
+ authenticationAccountComponent?: IEngineCoreTypeConfig<AuthenticationAccountComponentConfig>[];
77
+ /**
78
+ * Authentication account admin component options, for the data stored against any account.
79
+ */
80
+ authenticationAccountAdminComponent?: IEngineCoreTypeConfig<AuthenticationAccountAdminComponentConfig>[];
81
+ /**
82
+ * Organization request admin component options, for reviewing the requests to join an organization.
83
+ */
84
+ organizationRequestAdminComponent?: IEngineCoreTypeConfig<OrganizationRequestAdminComponentConfig>[];
85
+ /**
86
+ * Organization component options, for the organizations registered on the node and their profiles.
87
+ */
88
+ organizationComponent?: IEngineCoreTypeConfig<OrganizationComponentConfig>[];
89
+ /**
90
+ * OAuth sign in component options which can be overridden by individual components by specifying types other than default.
91
+ */
92
+ oauthComponent?: IEngineCoreTypeConfig<OAuthComponentConfig>[];
63
93
  };
64
94
  }
@@ -0,0 +1,13 @@
1
+ import type { IEntityStorageAuthenticationAccountAdminServiceConstructorOptions } from "@3sixty/api-auth-account-service";
2
+ import type { IBaseRestClientConfig } from "@3sixty/api-models";
3
+ import type { AuthenticationAccountAdminComponentType } from "../types/authenticationAccountAdminComponentType.js";
4
+ /**
5
+ * Authentication account admin component config types.
6
+ */
7
+ export type AuthenticationAccountAdminComponentConfig = {
8
+ type: typeof AuthenticationAccountAdminComponentType.EntityStorage;
9
+ options?: IEntityStorageAuthenticationAccountAdminServiceConstructorOptions;
10
+ } | {
11
+ type: typeof AuthenticationAccountAdminComponentType.RestClient;
12
+ options: IBaseRestClientConfig;
13
+ };
@@ -0,0 +1,13 @@
1
+ import type { IEntityStorageAuthenticationAccountServiceConstructorOptions } from "@3sixty/api-auth-account-service";
2
+ import type { IBaseRestClientConfig } from "@3sixty/api-models";
3
+ import type { AuthenticationAccountComponentType } from "../types/authenticationAccountComponentType.js";
4
+ /**
5
+ * Authentication account component config types.
6
+ */
7
+ export type AuthenticationAccountComponentConfig = {
8
+ type: typeof AuthenticationAccountComponentType.EntityStorage;
9
+ options?: IEntityStorageAuthenticationAccountServiceConstructorOptions;
10
+ } | {
11
+ type: typeof AuthenticationAccountComponentType.RestClient;
12
+ options: IBaseRestClientConfig;
13
+ };
@@ -0,0 +1,17 @@
1
+ import type { IEntityStorageAuthenticationProviderConnectorConstructorOptions } from "@3sixty/api-auth-connector-entity-storage";
2
+ import type { IGoogleOAuthProviderConnectorConstructorOptions } from "@3sixty/api-auth-oauth-connector-google";
3
+ import type { IMicrosoftOAuthProviderConnectorConstructorOptions } from "@3sixty/api-auth-oauth-connector-microsoft";
4
+ import type { AuthenticationProviderType } from "../types/authenticationProviderType.js";
5
+ /**
6
+ * Authentication provider config types.
7
+ */
8
+ export type AuthenticationProviderConfig = {
9
+ type: typeof AuthenticationProviderType.EntityStorage;
10
+ options?: IEntityStorageAuthenticationProviderConnectorConstructorOptions;
11
+ } | {
12
+ type: typeof AuthenticationProviderType.Google;
13
+ options: IGoogleOAuthProviderConnectorConstructorOptions;
14
+ } | {
15
+ type: typeof AuthenticationProviderType.Microsoft;
16
+ options: IMicrosoftOAuthProviderConnectorConstructorOptions;
17
+ };
@@ -0,0 +1,9 @@
1
+ import type { IOAuthServiceConstructorOptions } from "@3sixty/api-auth-oauth-service";
2
+ import type { OAuthComponentType } from "../types/oauthComponentType.js";
3
+ /**
4
+ * OAuth component config types.
5
+ */
6
+ export type OAuthComponentConfig = {
7
+ type: typeof OAuthComponentType.Service;
8
+ options: IOAuthServiceConstructorOptions;
9
+ };
@@ -0,0 +1,13 @@
1
+ import type { IEntityStorageOrganizationServiceConstructorOptions } from "@3sixty/api-auth-account-service";
2
+ import type { IBaseRestClientConfig } from "@3sixty/api-models";
3
+ import type { OrganizationComponentType } from "../types/organizationComponentType.js";
4
+ /**
5
+ * Organization component config types.
6
+ */
7
+ export type OrganizationComponentConfig = {
8
+ type: typeof OrganizationComponentType.EntityStorage;
9
+ options?: IEntityStorageOrganizationServiceConstructorOptions;
10
+ } | {
11
+ type: typeof OrganizationComponentType.RestClient;
12
+ options: IBaseRestClientConfig;
13
+ };
@@ -0,0 +1,13 @@
1
+ import type { IEntityStorageOrganizationRequestAdminServiceConstructorOptions } from "@3sixty/api-auth-account-service";
2
+ import type { IBaseRestClientConfig } from "@3sixty/api-models";
3
+ import type { OrganizationRequestAdminComponentType } from "../types/organizationRequestAdminComponentType.js";
4
+ /**
5
+ * Organization request admin component config types.
6
+ */
7
+ export type OrganizationRequestAdminComponentConfig = {
8
+ type: typeof OrganizationRequestAdminComponentType.EntityStorage;
9
+ options?: IEntityStorageOrganizationRequestAdminServiceConstructorOptions;
10
+ } | {
11
+ type: typeof OrganizationRequestAdminComponentType.RestClient;
12
+ options: IBaseRestClientConfig;
13
+ };
@@ -1,6 +1,7 @@
1
+ import type { IAuthenticationAccountProcessorConstructorOptions } from "@3sixty/api-auth-account-service";
1
2
  import type { IAuthHeaderProcessorConstructorOptions } from "@3sixty/api-auth-entity-storage-service";
2
3
  import type { ITenantOverrideProcessorConstructorOptions } from "@3sixty/api-auth-service";
3
- import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, IRestRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@3sixty/api-processors";
4
+ import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, IOriginCheckProcessorConstructorOptions, IRestRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@3sixty/api-processors";
4
5
  import type { ISingleTenantProcessorConstructorOptions, ITenantProcessorConstructorOptions } from "@3sixty/api-tenant-processor";
5
6
  import type { IAuthorizationRouteProcessorConstructorOptions } from "@3sixty/authorization-service";
6
7
  import type { IMetricsRouteProcessorConstructorOptions } from "@3sixty/telemetry-processors";
@@ -12,6 +13,9 @@ import type { RestRouteProcessorType } from "../types/restRouteProcessorType.js"
12
13
  export type RestRouteProcessorConfig = {
13
14
  type: typeof RestRouteProcessorType.AuthHeader;
14
15
  options?: IAuthHeaderProcessorConstructorOptions;
16
+ } | {
17
+ type: typeof RestRouteProcessorType.AuthenticationAccount;
18
+ options?: IAuthenticationAccountProcessorConstructorOptions;
15
19
  } | {
16
20
  type: typeof RestRouteProcessorType.Logging;
17
21
  options?: ILoggingProcessorConstructorOptions;
@@ -42,4 +46,7 @@ export type RestRouteProcessorConfig = {
42
46
  } | {
43
47
  type: typeof RestRouteProcessorType.Authorization;
44
48
  options?: IAuthorizationRouteProcessorConstructorOptions;
49
+ } | {
50
+ type: typeof RestRouteProcessorType.OriginCheck;
51
+ options?: IOriginCheckProcessorConstructorOptions;
45
52
  };
@@ -1,6 +1,7 @@
1
+ import type { IAuthenticationAccountProcessorConstructorOptions } from "@3sixty/api-auth-account-service";
1
2
  import type { IAuthHeaderProcessorConstructorOptions } from "@3sixty/api-auth-entity-storage-service";
2
3
  import type { ITenantOverrideProcessorConstructorOptions } from "@3sixty/api-auth-service";
3
- import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, ISocketRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@3sixty/api-processors";
4
+ import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, IOriginCheckProcessorConstructorOptions, ISocketRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@3sixty/api-processors";
4
5
  import type { ISingleTenantProcessorConstructorOptions, ITenantProcessorConstructorOptions } from "@3sixty/api-tenant-processor";
5
6
  import type { IAuthorizationRouteProcessorConstructorOptions } from "@3sixty/authorization-service";
6
7
  import type { SocketRouteProcessorType } from "../types/socketRouteProcessorType.js";
@@ -10,6 +11,9 @@ import type { SocketRouteProcessorType } from "../types/socketRouteProcessorType
10
11
  export type SocketRouteProcessorConfig = {
11
12
  type: typeof SocketRouteProcessorType.AuthHeader;
12
13
  options?: IAuthHeaderProcessorConstructorOptions;
14
+ } | {
15
+ type: typeof SocketRouteProcessorType.AuthenticationAccount;
16
+ options?: IAuthenticationAccountProcessorConstructorOptions;
13
17
  } | {
14
18
  type: typeof SocketRouteProcessorType.Logging;
15
19
  options?: ILoggingProcessorConstructorOptions;
@@ -34,4 +38,7 @@ export type SocketRouteProcessorConfig = {
34
38
  } | {
35
39
  type: typeof SocketRouteProcessorType.Authorization;
36
40
  options?: IAuthorizationRouteProcessorConstructorOptions;
41
+ } | {
42
+ type: typeof SocketRouteProcessorType.OriginCheck;
43
+ options?: IOriginCheckProcessorConstructorOptions;
37
44
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Authentication account admin component types.
3
+ */
4
+ export declare const AuthenticationAccountAdminComponentType: {
5
+ /**
6
+ * Entity storage.
7
+ */
8
+ readonly EntityStorage: "entity-storage";
9
+ /**
10
+ * REST client.
11
+ */
12
+ readonly RestClient: "rest-client";
13
+ };
14
+ /**
15
+ * Authentication account admin component types.
16
+ */
17
+ export type AuthenticationAccountAdminComponentType = (typeof AuthenticationAccountAdminComponentType)[keyof typeof AuthenticationAccountAdminComponentType];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Authentication account component types.
3
+ */
4
+ export declare const AuthenticationAccountComponentType: {
5
+ /**
6
+ * Entity storage.
7
+ */
8
+ readonly EntityStorage: "entity-storage";
9
+ /**
10
+ * REST client.
11
+ */
12
+ readonly RestClient: "rest-client";
13
+ };
14
+ /**
15
+ * Authentication account component types.
16
+ */
17
+ export type AuthenticationAccountComponentType = (typeof AuthenticationAccountComponentType)[keyof typeof AuthenticationAccountComponentType];
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Authentication provider types.
3
+ */
4
+ export declare const AuthenticationProviderType: {
5
+ /**
6
+ * Passwords for accounts held in entity storage.
7
+ */
8
+ readonly EntityStorage: "entity-storage";
9
+ /**
10
+ * Google.
11
+ */
12
+ readonly Google: "google";
13
+ /**
14
+ * Microsoft.
15
+ */
16
+ readonly Microsoft: "microsoft";
17
+ };
18
+ /**
19
+ * Authentication provider types.
20
+ */
21
+ export type AuthenticationProviderType = (typeof AuthenticationProviderType)[keyof typeof AuthenticationProviderType];
@@ -0,0 +1,13 @@
1
+ /**
2
+ * OAuth component types.
3
+ */
4
+ export declare const OAuthComponentType: {
5
+ /**
6
+ * Service.
7
+ */
8
+ readonly Service: "service";
9
+ };
10
+ /**
11
+ * OAuth component types.
12
+ */
13
+ export type OAuthComponentType = (typeof OAuthComponentType)[keyof typeof OAuthComponentType];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Organization component types.
3
+ */
4
+ export declare const OrganizationComponentType: {
5
+ /**
6
+ * Entity storage.
7
+ */
8
+ readonly EntityStorage: "entity-storage";
9
+ /**
10
+ * REST client.
11
+ */
12
+ readonly RestClient: "rest-client";
13
+ };
14
+ /**
15
+ * Organization component types.
16
+ */
17
+ export type OrganizationComponentType = (typeof OrganizationComponentType)[keyof typeof OrganizationComponentType];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Organization request admin component types.
3
+ */
4
+ export declare const OrganizationRequestAdminComponentType: {
5
+ /**
6
+ * Entity storage.
7
+ */
8
+ readonly EntityStorage: "entity-storage";
9
+ /**
10
+ * REST client.
11
+ */
12
+ readonly RestClient: "rest-client";
13
+ };
14
+ /**
15
+ * Organization request admin component types.
16
+ */
17
+ export type OrganizationRequestAdminComponentType = (typeof OrganizationRequestAdminComponentType)[keyof typeof OrganizationRequestAdminComponentType];
@@ -6,6 +6,10 @@ export declare const RestRouteProcessorType: {
6
6
  * Auth header.
7
7
  */
8
8
  readonly AuthHeader: "auth-header";
9
+ /**
10
+ * Authentication account, sets the identity and organization of the signed in account.
11
+ */
12
+ readonly AuthenticationAccount: "authentication-account";
9
13
  /**
10
14
  * Logging.
11
15
  */
@@ -46,6 +50,10 @@ export declare const RestRouteProcessorType: {
46
50
  * Authorization.
47
51
  */
48
52
  readonly Authorization: "authorization";
53
+ /**
54
+ * Origin check, rejects cookie authenticated state changing requests from other origins.
55
+ */
56
+ readonly OriginCheck: "origin-check";
49
57
  };
50
58
  /**
51
59
  * REST route processor types.
@@ -6,6 +6,10 @@ export declare const SocketRouteProcessorType: {
6
6
  * Auth header.
7
7
  */
8
8
  readonly AuthHeader: "auth-header";
9
+ /**
10
+ * Authentication account, sets the identity and organization of the signed in account.
11
+ */
12
+ readonly AuthenticationAccount: "authentication-account";
9
13
  /**
10
14
  * Logging.
11
15
  */
@@ -38,6 +42,10 @@ export declare const SocketRouteProcessorType: {
38
42
  * Authorization.
39
43
  */
40
44
  readonly Authorization: "authorization";
45
+ /**
46
+ * Origin check, rejects cookie authenticated socket connections from other origins.
47
+ */
48
+ readonly OriginCheck: "origin-check";
41
49
  };
42
50
  /**
43
51
  * Socket route processor types.