@happyvertical/smrt-users 0.46.0 → 0.47.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/chunks/{TerminalAuthService-C7z3uZ4w.js → TerminalAuthService-CCnWsOuL.js} +2 -2
- package/dist/chunks/{TerminalAuthService-C7z3uZ4w.js.map → TerminalAuthService-CCnWsOuL.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/manifest.json +109 -25
- package/dist/smrt-knowledge.json +419 -12
- package/dist/sveltekit/resource-list-handler.d.ts.map +1 -1
- package/dist/sveltekit.js +36 -9
- package/dist/sveltekit.js.map +1 -1
- package/package.json +13 -13
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-users",
|
|
6
|
-
"packageVersion": "0.
|
|
6
|
+
"packageVersion": "0.47.1",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "f778fb0524a215be5c4d01424f4a6155a46ad250bf1641d6614304d42ecb6976",
|
|
11
|
+
"packageJson": "97d8f5eb23674684f013278822f0df768a7bb2bb7b0a93e39ebed87ac94b488e",
|
|
12
12
|
"agents": "ec09e41d9c5e1b55abf454eb5b88a98637094e2aa67bffce2f11db0dcb68b441",
|
|
13
13
|
"moduleDoc:agents/permissions.md": "f801411ae51fc625ad99054e284fd1abc6e7b2a5555dd8797a83dfd30273db68",
|
|
14
14
|
"moduleDoc:agents/oidc-provisioning.md": "5efa607ff23b9a693391e0c02670324a8cea4114d4968c9718f10a763da919c6",
|
|
@@ -2315,7 +2315,7 @@
|
|
|
2315
2315
|
"params": [
|
|
2316
2316
|
"sessionId: string",
|
|
2317
2317
|
"key: string",
|
|
2318
|
-
"value:
|
|
2318
|
+
"value: unknown"
|
|
2319
2319
|
],
|
|
2320
2320
|
"returns": "Promise<boolean>"
|
|
2321
2321
|
},
|
|
@@ -2714,7 +2714,7 @@
|
|
|
2714
2714
|
"params": [
|
|
2715
2715
|
"rootTenantId?: string"
|
|
2716
2716
|
],
|
|
2717
|
-
"returns": "
|
|
2717
|
+
"returns": "any"
|
|
2718
2718
|
},
|
|
2719
2719
|
{
|
|
2720
2720
|
"name": "isAncestorOf",
|
|
@@ -4024,11 +4024,11 @@
|
|
|
4024
4024
|
"methodSignatures": [
|
|
4025
4025
|
{
|
|
4026
4026
|
"name": "getRequestContext",
|
|
4027
|
-
"returns": "Record<string>"
|
|
4027
|
+
"returns": "Record<string, unknown>"
|
|
4028
4028
|
},
|
|
4029
4029
|
{
|
|
4030
4030
|
"name": "getTenantHint",
|
|
4031
|
-
"returns": "Record<string> | null"
|
|
4031
|
+
"returns": "Record<string, unknown> | null"
|
|
4032
4032
|
},
|
|
4033
4033
|
{
|
|
4034
4034
|
"name": "isApproved",
|
|
@@ -4045,14 +4045,14 @@
|
|
|
4045
4045
|
{
|
|
4046
4046
|
"name": "setRequestContext",
|
|
4047
4047
|
"params": [
|
|
4048
|
-
"value: Record<string>"
|
|
4048
|
+
"value: Record<string, unknown>"
|
|
4049
4049
|
],
|
|
4050
4050
|
"returns": "void"
|
|
4051
4051
|
},
|
|
4052
4052
|
{
|
|
4053
4053
|
"name": "setTenantHint",
|
|
4054
4054
|
"params": [
|
|
4055
|
-
"value: Record<string> | null"
|
|
4055
|
+
"value: Record<string, unknown> | null"
|
|
4056
4056
|
],
|
|
4057
4057
|
"returns": "void"
|
|
4058
4058
|
}
|
|
@@ -4061,6 +4061,57 @@
|
|
|
4061
4061
|
"id"
|
|
4062
4062
|
],
|
|
4063
4063
|
"surfaces": [],
|
|
4064
|
+
"withheldSurfaces": [
|
|
4065
|
+
{
|
|
4066
|
+
"kind": "api",
|
|
4067
|
+
"operation": "getRequestContext",
|
|
4068
|
+
"code": "not-included",
|
|
4069
|
+
"reason": "not listed in api.include",
|
|
4070
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4071
|
+
},
|
|
4072
|
+
{
|
|
4073
|
+
"kind": "api",
|
|
4074
|
+
"operation": "getTenantHint",
|
|
4075
|
+
"code": "not-included",
|
|
4076
|
+
"reason": "not listed in api.include",
|
|
4077
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"kind": "api",
|
|
4081
|
+
"operation": "isApproved",
|
|
4082
|
+
"code": "not-included",
|
|
4083
|
+
"reason": "not listed in api.include",
|
|
4084
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4085
|
+
},
|
|
4086
|
+
{
|
|
4087
|
+
"kind": "api",
|
|
4088
|
+
"operation": "isOpen",
|
|
4089
|
+
"code": "not-included",
|
|
4090
|
+
"reason": "not listed in api.include",
|
|
4091
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
"kind": "api",
|
|
4095
|
+
"operation": "isTerminal",
|
|
4096
|
+
"code": "not-included",
|
|
4097
|
+
"reason": "not listed in api.include",
|
|
4098
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4099
|
+
},
|
|
4100
|
+
{
|
|
4101
|
+
"kind": "api",
|
|
4102
|
+
"operation": "setRequestContext",
|
|
4103
|
+
"code": "not-included",
|
|
4104
|
+
"reason": "not listed in api.include",
|
|
4105
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
"kind": "api",
|
|
4109
|
+
"operation": "setTenantHint",
|
|
4110
|
+
"code": "not-included",
|
|
4111
|
+
"reason": "not listed in api.include",
|
|
4112
|
+
"objectName": "@happyvertical/smrt-users:AccessRequest"
|
|
4113
|
+
}
|
|
4114
|
+
],
|
|
4064
4115
|
"relationshipFeatures": [
|
|
4065
4116
|
"uuidColumns"
|
|
4066
4117
|
],
|
|
@@ -4622,6 +4673,22 @@
|
|
|
4622
4673
|
"objectName": "@happyvertical/smrt-users:UsersMagicLinkToken"
|
|
4623
4674
|
}
|
|
4624
4675
|
],
|
|
4676
|
+
"withheldSurfaces": [
|
|
4677
|
+
{
|
|
4678
|
+
"kind": "api",
|
|
4679
|
+
"operation": "isExpired",
|
|
4680
|
+
"code": "not-included",
|
|
4681
|
+
"reason": "not listed in api.include",
|
|
4682
|
+
"objectName": "@happyvertical/smrt-users:UsersMagicLinkToken"
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
"kind": "api",
|
|
4686
|
+
"operation": "isValid",
|
|
4687
|
+
"code": "not-included",
|
|
4688
|
+
"reason": "not listed in api.include",
|
|
4689
|
+
"objectName": "@happyvertical/smrt-users:UsersMagicLinkToken"
|
|
4690
|
+
}
|
|
4691
|
+
],
|
|
4625
4692
|
"relationshipFeatures": [
|
|
4626
4693
|
"uuidColumns"
|
|
4627
4694
|
],
|
|
@@ -4773,6 +4840,22 @@
|
|
|
4773
4840
|
"objectName": "@happyvertical/smrt-users:Membership"
|
|
4774
4841
|
}
|
|
4775
4842
|
],
|
|
4843
|
+
"withheldSurfaces": [
|
|
4844
|
+
{
|
|
4845
|
+
"kind": "api",
|
|
4846
|
+
"operation": "isActive",
|
|
4847
|
+
"code": "not-included",
|
|
4848
|
+
"reason": "not listed in api.include",
|
|
4849
|
+
"objectName": "@happyvertical/smrt-users:Membership"
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
"kind": "api",
|
|
4853
|
+
"operation": "isPending",
|
|
4854
|
+
"code": "not-included",
|
|
4855
|
+
"reason": "not listed in api.include",
|
|
4856
|
+
"objectName": "@happyvertical/smrt-users:Membership"
|
|
4857
|
+
}
|
|
4858
|
+
],
|
|
4776
4859
|
"relationshipFeatures": [
|
|
4777
4860
|
"foreignKey",
|
|
4778
4861
|
"uuidColumns"
|
|
@@ -4911,6 +4994,22 @@
|
|
|
4911
4994
|
"objectName": "@happyvertical/smrt-users:MembershipOverride"
|
|
4912
4995
|
}
|
|
4913
4996
|
],
|
|
4997
|
+
"withheldSurfaces": [
|
|
4998
|
+
{
|
|
4999
|
+
"kind": "api",
|
|
5000
|
+
"operation": "isDeny",
|
|
5001
|
+
"code": "not-included",
|
|
5002
|
+
"reason": "not listed in api.include",
|
|
5003
|
+
"objectName": "@happyvertical/smrt-users:MembershipOverride"
|
|
5004
|
+
},
|
|
5005
|
+
{
|
|
5006
|
+
"kind": "api",
|
|
5007
|
+
"operation": "isGrant",
|
|
5008
|
+
"code": "not-included",
|
|
5009
|
+
"reason": "not listed in api.include",
|
|
5010
|
+
"objectName": "@happyvertical/smrt-users:MembershipOverride"
|
|
5011
|
+
}
|
|
5012
|
+
],
|
|
4914
5013
|
"relationshipFeatures": [
|
|
4915
5014
|
"foreignKey",
|
|
4916
5015
|
"uuidColumns"
|
|
@@ -5057,6 +5156,36 @@
|
|
|
5057
5156
|
"objectName": "@happyvertical/smrt-users:Permission"
|
|
5058
5157
|
}
|
|
5059
5158
|
],
|
|
5159
|
+
"withheldSurfaces": [
|
|
5160
|
+
{
|
|
5161
|
+
"kind": "api",
|
|
5162
|
+
"operation": "getAction",
|
|
5163
|
+
"code": "not-included",
|
|
5164
|
+
"reason": "not listed in api.include",
|
|
5165
|
+
"objectName": "@happyvertical/smrt-users:Permission"
|
|
5166
|
+
},
|
|
5167
|
+
{
|
|
5168
|
+
"kind": "api",
|
|
5169
|
+
"operation": "getResource",
|
|
5170
|
+
"code": "not-included",
|
|
5171
|
+
"reason": "not listed in api.include",
|
|
5172
|
+
"objectName": "@happyvertical/smrt-users:Permission"
|
|
5173
|
+
},
|
|
5174
|
+
{
|
|
5175
|
+
"kind": "api",
|
|
5176
|
+
"operation": "isValidSlug",
|
|
5177
|
+
"code": "not-included",
|
|
5178
|
+
"reason": "not listed in api.include",
|
|
5179
|
+
"objectName": "@happyvertical/smrt-users:Permission"
|
|
5180
|
+
},
|
|
5181
|
+
{
|
|
5182
|
+
"kind": "api",
|
|
5183
|
+
"operation": "parseSlug",
|
|
5184
|
+
"code": "not-included",
|
|
5185
|
+
"reason": "not listed in api.include",
|
|
5186
|
+
"objectName": "@happyvertical/smrt-users:Permission"
|
|
5187
|
+
}
|
|
5188
|
+
],
|
|
5060
5189
|
"relationshipFeatures": [
|
|
5061
5190
|
"uuidColumns"
|
|
5062
5191
|
],
|
|
@@ -5219,6 +5348,29 @@
|
|
|
5219
5348
|
"objectName": "@happyvertical/smrt-users:Role"
|
|
5220
5349
|
}
|
|
5221
5350
|
],
|
|
5351
|
+
"withheldSurfaces": [
|
|
5352
|
+
{
|
|
5353
|
+
"kind": "api",
|
|
5354
|
+
"operation": "canDelete",
|
|
5355
|
+
"code": "not-included",
|
|
5356
|
+
"reason": "not listed in api.include",
|
|
5357
|
+
"objectName": "@happyvertical/smrt-users:Role"
|
|
5358
|
+
},
|
|
5359
|
+
{
|
|
5360
|
+
"kind": "api",
|
|
5361
|
+
"operation": "isSystemRole",
|
|
5362
|
+
"code": "not-included",
|
|
5363
|
+
"reason": "not listed in api.include",
|
|
5364
|
+
"objectName": "@happyvertical/smrt-users:Role"
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"kind": "api",
|
|
5368
|
+
"operation": "isTenantRole",
|
|
5369
|
+
"code": "not-included",
|
|
5370
|
+
"reason": "not listed in api.include",
|
|
5371
|
+
"objectName": "@happyvertical/smrt-users:Role"
|
|
5372
|
+
}
|
|
5373
|
+
],
|
|
5222
5374
|
"relationshipFeatures": [
|
|
5223
5375
|
"foreignKey",
|
|
5224
5376
|
"uuidColumns"
|
|
@@ -5475,7 +5627,7 @@
|
|
|
5475
5627
|
"name": "setData",
|
|
5476
5628
|
"params": [
|
|
5477
5629
|
"key: string",
|
|
5478
|
-
"value:
|
|
5630
|
+
"value: unknown"
|
|
5479
5631
|
],
|
|
5480
5632
|
"returns": "void"
|
|
5481
5633
|
},
|
|
@@ -5605,6 +5757,85 @@
|
|
|
5605
5757
|
"objectName": "@happyvertical/smrt-users:Session"
|
|
5606
5758
|
}
|
|
5607
5759
|
],
|
|
5760
|
+
"withheldSurfaces": [
|
|
5761
|
+
{
|
|
5762
|
+
"kind": "api",
|
|
5763
|
+
"operation": "extend",
|
|
5764
|
+
"code": "not-included",
|
|
5765
|
+
"reason": "not listed in api.include",
|
|
5766
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5767
|
+
},
|
|
5768
|
+
{
|
|
5769
|
+
"kind": "api",
|
|
5770
|
+
"operation": "getData",
|
|
5771
|
+
"code": "not-included",
|
|
5772
|
+
"reason": "not listed in api.include",
|
|
5773
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5774
|
+
},
|
|
5775
|
+
{
|
|
5776
|
+
"kind": "api",
|
|
5777
|
+
"operation": "isExpired",
|
|
5778
|
+
"code": "not-included",
|
|
5779
|
+
"reason": "not listed in api.include",
|
|
5780
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5781
|
+
},
|
|
5782
|
+
{
|
|
5783
|
+
"kind": "api",
|
|
5784
|
+
"operation": "isRevoked",
|
|
5785
|
+
"code": "not-included",
|
|
5786
|
+
"reason": "not listed in api.include",
|
|
5787
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5788
|
+
},
|
|
5789
|
+
{
|
|
5790
|
+
"kind": "api",
|
|
5791
|
+
"operation": "isValid",
|
|
5792
|
+
"code": "not-included",
|
|
5793
|
+
"reason": "not listed in api.include",
|
|
5794
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5795
|
+
},
|
|
5796
|
+
{
|
|
5797
|
+
"kind": "api",
|
|
5798
|
+
"operation": "recordActivity",
|
|
5799
|
+
"code": "not-included",
|
|
5800
|
+
"reason": "not listed in api.include",
|
|
5801
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5802
|
+
},
|
|
5803
|
+
{
|
|
5804
|
+
"kind": "api",
|
|
5805
|
+
"operation": "removeData",
|
|
5806
|
+
"code": "not-included",
|
|
5807
|
+
"reason": "not listed in api.include",
|
|
5808
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5809
|
+
},
|
|
5810
|
+
{
|
|
5811
|
+
"kind": "api",
|
|
5812
|
+
"operation": "revoke",
|
|
5813
|
+
"code": "not-included",
|
|
5814
|
+
"reason": "not listed in api.include",
|
|
5815
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5816
|
+
},
|
|
5817
|
+
{
|
|
5818
|
+
"kind": "api",
|
|
5819
|
+
"operation": "setData",
|
|
5820
|
+
"code": "not-included",
|
|
5821
|
+
"reason": "not listed in api.include",
|
|
5822
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5823
|
+
},
|
|
5824
|
+
{
|
|
5825
|
+
"kind": "api",
|
|
5826
|
+
"operation": "setTenant",
|
|
5827
|
+
"code": "not-included",
|
|
5828
|
+
"reason": "not listed in api.include",
|
|
5829
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5830
|
+
},
|
|
5831
|
+
{
|
|
5832
|
+
"kind": "api",
|
|
5833
|
+
"operation": "touch",
|
|
5834
|
+
"code": "not-included",
|
|
5835
|
+
"reason": "not listed in api.include",
|
|
5836
|
+
"objectName": "@happyvertical/smrt-users:Session"
|
|
5837
|
+
}
|
|
5838
|
+
],
|
|
5608
5839
|
"relationshipFeatures": [
|
|
5609
5840
|
"foreignKey",
|
|
5610
5841
|
"uuidColumns"
|
|
@@ -5828,6 +6059,50 @@
|
|
|
5828
6059
|
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
5829
6060
|
}
|
|
5830
6061
|
],
|
|
6062
|
+
"withheldSurfaces": [
|
|
6063
|
+
{
|
|
6064
|
+
"kind": "api",
|
|
6065
|
+
"operation": "acceptsInheritance",
|
|
6066
|
+
"code": "not-included",
|
|
6067
|
+
"reason": "not listed in api.include",
|
|
6068
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6069
|
+
},
|
|
6070
|
+
{
|
|
6071
|
+
"kind": "api",
|
|
6072
|
+
"operation": "canCascadeToChildren",
|
|
6073
|
+
"code": "not-included",
|
|
6074
|
+
"reason": "not listed in api.include",
|
|
6075
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6076
|
+
},
|
|
6077
|
+
{
|
|
6078
|
+
"kind": "api",
|
|
6079
|
+
"operation": "getAncestorIds",
|
|
6080
|
+
"code": "not-included",
|
|
6081
|
+
"reason": "not listed in api.include",
|
|
6082
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6083
|
+
},
|
|
6084
|
+
{
|
|
6085
|
+
"kind": "api",
|
|
6086
|
+
"operation": "isActive",
|
|
6087
|
+
"code": "not-included",
|
|
6088
|
+
"reason": "not listed in api.include",
|
|
6089
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6090
|
+
},
|
|
6091
|
+
{
|
|
6092
|
+
"kind": "api",
|
|
6093
|
+
"operation": "isRoot",
|
|
6094
|
+
"code": "not-included",
|
|
6095
|
+
"reason": "not listed in api.include",
|
|
6096
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6097
|
+
},
|
|
6098
|
+
{
|
|
6099
|
+
"kind": "api",
|
|
6100
|
+
"operation": "isSuspended",
|
|
6101
|
+
"code": "not-included",
|
|
6102
|
+
"reason": "not listed in api.include",
|
|
6103
|
+
"objectName": "@happyvertical/smrt-users:Tenant"
|
|
6104
|
+
}
|
|
6105
|
+
],
|
|
5831
6106
|
"relationshipFeatures": [
|
|
5832
6107
|
"foreignKey",
|
|
5833
6108
|
"uuidColumns"
|
|
@@ -5918,7 +6193,7 @@
|
|
|
5918
6193
|
{
|
|
5919
6194
|
"name": "initialize",
|
|
5920
6195
|
"async": true,
|
|
5921
|
-
"returns": "Promise"
|
|
6196
|
+
"returns": "Promise<this>"
|
|
5922
6197
|
},
|
|
5923
6198
|
{
|
|
5924
6199
|
"name": "recordDoctorRun",
|
|
@@ -6061,6 +6336,64 @@
|
|
|
6061
6336
|
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6062
6337
|
}
|
|
6063
6338
|
],
|
|
6339
|
+
"withheldSurfaces": [
|
|
6340
|
+
{
|
|
6341
|
+
"kind": "api",
|
|
6342
|
+
"operation": "getExternalId",
|
|
6343
|
+
"code": "not-included",
|
|
6344
|
+
"reason": "not listed in api.include",
|
|
6345
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6346
|
+
},
|
|
6347
|
+
{
|
|
6348
|
+
"kind": "api",
|
|
6349
|
+
"operation": "getExternalIds",
|
|
6350
|
+
"code": "not-included",
|
|
6351
|
+
"reason": "not listed in api.include",
|
|
6352
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6353
|
+
},
|
|
6354
|
+
{
|
|
6355
|
+
"kind": "api",
|
|
6356
|
+
"operation": "getLastCheckSummary",
|
|
6357
|
+
"code": "not-included",
|
|
6358
|
+
"reason": "not listed in api.include",
|
|
6359
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6360
|
+
},
|
|
6361
|
+
{
|
|
6362
|
+
"kind": "api",
|
|
6363
|
+
"operation": "initialize",
|
|
6364
|
+
"code": "lifecycle-method",
|
|
6365
|
+
"reason": "`initialize` is a framework lifecycle method, not a distinct operation",
|
|
6366
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6367
|
+
},
|
|
6368
|
+
{
|
|
6369
|
+
"kind": "api",
|
|
6370
|
+
"operation": "recordDoctorRun",
|
|
6371
|
+
"code": "not-included",
|
|
6372
|
+
"reason": "not listed in api.include",
|
|
6373
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
"kind": "api",
|
|
6377
|
+
"operation": "setExternalId",
|
|
6378
|
+
"code": "not-included",
|
|
6379
|
+
"reason": "not listed in api.include",
|
|
6380
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6381
|
+
},
|
|
6382
|
+
{
|
|
6383
|
+
"kind": "api",
|
|
6384
|
+
"operation": "setExternalIds",
|
|
6385
|
+
"code": "not-included",
|
|
6386
|
+
"reason": "not listed in api.include",
|
|
6387
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6388
|
+
},
|
|
6389
|
+
{
|
|
6390
|
+
"kind": "api",
|
|
6391
|
+
"operation": "setLastCheckSummary",
|
|
6392
|
+
"code": "not-included",
|
|
6393
|
+
"reason": "not listed in api.include",
|
|
6394
|
+
"objectName": "@happyvertical/smrt-users:TenantIntegration"
|
|
6395
|
+
}
|
|
6396
|
+
],
|
|
6064
6397
|
"relationshipFeatures": [
|
|
6065
6398
|
"uuidColumns"
|
|
6066
6399
|
],
|
|
@@ -6220,6 +6553,36 @@
|
|
|
6220
6553
|
"objectName": "@happyvertical/smrt-users:TenantPermissionOverride"
|
|
6221
6554
|
}
|
|
6222
6555
|
],
|
|
6556
|
+
"withheldSurfaces": [
|
|
6557
|
+
{
|
|
6558
|
+
"kind": "api",
|
|
6559
|
+
"operation": "hasExplicitEffect",
|
|
6560
|
+
"code": "not-included",
|
|
6561
|
+
"reason": "not listed in api.include",
|
|
6562
|
+
"objectName": "@happyvertical/smrt-users:TenantPermissionOverride"
|
|
6563
|
+
},
|
|
6564
|
+
{
|
|
6565
|
+
"kind": "api",
|
|
6566
|
+
"operation": "isDeny",
|
|
6567
|
+
"code": "not-included",
|
|
6568
|
+
"reason": "not listed in api.include",
|
|
6569
|
+
"objectName": "@happyvertical/smrt-users:TenantPermissionOverride"
|
|
6570
|
+
},
|
|
6571
|
+
{
|
|
6572
|
+
"kind": "api",
|
|
6573
|
+
"operation": "isGrant",
|
|
6574
|
+
"code": "not-included",
|
|
6575
|
+
"reason": "not listed in api.include",
|
|
6576
|
+
"objectName": "@happyvertical/smrt-users:TenantPermissionOverride"
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
"kind": "api",
|
|
6580
|
+
"operation": "isInherit",
|
|
6581
|
+
"code": "not-included",
|
|
6582
|
+
"reason": "not listed in api.include",
|
|
6583
|
+
"objectName": "@happyvertical/smrt-users:TenantPermissionOverride"
|
|
6584
|
+
}
|
|
6585
|
+
],
|
|
6223
6586
|
"relationshipFeatures": [
|
|
6224
6587
|
"foreignKey",
|
|
6225
6588
|
"uuidColumns"
|
|
@@ -6310,7 +6673,7 @@
|
|
|
6310
6673
|
{
|
|
6311
6674
|
"name": "save",
|
|
6312
6675
|
"async": true,
|
|
6313
|
-
"returns": "Promise"
|
|
6676
|
+
"returns": "Promise<this>"
|
|
6314
6677
|
}
|
|
6315
6678
|
],
|
|
6316
6679
|
"surfaces": [
|
|
@@ -6403,6 +6766,50 @@
|
|
|
6403
6766
|
"objectName": "@happyvertical/smrt-users:User"
|
|
6404
6767
|
}
|
|
6405
6768
|
],
|
|
6769
|
+
"withheldSurfaces": [
|
|
6770
|
+
{
|
|
6771
|
+
"kind": "api",
|
|
6772
|
+
"operation": "hasValidEmail",
|
|
6773
|
+
"code": "not-included",
|
|
6774
|
+
"reason": "not listed in api.include",
|
|
6775
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6776
|
+
},
|
|
6777
|
+
{
|
|
6778
|
+
"kind": "api",
|
|
6779
|
+
"operation": "isActive",
|
|
6780
|
+
"code": "not-included",
|
|
6781
|
+
"reason": "not listed in api.include",
|
|
6782
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6783
|
+
},
|
|
6784
|
+
{
|
|
6785
|
+
"kind": "api",
|
|
6786
|
+
"operation": "isPending",
|
|
6787
|
+
"code": "not-included",
|
|
6788
|
+
"reason": "not listed in api.include",
|
|
6789
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6790
|
+
},
|
|
6791
|
+
{
|
|
6792
|
+
"kind": "api",
|
|
6793
|
+
"operation": "isSuspended",
|
|
6794
|
+
"code": "not-included",
|
|
6795
|
+
"reason": "not listed in api.include",
|
|
6796
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6797
|
+
},
|
|
6798
|
+
{
|
|
6799
|
+
"kind": "api",
|
|
6800
|
+
"operation": "recordLogin",
|
|
6801
|
+
"code": "not-included",
|
|
6802
|
+
"reason": "not listed in api.include",
|
|
6803
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6804
|
+
},
|
|
6805
|
+
{
|
|
6806
|
+
"kind": "api",
|
|
6807
|
+
"operation": "save",
|
|
6808
|
+
"code": "lifecycle-method",
|
|
6809
|
+
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
6810
|
+
"objectName": "@happyvertical/smrt-users:User"
|
|
6811
|
+
}
|
|
6812
|
+
],
|
|
6406
6813
|
"relationshipFeatures": [
|
|
6407
6814
|
"crossPackageRef",
|
|
6408
6815
|
"uuidColumns"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-list-handler.d.ts","sourceRoot":"","sources":["../../src/sveltekit/resource-list-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,
|
|
1
|
+
{"version":3,"file":"resource-list-handler.d.ts","sourceRoot":"","sources":["../../src/sveltekit/resource-list-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,4BAA4B,EAElC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAErF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4ChD,KAAK,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GA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E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAMF,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gCAAgC,GACxC,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,QAAQ,CAAC,CAsN9C;AA8eD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,SAAqC;CAIzD"}
|
package/dist/sveltekit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as decodeOidcTransaction, E as resolveOidcProviderConfig, S as OidcLoginService, T as getUsersOidcConfig, _ as readMobileBearerToken, a as TerminalAuthRateLimitError, g as MobileAuthService, h as MobileAuthError, i as TerminalAuthError, m as withSessionPermissionContext, o as TerminalAuthService, s as OperationPermissionError, v as validateMobileRedirectUri, w as encodeOidcTransaction, x as OidcLoginError, y as SessionService } from "./chunks/TerminalAuthService-
|
|
1
|
+
import { C as decodeOidcTransaction, E as resolveOidcProviderConfig, S as OidcLoginService, T as getUsersOidcConfig, _ as readMobileBearerToken, a as TerminalAuthRateLimitError, g as MobileAuthService, h as MobileAuthError, i as TerminalAuthError, m as withSessionPermissionContext, o as TerminalAuthService, s as OperationPermissionError, v as validateMobileRedirectUri, w as encodeOidcTransaction, x as OidcLoginError, y as SessionService } from "./chunks/TerminalAuthService-CCnWsOuL.js";
|
|
2
2
|
import { DiscoveryArtifactValidationError, SMRT_APP_RESULT_CONTRACT, SMRT_APP_RESULT_SCHEMA, SMRT_APP_RESULT_VERSION, SMRT_DISCOVERY_CONFORMANCE_ARTIFACT_SCHEMA, SMRT_DISCOVERY_CONFORMANCE_SCHEMA, SMRT_DISCOVERY_CONFORMANCE_VERSION, SMRT_MCP_RESULT_METADATA_KEY, canonicalizeDiscoveryArtifact, createDiscoveryConformanceArtifact, deriveCommandRequirements, validateDiscoveryConformanceArtifact } from "./app-contract.js";
|
|
3
|
-
import { ObjectRegistry } from "@happyvertical/smrt-core";
|
|
3
|
+
import { ObjectRegistry, createClassNamePredicate, resolveCustomActionMetadata, resolveEffectiveActionMetadata } from "@happyvertical/smrt-core";
|
|
4
4
|
import { createLogger } from "@happyvertical/logger";
|
|
5
5
|
import { classnameToTablename } from "@happyvertical/smrt-core/utils";
|
|
6
6
|
import { methodNameToKebab, resolveApiActionSet } from "@happyvertical/smrt-core/vite-plugin";
|
|
@@ -202,13 +202,22 @@ function createResourceListHandler(options) {
|
|
|
202
202
|
const resources = [];
|
|
203
203
|
const skipWarnings = [];
|
|
204
204
|
const slugSeen = /* @__PURE__ */ new Map();
|
|
205
|
-
|
|
205
|
+
const registeredClasses = [...ObjectRegistry.getAllClasses()];
|
|
206
|
+
const isModelClassName = createClassNamePredicate(registeredClasses.flatMap(([name, registered]) => {
|
|
207
|
+
const definition = registered;
|
|
208
|
+
return [
|
|
209
|
+
name,
|
|
210
|
+
...definition.name ? [definition.name] : [],
|
|
211
|
+
...definition.qualifiedName ? [definition.qualifiedName] : []
|
|
212
|
+
];
|
|
213
|
+
}));
|
|
214
|
+
for (const [registeredName, registered] of registeredClasses) {
|
|
206
215
|
const def = synthesizeDefinition(registeredName, registered);
|
|
207
216
|
const cliConfig = def.decoratorConfig.cli;
|
|
208
217
|
if (!cliConfig) continue;
|
|
209
218
|
if (!isHttpCliConfig(cliConfig)) continue;
|
|
210
219
|
if (isCollectionClass(def)) continue;
|
|
211
|
-
const includedMethods = resolveCliIncludedMethods(cliConfig, resolveApiActionSet(def));
|
|
220
|
+
const includedMethods = resolveCliIncludedMethods(cliConfig, resolveApiActionSet(def, void 0, { isModelClassName }));
|
|
212
221
|
if (includedMethods.length === 0) continue;
|
|
213
222
|
const slug = resourceSlug({
|
|
214
223
|
className: def.className,
|
|
@@ -408,13 +417,31 @@ function buildCrudCommand(name) {
|
|
|
408
417
|
};
|
|
409
418
|
}
|
|
410
419
|
function buildCustomCommand(def, methodName, methodDef, kebabRoutes) {
|
|
411
|
-
const
|
|
420
|
+
const apiConfigObj = getApiConfigObject(def.decoratorConfig.api);
|
|
421
|
+
const effective = resolveEffectiveActionMetadata({
|
|
422
|
+
actionName: methodName,
|
|
423
|
+
...methodDef ? { method: methodDef } : {},
|
|
424
|
+
apiConfig: apiConfigObj
|
|
425
|
+
});
|
|
412
426
|
const defaultScope = methodDef?.isStatic ? "collection" : "item";
|
|
413
|
-
|
|
414
|
-
|
|
427
|
+
let scope = defaultScope;
|
|
428
|
+
try {
|
|
429
|
+
scope = resolveCustomActionMetadata({
|
|
430
|
+
actionName: methodName,
|
|
431
|
+
method: {
|
|
432
|
+
...methodDef?.isStatic !== void 0 ? { isStatic: methodDef.isStatic } : {},
|
|
433
|
+
...methodDef?.decoratorConfig ? { decoratorConfig: methodDef.decoratorConfig } : {}
|
|
434
|
+
},
|
|
435
|
+
apiConfig: apiConfigObj,
|
|
436
|
+
defaultScope
|
|
437
|
+
}).scope;
|
|
438
|
+
} catch {
|
|
439
|
+
scope = defaultScope;
|
|
440
|
+
}
|
|
441
|
+
const httpMethod = normalizeApiHttpMethod(effective.httpMethod);
|
|
415
442
|
let pathSegments;
|
|
416
|
-
if (
|
|
417
|
-
pathSegments =
|
|
443
|
+
if (effective.path) {
|
|
444
|
+
pathSegments = effective.path.split("/").map((s) => s.trim()).filter(Boolean);
|
|
418
445
|
if (pathSegments.length === 0) pathSegments = [methodName];
|
|
419
446
|
} else pathSegments = [kebabRoutes ? methodNameToKebab(methodName) : methodName];
|
|
420
447
|
const parameters = resolveParametersSchema(def, methodName, methodDef);
|