hcloud-sdk 15.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +78 -33
- package/lib/Hcloud.d.ts +3 -0
- package/lib/Hcloud.js +7 -0
- package/lib/helper/ValidationHelper.d.ts +66 -0
- package/lib/helper/ValidationHelper.js +312 -0
- package/lib/interfaces/auditor/index.d.ts +10 -4
- package/lib/interfaces/auditor/index.js +4 -0
- package/lib/interfaces/friday/index.d.ts +3 -0
- package/lib/interfaces/friday/index.js +19 -0
- package/lib/interfaces/friday/space/database/document/index.d.ts +34 -0
- package/lib/interfaces/friday/space/database/document/index.js +13 -0
- package/lib/interfaces/friday/space/database/index.d.ts +12 -0
- package/lib/interfaces/friday/space/database/index.js +2 -0
- package/lib/interfaces/friday/space/index.d.ts +21 -0
- package/lib/interfaces/friday/space/index.js +11 -0
- package/lib/interfaces/frontend/config/index.d.ts +1 -0
- package/lib/interfaces/fuse/space/index.d.ts +1 -0
- package/lib/interfaces/global/Products.d.ts +3 -1
- package/lib/interfaces/global/Products.js +2 -0
- package/lib/interfaces/global/Views.d.ts +2 -1
- package/lib/interfaces/global/Views.js +1 -0
- package/lib/interfaces/high5/execution/index.d.ts +43 -0
- package/lib/interfaces/high5/execution/index.js +12 -0
- package/lib/interfaces/high5/index.d.ts +2 -2
- package/lib/interfaces/high5/index.js +2 -2
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +22 -1
- package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +57 -1
- package/lib/interfaces/high5/space/execution/index.js +8 -0
- package/lib/interfaces/high5/space/index.d.ts +2 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +28 -0
- package/lib/interfaces/high5/space/pool/index.js +2 -0
- package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
- package/lib/interfaces/high5/wave/index.d.ts +26 -4
- package/lib/interfaces/high5/wave/index.js +4 -0
- package/lib/interfaces/idp/index.d.ts +1 -0
- package/lib/interfaces/idp/index.js +1 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +11 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +3 -0
- package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
- package/lib/interfaces/idp/organization/service-accounts.js +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +15 -2
- package/lib/interfaces/idp/user/Scopes.js +39 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +92 -5
- package/lib/interfaces/nats/index.js +155 -11
- package/lib/service/agent/bundle/dev/index.d.ts +3 -0
- package/lib/service/agent/bundle/dev/index.js +16 -0
- package/lib/service/agent/context/index.d.ts +5 -0
- package/lib/service/agent/context/index.js +14 -0
- package/lib/service/dali/DaliAvatar.d.ts +22 -4
- package/lib/service/dali/DaliAvatar.js +32 -2
- package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +26 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.js +58 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +1 -1
- package/lib/service/dali/avatar/DaliFuseSpace.js +3 -3
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
- package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +1 -1
- package/lib/service/dali/avatar/DaliHigh5Space.js +3 -3
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +26 -0
- package/lib/service/dali/avatar/DaliServiceAccount.js +58 -0
- package/lib/service/friday/index.d.ts +13 -0
- package/lib/service/friday/index.js +35 -0
- package/lib/service/friday/space/database/document/index.d.ts +58 -0
- package/lib/service/friday/space/database/document/index.js +97 -0
- package/lib/service/friday/space/database/index.d.ts +55 -0
- package/lib/service/friday/space/database/index.js +101 -0
- package/lib/service/friday/space/index.d.ts +81 -0
- package/lib/service/friday/space/index.js +150 -0
- package/lib/service/high5/execution/index.d.ts +8 -0
- package/lib/service/high5/execution/index.js +21 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -1
- package/lib/service/high5/space/execution/index.d.ts +31 -1
- package/lib/service/high5/space/execution/index.js +47 -2
- package/lib/service/high5/space/execution/status/index.d.ts +13 -6
- package/lib/service/high5/space/execution/status/index.js +20 -8
- package/lib/service/high5/space/index.d.ts +18 -6
- package/lib/service/high5/space/index.js +30 -7
- package/lib/service/high5/space/pool/index.d.ts +97 -0
- package/lib/service/high5/space/pool/index.js +171 -0
- package/lib/service/high5/wave/s3/index.d.ts +8 -1
- package/lib/service/high5/wave/s3/index.js +29 -8
- package/lib/service/idp/oauth/index.d.ts +2 -2
- package/lib/service/idp/oauth/index.js +12 -13
- package/lib/service/idp/organization/index.d.ts +6 -0
- package/lib/service/idp/organization/index.js +10 -0
- package/lib/service/idp/organization/member/index.d.ts +2 -1
- package/lib/service/idp/organization/member/index.js +2 -1
- package/lib/service/idp/organization/service-accounts/index.d.ts +64 -0
- package/lib/service/idp/organization/service-accounts/index.js +108 -0
- package/lib/service/idp/registration/index.d.ts +1 -1
- package/lib/service/idp/registration/index.js +2 -2
- package/lib/service/idp/user/index.d.ts +4 -0
- package/lib/service/idp/user/index.js +9 -0
- package/lib/service/idp/user/password/index.js +1 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +1 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +1 -1
- package/lib/service/mothership/index.js +0 -1
- package/lib/service/nats/index.js +2 -3
- package/lib/utils/bouncer/features/Provider.js +0 -3
- package/package.json +22 -24
package/changelog.md
CHANGED
|
@@ -1,45 +1,90 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [17.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v16.0.0...v17.0.0) (2025-06-04)
|
|
2
2
|
|
|
3
3
|
### ⚠ BREAKING CHANGES
|
|
4
4
|
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* rename rush to cosmo
|
|
6
|
+
* add executionId to High5ExecutionPackage
|
|
7
|
+
* fix outdated getStreamExecutionStatus() method
|
|
8
|
+
* fix replace node debug command schema
|
|
9
|
+
* update pool implementation to match teams
|
|
7
10
|
|
|
8
11
|
### Features
|
|
9
12
|
|
|
10
|
-
* add
|
|
11
|
-
* add
|
|
12
|
-
* add
|
|
13
|
-
* add
|
|
14
|
-
* add
|
|
15
|
-
* add
|
|
16
|
-
* add
|
|
17
|
-
* add
|
|
18
|
-
* add
|
|
19
|
-
* add
|
|
20
|
-
* add
|
|
21
|
-
* add
|
|
22
|
-
* add
|
|
23
|
-
* add
|
|
24
|
-
* add
|
|
25
|
-
* add
|
|
26
|
-
* add
|
|
27
|
-
* add
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
13
|
+
* add 'Cosmo' to lastView and entrypoint in GeneralSettings ([7cd2778](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7cd2778fa6b955a8eff48caeadb85d914eadf8c9))
|
|
14
|
+
* add agentInfo to High5ExecutionStatus interface ([cf066d0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cf066d039f5ac71877e17566af997a6088a5a139))
|
|
15
|
+
* add boolean to trigger an overriding of the user agent ([575e192](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/575e1922cc9e3b10918c4fdf0d62a4a9e6bcf0de))
|
|
16
|
+
* add cosmo NATS subjects ([96e04df](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/96e04dfdd8935102c4db6cbbc1a4e1a95508dd82))
|
|
17
|
+
* add debug info to execution status ([0bb3765](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0bb376538a2062d82ef9a8e8abca249b44526f75))
|
|
18
|
+
* add endpoint to retrieve execution trees ([e690283](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e69028361a8c37f69d5d9af6938a0320c8b110c1))
|
|
19
|
+
* add executionId to High5ExecutionPackage ([e4d337b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e4d337b6ecddde61612f01385389e9f3096c2825))
|
|
20
|
+
* add Friday spaces and db management methods ([7c37979](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7c37979d23d3a4a45fe50417c09dd77b34a6bd8c))
|
|
21
|
+
* add isPoolExecution to High5ExecutionStatus interface ([ead79ea](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ead79ea9e4fd72e6dede47581128148b4f07c06f))
|
|
22
|
+
* add IssuedDebugCommand type ([607f058](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/607f0582026d532049cb9db4c76ccfbb1f357762))
|
|
23
|
+
* add new field 'additionConnectorRoot' to StreamSingleNodeResult ([5d74ba2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5d74ba229d94f1b3caa71c3df2dd35483b33044a))
|
|
24
|
+
* add new property triggerDetails to streams info type ([b2fdbd0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b2fdbd0c88650353fa5c40d381afe4c4187beeba))
|
|
25
|
+
* add optional parameter 'poolName' to ExtendedHigh5ExecutionPackage ([8b0f621](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8b0f621cb1737daebec7dcfb8c322a17715a34d5))
|
|
26
|
+
* add optional property 'parents' to High5ExecutionRequest and High5ExecutionStatus ([5287b85](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5287b8544940aa74cf6f2a8d29ecc821f9c1fe13))
|
|
27
|
+
* add parentExecutionSecret to High5ExecutionRequest ([efeae87](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/efeae87f652407d22a4447d8d76504b12450f189))
|
|
28
|
+
* add product FridayDB ([14d17f5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/14d17f51bdca16b6d475b4aed8d35bde2e3c9689))
|
|
29
|
+
* add product rush ([db8432c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/db8432cdbdc0044750da79d723e822d4d06e3ea1))
|
|
30
|
+
* add REPLACE_NODE debug command ([432e9d1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/432e9d1d01a7aa21d46596dfb550546a86c6bfa9))
|
|
31
|
+
* add RestartDebugCommand ([df89bac](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/df89bac47c36f2956b43be0b4bf5fe7de43eb9ae))
|
|
32
|
+
* add scopes for friday and cosmo ([5619a47](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5619a477e81ed50a04bfad50ce397b9d67ab6733))
|
|
33
|
+
* add service account avatars ([cdbf199](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/cdbf1992fda116e16dbf0b739cae5893b281fe84))
|
|
34
|
+
* add support for adding service accounts pats as agent context ([c965167](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c965167044a46c760e567d15f2ae9dfbbd532cb9))
|
|
35
|
+
* add support for extendings the frontend configuration ([d5155e4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d5155e45f9e8e79593635e7d4983f93911332ddb))
|
|
36
|
+
* add support for service accounts ([edc6b76](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/edc6b765b3eae783d4048aae4aea1c1c6ca41f0c))
|
|
37
|
+
* add targetEmail to ExtendedHigh5ExecutionPackage ([8b8ce66](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8b8ce66e9a67435be79c9753b4817a0a0e6dfdb7))
|
|
38
|
+
* add triggerSource to High5ExecutionStatus interface ([5458c28](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5458c280ba2cb829345c8aca50e00e29842453bf))
|
|
39
|
+
* add validator for entity names ([193f4ed](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/193f4ed2277e1f87459721d7787feb8b18bda74b))
|
|
40
|
+
* add waveEngineVersion to High5ExecutionStatus interface ([9aea7a5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9aea7a5339383c0ce02e3c347093985041eb0fab))
|
|
41
|
+
* bump version ([7f3a4ea](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/7f3a4eae037f3e410e1f102d790e13a120f1b245))
|
|
42
|
+
* change extends to prefer to load external configuration ([e9891e7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e9891e796a1e948a37786e9ebb168450cda1e873))
|
|
43
|
+
* clonse and clear operationsQueue on send to avoid loosing entries ([fc504a4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fc504a4216f229da8c26e43b33bf7ebde0e2eab7))
|
|
44
|
+
* export service-accounts from idp index ([e3777df](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e3777df5d8b50a02002ab70683ae5f87793736d4))
|
|
45
|
+
* **helper:** add namespace entitiy to validation helper ([3254e16](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3254e1628bca226e2eea2790539e74a875350068))
|
|
46
|
+
* introduce callbackEnabled propery to webhook crud instances ([00b592d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/00b592d18af3649e3896ba6ebdff2509ddb5bb91))
|
|
47
|
+
* introduce color and nodeType in nodeInfo, streamNode and node interface ([95a6a24](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/95a6a24308975113090e1eddec168cae1765c9a8))
|
|
48
|
+
* make nodeResult.info.catalog optional ([ff27ce8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ff27ce8e099b6f59bab5e3e0e569f79db8de8d76))
|
|
49
|
+
* **nats:** rework cosmo nats subjects to follow old style ([4666ba0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4666ba04e9320211eda49266b6b249c3480bce62))
|
|
50
|
+
* rename rush to cosmo ([0517e98](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0517e98718a47364c4f063e8b4a36a16263d6b83))
|
|
51
|
+
* rework service-account search method to be aligned with all searches ([feefb80](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/feefb807f87b1759e100cc6cc6d1b358857c53e2))
|
|
52
|
+
* update pool implementation to match teams ([37af970](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/37af970251a68fabfd2059c250da9c33966c8c08))
|
|
33
53
|
|
|
34
|
-
###
|
|
54
|
+
### Bug Fixes
|
|
35
55
|
|
|
36
|
-
*
|
|
37
|
-
*
|
|
56
|
+
* append missing /debug to issueDebugCommand target url ([6a5a632](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6a5a632f0ede6012471df0a340607ce0680204e6))
|
|
57
|
+
* change variable in nats subjects to base64 encdoded versions ([d4315f7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d4315f7389cb426824e2567b204b94269838e67d))
|
|
58
|
+
* cosmo NATS subjects ([d9b1b9c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d9b1b9c0428ac5b2b7759b152ece97bf28a0606d))
|
|
59
|
+
* don't send the default headers for S3 fetches ([0560c90](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0560c90641e5c5fbdce9dea10b95764d93a6ad5f))
|
|
60
|
+
* fix outdated getStreamExecutionStatus() method ([793d4b9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/793d4b9937a1c71e33df475b0a5689a6fee63904))
|
|
61
|
+
* fix replace node debug command schema ([d040931](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d040931b37f06b121fa4e0a11e34ef2803c11115))
|
|
62
|
+
* implement review changes ([81f403f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/81f403f3285220cf5bc6d1947db3233a1daedd7d))
|
|
63
|
+
* **nats:** re-add logging subject ([f20f463](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f20f463acd6ee4264c31a3ca309ababb538cdf90))
|
|
64
|
+
* remove catalog._id field in NodeInfo ([9f237d9](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9f237d9ef12bdf81417b833c9abd81455e3b43a8))
|
|
65
|
+
* rename Comments to Namespace ([235a7c3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/235a7c3181d58dc18e17d1c0c80c66f9703e4f3e))
|
|
66
|
+
* return ServiceAccount after regenerating the token ([b5790ea](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b5790ea4d88376d8664cfc3eabcf4f59e25ecab0))
|
|
67
|
+
* revert introduction of 'parents' field in High5ExecutionStauts and High5ExecutionRequest ([ed6ba17](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ed6ba17839db12095c3ddcf43b62fd59b5e0825e))
|
|
68
|
+
* update dependencies remove test scripts and workflows ([498c0b0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/498c0b024ec7b59b9c201d779e957d691deb6296))
|
|
69
|
+
* use names for pools over ids ([71165d2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/71165d2bb6a5ef7258277f410b53c5198f9d76c8))
|
|
38
70
|
|
|
39
|
-
###
|
|
71
|
+
### Performance Improvements
|
|
40
72
|
|
|
41
|
-
*
|
|
73
|
+
* add Friday service ([d9ebc62](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/d9ebc625d2a09e615b2a34846c0b93161bcbda71))
|
|
74
|
+
* add Friday service to Auditor ([9ed9221](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9ed9221f13454891fd617667574c4158ea5c0de2))
|
|
75
|
+
* add license quota for friday backend ([50cd1d8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/50cd1d8c4fa897d50a9e0e26147fe58607317e9b))
|
|
76
|
+
* add methods for Friday documents management ([9183e0b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9183e0bede3bd54f32848e173b1f705ec42ea44b))
|
|
77
|
+
* add Nats subjects for Friday service ([237b226](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/237b2263c62652e063eada5d929152e7d7c74853))
|
|
78
|
+
* add new property to the High5 Space object ([0962b0d](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0962b0d66d5eeafbe649db59a7ea736a0858248b))
|
|
79
|
+
* add sanitazation function to entity names validator ([5c16153](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5c161533a7876d470d7e755fe972742d3806e226))
|
|
80
|
+
* add support for cosmo spaces in Dali ([30e3462](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/30e346227d1b83c7d66b3bcdc16881d0cdeb57e0))
|
|
81
|
+
* add validation rule for friday database name ([ff4d853](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ff4d853bf59648ab204fe50df200d4f01ca1328b))
|
|
82
|
+
* add validation rule for Friday document key ([8780dba](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8780dbafe7fd267b3575b9a7f5cad0398c4114cd))
|
|
83
|
+
* extend space permission interface in High5 and Fuse ([27b4a12](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/27b4a12902e678a2c041359b487716ef13c750d5))
|
|
84
|
+
* implement NATS updates for SDS ([2a43e35](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2a43e350a02a2435afedf01e2dee8bed495e3859))
|
|
85
|
+
* migrate eslint to version 9 ([f59b2d2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/f59b2d2f67f1652fb878202b49ed1b106dbef4f5))
|
|
86
|
+
* update collection of path parameters in validation helper ([b3059f4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b3059f4f45a62cbefe6f5a1ab693eba385c6f3a4))
|
|
42
87
|
|
|
43
|
-
###
|
|
88
|
+
### Reverts
|
|
44
89
|
|
|
45
|
-
*
|
|
90
|
+
* restore endpoint to rename the Space ([ddb3407](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/ddb34070ccc5593130c54f699edfcb875a25413c))
|
package/lib/Hcloud.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import AgentService from "./service/agent";
|
|
|
4
4
|
import AuditorService from "./service/auditor";
|
|
5
5
|
import BouncerService from "./service/bouncer";
|
|
6
6
|
import DaliService from "./service/dali";
|
|
7
|
+
import FridayService from "./service/friday";
|
|
7
8
|
import FuseService from "./service/fuse";
|
|
8
9
|
import High5Service from "./service/high5";
|
|
9
10
|
import IdpService from "./service/idp";
|
|
@@ -29,6 +30,8 @@ export declare class HCloud {
|
|
|
29
30
|
private _Mailer?;
|
|
30
31
|
get Mothership(): MothershipService;
|
|
31
32
|
private _Mothership?;
|
|
33
|
+
get Friday(): FridayService;
|
|
34
|
+
private _Friday?;
|
|
32
35
|
get Nats(): NatsService;
|
|
33
36
|
private _Nats?;
|
|
34
37
|
private options;
|
package/lib/Hcloud.js
CHANGED
|
@@ -9,6 +9,7 @@ const agent_1 = require("./service/agent");
|
|
|
9
9
|
const auditor_1 = require("./service/auditor");
|
|
10
10
|
const bouncer_1 = require("./service/bouncer");
|
|
11
11
|
const dali_1 = require("./service/dali");
|
|
12
|
+
const friday_1 = require("./service/friday");
|
|
12
13
|
const fuse_1 = require("./service/fuse");
|
|
13
14
|
const high5_1 = require("./service/high5");
|
|
14
15
|
const idp_1 = require("./service/idp");
|
|
@@ -71,6 +72,12 @@ class HCloud {
|
|
|
71
72
|
}
|
|
72
73
|
return this._Mothership;
|
|
73
74
|
}
|
|
75
|
+
get Friday() {
|
|
76
|
+
if (this._Friday === undefined) {
|
|
77
|
+
this._Friday = new friday_1.default(this.options, this.axios);
|
|
78
|
+
}
|
|
79
|
+
return this._Friday;
|
|
80
|
+
}
|
|
74
81
|
get Nats() {
|
|
75
82
|
if (this._Nats === undefined) {
|
|
76
83
|
this._Nats = new nats_1.default(this.options, this.axios);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare enum Entity {
|
|
2
|
+
USER_NAME = "USER_NAME",
|
|
3
|
+
ORGANIZATION_NAME = "ORGANIZATION_NAME",
|
|
4
|
+
USER_ORGANIZATION_NAME = "USER_ORGANIZATION_NAME",
|
|
5
|
+
TEAM_NAME = "TEAM_NAME",
|
|
6
|
+
COMPANY_NAME = "COMPANY_NAME",
|
|
7
|
+
PAT_NAME = "PAT_NAME",
|
|
8
|
+
JOIN_TOKEN_NAME = "JOIN_TOKEN_NAME",
|
|
9
|
+
SPACE_NAME = "SPACE_NAME",
|
|
10
|
+
EVENT_NAME = "EVENT_NAME",
|
|
11
|
+
STREAM_NAME = "STREAM_NAME",
|
|
12
|
+
DESIGN_NAME = "DESIGN_NAME",
|
|
13
|
+
SNAPSHOT_NAME = "SNAPSHOT_NAME",
|
|
14
|
+
WEBHOOK_NAME = "WEBHOOK_NAME",
|
|
15
|
+
SECRET_KEY = "SECRET_KEY",
|
|
16
|
+
SECRET_VALUE = "SECRET_VALUE",
|
|
17
|
+
POOL_NAME = "POOL_NAME",
|
|
18
|
+
FUSE_JOB = "FUSE_JOB",
|
|
19
|
+
WAVE_ENGINE_RELEASE = "WAVE_ENGINE_RELEASE",
|
|
20
|
+
CHALLENGE_STRING = "CHALLENGE_STRING",
|
|
21
|
+
DATABASE_NAME = "DATABASE_NAME",
|
|
22
|
+
DOCUMENT_KEY = "DOCUMENT_KEY",
|
|
23
|
+
DOMAIN_NAME = "DOMAIN_NAME",
|
|
24
|
+
USER_ID = "USER_ID",
|
|
25
|
+
INVITATION_ID = "INVITATION_ID",
|
|
26
|
+
OAUTH_APP_ID = "OAUTH_APP_ID",
|
|
27
|
+
PAT_ID = "PAT_ID",
|
|
28
|
+
STREAM_ID = "STREAM_ID",
|
|
29
|
+
EXECUTION_SECRET = "EXECUTION_SECRET",
|
|
30
|
+
HIGH5_EXECUTION_ID = "HIGH5_EXECUTION_ID",
|
|
31
|
+
STREAM_LOG_ID = "STREAM_LOG_ID",
|
|
32
|
+
STREAM_STATUS_ID = "STREAM_STATUS_ID",
|
|
33
|
+
JOIN_TOKEN_ID = "JOIN_TOKEN_ID",
|
|
34
|
+
NODE_ID = "NODE_ID",
|
|
35
|
+
SNAPSHOT_ID = "SNAPSHOT_ID",
|
|
36
|
+
CATALOG_ID = "CATALOG_ID",
|
|
37
|
+
WEBHOOK_ID = "WEBHOOK_ID",
|
|
38
|
+
WEBHOOK_TOKEN = "WEBHOOK_TOKEN",
|
|
39
|
+
CRONJOB_ID = "CRONJOB_ID",
|
|
40
|
+
CRONJOB_LOG_ID = "CRONJOB_LOG_ID",
|
|
41
|
+
NAMESPACE_NAME = "NAMESPACE_NAME"
|
|
42
|
+
}
|
|
43
|
+
declare class EntityDetails {
|
|
44
|
+
private entity;
|
|
45
|
+
constructor(name: Entity);
|
|
46
|
+
get pattern(): RegExp;
|
|
47
|
+
get minLength(): number;
|
|
48
|
+
get maxLength(): number;
|
|
49
|
+
/**
|
|
50
|
+
* Checks whether the specified value can be used as name of the Current Entity,
|
|
51
|
+
* the length of the string is additionally checking because these details may not be specified in the regular expression.
|
|
52
|
+
* @param value - Some string to validate
|
|
53
|
+
* @returns Validation result
|
|
54
|
+
*/
|
|
55
|
+
validate(value: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* This function cleans the given string from disallowed characters, removes extra dashes, dots, and spaces at the beginning and end of the string.
|
|
58
|
+
* The list of allowed characters is determined automatically based on the given regular expression for name validation (property "pattern"),
|
|
59
|
+
* but for special cases, it can be set manually in the property "symbols" in the entity name definition.
|
|
60
|
+
* @param value - Incoming string to sanitize
|
|
61
|
+
* @returns Sanitized string
|
|
62
|
+
*/
|
|
63
|
+
sanitize(value: string): string;
|
|
64
|
+
}
|
|
65
|
+
declare function ValidationHelper(name: Entity): EntityDetails;
|
|
66
|
+
export { Entity, EntityDetails, ValidationHelper };
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityDetails = exports.Entity = void 0;
|
|
4
|
+
exports.ValidationHelper = ValidationHelper;
|
|
5
|
+
var Entity;
|
|
6
|
+
(function (Entity) {
|
|
7
|
+
Entity["USER_NAME"] = "USER_NAME";
|
|
8
|
+
Entity["ORGANIZATION_NAME"] = "ORGANIZATION_NAME";
|
|
9
|
+
Entity["USER_ORGANIZATION_NAME"] = "USER_ORGANIZATION_NAME";
|
|
10
|
+
Entity["TEAM_NAME"] = "TEAM_NAME";
|
|
11
|
+
Entity["COMPANY_NAME"] = "COMPANY_NAME";
|
|
12
|
+
Entity["PAT_NAME"] = "PAT_NAME";
|
|
13
|
+
Entity["JOIN_TOKEN_NAME"] = "JOIN_TOKEN_NAME";
|
|
14
|
+
Entity["SPACE_NAME"] = "SPACE_NAME";
|
|
15
|
+
Entity["EVENT_NAME"] = "EVENT_NAME";
|
|
16
|
+
Entity["STREAM_NAME"] = "STREAM_NAME";
|
|
17
|
+
Entity["DESIGN_NAME"] = "DESIGN_NAME";
|
|
18
|
+
Entity["SNAPSHOT_NAME"] = "SNAPSHOT_NAME";
|
|
19
|
+
Entity["WEBHOOK_NAME"] = "WEBHOOK_NAME";
|
|
20
|
+
Entity["SECRET_KEY"] = "SECRET_KEY";
|
|
21
|
+
Entity["SECRET_VALUE"] = "SECRET_VALUE";
|
|
22
|
+
Entity["POOL_NAME"] = "POOL_NAME";
|
|
23
|
+
Entity["FUSE_JOB"] = "FUSE_JOB";
|
|
24
|
+
Entity["WAVE_ENGINE_RELEASE"] = "WAVE_ENGINE_RELEASE";
|
|
25
|
+
Entity["CHALLENGE_STRING"] = "CHALLENGE_STRING";
|
|
26
|
+
Entity["DATABASE_NAME"] = "DATABASE_NAME";
|
|
27
|
+
Entity["DOCUMENT_KEY"] = "DOCUMENT_KEY";
|
|
28
|
+
Entity["DOMAIN_NAME"] = "DOMAIN_NAME";
|
|
29
|
+
Entity["USER_ID"] = "USER_ID";
|
|
30
|
+
Entity["INVITATION_ID"] = "INVITATION_ID";
|
|
31
|
+
Entity["OAUTH_APP_ID"] = "OAUTH_APP_ID";
|
|
32
|
+
Entity["PAT_ID"] = "PAT_ID";
|
|
33
|
+
Entity["STREAM_ID"] = "STREAM_ID";
|
|
34
|
+
Entity["EXECUTION_SECRET"] = "EXECUTION_SECRET";
|
|
35
|
+
Entity["HIGH5_EXECUTION_ID"] = "HIGH5_EXECUTION_ID";
|
|
36
|
+
Entity["STREAM_LOG_ID"] = "STREAM_LOG_ID";
|
|
37
|
+
Entity["STREAM_STATUS_ID"] = "STREAM_STATUS_ID";
|
|
38
|
+
Entity["JOIN_TOKEN_ID"] = "JOIN_TOKEN_ID";
|
|
39
|
+
Entity["NODE_ID"] = "NODE_ID";
|
|
40
|
+
Entity["SNAPSHOT_ID"] = "SNAPSHOT_ID";
|
|
41
|
+
Entity["CATALOG_ID"] = "CATALOG_ID";
|
|
42
|
+
Entity["WEBHOOK_ID"] = "WEBHOOK_ID";
|
|
43
|
+
Entity["WEBHOOK_TOKEN"] = "WEBHOOK_TOKEN";
|
|
44
|
+
Entity["CRONJOB_ID"] = "CRONJOB_ID";
|
|
45
|
+
Entity["CRONJOB_LOG_ID"] = "CRONJOB_LOG_ID";
|
|
46
|
+
Entity["NAMESPACE_NAME"] = "NAMESPACE_NAME";
|
|
47
|
+
})(Entity || (exports.Entity = Entity = {}));
|
|
48
|
+
class EntityDetails {
|
|
49
|
+
constructor(name) {
|
|
50
|
+
this.entity = entityCollection[name];
|
|
51
|
+
}
|
|
52
|
+
get pattern() {
|
|
53
|
+
return this.entity.pattern;
|
|
54
|
+
}
|
|
55
|
+
get minLength() {
|
|
56
|
+
return this.entity.minLength;
|
|
57
|
+
}
|
|
58
|
+
get maxLength() {
|
|
59
|
+
return this.entity.maxLength;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Checks whether the specified value can be used as name of the Current Entity,
|
|
63
|
+
* the length of the string is additionally checking because these details may not be specified in the regular expression.
|
|
64
|
+
* @param value - Some string to validate
|
|
65
|
+
* @returns Validation result
|
|
66
|
+
*/
|
|
67
|
+
validate(value) {
|
|
68
|
+
return (typeof value === "string" &&
|
|
69
|
+
value.length >= this.entity.minLength &&
|
|
70
|
+
value.length <= this.entity.maxLength &&
|
|
71
|
+
this.entity.pattern.test(value));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* This function cleans the given string from disallowed characters, removes extra dashes, dots, and spaces at the beginning and end of the string.
|
|
75
|
+
* The list of allowed characters is determined automatically based on the given regular expression for name validation (property "pattern"),
|
|
76
|
+
* but for special cases, it can be set manually in the property "symbols" in the entity name definition.
|
|
77
|
+
* @param value - Incoming string to sanitize
|
|
78
|
+
* @returns Sanitized string
|
|
79
|
+
*/
|
|
80
|
+
sanitize(value) {
|
|
81
|
+
if (typeof value !== "string")
|
|
82
|
+
return "";
|
|
83
|
+
if (!this.validate(value)) {
|
|
84
|
+
if (!this.entity.symbols) {
|
|
85
|
+
const matches = this.entity.pattern.toString().match(/\[([^\]]+)\]/);
|
|
86
|
+
this.entity.symbols = new RegExp(matches ? `[${matches[1]}]` : /./i);
|
|
87
|
+
}
|
|
88
|
+
value = value
|
|
89
|
+
.split("")
|
|
90
|
+
.filter(char => this.entity.symbols.test(char))
|
|
91
|
+
.join("")
|
|
92
|
+
.replace(/^[\s-.]+|[\s-.]+$/g, "")
|
|
93
|
+
.replace(/-{2,}/g, "-");
|
|
94
|
+
if (value.length < this.entity.minLength)
|
|
95
|
+
value = value.concat("x".repeat(this.entity.minLength - value.length));
|
|
96
|
+
return value.slice(0, this.entity.maxLength);
|
|
97
|
+
}
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.EntityDetails = EntityDetails;
|
|
102
|
+
function ValidationHelper(name) {
|
|
103
|
+
return new EntityDetails(name);
|
|
104
|
+
}
|
|
105
|
+
const entityCollection = {
|
|
106
|
+
[Entity.USER_NAME]: {
|
|
107
|
+
// Case-insensitive. Must contain at least 3 character. Allows letters, numbers, underscores, hyphens, dots, and spaces. Cannot start with a dash, end with a dash, or contain double dashes
|
|
108
|
+
pattern: /^(?!-)(?!.*--)[\w-. ]{3,255}(?<!-)$/i,
|
|
109
|
+
minLength: 3,
|
|
110
|
+
maxLength: 255,
|
|
111
|
+
},
|
|
112
|
+
[Entity.ORGANIZATION_NAME]: {
|
|
113
|
+
// Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
|
|
114
|
+
pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
|
|
115
|
+
minLength: 3,
|
|
116
|
+
maxLength: 64,
|
|
117
|
+
},
|
|
118
|
+
[Entity.USER_ORGANIZATION_NAME]: {
|
|
119
|
+
pattern: /^[\w-+@.]{3,255}$/i,
|
|
120
|
+
minLength: 3,
|
|
121
|
+
maxLength: 255,
|
|
122
|
+
},
|
|
123
|
+
[Entity.TEAM_NAME]: {
|
|
124
|
+
// Case-insensitive. No spaces or additional special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
|
|
125
|
+
pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
|
|
126
|
+
minLength: 3,
|
|
127
|
+
maxLength: 64,
|
|
128
|
+
},
|
|
129
|
+
[Entity.COMPANY_NAME]: {
|
|
130
|
+
pattern: /^[\w-. ]{1,255}$/i,
|
|
131
|
+
minLength: 1,
|
|
132
|
+
maxLength: 255,
|
|
133
|
+
},
|
|
134
|
+
[Entity.PAT_NAME]: {
|
|
135
|
+
pattern: /^[\w-. ]{1,64}$/i,
|
|
136
|
+
minLength: 1,
|
|
137
|
+
maxLength: 64,
|
|
138
|
+
},
|
|
139
|
+
[Entity.JOIN_TOKEN_NAME]: {
|
|
140
|
+
pattern: /^[\w-.]{1,64}$/i,
|
|
141
|
+
minLength: 1,
|
|
142
|
+
maxLength: 64,
|
|
143
|
+
},
|
|
144
|
+
[Entity.SPACE_NAME]: {
|
|
145
|
+
pattern: /^[a-zA-Z0-9-.]{1,32}$/i,
|
|
146
|
+
minLength: 1,
|
|
147
|
+
maxLength: 32,
|
|
148
|
+
},
|
|
149
|
+
[Entity.EVENT_NAME]: {
|
|
150
|
+
pattern: /^[\w-.]{1,128}$/i,
|
|
151
|
+
minLength: 1,
|
|
152
|
+
maxLength: 128,
|
|
153
|
+
},
|
|
154
|
+
[Entity.STREAM_NAME]: {
|
|
155
|
+
pattern: /^(?![.\s]+)[\w-. ]{1,128}(?<![.\s]+)$/i,
|
|
156
|
+
symbols: /[\w-. ]/i,
|
|
157
|
+
minLength: 1,
|
|
158
|
+
maxLength: 128,
|
|
159
|
+
},
|
|
160
|
+
[Entity.DESIGN_NAME]: {
|
|
161
|
+
pattern: /^[a-zA-Z-_]{1,64}$/i,
|
|
162
|
+
minLength: 1,
|
|
163
|
+
maxLength: 64,
|
|
164
|
+
},
|
|
165
|
+
[Entity.SNAPSHOT_NAME]: {
|
|
166
|
+
pattern: /^[\w-. ]{1,64}$/i,
|
|
167
|
+
minLength: 1,
|
|
168
|
+
maxLength: 64,
|
|
169
|
+
},
|
|
170
|
+
[Entity.WEBHOOK_NAME]: {
|
|
171
|
+
pattern: /^[\w-. ]{1,128}$/i,
|
|
172
|
+
minLength: 1,
|
|
173
|
+
maxLength: 128,
|
|
174
|
+
},
|
|
175
|
+
[Entity.SECRET_KEY]: {
|
|
176
|
+
pattern: /^[\w-.]{1,32}$/i,
|
|
177
|
+
minLength: 1,
|
|
178
|
+
maxLength: 32,
|
|
179
|
+
},
|
|
180
|
+
[Entity.SECRET_VALUE]: {
|
|
181
|
+
pattern: /^.{1,1024}$/i,
|
|
182
|
+
minLength: 1,
|
|
183
|
+
maxLength: 1024,
|
|
184
|
+
},
|
|
185
|
+
[Entity.POOL_NAME]: {
|
|
186
|
+
pattern: /^[\w-.]{1,128}$/i,
|
|
187
|
+
minLength: 1,
|
|
188
|
+
maxLength: 128,
|
|
189
|
+
},
|
|
190
|
+
[Entity.FUSE_JOB]: {
|
|
191
|
+
pattern: /^.{1,64}$/i,
|
|
192
|
+
minLength: 1,
|
|
193
|
+
maxLength: 64,
|
|
194
|
+
},
|
|
195
|
+
[Entity.WAVE_ENGINE_RELEASE]: {
|
|
196
|
+
pattern: /^\d+\.\d+\.\d+(-dev-\d+)?$/i,
|
|
197
|
+
symbols: /[dev0-9-.]/i,
|
|
198
|
+
minLength: 1,
|
|
199
|
+
maxLength: 128,
|
|
200
|
+
},
|
|
201
|
+
[Entity.CHALLENGE_STRING]: {
|
|
202
|
+
pattern: /^[\w-]{1,128}$/i,
|
|
203
|
+
minLength: 1,
|
|
204
|
+
maxLength: 128,
|
|
205
|
+
},
|
|
206
|
+
[Entity.DATABASE_NAME]: {
|
|
207
|
+
pattern: /^[\w-.]{1,128}$/i,
|
|
208
|
+
minLength: 1,
|
|
209
|
+
maxLength: 128,
|
|
210
|
+
},
|
|
211
|
+
[Entity.DOCUMENT_KEY]: {
|
|
212
|
+
pattern: /^[\w-.]{1,64}$/i,
|
|
213
|
+
minLength: 1,
|
|
214
|
+
maxLength: 64,
|
|
215
|
+
},
|
|
216
|
+
[Entity.DOMAIN_NAME]: {
|
|
217
|
+
pattern: /^(?=.{1,254}$)(?=(^.{1,63}\.|^.{1,63}\.)*)(^([a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$)$/i,
|
|
218
|
+
minLength: 4,
|
|
219
|
+
maxLength: 254,
|
|
220
|
+
},
|
|
221
|
+
[Entity.USER_ID]: {
|
|
222
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
223
|
+
minLength: 24,
|
|
224
|
+
maxLength: 24,
|
|
225
|
+
},
|
|
226
|
+
[Entity.INVITATION_ID]: {
|
|
227
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
228
|
+
minLength: 24,
|
|
229
|
+
maxLength: 24,
|
|
230
|
+
},
|
|
231
|
+
[Entity.OAUTH_APP_ID]: {
|
|
232
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
233
|
+
minLength: 24,
|
|
234
|
+
maxLength: 24,
|
|
235
|
+
},
|
|
236
|
+
[Entity.PAT_ID]: {
|
|
237
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
238
|
+
minLength: 24,
|
|
239
|
+
maxLength: 24,
|
|
240
|
+
},
|
|
241
|
+
[Entity.STREAM_ID]: {
|
|
242
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
243
|
+
minLength: 24,
|
|
244
|
+
maxLength: 24,
|
|
245
|
+
},
|
|
246
|
+
[Entity.EXECUTION_SECRET]: {
|
|
247
|
+
pattern: /^[\w-]{3,1024}$/i,
|
|
248
|
+
minLength: 3,
|
|
249
|
+
maxLength: 1024,
|
|
250
|
+
},
|
|
251
|
+
[Entity.HIGH5_EXECUTION_ID]: {
|
|
252
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
253
|
+
minLength: 24,
|
|
254
|
+
maxLength: 24,
|
|
255
|
+
},
|
|
256
|
+
[Entity.STREAM_LOG_ID]: {
|
|
257
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
258
|
+
minLength: 24,
|
|
259
|
+
maxLength: 24,
|
|
260
|
+
},
|
|
261
|
+
[Entity.STREAM_STATUS_ID]: {
|
|
262
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
263
|
+
minLength: 24,
|
|
264
|
+
maxLength: 24,
|
|
265
|
+
},
|
|
266
|
+
[Entity.JOIN_TOKEN_ID]: {
|
|
267
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
268
|
+
minLength: 24,
|
|
269
|
+
maxLength: 24,
|
|
270
|
+
},
|
|
271
|
+
[Entity.NODE_ID]: {
|
|
272
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
273
|
+
minLength: 24,
|
|
274
|
+
maxLength: 24,
|
|
275
|
+
},
|
|
276
|
+
[Entity.SNAPSHOT_ID]: {
|
|
277
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
278
|
+
minLength: 24,
|
|
279
|
+
maxLength: 24,
|
|
280
|
+
},
|
|
281
|
+
[Entity.CATALOG_ID]: {
|
|
282
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
283
|
+
minLength: 24,
|
|
284
|
+
maxLength: 24,
|
|
285
|
+
},
|
|
286
|
+
[Entity.WEBHOOK_ID]: {
|
|
287
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
288
|
+
minLength: 24,
|
|
289
|
+
maxLength: 24,
|
|
290
|
+
},
|
|
291
|
+
[Entity.WEBHOOK_TOKEN]: {
|
|
292
|
+
pattern: /^[a-fA-F0-9]{128}$/i,
|
|
293
|
+
minLength: 128,
|
|
294
|
+
maxLength: 128,
|
|
295
|
+
},
|
|
296
|
+
[Entity.CRONJOB_ID]: {
|
|
297
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
298
|
+
minLength: 24,
|
|
299
|
+
maxLength: 24,
|
|
300
|
+
},
|
|
301
|
+
[Entity.CRONJOB_LOG_ID]: {
|
|
302
|
+
pattern: /^[a-fA-F0-9]{24}$/i,
|
|
303
|
+
minLength: 24,
|
|
304
|
+
maxLength: 24,
|
|
305
|
+
},
|
|
306
|
+
[Entity.NAMESPACE_NAME]: {
|
|
307
|
+
// Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
|
|
308
|
+
pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
|
|
309
|
+
minLength: 3,
|
|
310
|
+
maxLength: 64,
|
|
311
|
+
},
|
|
312
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Organization } from "../idp";
|
|
1
|
+
import { LicenseTier, Organization } from "../idp";
|
|
2
2
|
export declare enum Level {
|
|
3
3
|
INFO = "info",
|
|
4
4
|
WARN = "warn",
|
|
@@ -12,7 +12,8 @@ export declare enum Origin {
|
|
|
12
12
|
Mailer = "mailer",
|
|
13
13
|
Fuse = "fuse",
|
|
14
14
|
Mothership = "mothership",
|
|
15
|
-
Dali = "dali"
|
|
15
|
+
Dali = "dali",
|
|
16
|
+
Friday = "friday"
|
|
16
17
|
}
|
|
17
18
|
export declare enum Event {
|
|
18
19
|
Login = "login",
|
|
@@ -29,7 +30,10 @@ export declare enum Event {
|
|
|
29
30
|
Cronjob = "cronjob",
|
|
30
31
|
Secret = "secret",
|
|
31
32
|
Agent = "agent",
|
|
32
|
-
Avatar = "avatar"
|
|
33
|
+
Avatar = "avatar",
|
|
34
|
+
ServiceAccount = "serviceAccount",
|
|
35
|
+
Database = "database",
|
|
36
|
+
Document = "document"
|
|
33
37
|
}
|
|
34
38
|
export declare enum Type {
|
|
35
39
|
Read = "read",
|
|
@@ -63,7 +67,9 @@ export interface AuditLog {
|
|
|
63
67
|
export interface AuditLogCreate {
|
|
64
68
|
level: Level;
|
|
65
69
|
origin: Origin;
|
|
66
|
-
organization: Pick<Organization, "_id" | "name"
|
|
70
|
+
organization: Pick<Organization, "_id" | "name"> & {
|
|
71
|
+
license?: LicenseTier;
|
|
72
|
+
};
|
|
67
73
|
event: Event;
|
|
68
74
|
space?: string;
|
|
69
75
|
type?: Type;
|
|
@@ -17,6 +17,7 @@ var Origin;
|
|
|
17
17
|
Origin["Fuse"] = "fuse";
|
|
18
18
|
Origin["Mothership"] = "mothership";
|
|
19
19
|
Origin["Dali"] = "dali";
|
|
20
|
+
Origin["Friday"] = "friday";
|
|
20
21
|
})(Origin || (exports.Origin = Origin = {}));
|
|
21
22
|
var Event;
|
|
22
23
|
(function (Event) {
|
|
@@ -35,6 +36,9 @@ var Event;
|
|
|
35
36
|
Event["Secret"] = "secret";
|
|
36
37
|
Event["Agent"] = "agent";
|
|
37
38
|
Event["Avatar"] = "avatar";
|
|
39
|
+
Event["ServiceAccount"] = "serviceAccount";
|
|
40
|
+
Event["Database"] = "database";
|
|
41
|
+
Event["Document"] = "document";
|
|
38
42
|
})(Event || (exports.Event = Event = {}));
|
|
39
43
|
var Type;
|
|
40
44
|
(function (Type) {
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
__exportStar(require("./space"), exports);
|
|
18
|
+
__exportStar(require("./space/database"), exports);
|
|
19
|
+
__exportStar(require("./space/database/document"), exports);
|