hcloud-sdk 0.0.16 → 14.13.2
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/README.md +1 -0
- package/changelog.md +809 -0
- package/index.d.ts +3 -2
- package/index.js +5 -2
- package/lib/Base.d.ts +26 -0
- package/lib/Base.js +12 -0
- package/lib/Hcloud.d.ts +80 -0
- package/lib/Hcloud.js +134 -0
- package/lib/helper/ErrorHelper.d.ts +7 -0
- package/lib/helper/ErrorHelper.js +19 -0
- package/lib/helper/paginatedResponseHelper.d.ts +3 -0
- package/lib/helper/paginatedResponseHelper.js +9 -0
- package/lib/helper/searchFilter.d.ts +9 -0
- package/lib/helper/searchFilter.js +12 -0
- package/lib/interfaces/agent/bundle/dev/index.d.ts +3 -0
- package/lib/interfaces/agent/context/index.d.ts +19 -0
- package/lib/interfaces/agent/index.d.ts +21 -0
- package/lib/interfaces/agent/index.js +2 -0
- package/lib/interfaces/{Auditor.d.ts → auditor/index.d.ts} +31 -5
- package/lib/interfaces/{Auditor.js → auditor/index.js} +15 -5
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/axios/index.js +8 -0
- package/lib/interfaces/bouncer/features/index.d.ts +10 -0
- package/lib/interfaces/bouncer/features/index.js +2 -0
- package/lib/interfaces/bouncer/index.d.ts +6 -0
- package/lib/interfaces/bouncer/index.js +17 -0
- package/lib/interfaces/dali/index.d.ts +3 -0
- package/lib/interfaces/dali/index.js +2 -0
- package/lib/interfaces/frontend/config/index.d.ts +33 -0
- package/lib/interfaces/frontend/config/index.js +10 -0
- package/lib/interfaces/fuse/index.d.ts +3 -0
- package/lib/interfaces/fuse/index.js +19 -0
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +38 -0
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +8 -0
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +16 -0
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.js +2 -0
- package/lib/interfaces/fuse/space/index.d.ts +21 -0
- package/lib/interfaces/fuse/space/index.js +11 -0
- package/lib/interfaces/global/HCloudError.d.ts +8 -0
- package/lib/interfaces/global/HCloudError.js +13 -0
- package/lib/interfaces/global/Header.d.ts +4 -0
- package/lib/interfaces/global/Header.js +2 -0
- package/lib/interfaces/global/HttpMethod.d.ts +7 -0
- package/lib/interfaces/global/HttpMethod.js +11 -0
- package/lib/interfaces/global/PaginatedResponse.d.ts +4 -0
- package/lib/interfaces/global/PaginatedResponse.js +2 -0
- package/lib/interfaces/global/Products.d.ts +11 -0
- package/lib/interfaces/global/Products.js +15 -0
- package/lib/interfaces/global/SearchFilters.d.ts +86 -0
- package/lib/interfaces/global/SearchFilters.js +49 -0
- package/lib/interfaces/global/Space.d.ts +20 -0
- package/lib/interfaces/global/Space.js +8 -0
- package/lib/interfaces/global/Version.d.ts +3 -0
- package/lib/interfaces/global/Version.js +2 -0
- package/lib/interfaces/global/Views.d.ts +8 -0
- package/lib/interfaces/global/Views.js +12 -0
- package/lib/interfaces/global/index.d.ts +9 -0
- package/lib/interfaces/global/index.js +25 -0
- package/lib/interfaces/high5/index.d.ts +16 -0
- package/lib/interfaces/high5/index.js +32 -0
- package/lib/interfaces/high5/joinToken/index.d.ts +10 -0
- package/lib/interfaces/high5/joinToken/index.js +2 -0
- package/lib/interfaces/high5/space/event/index.d.ts +15 -0
- package/lib/interfaces/high5/space/event/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/DesignOperation.d.ts +68 -0
- package/lib/interfaces/high5/space/event/stream/design/DesignOperation.js +20 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +92 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.js +20 -0
- package/lib/interfaces/high5/space/event/stream/design/index.d.ts +22 -0
- package/lib/interfaces/high5/space/event/stream/design/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/snapshot/index.d.ts +30 -0
- package/lib/interfaces/high5/space/event/stream/design/snapshot/index.js +8 -0
- package/lib/interfaces/high5/space/event/stream/index.d.ts +77 -0
- package/lib/interfaces/high5/space/event/stream/index.js +13 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +60 -0
- package/lib/interfaces/high5/space/event/stream/node/index.js +7 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +137 -0
- package/lib/interfaces/high5/space/execution/index.js +21 -0
- package/lib/interfaces/high5/space/index.d.ts +23 -0
- package/lib/interfaces/high5/space/index.js +12 -0
- package/lib/interfaces/high5/space/secret/index.d.ts +12 -0
- package/lib/interfaces/high5/space/secret/index.js +2 -0
- package/lib/interfaces/high5/space/webhook/index.d.ts +75 -0
- package/lib/interfaces/high5/space/webhook/index.js +9 -0
- package/lib/interfaces/high5/wave/index.d.ts +171 -0
- package/lib/interfaces/high5/wave/index.js +52 -0
- package/lib/interfaces/idp/index.d.ts +26 -0
- package/lib/interfaces/idp/index.js +38 -0
- package/lib/interfaces/idp/oauth/index.d.ts +19 -0
- package/lib/interfaces/idp/oauth/index.js +8 -0
- package/lib/interfaces/idp/organization/index.d.ts +32 -0
- package/lib/interfaces/idp/organization/index.js +25 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +84 -0
- package/lib/interfaces/idp/organization/license/index.js +15 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +15 -0
- package/lib/interfaces/idp/organization/member/index.js +2 -0
- package/lib/interfaces/idp/organization/member/invitations/index.d.ts +26 -0
- package/lib/interfaces/idp/organization/member/invitations/index.js +18 -0
- package/lib/interfaces/idp/organization/settings/domain/index.d.ts +19 -0
- package/lib/interfaces/idp/organization/settings/domain/index.js +8 -0
- package/lib/interfaces/idp/organization/settings/domain/saml/index.d.ts +10 -0
- package/lib/interfaces/idp/organization/settings/domain/saml/index.js +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +37 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.js +2 -0
- package/lib/interfaces/idp/organization/team/index.d.ts +24 -0
- package/lib/interfaces/idp/organization/team/index.js +9 -0
- package/lib/interfaces/idp/user/ConnectionSettings.d.ts +6 -0
- package/lib/interfaces/idp/user/ConnectionSettings.js +2 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +44 -0
- package/lib/interfaces/idp/user/GeneralSettings.js +38 -0
- package/lib/interfaces/idp/user/NotificationSettings.d.ts +8 -0
- package/lib/interfaces/idp/user/NotificationSettings.js +2 -0
- package/lib/interfaces/idp/user/Pat.d.ts +19 -0
- package/lib/interfaces/idp/user/Pat.js +2 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +40 -0
- package/lib/interfaces/idp/user/Scopes.js +50 -0
- package/lib/interfaces/idp/user/SuccessfulAuth.d.ts +5 -0
- package/lib/interfaces/idp/user/SuccessfulAuth.js +2 -0
- package/lib/interfaces/idp/user/Totp.d.ts +20 -0
- package/lib/interfaces/idp/user/Totp.js +2 -0
- package/lib/interfaces/idp/user/index.d.ts +23 -0
- package/lib/interfaces/idp/user/index.js +2 -0
- package/lib/interfaces/mailer/index.d.ts +66 -0
- package/lib/interfaces/mailer/index.js +81 -0
- package/lib/interfaces/mothership/index.d.ts +27 -0
- package/lib/interfaces/mothership/index.js +8 -0
- package/lib/interfaces/nats/index.d.ts +252 -0
- package/lib/interfaces/nats/index.js +334 -0
- package/lib/service/agent/bundle/dev/index.d.ts +17 -0
- package/lib/service/agent/bundle/dev/index.js +40 -0
- package/lib/service/agent/bundle/index.d.ts +11 -0
- package/lib/service/agent/bundle/index.js +55 -0
- package/lib/service/agent/context/index.d.ts +37 -0
- package/lib/service/agent/context/index.js +81 -0
- package/lib/service/agent/index.d.ts +14 -0
- package/lib/service/agent/index.js +20 -0
- package/lib/service/agent/installer/index.d.ts +15 -0
- package/lib/service/agent/installer/index.js +97 -0
- package/lib/service/auditor/index.d.ts +26 -0
- package/lib/service/auditor/index.js +49 -0
- package/lib/service/auditor/internal/index.d.ts +27 -0
- package/lib/service/{AuditorInternal.js → auditor/internal/index.js} +20 -24
- package/lib/service/bouncer/features/index.d.ts +8 -0
- package/lib/service/bouncer/features/index.js +25 -0
- package/lib/service/bouncer/index.d.ts +14 -0
- package/lib/service/bouncer/index.js +31 -0
- package/lib/service/dali/DaliAvatar.d.ts +36 -0
- package/lib/service/dali/DaliAvatar.js +25 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +28 -0
- package/lib/service/dali/avatar/DaliFuseSpace.js +55 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +28 -0
- package/lib/service/dali/avatar/DaliHigh5Space.js +55 -0
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +28 -0
- package/lib/service/dali/avatar/DaliOAuthApp.js +55 -0
- package/lib/service/dali/avatar/DaliOrganization.d.ts +25 -0
- package/lib/service/dali/avatar/DaliOrganization.js +52 -0
- package/lib/service/dali/avatar/DaliTeam.d.ts +28 -0
- package/lib/service/dali/avatar/DaliTeam.js +55 -0
- package/lib/service/dali/avatar/DaliUser.d.ts +22 -0
- package/lib/service/dali/avatar/DaliUser.js +49 -0
- package/lib/service/dali/index.d.ts +16 -0
- package/lib/service/dali/index.js +30 -0
- package/lib/service/fuse/index.d.ts +17 -0
- package/lib/service/fuse/index.js +34 -0
- package/lib/service/fuse/internal/index.d.ts +9 -0
- package/lib/service/fuse/internal/index.js +29 -0
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +8 -0
- package/lib/service/fuse/internal/space/cronjob/index.js +15 -0
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +17 -0
- package/lib/service/fuse/internal/space/cronjob/log/index.js +35 -0
- package/lib/service/fuse/internal/space/index.d.ts +23 -0
- package/lib/service/fuse/internal/space/index.js +43 -0
- package/lib/service/fuse/space/cronjob/index.d.ts +123 -0
- package/lib/service/fuse/space/cronjob/index.js +175 -0
- package/lib/service/fuse/space/cronjob/log/index.d.ts +31 -0
- package/lib/service/fuse/space/cronjob/log/index.js +57 -0
- package/lib/service/fuse/space/index.d.ts +82 -0
- package/lib/service/fuse/space/index.js +134 -0
- package/lib/service/high5/execution/index.d.ts +10 -0
- package/lib/service/high5/execution/index.js +17 -0
- package/lib/service/high5/execution/log/index.d.ts +19 -0
- package/lib/service/high5/execution/log/index.js +41 -0
- package/lib/service/high5/execution/status/index.d.ts +18 -0
- package/lib/service/high5/execution/status/index.js +41 -0
- package/lib/service/high5/index.d.ts +22 -0
- package/lib/service/high5/index.js +39 -0
- package/lib/service/high5/internal/index.d.ts +9 -0
- package/lib/service/high5/internal/index.js +29 -0
- package/lib/service/high5/internal/space/index.d.ts +21 -0
- package/lib/service/high5/internal/space/index.js +41 -0
- package/lib/service/high5/joinToken/index.d.ts +40 -0
- package/lib/service/high5/joinToken/index.js +64 -0
- package/lib/service/high5/space/event/index.d.ts +56 -0
- package/lib/service/high5/space/event/index.js +89 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +31 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +117 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +38 -0
- package/lib/service/high5/space/event/stream/design/index.js +56 -0
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +62 -0
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +100 -0
- package/lib/service/high5/space/event/stream/index.d.ts +114 -0
- package/lib/service/high5/space/event/stream/index.js +164 -0
- package/lib/service/high5/space/execution/index.d.ts +48 -0
- package/lib/service/high5/space/execution/index.js +74 -0
- package/lib/service/high5/space/execution/log/index.d.ts +31 -0
- package/lib/service/high5/space/execution/log/index.js +57 -0
- package/lib/service/high5/space/execution/status/index.d.ts +16 -0
- package/lib/service/high5/space/execution/status/index.js +34 -0
- package/lib/service/high5/space/index.d.ts +107 -0
- package/lib/service/high5/space/index.js +160 -0
- package/lib/service/high5/space/node/index.d.ts +58 -0
- package/lib/service/high5/space/node/index.js +116 -0
- package/lib/service/high5/space/secret/index.d.ts +60 -0
- package/lib/service/high5/space/secret/index.js +92 -0
- package/lib/service/high5/space/wave/index.d.ts +38 -0
- package/lib/service/high5/space/wave/index.js +66 -0
- package/lib/service/high5/space/webhook/index.d.ts +83 -0
- package/lib/service/high5/space/webhook/index.js +132 -0
- package/lib/service/high5/space/webhook/log/index.d.ts +18 -0
- package/lib/service/high5/space/webhook/log/index.js +38 -0
- package/lib/service/high5/wave/index.d.ts +8 -0
- package/lib/service/high5/wave/index.js +15 -0
- package/lib/service/high5/wave/s3/index.d.ts +48 -0
- package/lib/service/high5/wave/s3/index.js +88 -0
- package/lib/service/idp/index.d.ts +82 -0
- package/lib/service/idp/index.js +137 -0
- package/lib/service/idp/internal/index.d.ts +19 -0
- package/lib/service/idp/internal/index.js +34 -0
- package/lib/service/idp/oauth/index.d.ts +45 -0
- package/lib/service/idp/oauth/index.js +105 -0
- package/lib/service/idp/organization/index.d.ts +54 -0
- package/lib/service/idp/organization/index.js +79 -0
- package/lib/service/idp/organization/license/index.d.ts +7 -0
- package/lib/service/idp/organization/license/index.js +30 -0
- package/lib/service/idp/organization/member/index.d.ts +58 -0
- package/lib/service/idp/organization/member/index.js +96 -0
- package/lib/service/idp/organization/member/invitations/index.d.ts +79 -0
- package/lib/service/idp/organization/member/invitations/index.js +118 -0
- package/lib/service/idp/organization/settings/domain/index.d.ts +38 -0
- package/lib/service/idp/organization/settings/domain/index.js +63 -0
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +43 -0
- package/lib/service/idp/organization/settings/domain/saml/index.js +88 -0
- package/lib/service/idp/organization/settings/index.d.ts +16 -0
- package/lib/service/idp/organization/settings/index.js +16 -0
- package/lib/service/idp/organization/settings/oauth/index.d.ts +64 -0
- package/lib/service/idp/organization/settings/oauth/index.js +106 -0
- package/lib/service/idp/organization/team/index.d.ts +72 -0
- package/lib/service/idp/organization/team/index.js +115 -0
- package/lib/service/idp/registration/index.d.ts +39 -0
- package/lib/service/idp/registration/index.js +84 -0
- package/lib/service/idp/user/index.d.ts +82 -0
- package/lib/service/idp/user/index.js +125 -0
- package/lib/service/idp/user/license/index.d.ts +7 -0
- package/lib/service/idp/user/license/index.js +30 -0
- package/lib/service/idp/user/password/index.d.ts +19 -0
- package/lib/service/idp/user/password/index.js +52 -0
- package/lib/service/idp/user/settings/connections/index.d.ts +15 -0
- package/lib/service/idp/user/settings/connections/index.js +33 -0
- package/lib/service/idp/user/settings/general/index.d.ts +18 -0
- package/lib/service/idp/user/settings/general/index.js +39 -0
- package/lib/service/idp/user/settings/index.d.ts +36 -0
- package/lib/service/idp/user/settings/index.js +25 -0
- package/lib/service/idp/user/settings/notifications/index.d.ts +18 -0
- package/lib/service/idp/user/settings/notifications/index.js +39 -0
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +22 -0
- package/lib/service/idp/user/settings/oauthApps/index.js +54 -0
- package/lib/service/idp/user/settings/pats/index.d.ts +50 -0
- package/lib/service/idp/user/settings/pats/index.js +93 -0
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +11 -0
- package/lib/service/idp/user/settings/twoFactor/index.js +15 -0
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +34 -0
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +65 -0
- package/lib/service/mailer/index.d.ts +14 -0
- package/lib/service/{Mailer.js → mailer/index.js} +9 -12
- package/lib/service/mailer/internal/index.d.ts +36 -0
- package/lib/service/mailer/internal/index.js +64 -0
- package/lib/service/mothership/index.d.ts +97 -0
- package/lib/service/mothership/index.js +136 -0
- package/lib/service/nats/index.d.ts +51 -0
- package/lib/service/nats/index.js +138 -0
- package/lib/utils/Types.d.ts +1 -0
- package/lib/utils/Types.js +2 -0
- package/lib/utils/bouncer/features/Provider.d.ts +16 -0
- package/lib/utils/bouncer/features/Provider.js +83 -0
- package/package.json +37 -29
- package/lib/base.d.ts +0 -12
- package/lib/base.js +0 -8
- package/lib/hcloud.d.ts +0 -13
- package/lib/hcloud.js +0 -29
- package/lib/interfaces/Global.d.ts +0 -8
- package/lib/interfaces/IDP.d.ts +0 -9
- package/lib/interfaces/Mail.d.ts +0 -29
- package/lib/interfaces/Mail.js +0 -8
- package/lib/service/Auditor.d.ts +0 -22
- package/lib/service/Auditor.js +0 -61
- package/lib/service/AuditorInternal.d.ts +0 -28
- package/lib/service/High5.d.ts +0 -4
- package/lib/service/High5.js +0 -9
- package/lib/service/IDP.d.ts +0 -39
- package/lib/service/IDP.js +0 -84
- package/lib/service/Mailer.d.ts +0 -13
- package/lib/service/MailerInternal.d.ts +0 -32
- package/lib/service/MailerInternal.js +0 -64
- /package/lib/interfaces/{Global.js → agent/bundle/dev/index.js} +0 -0
- /package/lib/interfaces/{IDP.js → agent/context/index.js} +0 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export interface RegistryCatalog {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
publisher: string;
|
|
5
|
+
url: string;
|
|
6
|
+
verified?: boolean;
|
|
7
|
+
featured?: boolean;
|
|
8
|
+
default?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CatalogRegistry {
|
|
11
|
+
catalogs: RegistryCatalog[];
|
|
12
|
+
}
|
|
13
|
+
export interface EngineRegistry {
|
|
14
|
+
engines: {
|
|
15
|
+
url: string;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
export interface WaveEngine {
|
|
19
|
+
_id: string;
|
|
20
|
+
version: string;
|
|
21
|
+
url: string;
|
|
22
|
+
changeLog: string[];
|
|
23
|
+
md5: string;
|
|
24
|
+
dev?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface WaveCatalog {
|
|
27
|
+
_id: string;
|
|
28
|
+
version: string;
|
|
29
|
+
url: string;
|
|
30
|
+
changeLog: string[];
|
|
31
|
+
dev?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface Engine {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
logo?: string;
|
|
37
|
+
versions: WaveEngine[];
|
|
38
|
+
}
|
|
39
|
+
export interface Catalog {
|
|
40
|
+
name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
logo?: string;
|
|
43
|
+
versions: WaveCatalog[];
|
|
44
|
+
}
|
|
45
|
+
export interface SpacePatchWaveEngine {
|
|
46
|
+
version: string;
|
|
47
|
+
url: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SpacePatchWaveCatalog {
|
|
50
|
+
version: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}
|
|
53
|
+
export interface Specification {
|
|
54
|
+
nodes: StreamNodeSpecification[];
|
|
55
|
+
}
|
|
56
|
+
export interface StreamNodeSpecificationWrappedWithEngineVersion {
|
|
57
|
+
nodes: StreamNodeSpecifications[];
|
|
58
|
+
engineVersion: string;
|
|
59
|
+
}
|
|
60
|
+
export interface StreamNodeSpecification {
|
|
61
|
+
specVersion: number;
|
|
62
|
+
}
|
|
63
|
+
export type StreamNodeSpecifications = StreamNodeSpecificationV1;
|
|
64
|
+
export interface StreamNodeSpecificationV1 extends StreamNodeSpecification {
|
|
65
|
+
specVersion: 1;
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
type: StreamNodeSpecificationType;
|
|
69
|
+
package: StreamNodeSpecificationPackage;
|
|
70
|
+
category: string;
|
|
71
|
+
version: StreamSemanticVersion;
|
|
72
|
+
author: StreamNodeSpecificationAuthor;
|
|
73
|
+
tag?: StreamNodeSpecificationTag;
|
|
74
|
+
inputs?: StreamNodeSpecificationInput[];
|
|
75
|
+
outputs?: StreamNodeSpecificationOutput[];
|
|
76
|
+
additionalConnectors?: StreamNodeSpecificationAdditionalConnector[];
|
|
77
|
+
path?: string;
|
|
78
|
+
customNode?: StreamCustomNodeSpecification;
|
|
79
|
+
}
|
|
80
|
+
export declare function isStreamNodeSpecificationV1(s: StreamNodeSpecification): s is StreamNodeSpecificationV1;
|
|
81
|
+
export interface StreamCustomNodeSpecification {
|
|
82
|
+
_id: string;
|
|
83
|
+
color?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface StreamSemanticVersion {
|
|
86
|
+
/**
|
|
87
|
+
* changes effecting the user and are not backwards compatible (parameter changes)
|
|
88
|
+
*/
|
|
89
|
+
major: number;
|
|
90
|
+
/**
|
|
91
|
+
* changes effecting the user but are backwards compatible (logic changes)
|
|
92
|
+
*/
|
|
93
|
+
minor: number;
|
|
94
|
+
/**
|
|
95
|
+
* changes not effecting the user (bug fixes)
|
|
96
|
+
*/
|
|
97
|
+
patch: number;
|
|
98
|
+
/**
|
|
99
|
+
* description for every change on the the node
|
|
100
|
+
*/
|
|
101
|
+
changelog: string[];
|
|
102
|
+
}
|
|
103
|
+
export interface StreamNodeSpecificationAdditionalConnector {
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
}
|
|
107
|
+
export type StreamNodeSpecificationInput = {
|
|
108
|
+
name: string;
|
|
109
|
+
description: string;
|
|
110
|
+
defaultValue?: any;
|
|
111
|
+
example: any;
|
|
112
|
+
advanced?: boolean;
|
|
113
|
+
mandatory?: boolean;
|
|
114
|
+
} & ({
|
|
115
|
+
type: Exclude<StreamNodeSpecificationInputType, StreamNodeSpecificationInputType.STRING_SELECT>;
|
|
116
|
+
} | {
|
|
117
|
+
type: StreamNodeSpecificationInputType.STRING_SELECT;
|
|
118
|
+
options: Record<string, string | number>;
|
|
119
|
+
});
|
|
120
|
+
export interface StreamNodeSpecificationOutput {
|
|
121
|
+
name: string;
|
|
122
|
+
description: string;
|
|
123
|
+
type: StreamNodeSpecificationOutputType;
|
|
124
|
+
example: unknown;
|
|
125
|
+
howToAccess: string[];
|
|
126
|
+
}
|
|
127
|
+
export declare enum StreamNodeSpecificationInputType {
|
|
128
|
+
STRING = "STRING",
|
|
129
|
+
STRING_LONG = "STRING_LONG",
|
|
130
|
+
STRING_LIST = "STRING_LIST",
|
|
131
|
+
STRING_MAP = "STRING_MAP",
|
|
132
|
+
STRING_READONLY = "STRING_READONLY",
|
|
133
|
+
STRING_SELECT = "STRING_SELECT",
|
|
134
|
+
STRING_PASSWORD = "STRING_PASSWORD",
|
|
135
|
+
NUMBER = "NUMBER",
|
|
136
|
+
BOOLEAN = "BOOLEAN",
|
|
137
|
+
ANY = "ANY"
|
|
138
|
+
}
|
|
139
|
+
export declare enum StreamNodeSpecificationOutputType {
|
|
140
|
+
STRING = "STRING",
|
|
141
|
+
STRING_LONG = "STRING_LONG",
|
|
142
|
+
STRING_LIST = "STRING_LIST",
|
|
143
|
+
STRING_MAP = "STRING_MAP",
|
|
144
|
+
STRING_READONLY = "STRING_READONLY",
|
|
145
|
+
NUMBER = "NUMBER",
|
|
146
|
+
BOOLEAN = "BOOLEAN",
|
|
147
|
+
ANY = "ANY",
|
|
148
|
+
JSON = "JSON",
|
|
149
|
+
XML = "XML",
|
|
150
|
+
HTML = "HTML"
|
|
151
|
+
}
|
|
152
|
+
export interface StreamNodeSpecificationAuthor {
|
|
153
|
+
name: string;
|
|
154
|
+
company: string;
|
|
155
|
+
email: string;
|
|
156
|
+
}
|
|
157
|
+
export declare enum StreamNodeSpecificationType {
|
|
158
|
+
TRIGGER = "TRIGGER",
|
|
159
|
+
ACTION = "ACTION",
|
|
160
|
+
CONDITION = "CONDITION"
|
|
161
|
+
}
|
|
162
|
+
export declare enum StreamNodeSpecificationTag {
|
|
163
|
+
PREVIEW = "PREVIEW",
|
|
164
|
+
EXPERIMENTAL = "EXPERIMENTAL"
|
|
165
|
+
}
|
|
166
|
+
export declare enum StreamNodeSpecificationPackage {
|
|
167
|
+
CORE = "CORE",
|
|
168
|
+
DEV = "DEV",
|
|
169
|
+
THIRD_PARTY = "THIRD_PARTY",
|
|
170
|
+
CUSTOM = "CUSTOM"
|
|
171
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamNodeSpecificationPackage = exports.StreamNodeSpecificationTag = exports.StreamNodeSpecificationType = exports.StreamNodeSpecificationOutputType = exports.StreamNodeSpecificationInputType = void 0;
|
|
4
|
+
exports.isStreamNodeSpecificationV1 = isStreamNodeSpecificationV1;
|
|
5
|
+
function isStreamNodeSpecificationV1(s) {
|
|
6
|
+
return s.specVersion === 1;
|
|
7
|
+
}
|
|
8
|
+
var StreamNodeSpecificationInputType;
|
|
9
|
+
(function (StreamNodeSpecificationInputType) {
|
|
10
|
+
StreamNodeSpecificationInputType["STRING"] = "STRING";
|
|
11
|
+
StreamNodeSpecificationInputType["STRING_LONG"] = "STRING_LONG";
|
|
12
|
+
StreamNodeSpecificationInputType["STRING_LIST"] = "STRING_LIST";
|
|
13
|
+
StreamNodeSpecificationInputType["STRING_MAP"] = "STRING_MAP";
|
|
14
|
+
StreamNodeSpecificationInputType["STRING_READONLY"] = "STRING_READONLY";
|
|
15
|
+
StreamNodeSpecificationInputType["STRING_SELECT"] = "STRING_SELECT";
|
|
16
|
+
StreamNodeSpecificationInputType["STRING_PASSWORD"] = "STRING_PASSWORD";
|
|
17
|
+
StreamNodeSpecificationInputType["NUMBER"] = "NUMBER";
|
|
18
|
+
StreamNodeSpecificationInputType["BOOLEAN"] = "BOOLEAN";
|
|
19
|
+
StreamNodeSpecificationInputType["ANY"] = "ANY";
|
|
20
|
+
})(StreamNodeSpecificationInputType || (exports.StreamNodeSpecificationInputType = StreamNodeSpecificationInputType = {}));
|
|
21
|
+
var StreamNodeSpecificationOutputType;
|
|
22
|
+
(function (StreamNodeSpecificationOutputType) {
|
|
23
|
+
StreamNodeSpecificationOutputType["STRING"] = "STRING";
|
|
24
|
+
StreamNodeSpecificationOutputType["STRING_LONG"] = "STRING_LONG";
|
|
25
|
+
StreamNodeSpecificationOutputType["STRING_LIST"] = "STRING_LIST";
|
|
26
|
+
StreamNodeSpecificationOutputType["STRING_MAP"] = "STRING_MAP";
|
|
27
|
+
StreamNodeSpecificationOutputType["STRING_READONLY"] = "STRING_READONLY";
|
|
28
|
+
StreamNodeSpecificationOutputType["NUMBER"] = "NUMBER";
|
|
29
|
+
StreamNodeSpecificationOutputType["BOOLEAN"] = "BOOLEAN";
|
|
30
|
+
StreamNodeSpecificationOutputType["ANY"] = "ANY";
|
|
31
|
+
StreamNodeSpecificationOutputType["JSON"] = "JSON";
|
|
32
|
+
StreamNodeSpecificationOutputType["XML"] = "XML";
|
|
33
|
+
StreamNodeSpecificationOutputType["HTML"] = "HTML";
|
|
34
|
+
})(StreamNodeSpecificationOutputType || (exports.StreamNodeSpecificationOutputType = StreamNodeSpecificationOutputType = {}));
|
|
35
|
+
var StreamNodeSpecificationType;
|
|
36
|
+
(function (StreamNodeSpecificationType) {
|
|
37
|
+
StreamNodeSpecificationType["TRIGGER"] = "TRIGGER";
|
|
38
|
+
StreamNodeSpecificationType["ACTION"] = "ACTION";
|
|
39
|
+
StreamNodeSpecificationType["CONDITION"] = "CONDITION";
|
|
40
|
+
})(StreamNodeSpecificationType || (exports.StreamNodeSpecificationType = StreamNodeSpecificationType = {}));
|
|
41
|
+
var StreamNodeSpecificationTag;
|
|
42
|
+
(function (StreamNodeSpecificationTag) {
|
|
43
|
+
StreamNodeSpecificationTag["PREVIEW"] = "PREVIEW";
|
|
44
|
+
StreamNodeSpecificationTag["EXPERIMENTAL"] = "EXPERIMENTAL";
|
|
45
|
+
})(StreamNodeSpecificationTag || (exports.StreamNodeSpecificationTag = StreamNodeSpecificationTag = {}));
|
|
46
|
+
var StreamNodeSpecificationPackage;
|
|
47
|
+
(function (StreamNodeSpecificationPackage) {
|
|
48
|
+
StreamNodeSpecificationPackage["CORE"] = "CORE";
|
|
49
|
+
StreamNodeSpecificationPackage["DEV"] = "DEV";
|
|
50
|
+
StreamNodeSpecificationPackage["THIRD_PARTY"] = "THIRD_PARTY";
|
|
51
|
+
StreamNodeSpecificationPackage["CUSTOM"] = "CUSTOM";
|
|
52
|
+
})(StreamNodeSpecificationPackage || (exports.StreamNodeSpecificationPackage = StreamNodeSpecificationPackage = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./oauth";
|
|
2
|
+
export * from "./organization";
|
|
3
|
+
export * from "./organization/member";
|
|
4
|
+
export * from "./organization/member/invitations";
|
|
5
|
+
export * from "./organization/team";
|
|
6
|
+
export * from "./organization/settings/domain";
|
|
7
|
+
export * from "./organization/settings/domain/saml";
|
|
8
|
+
export * from "./organization/settings/oauthApp";
|
|
9
|
+
export * from "./user/GeneralSettings";
|
|
10
|
+
export * from "./user/Pat";
|
|
11
|
+
export * from "./user/Scopes";
|
|
12
|
+
export * from "./user/SuccessfulAuth";
|
|
13
|
+
export * from "./user/Totp";
|
|
14
|
+
export * from "./user";
|
|
15
|
+
export declare enum PreLoginPath {
|
|
16
|
+
LOGIN = "LOGIN",
|
|
17
|
+
REGISTER = "REGISTER",
|
|
18
|
+
VERIFY_EMAIL = "VERIFY_EMAIL",
|
|
19
|
+
EXTERNAL = "EXTERNAL"
|
|
20
|
+
}
|
|
21
|
+
export type PreLoginResponse = {
|
|
22
|
+
path: PreLoginPath.EXTERNAL;
|
|
23
|
+
location: string;
|
|
24
|
+
} | {
|
|
25
|
+
path: Exclude<PreLoginPath, PreLoginPath.EXTERNAL>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PreLoginPath = void 0;
|
|
18
|
+
__exportStar(require("./oauth"), exports);
|
|
19
|
+
__exportStar(require("./organization"), exports);
|
|
20
|
+
__exportStar(require("./organization/member"), exports);
|
|
21
|
+
__exportStar(require("./organization/member/invitations"), exports);
|
|
22
|
+
__exportStar(require("./organization/team"), exports);
|
|
23
|
+
__exportStar(require("./organization/settings/domain"), exports);
|
|
24
|
+
__exportStar(require("./organization/settings/domain/saml"), exports);
|
|
25
|
+
__exportStar(require("./organization/settings/oauthApp"), exports);
|
|
26
|
+
__exportStar(require("./user/GeneralSettings"), exports);
|
|
27
|
+
__exportStar(require("./user/Pat"), exports);
|
|
28
|
+
__exportStar(require("./user/Scopes"), exports);
|
|
29
|
+
__exportStar(require("./user/SuccessfulAuth"), exports);
|
|
30
|
+
__exportStar(require("./user/Totp"), exports);
|
|
31
|
+
__exportStar(require("./user"), exports);
|
|
32
|
+
var PreLoginPath;
|
|
33
|
+
(function (PreLoginPath) {
|
|
34
|
+
PreLoginPath["LOGIN"] = "LOGIN";
|
|
35
|
+
PreLoginPath["REGISTER"] = "REGISTER";
|
|
36
|
+
PreLoginPath["VERIFY_EMAIL"] = "VERIFY_EMAIL";
|
|
37
|
+
PreLoginPath["EXTERNAL"] = "EXTERNAL";
|
|
38
|
+
})(PreLoginPath || (exports.PreLoginPath = PreLoginPath = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Scope } from "../user/Scopes";
|
|
2
|
+
export interface OAuthTokenRequest {
|
|
3
|
+
code: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
clientSecret: string;
|
|
6
|
+
redirectUri: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OAuthToken {
|
|
9
|
+
id_token?: string;
|
|
10
|
+
access_token?: string;
|
|
11
|
+
refresh_token?: string;
|
|
12
|
+
token_type?: string;
|
|
13
|
+
expires_in?: number;
|
|
14
|
+
scope?: Scope[];
|
|
15
|
+
}
|
|
16
|
+
export declare enum GrantType {
|
|
17
|
+
AUTHORIZATION_CODE = "authorization_code",
|
|
18
|
+
REFRESH_TOKEN = "refresh_token"
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GrantType = void 0;
|
|
4
|
+
var GrantType;
|
|
5
|
+
(function (GrantType) {
|
|
6
|
+
GrantType["AUTHORIZATION_CODE"] = "authorization_code";
|
|
7
|
+
GrantType["REFRESH_TOKEN"] = "refresh_token";
|
|
8
|
+
})(GrantType || (exports.GrantType = GrantType = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReducedUser } from "../user";
|
|
2
|
+
import { License } from "./license";
|
|
3
|
+
import { ReducedTeam } from "./team";
|
|
4
|
+
export * from "./license";
|
|
5
|
+
export declare enum OrganizationRole {
|
|
6
|
+
MEMBER = "MEMBER",// Part of org, but cannot change anything
|
|
7
|
+
MANAGER = "MANAGER",// Can update members
|
|
8
|
+
ADMIN = "ADMIN",// Can update org and members
|
|
9
|
+
OWNER = "OWNER"
|
|
10
|
+
}
|
|
11
|
+
export interface Organization {
|
|
12
|
+
_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
isUserOrganization: boolean;
|
|
15
|
+
company: string;
|
|
16
|
+
creator: ReducedUser;
|
|
17
|
+
avatarUrl: string;
|
|
18
|
+
roleOfUser: OrganizationRole;
|
|
19
|
+
createDate: number;
|
|
20
|
+
modifyDate: number;
|
|
21
|
+
teamsOfUser?: ReducedTeam[];
|
|
22
|
+
membersSample?: ReducedUser[];
|
|
23
|
+
totalMemberCount?: number;
|
|
24
|
+
license?: License;
|
|
25
|
+
}
|
|
26
|
+
export type ReducedOrganization = Pick<Organization, "_id" | "name" | "avatarUrl">;
|
|
27
|
+
export type OrganizationQueryOptions = {
|
|
28
|
+
getTeamsOfUser?: boolean;
|
|
29
|
+
getMembersSample?: number;
|
|
30
|
+
getTotalMemberCount?: boolean;
|
|
31
|
+
getLicense?: boolean;
|
|
32
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OrganizationRole = void 0;
|
|
18
|
+
__exportStar(require("./license"), exports);
|
|
19
|
+
var OrganizationRole;
|
|
20
|
+
(function (OrganizationRole) {
|
|
21
|
+
OrganizationRole["MEMBER"] = "MEMBER";
|
|
22
|
+
OrganizationRole["MANAGER"] = "MANAGER";
|
|
23
|
+
OrganizationRole["ADMIN"] = "ADMIN";
|
|
24
|
+
OrganizationRole["OWNER"] = "OWNER";
|
|
25
|
+
})(OrganizationRole || (exports.OrganizationRole = OrganizationRole = {}));
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ReducedUser } from "../../user";
|
|
2
|
+
export type License = {
|
|
3
|
+
tier: LicenseTier;
|
|
4
|
+
type: LicenseType;
|
|
5
|
+
billingId?: string;
|
|
6
|
+
quota: LicenseQuota;
|
|
7
|
+
creator?: ReducedUser;
|
|
8
|
+
contact?: ReducedUser;
|
|
9
|
+
expireDate: number;
|
|
10
|
+
createDate: number;
|
|
11
|
+
};
|
|
12
|
+
export type LicenseQuota = {
|
|
13
|
+
idp: {
|
|
14
|
+
organization: {
|
|
15
|
+
members: {
|
|
16
|
+
quota: number;
|
|
17
|
+
};
|
|
18
|
+
agents: {
|
|
19
|
+
quota: number;
|
|
20
|
+
};
|
|
21
|
+
teams: {
|
|
22
|
+
quota: number;
|
|
23
|
+
};
|
|
24
|
+
domains: {
|
|
25
|
+
quota: number;
|
|
26
|
+
};
|
|
27
|
+
logPeriodInDays: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
high5: {
|
|
31
|
+
spaces: {
|
|
32
|
+
quota: number;
|
|
33
|
+
catalogs: {
|
|
34
|
+
quota: number;
|
|
35
|
+
};
|
|
36
|
+
customCatalogs: {
|
|
37
|
+
quota: number;
|
|
38
|
+
};
|
|
39
|
+
customNodes: {
|
|
40
|
+
quota: number;
|
|
41
|
+
};
|
|
42
|
+
webhooks: {
|
|
43
|
+
quota: number;
|
|
44
|
+
logs: {
|
|
45
|
+
quota: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
secrets: {
|
|
49
|
+
quota: number;
|
|
50
|
+
};
|
|
51
|
+
events: {
|
|
52
|
+
quota: number;
|
|
53
|
+
streams: {
|
|
54
|
+
quota: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
executionsPerMonth: {
|
|
59
|
+
quota: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
fuse: {
|
|
63
|
+
spaces: {
|
|
64
|
+
quota: number;
|
|
65
|
+
jobs: {
|
|
66
|
+
quota: number;
|
|
67
|
+
logs: {
|
|
68
|
+
quota: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
secondBaseExecutions: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export declare enum LicenseTier {
|
|
76
|
+
FREE = "FREE",
|
|
77
|
+
PRO = "PRO",
|
|
78
|
+
ENTERPRISE = "ENTERPRISE"
|
|
79
|
+
}
|
|
80
|
+
export declare enum LicenseType {
|
|
81
|
+
PRODUCTION = "PRODUCTION",
|
|
82
|
+
POC = "POC",
|
|
83
|
+
THIRD_PARTY = "THIRD_PARTY"
|
|
84
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseType = exports.LicenseTier = void 0;
|
|
4
|
+
var LicenseTier;
|
|
5
|
+
(function (LicenseTier) {
|
|
6
|
+
LicenseTier["FREE"] = "FREE";
|
|
7
|
+
LicenseTier["PRO"] = "PRO";
|
|
8
|
+
LicenseTier["ENTERPRISE"] = "ENTERPRISE";
|
|
9
|
+
})(LicenseTier || (exports.LicenseTier = LicenseTier = {}));
|
|
10
|
+
var LicenseType;
|
|
11
|
+
(function (LicenseType) {
|
|
12
|
+
LicenseType["PRODUCTION"] = "PRODUCTION";
|
|
13
|
+
LicenseType["POC"] = "POC";
|
|
14
|
+
LicenseType["THIRD_PARTY"] = "THIRD_PARTY";
|
|
15
|
+
})(LicenseType || (exports.LicenseType = LicenseType = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OrganizationRole } from "..";
|
|
2
|
+
export interface OrganizationMember {
|
|
3
|
+
_id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
name: string;
|
|
6
|
+
avatarUrl: string;
|
|
7
|
+
role: OrganizationRole;
|
|
8
|
+
}
|
|
9
|
+
export interface OrgMemberCreate {
|
|
10
|
+
email: string;
|
|
11
|
+
role: OrganizationRole;
|
|
12
|
+
}
|
|
13
|
+
export interface OrgMemberPatch {
|
|
14
|
+
role: OrganizationRole;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OrganizationRole, ReducedOrganization } from "../../../organization";
|
|
2
|
+
import { ReducedUser } from "../../../user";
|
|
3
|
+
export declare enum InvitationStatus {
|
|
4
|
+
/**
|
|
5
|
+
* The invitation was accepted.
|
|
6
|
+
*/
|
|
7
|
+
ACCEPTED = "ACCEPTED",
|
|
8
|
+
/**
|
|
9
|
+
* The invitation was rejected.
|
|
10
|
+
*/
|
|
11
|
+
REJECTED = "REJECTED",
|
|
12
|
+
/**
|
|
13
|
+
* There has been no response to the invitation.
|
|
14
|
+
*/
|
|
15
|
+
PENDING = "PENDING"
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationMemberInvitation {
|
|
18
|
+
_id: string;
|
|
19
|
+
organization: ReducedOrganization;
|
|
20
|
+
creator: ReducedUser;
|
|
21
|
+
email: string;
|
|
22
|
+
status: InvitationStatus;
|
|
23
|
+
role: OrganizationRole;
|
|
24
|
+
createDate: number;
|
|
25
|
+
modifyDate: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvitationStatus = void 0;
|
|
4
|
+
var InvitationStatus;
|
|
5
|
+
(function (InvitationStatus) {
|
|
6
|
+
/**
|
|
7
|
+
* The invitation was accepted.
|
|
8
|
+
*/
|
|
9
|
+
InvitationStatus["ACCEPTED"] = "ACCEPTED";
|
|
10
|
+
/**
|
|
11
|
+
* The invitation was rejected.
|
|
12
|
+
*/
|
|
13
|
+
InvitationStatus["REJECTED"] = "REJECTED";
|
|
14
|
+
/**
|
|
15
|
+
* There has been no response to the invitation.
|
|
16
|
+
*/
|
|
17
|
+
InvitationStatus["PENDING"] = "PENDING";
|
|
18
|
+
})(InvitationStatus || (exports.InvitationStatus = InvitationStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReducedOrganization } from "../..";
|
|
2
|
+
import { ReducedUser } from "../../../user";
|
|
3
|
+
declare enum VerificationStatus {
|
|
4
|
+
verified = "verified",
|
|
5
|
+
waiting = "waiting",
|
|
6
|
+
error = "error"
|
|
7
|
+
}
|
|
8
|
+
export interface Domain {
|
|
9
|
+
_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
organization: ReducedOrganization;
|
|
12
|
+
verified: boolean;
|
|
13
|
+
verificationStatus: VerificationStatus;
|
|
14
|
+
uuid: string;
|
|
15
|
+
creator: ReducedUser;
|
|
16
|
+
createDate: number;
|
|
17
|
+
modifyDate: number;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var VerificationStatus;
|
|
4
|
+
(function (VerificationStatus) {
|
|
5
|
+
VerificationStatus["verified"] = "verified";
|
|
6
|
+
VerificationStatus["waiting"] = "waiting";
|
|
7
|
+
VerificationStatus["error"] = "error";
|
|
8
|
+
})(VerificationStatus || (VerificationStatus = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SAMLProvider {
|
|
2
|
+
ssoLoginURL: string;
|
|
3
|
+
ssoLogoutURL: string;
|
|
4
|
+
certificates: string[];
|
|
5
|
+
allowUnencryptedAssertion: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FullSAMLProvider extends SAMLProvider {
|
|
8
|
+
domainName: string;
|
|
9
|
+
}
|
|
10
|
+
export type SAMLProviderCreateDto = Omit<SAMLProvider, "allowUnencryptedAssertion"> & Partial<Pick<SAMLProvider, "allowUnencryptedAssertion">>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReducedOrganization } from "../..";
|
|
2
|
+
import { ReducedUser } from "../../../user";
|
|
3
|
+
import { Scope } from "../../../user/Scopes";
|
|
4
|
+
export interface OAuthAppClientSecret {
|
|
5
|
+
name: string;
|
|
6
|
+
secret: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
creatorId: string;
|
|
9
|
+
used: boolean;
|
|
10
|
+
createDate: number;
|
|
11
|
+
modifyDate: number;
|
|
12
|
+
}
|
|
13
|
+
export interface OAuthApp {
|
|
14
|
+
_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
organization: ReducedOrganization;
|
|
17
|
+
creator: ReducedUser;
|
|
18
|
+
avatarUrl: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
homepage?: string;
|
|
21
|
+
callback: string[];
|
|
22
|
+
hcloudClientId: string;
|
|
23
|
+
clientSecrets: OAuthAppClientSecret[];
|
|
24
|
+
scopes: Scope[];
|
|
25
|
+
patId?: string;
|
|
26
|
+
createDate: number;
|
|
27
|
+
modifyDate: number;
|
|
28
|
+
}
|
|
29
|
+
export type OAuthAppWithConsent = OAuthApp & Omit<OAuthApp, "hcloudClientId" | "clientSecrets" | "callback"> & {
|
|
30
|
+
scopes: Record<Scope, number>;
|
|
31
|
+
};
|
|
32
|
+
export interface OAuthAppCreate {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
homepage?: string;
|
|
36
|
+
callback: string[];
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReducedOrganization } from "..";
|
|
2
|
+
import { ReducedUser } from "../../user";
|
|
3
|
+
export interface Team {
|
|
4
|
+
_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
organization: ReducedOrganization;
|
|
7
|
+
users: ReducedUser[];
|
|
8
|
+
avatarUrl: string;
|
|
9
|
+
createDate: number;
|
|
10
|
+
modifyDate: number;
|
|
11
|
+
creator: ReducedUser;
|
|
12
|
+
membersSample?: ReducedUser[];
|
|
13
|
+
totalMemberCount?: number;
|
|
14
|
+
}
|
|
15
|
+
export type ReducedTeam = Pick<Team, "_id" | "name" | "avatarUrl">;
|
|
16
|
+
export declare enum TeamUsersPatchOperation {
|
|
17
|
+
ADD = "ADD",
|
|
18
|
+
REMOVE = "REMOVE",
|
|
19
|
+
SET = "SET"
|
|
20
|
+
}
|
|
21
|
+
export type TeamQueryOptions = {
|
|
22
|
+
getMembersSample?: number;
|
|
23
|
+
getTotalMemberCount?: boolean;
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamUsersPatchOperation = void 0;
|
|
4
|
+
var TeamUsersPatchOperation;
|
|
5
|
+
(function (TeamUsersPatchOperation) {
|
|
6
|
+
TeamUsersPatchOperation["ADD"] = "ADD";
|
|
7
|
+
TeamUsersPatchOperation["REMOVE"] = "REMOVE";
|
|
8
|
+
TeamUsersPatchOperation["SET"] = "SET";
|
|
9
|
+
})(TeamUsersPatchOperation || (exports.TeamUsersPatchOperation = TeamUsersPatchOperation = {}));
|