@boxyhq/saml-jackson 1.33.0 → 1.33.1-beta.1
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/dist/controller/oauth/oidc-client.d.ts +3 -3
- package/dist/controller/oauth/oidc-client.js +2 -1
- package/dist/controller/oauth/oidc-client.js.map +1 -1
- package/dist/controller/oauth/oidc-issuer.d.ts +2 -0
- package/dist/controller/oauth/oidc-issuer.js +25 -0
- package/dist/controller/oauth/oidc-issuer.js.map +1 -0
- package/dist/controller/oauth.js +36 -35
- package/dist/controller/oauth.js.map +1 -1
- package/dist/controller/sso-handler.js +1 -1
- package/dist/controller/sso-handler.js.map +1 -1
- package/dist/controller/utils.d.ts +5 -3
- package/dist/controller/utils.js +10 -2
- package/dist/controller/utils.js.map +1 -1
- package/dist/src/controller/admin.d.ts +27 -0
- package/dist/src/controller/admin.js +60 -0
- package/dist/src/controller/admin.js.map +1 -0
- package/dist/src/controller/analytics.d.ts +16 -0
- package/dist/src/controller/analytics.js +79 -0
- package/dist/src/controller/analytics.js.map +1 -0
- package/dist/src/controller/api.d.ts +557 -0
- package/dist/src/controller/api.js +806 -0
- package/dist/src/controller/api.js.map +1 -0
- package/dist/src/controller/connection/oidc.d.ts +7 -0
- package/dist/src/controller/connection/oidc.js +181 -0
- package/dist/src/controller/connection/oidc.js.map +1 -0
- package/dist/src/controller/connection/saml.d.ts +7 -0
- package/dist/src/controller/connection/saml.js +250 -0
- package/dist/src/controller/connection/saml.js.map +1 -0
- package/dist/src/controller/error.d.ts +10 -0
- package/dist/src/controller/error.js +13 -0
- package/dist/src/controller/error.js.map +1 -0
- package/dist/src/controller/health-check.d.ts +11 -0
- package/dist/src/controller/health-check.js +51 -0
- package/dist/src/controller/health-check.js.map +1 -0
- package/dist/src/controller/logout.d.ts +18 -0
- package/dist/src/controller/logout.js +132 -0
- package/dist/src/controller/logout.js.map +1 -0
- package/dist/src/controller/oauth/allowed.d.ts +1 -0
- package/dist/src/controller/oauth/allowed.js +30 -0
- package/dist/src/controller/oauth/allowed.js.map +1 -0
- package/dist/src/controller/oauth/code-verifier.d.ts +1 -0
- package/dist/src/controller/oauth/code-verifier.js +8 -0
- package/dist/src/controller/oauth/code-verifier.js.map +1 -0
- package/dist/src/controller/oauth/oidc-client.d.ts +12 -0
- package/dist/src/controller/oauth/oidc-client.js +89 -0
- package/dist/src/controller/oauth/oidc-client.js.map +1 -0
- package/dist/src/controller/oauth/redirect.d.ts +1 -0
- package/dist/src/controller/oauth/redirect.js +13 -0
- package/dist/src/controller/oauth/redirect.js.map +1 -0
- package/dist/src/controller/oauth.d.ts +142 -0
- package/dist/src/controller/oauth.js +1112 -0
- package/dist/src/controller/oauth.js.map +1 -0
- package/dist/src/controller/oidc-discovery.d.ts +22 -0
- package/dist/src/controller/oidc-discovery.js +47 -0
- package/dist/src/controller/oidc-discovery.js.map +1 -0
- package/dist/src/controller/setup-link.d.ts +307 -0
- package/dist/src/controller/setup-link.js +462 -0
- package/dist/src/controller/setup-link.js.map +1 -0
- package/dist/src/controller/sp-config.d.ts +22 -0
- package/dist/src/controller/sp-config.js +89 -0
- package/dist/src/controller/sp-config.js.map +1 -0
- package/dist/src/controller/sso-handler.d.ts +66 -0
- package/dist/src/controller/sso-handler.js +306 -0
- package/dist/src/controller/sso-handler.js.map +1 -0
- package/dist/src/controller/utils.d.ts +84 -0
- package/dist/src/controller/utils.js +328 -0
- package/dist/src/controller/utils.js.map +1 -0
- package/dist/src/cron/lock.d.ts +18 -0
- package/dist/src/cron/lock.js +98 -0
- package/dist/src/cron/lock.js.map +1 -0
- package/dist/src/db/db.d.ts +5 -0
- package/dist/src/db/db.js +178 -0
- package/dist/src/db/db.js.map +1 -0
- package/dist/src/db/defaultDb.d.ts +2 -0
- package/dist/src/db/defaultDb.js +18 -0
- package/dist/src/db/defaultDb.js.map +1 -0
- package/dist/src/db/dynamoDb.d.ts +19 -0
- package/dist/src/db/dynamoDb.js +320 -0
- package/dist/src/db/dynamoDb.js.map +1 -0
- package/dist/src/db/encrypter.d.ts +3 -0
- package/dist/src/db/encrypter.js +22 -0
- package/dist/src/db/encrypter.js.map +1 -0
- package/dist/src/db/mem.d.ts +23 -0
- package/dist/src/db/mem.js +186 -0
- package/dist/src/db/mem.js.map +1 -0
- package/dist/src/db/mongo.d.ts +22 -0
- package/dist/src/db/mongo.js +177 -0
- package/dist/src/db/mongo.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.d.ts +5 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.js +32 -0
- package/dist/src/db/planetscale/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/planetscale/entity/JacksonStore.js +63 -0
- package/dist/src/db/planetscale/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.js +27 -0
- package/dist/src/db/planetscale/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/redis.d.ts +18 -0
- package/dist/src/db/redis.js +214 -0
- package/dist/src/db/redis.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/mariadb/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.js +63 -0
- package/dist/src/db/sql/mariadb/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/mariadb/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/mssql/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/mssql/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/mssql/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/sql/mssql.d.ts +1 -0
- package/dist/src/db/sql/mssql.js +44 -0
- package/dist/src/db/sql/mssql.js.map +1 -0
- package/dist/src/db/sql/sql.d.ts +32 -0
- package/dist/src/db/sql/sql.js +318 -0
- package/dist/src/db/sql/sql.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.d.ts +7 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.js +39 -0
- package/dist/src/db/sql/sqlite/entity/JacksonIndex.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.d.ts +9 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.js +61 -0
- package/dist/src/db/sql/sqlite/entity/JacksonStore.js.map +1 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.d.ts +4 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.js +27 -0
- package/dist/src/db/sql/sqlite/entity/JacksonTTL.js.map +1 -0
- package/dist/src/db/store.d.ts +5 -0
- package/dist/src/db/store.js +65 -0
- package/dist/src/db/store.js.map +1 -0
- package/dist/src/db/utils.d.ts +16 -0
- package/dist/src/db/utils.js +28 -0
- package/dist/src/db/utils.js.map +1 -0
- package/dist/src/directory-sync/batch-events/queue.d.ts +40 -0
- package/dist/src/directory-sync/batch-events/queue.js +225 -0
- package/dist/src/directory-sync/batch-events/queue.js.map +1 -0
- package/dist/src/directory-sync/index.d.ts +27 -0
- package/dist/src/directory-sync/index.js +97 -0
- package/dist/src/directory-sync/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/api.d.ts +36 -0
- package/dist/src/directory-sync/non-scim/google/api.js +143 -0
- package/dist/src/directory-sync/non-scim/google/api.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/index.d.ts +12 -0
- package/dist/src/directory-sync/non-scim/google/index.js +10 -0
- package/dist/src/directory-sync/non-scim/google/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/google/oauth.d.ts +27 -0
- package/dist/src/directory-sync/non-scim/google/oauth.js +105 -0
- package/dist/src/directory-sync/non-scim/google/oauth.js.map +1 -0
- package/dist/src/directory-sync/non-scim/index.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/index.js +85 -0
- package/dist/src/directory-sync/non-scim/index.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.d.ts +23 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.js +105 -0
- package/dist/src/directory-sync/non-scim/syncGroupMembers.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncGroups.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/syncGroups.js +120 -0
- package/dist/src/directory-sync/non-scim/syncGroups.js.map +1 -0
- package/dist/src/directory-sync/non-scim/syncUsers.d.ts +24 -0
- package/dist/src/directory-sync/non-scim/syncUsers.js +120 -0
- package/dist/src/directory-sync/non-scim/syncUsers.js.map +1 -0
- package/dist/src/directory-sync/non-scim/utils.d.ts +36 -0
- package/dist/src/directory-sync/non-scim/utils.js +109 -0
- package/dist/src/directory-sync/non-scim/utils.js.map +1 -0
- package/dist/src/directory-sync/request.d.ts +14 -0
- package/dist/src/directory-sync/request.js +29 -0
- package/dist/src/directory-sync/request.js.map +1 -0
- package/dist/src/directory-sync/scim/Base.d.ts +12 -0
- package/dist/src/directory-sync/scim/Base.js +23 -0
- package/dist/src/directory-sync/scim/Base.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.d.ts +343 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.js +580 -0
- package/dist/src/directory-sync/scim/DirectoryConfig.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.d.ts +28 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.js +252 -0
- package/dist/src/directory-sync/scim/DirectoryGroups.js.map +1 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.d.ts +25 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.js +193 -0
- package/dist/src/directory-sync/scim/DirectoryUsers.js.map +1 -0
- package/dist/src/directory-sync/scim/Groups.d.ts +166 -0
- package/dist/src/directory-sync/scim/Groups.js +348 -0
- package/dist/src/directory-sync/scim/Groups.js.map +1 -0
- package/dist/src/directory-sync/scim/Users.d.ts +99 -0
- package/dist/src/directory-sync/scim/Users.js +215 -0
- package/dist/src/directory-sync/scim/Users.js.map +1 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.d.ts +101 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.js +165 -0
- package/dist/src/directory-sync/scim/WebhookEventsLogger.js.map +1 -0
- package/dist/src/directory-sync/scim/transform.d.ts +6 -0
- package/dist/src/directory-sync/scim/transform.js +37 -0
- package/dist/src/directory-sync/scim/transform.js.map +1 -0
- package/dist/src/directory-sync/scim/utils.d.ts +33 -0
- package/dist/src/directory-sync/scim/utils.js +129 -0
- package/dist/src/directory-sync/scim/utils.js.map +1 -0
- package/dist/src/directory-sync/types.d.ts +195 -0
- package/dist/src/directory-sync/types.js +10 -0
- package/dist/src/directory-sync/types.js.map +1 -0
- package/dist/src/directory-sync/utils.d.ts +19 -0
- package/dist/src/directory-sync/utils.js +56 -0
- package/dist/src/directory-sync/utils.js.map +1 -0
- package/dist/src/ee/branding/index.d.ts +17 -0
- package/dist/src/ee/branding/index.js +49 -0
- package/dist/src/ee/branding/index.js.map +1 -0
- package/dist/src/ee/common/checkLicense.d.ts +3 -0
- package/dist/src/ee/common/checkLicense.js +23 -0
- package/dist/src/ee/common/checkLicense.js.map +1 -0
- package/dist/src/ee/identity-federation/app.d.ts +328 -0
- package/dist/src/ee/identity-federation/app.js +532 -0
- package/dist/src/ee/identity-federation/app.js.map +1 -0
- package/dist/src/ee/identity-federation/idp-login.d.ts +18 -0
- package/dist/src/ee/identity-federation/idp-login.js +98 -0
- package/dist/src/ee/identity-federation/idp-login.js.map +1 -0
- package/dist/src/ee/identity-federation/index.d.ts +15 -0
- package/dist/src/ee/identity-federation/index.js +43 -0
- package/dist/src/ee/identity-federation/index.js.map +1 -0
- package/dist/src/ee/identity-federation/sso.d.ts +24 -0
- package/dist/src/ee/identity-federation/sso.js +124 -0
- package/dist/src/ee/identity-federation/sso.js.map +1 -0
- package/dist/src/ee/identity-federation/types.d.ts +38 -0
- package/dist/src/ee/identity-federation/types.js +2 -0
- package/dist/src/ee/identity-federation/types.js.map +1 -0
- package/dist/src/ee/ory/ory.d.ts +18 -0
- package/dist/src/ee/ory/ory.js +195 -0
- package/dist/src/ee/ory/ory.js.map +1 -0
- package/dist/src/ee/product/index.d.ts +14 -0
- package/dist/src/ee/product/index.js +45 -0
- package/dist/src/ee/product/index.js.map +1 -0
- package/dist/src/event/axios.d.ts +2 -0
- package/dist/src/event/axios.js +27 -0
- package/dist/src/event/axios.js.map +1 -0
- package/dist/src/event/index.d.ts +11 -0
- package/dist/src/event/index.js +53 -0
- package/dist/src/event/index.js.map +1 -0
- package/dist/src/event/types.d.ts +21 -0
- package/dist/src/event/types.js +2 -0
- package/dist/src/event/types.js.map +1 -0
- package/dist/src/event/utils.d.ts +4 -0
- package/dist/src/event/utils.js +33 -0
- package/dist/src/event/utils.js.map +1 -0
- package/dist/src/event/webhook.d.ts +3 -0
- package/dist/src/event/webhook.js +34 -0
- package/dist/src/event/webhook.js.map +1 -0
- package/dist/src/index.d.ts +35 -0
- package/dist/src/index.js +161 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/loadConnection.d.ts +4 -0
- package/dist/src/loadConnection.js +38 -0
- package/dist/src/loadConnection.js.map +1 -0
- package/dist/src/opentelemetry/metrics.d.ts +14 -0
- package/dist/src/opentelemetry/metrics.js +64 -0
- package/dist/src/opentelemetry/metrics.js.map +1 -0
- package/dist/src/saml/claims.d.ts +12 -0
- package/dist/src/saml/claims.js +57 -0
- package/dist/src/saml/claims.js.map +1 -0
- package/dist/src/saml/lib.d.ts +8 -0
- package/dist/src/saml/lib.js +29 -0
- package/dist/src/saml/lib.js.map +1 -0
- package/dist/src/saml/x509.d.ts +9 -0
- package/dist/src/saml/x509.js +93 -0
- package/dist/src/saml/x509.js.map +1 -0
- package/dist/src/sso-traces/index.d.ts +114 -0
- package/dist/src/sso-traces/index.js +229 -0
- package/dist/src/sso-traces/index.js.map +1 -0
- package/dist/src/sso-traces/types.d.ts +44 -0
- package/dist/src/sso-traces/types.js +2 -0
- package/dist/src/sso-traces/types.js.map +1 -0
- package/dist/src/typings.d.ts +540 -0
- package/dist/src/typings.js +5 -0
- package/dist/src/typings.js.map +1 -0
- package/dist/typeorm.d.ts +3 -0
- package/dist/typeorm.js +58 -0
- package/dist/typeorm.js.map +1 -0
- package/dist/typings.d.ts +1 -1
- package/package.json +7 -7
@@ -0,0 +1,343 @@
|
|
1
|
+
import type { Directory, JacksonOption, DatabaseStore, DirectoryType, PaginationParams, IUsers, IGroups, IWebhookEventsLogger, IEventController, Response, Index } from '../../typings';
|
2
|
+
interface DirectoryConfigParams {
|
3
|
+
db: DatabaseStore;
|
4
|
+
opts: JacksonOption;
|
5
|
+
users: IUsers;
|
6
|
+
groups: IGroups;
|
7
|
+
logger: IWebhookEventsLogger;
|
8
|
+
eventController: IEventController;
|
9
|
+
}
|
10
|
+
interface FilterByParams extends PaginationParams {
|
11
|
+
product?: string;
|
12
|
+
provider?: DirectoryType;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* @swagger
|
16
|
+
* definitions:
|
17
|
+
* Directory:
|
18
|
+
* type: object
|
19
|
+
* properties:
|
20
|
+
* id:
|
21
|
+
* type: string
|
22
|
+
* description: Directory ID
|
23
|
+
* name:
|
24
|
+
* type: string
|
25
|
+
* description: name
|
26
|
+
* tenant:
|
27
|
+
* type: string
|
28
|
+
* description: Tenant
|
29
|
+
* product:
|
30
|
+
* type: string
|
31
|
+
* description: Product
|
32
|
+
* type:
|
33
|
+
* type: string
|
34
|
+
* description: Directory provider
|
35
|
+
* deactivated:
|
36
|
+
* type: boolean
|
37
|
+
* description: Status
|
38
|
+
* log_webhook_events:
|
39
|
+
* type: boolean
|
40
|
+
* description: If true, webhook requests will be logged
|
41
|
+
* scim:
|
42
|
+
* type: object
|
43
|
+
* properties:
|
44
|
+
* path:
|
45
|
+
* type: string
|
46
|
+
* description: SCIM path
|
47
|
+
* endpoint:
|
48
|
+
* type: string
|
49
|
+
* description: SCIM url
|
50
|
+
* secret:
|
51
|
+
* type: string
|
52
|
+
* description: SCIM secret
|
53
|
+
* webhook:
|
54
|
+
* type: object
|
55
|
+
* properties:
|
56
|
+
* endpoint:
|
57
|
+
* type: string
|
58
|
+
* description: Webhook url
|
59
|
+
* secret:
|
60
|
+
* type: string
|
61
|
+
* description: Webhook secret
|
62
|
+
*/
|
63
|
+
export declare class DirectoryConfig {
|
64
|
+
private _store;
|
65
|
+
private opts;
|
66
|
+
private db;
|
67
|
+
private users;
|
68
|
+
private groups;
|
69
|
+
private logger;
|
70
|
+
private eventController;
|
71
|
+
constructor({ db, opts, users, groups, logger, eventController }: DirectoryConfigParams);
|
72
|
+
private store;
|
73
|
+
/**
|
74
|
+
* @swagger
|
75
|
+
* parameters:
|
76
|
+
* tenant:
|
77
|
+
* name: tenant
|
78
|
+
* description: Tenant
|
79
|
+
* in: query
|
80
|
+
* required: true
|
81
|
+
* type: string
|
82
|
+
* product:
|
83
|
+
* name: product
|
84
|
+
* description: Product
|
85
|
+
* in: query
|
86
|
+
* required: true
|
87
|
+
* type: string
|
88
|
+
* directoryId:
|
89
|
+
* name: directoryId
|
90
|
+
* description: Directory ID
|
91
|
+
* in: query
|
92
|
+
* required: false
|
93
|
+
* type: string
|
94
|
+
* pageOffset:
|
95
|
+
* name: pageOffset
|
96
|
+
* description: Starting point from which the set of records are retrieved
|
97
|
+
* in: query
|
98
|
+
* required: false
|
99
|
+
* type: string
|
100
|
+
* pageLimit:
|
101
|
+
* name: pageLimit
|
102
|
+
* description: Number of records to be fetched for the page
|
103
|
+
* in: query
|
104
|
+
* required: false
|
105
|
+
* type: string
|
106
|
+
* pageToken:
|
107
|
+
* name: pageToken
|
108
|
+
* description: Token used for DynamoDB pagination
|
109
|
+
* in: query
|
110
|
+
* required: false
|
111
|
+
* type: string
|
112
|
+
*/
|
113
|
+
/**
|
114
|
+
* @swagger
|
115
|
+
* /api/v1/dsync:
|
116
|
+
* post:
|
117
|
+
* summary: Create a directory connection
|
118
|
+
* parameters:
|
119
|
+
* - name: tenant
|
120
|
+
* description: Tenant
|
121
|
+
* in: formData
|
122
|
+
* required: true
|
123
|
+
* type: string
|
124
|
+
* - name: product
|
125
|
+
* description: Product
|
126
|
+
* in: formData
|
127
|
+
* required: true
|
128
|
+
* type: string
|
129
|
+
* - name: name
|
130
|
+
* description: Name
|
131
|
+
* in: formData
|
132
|
+
* required: false
|
133
|
+
* type: string
|
134
|
+
* - name: webhook_url
|
135
|
+
* description: Webhook URL
|
136
|
+
* in: formData
|
137
|
+
* required: false
|
138
|
+
* type: string
|
139
|
+
* - name: webhook_secret
|
140
|
+
* description: Webhook secret
|
141
|
+
* in: formData
|
142
|
+
* required: false
|
143
|
+
* type: string
|
144
|
+
* - name: type
|
145
|
+
* description: Directory provider. (Supported values are azure-scim-v2, onelogin-scim-v2, okta-scim-v2, jumpcloud-scim-v2, generic-scim-v2, google)
|
146
|
+
* in: formData
|
147
|
+
* required: false
|
148
|
+
* type: string
|
149
|
+
* tags: [Directory Sync]
|
150
|
+
* produces:
|
151
|
+
* - application/json
|
152
|
+
* consumes:
|
153
|
+
* - application/x-www-form-urlencoded
|
154
|
+
* - application/json
|
155
|
+
* responses:
|
156
|
+
* 200:
|
157
|
+
* description: Success
|
158
|
+
* schema:
|
159
|
+
* $ref: '#/definitions/Directory'
|
160
|
+
*/
|
161
|
+
create(params: {
|
162
|
+
name?: string;
|
163
|
+
tenant: string;
|
164
|
+
product: string;
|
165
|
+
webhook_url?: string;
|
166
|
+
webhook_secret?: string;
|
167
|
+
type?: DirectoryType;
|
168
|
+
google_domain?: string;
|
169
|
+
google_access_token?: string;
|
170
|
+
google_refresh_token?: string;
|
171
|
+
}): Promise<Response<Directory>>;
|
172
|
+
/**
|
173
|
+
* @swagger
|
174
|
+
* /api/v1/dsync/{directoryId}:
|
175
|
+
* get:
|
176
|
+
* summary: Get a directory connection by id
|
177
|
+
* parameters:
|
178
|
+
* - name: directoryId
|
179
|
+
* description: Directory ID
|
180
|
+
* in: path
|
181
|
+
* required: true
|
182
|
+
* type: string
|
183
|
+
* tags:
|
184
|
+
* - Directory Sync
|
185
|
+
* produces:
|
186
|
+
* - application/json
|
187
|
+
* responses:
|
188
|
+
* '200':
|
189
|
+
* description: Success
|
190
|
+
* schema:
|
191
|
+
* $ref: '#/definitions/Directory'
|
192
|
+
*/
|
193
|
+
get(id: string): Promise<Response<Directory>>;
|
194
|
+
/**
|
195
|
+
* @swagger
|
196
|
+
* /api/v1/dsync/{directoryId}:
|
197
|
+
* patch:
|
198
|
+
* summary: Update a directory connection
|
199
|
+
* parameters:
|
200
|
+
* - name: directoryId
|
201
|
+
* description: Directory ID
|
202
|
+
* in: path
|
203
|
+
* required: true
|
204
|
+
* type: string
|
205
|
+
* - name: name
|
206
|
+
* description: Name
|
207
|
+
* in: formData
|
208
|
+
* required: false
|
209
|
+
* type: string
|
210
|
+
* - name: webhook_url
|
211
|
+
* description: Webhook URL
|
212
|
+
* in: formData
|
213
|
+
* required: false
|
214
|
+
* type: string
|
215
|
+
* - name: webhook_secret
|
216
|
+
* description: Webhook secret
|
217
|
+
* in: formData
|
218
|
+
* required: false
|
219
|
+
* type: string
|
220
|
+
* - name: log_webhook_events
|
221
|
+
* description: If true, webhook requests will be logged
|
222
|
+
* in: formData
|
223
|
+
* required: false
|
224
|
+
* type: string
|
225
|
+
* - name: deactivated
|
226
|
+
* description: If true, the directory connection will be deactivated
|
227
|
+
* in: formData
|
228
|
+
* required: false
|
229
|
+
* type: string
|
230
|
+
* - name: google_domain
|
231
|
+
* description: Google domain
|
232
|
+
* in: formData
|
233
|
+
* required: false
|
234
|
+
* type: string
|
235
|
+
* - name: google_access_token
|
236
|
+
* description: Google access token
|
237
|
+
* in: formData
|
238
|
+
* required: false
|
239
|
+
* type: string
|
240
|
+
* - name: google_refresh_token
|
241
|
+
* description: Google refresh token
|
242
|
+
* in: formData
|
243
|
+
* required: false
|
244
|
+
* type: string
|
245
|
+
* tags: [Directory Sync]
|
246
|
+
* produces:
|
247
|
+
* - application/json
|
248
|
+
* consumes:
|
249
|
+
* - application/x-www-form-urlencoded
|
250
|
+
* - application/json
|
251
|
+
* responses:
|
252
|
+
* 200:
|
253
|
+
* description: Success
|
254
|
+
* schema:
|
255
|
+
* $ref: '#/definitions/Directory'
|
256
|
+
*/
|
257
|
+
update(id: string, param: Omit<Partial<Directory>, 'id' | 'tenant' | 'prodct' | 'scim' | 'type'> & {
|
258
|
+
webhook_url?: string;
|
259
|
+
webhook_secret?: string;
|
260
|
+
}): Promise<Response<Directory>>;
|
261
|
+
/**
|
262
|
+
* @swagger
|
263
|
+
* /api/v1/dsync:
|
264
|
+
* get:
|
265
|
+
* summary: Get a directory connection by tenant and product
|
266
|
+
* parameters:
|
267
|
+
* - $ref: '#/parameters/tenant'
|
268
|
+
* - $ref: '#/parameters/product'
|
269
|
+
* tags: [Directory Sync]
|
270
|
+
* produces:
|
271
|
+
* - application/json
|
272
|
+
* consumes:
|
273
|
+
* - application/x-www-form-urlencoded
|
274
|
+
* - application/json
|
275
|
+
* responses:
|
276
|
+
* 200:
|
277
|
+
* description: Success
|
278
|
+
* schema:
|
279
|
+
* type: array
|
280
|
+
* items:
|
281
|
+
* $ref: '#/definitions/Directory'
|
282
|
+
*/
|
283
|
+
getByTenantAndProduct(tenant: string, product: string): Promise<Response<Directory[]>>;
|
284
|
+
getAll(params?: PaginationParams): Promise<Response<Directory[]> & {
|
285
|
+
pageToken?: string;
|
286
|
+
}>;
|
287
|
+
/**
|
288
|
+
* @swagger
|
289
|
+
* /api/v1/dsync/{directoryId}:
|
290
|
+
* delete:
|
291
|
+
* summary: Delete a directory connection by id
|
292
|
+
* parameters:
|
293
|
+
* - name: directoryId
|
294
|
+
* description: Directory ID
|
295
|
+
* in: path
|
296
|
+
* required: true
|
297
|
+
* type: string
|
298
|
+
* tags:
|
299
|
+
* - Directory Sync
|
300
|
+
* produces:
|
301
|
+
* - application/json
|
302
|
+
* responses:
|
303
|
+
* '200':
|
304
|
+
* description: Success
|
305
|
+
*/
|
306
|
+
delete(id: string): Promise<Response<null>>;
|
307
|
+
private transform;
|
308
|
+
/**
|
309
|
+
* @swagger
|
310
|
+
* /api/v1/dsync/product:
|
311
|
+
* get:
|
312
|
+
* summary: Get directory connections by product
|
313
|
+
* parameters:
|
314
|
+
* - $ref: '#/parameters/product'
|
315
|
+
* - $ref: '#/parameters/pageOffset'
|
316
|
+
* - $ref: '#/parameters/pageLimit'
|
317
|
+
* - $ref: '#/parameters/pageToken'
|
318
|
+
* tags:
|
319
|
+
* - Directory Sync
|
320
|
+
* produces:
|
321
|
+
* - application/json
|
322
|
+
* responses:
|
323
|
+
* '200':
|
324
|
+
* description: Success
|
325
|
+
* content:
|
326
|
+
* application/json:
|
327
|
+
* schema:
|
328
|
+
* type: object
|
329
|
+
* properties:
|
330
|
+
* data:
|
331
|
+
* type: array
|
332
|
+
* items:
|
333
|
+
* $ref: '#/definitions/Directory'
|
334
|
+
* pageToken:
|
335
|
+
* type: string
|
336
|
+
* description: token for pagination
|
337
|
+
*/
|
338
|
+
filterBy(params?: FilterByParams): Promise<Response<Directory[]> & {
|
339
|
+
pageToken?: string;
|
340
|
+
}>;
|
341
|
+
getCount(idx?: Index): Promise<number | undefined>;
|
342
|
+
}
|
343
|
+
export {};
|