@happyvertical/smrt-profiles 0.43.9 → 0.44.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.
Files changed (42) hide show
  1. package/dist/chunks/{ApiKey-CMm509C4.js → ApiKey-BTC7nWG1.js} +15 -5
  2. package/dist/chunks/ApiKey-BTC7nWG1.js.map +1 -0
  3. package/dist/chunks/{ApiKeyCollection-C6p7XgTz.js → ApiKeyCollection-DsxaLEwc.js} +4 -3
  4. package/dist/chunks/ApiKeyCollection-DsxaLEwc.js.map +1 -0
  5. package/dist/chunks/{AuditLogCollection-lJfGFdIQ.js → AuditLogCollection-N5ItRtEK.js} +2 -2
  6. package/dist/chunks/{AuditLogCollection-lJfGFdIQ.js.map → AuditLogCollection-N5ItRtEK.js.map} +1 -1
  7. package/dist/chunks/{NostrIdentity-CgdM4ng0.js → NostrIdentity-C39j4O4k.js} +14 -6
  8. package/dist/chunks/{NostrIdentity-CgdM4ng0.js.map → NostrIdentity-C39j4O4k.js.map} +1 -1
  9. package/dist/chunks/{NostrIdentityCollection-BnHZOsUI.js → NostrIdentityCollection-PzvQ54Nm.js} +2 -2
  10. package/dist/chunks/{NostrIdentityCollection-BnHZOsUI.js.map → NostrIdentityCollection-PzvQ54Nm.js.map} +1 -1
  11. package/dist/chunks/{OidcIdentity-B9rltBDe.js → OidcIdentity-n-2FPfas.js} +13 -5
  12. package/dist/chunks/{OidcIdentity-B9rltBDe.js.map → OidcIdentity-n-2FPfas.js.map} +1 -1
  13. package/dist/chunks/{OidcIdentityCollection-D2JuUZZL.js → OidcIdentityCollection-BssJC4zV.js} +3 -3
  14. package/dist/chunks/{OidcIdentityCollection-D2JuUZZL.js.map → OidcIdentityCollection-BssJC4zV.js.map} +1 -1
  15. package/dist/chunks/{ProfileAssetCollection-BzB55xtX.js → ProfileAssetCollection-DIG1R_FG.js} +3 -3
  16. package/dist/chunks/{ProfileAssetCollection-BzB55xtX.js.map → ProfileAssetCollection-DIG1R_FG.js.map} +1 -1
  17. package/dist/chunks/{ProfileCollection-WlRQ7bj3.js → ProfileCollection-BLwatLeO.js} +24 -24
  18. package/dist/chunks/{ProfileCollection-WlRQ7bj3.js.map → ProfileCollection-BLwatLeO.js.map} +1 -1
  19. package/dist/chunks/{ProfileMetadataCollection-Ceq-QV-1.js → ProfileMetadataCollection-BdkdHPud.js} +2 -2
  20. package/dist/chunks/{ProfileMetadataCollection-Ceq-QV-1.js.map → ProfileMetadataCollection-BdkdHPud.js.map} +1 -1
  21. package/dist/chunks/{ProfileMetafieldCollection-CM374Dbh.js → ProfileMetafieldCollection-BELgOOlR.js} +2 -2
  22. package/dist/chunks/{ProfileMetafieldCollection-CM374Dbh.js.map → ProfileMetafieldCollection-BELgOOlR.js.map} +1 -1
  23. package/dist/chunks/{ProfileRelationshipCollection-DuPcpzp1.js → ProfileRelationshipCollection-CHMfPvwh.js} +5 -5
  24. package/dist/chunks/{ProfileRelationshipCollection-DuPcpzp1.js.map → ProfileRelationshipCollection-CHMfPvwh.js.map} +1 -1
  25. package/dist/chunks/{ProfileRelationshipTermCollection-Bw32vYB8.js → ProfileRelationshipTermCollection-CTb37cus.js} +2 -2
  26. package/dist/chunks/{ProfileRelationshipTermCollection-Bw32vYB8.js.map → ProfileRelationshipTermCollection-CTb37cus.js.map} +1 -1
  27. package/dist/chunks/{ProfileRelationshipType-CZm2X1qY.js → ProfileRelationshipType-Ck3ARPkG.js} +2 -2
  28. package/dist/chunks/{ProfileRelationshipType-CZm2X1qY.js.map → ProfileRelationshipType-Ck3ARPkG.js.map} +1 -1
  29. package/dist/chunks/{ProfileRelationshipTypeCollection-CtoeCpp_.js → ProfileRelationshipTypeCollection-DKHnZ_fV.js} +3 -3
  30. package/dist/chunks/{ProfileRelationshipTypeCollection-CtoeCpp_.js.map → ProfileRelationshipTypeCollection-DKHnZ_fV.js.map} +1 -1
  31. package/dist/chunks/{oidcProvisioningPrimitives-BEBZWkLD.js → oidcProvisioningPrimitives-2qppM9Ak.js} +4 -4
  32. package/dist/chunks/{oidcProvisioningPrimitives-BEBZWkLD.js.map → oidcProvisioningPrimitives-2qppM9Ak.js.map} +1 -1
  33. package/dist/chunks/{resolveIdentity-B2ro8ggX.js → resolveIdentity-CW-fl8Iv.js} +16 -16
  34. package/dist/chunks/{resolveIdentity-B2ro8ggX.js.map → resolveIdentity-CW-fl8Iv.js.map} +1 -1
  35. package/dist/index.js +22 -22
  36. package/dist/internal/oidc-provisioning.js +2 -2
  37. package/dist/manifest.json +344 -10
  38. package/dist/smrt-knowledge.json +220 -13
  39. package/dist/utils.js +4 -4
  40. package/package.json +6 -6
  41. package/dist/chunks/ApiKey-CMm509C4.js.map +0 -1
  42. package/dist/chunks/ApiKeyCollection-C6p7XgTz.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { d as coordinateOidcProvisioning, f as isOidcAbortedTransactionError, m as saveOidcRaceArbiter, p as isOidcProvisioningRaceConflict } from "../chunks/ProfileCollection-WlRQ7bj3.js";
2
- import { n as insertOidcProvisioningIdentity$1, t as createOidcProvisioningPerson$1 } from "../chunks/oidcProvisioningPrimitives-BEBZWkLD.js";
1
+ import { d as coordinateOidcProvisioning, f as isOidcAbortedTransactionError, m as saveOidcRaceArbiter, p as isOidcProvisioningRaceConflict } from "../chunks/ProfileCollection-BLwatLeO.js";
2
+ import { n as insertOidcProvisioningIdentity$1, t as createOidcProvisioningPerson$1 } from "../chunks/oidcProvisioningPrimitives-2qppM9Ak.js";
3
3
  //#region src/internal/oidc-provisioning.ts
4
4
  async function createOidcProvisioningPerson(db, input) {
5
5
  return await createOidcProvisioningPerson$1(db, input);
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-profiles",
5
- "packageVersion": "0.43.9",
5
+ "packageVersion": "0.44.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-profiles:ApiKeyCollection": {
8
8
  "name": "apikeycollection",
@@ -4087,6 +4087,20 @@
4087
4087
  "isStatic": false,
4088
4088
  "isPublic": true
4089
4089
  },
4090
+ "withTransaction": {
4091
+ "name": "withTransaction",
4092
+ "async": true,
4093
+ "parameters": [
4094
+ {
4095
+ "name": "operation",
4096
+ "type": "Function",
4097
+ "optional": false
4098
+ }
4099
+ ],
4100
+ "returnType": "Promise<T>",
4101
+ "isStatic": false,
4102
+ "isPublic": true
4103
+ },
4090
4104
  "initialize": {
4091
4105
  "name": "initialize",
4092
4106
  "async": true,
@@ -4187,6 +4201,20 @@
4187
4201
  "isStatic": false,
4188
4202
  "isPublic": true
4189
4203
  },
4204
+ "claimRevision": {
4205
+ "name": "claimRevision",
4206
+ "async": true,
4207
+ "parameters": [
4208
+ {
4209
+ "name": "expectedUpdatedAt",
4210
+ "type": "Date | string",
4211
+ "optional": false
4212
+ }
4213
+ ],
4214
+ "returnType": "Promise",
4215
+ "isStatic": false,
4216
+ "isPublic": true
4217
+ },
4190
4218
  "classifyConstraintError": {
4191
4219
  "name": "classifyConstraintError",
4192
4220
  "async": false,
@@ -5399,6 +5427,20 @@
5399
5427
  "isStatic": false,
5400
5428
  "isPublic": true
5401
5429
  },
5430
+ "withTransaction": {
5431
+ "name": "withTransaction",
5432
+ "async": true,
5433
+ "parameters": [
5434
+ {
5435
+ "name": "operation",
5436
+ "type": "Function",
5437
+ "optional": false
5438
+ }
5439
+ ],
5440
+ "returnType": "Promise<T>",
5441
+ "isStatic": false,
5442
+ "isPublic": true
5443
+ },
5402
5444
  "initialize": {
5403
5445
  "name": "initialize",
5404
5446
  "async": true,
@@ -5494,11 +5536,31 @@
5494
5536
  "save": {
5495
5537
  "name": "save",
5496
5538
  "async": true,
5497
- "parameters": [],
5539
+ "parameters": [
5540
+ {
5541
+ "name": "options",
5542
+ "type": "SmrtSaveOptions",
5543
+ "optional": true
5544
+ }
5545
+ ],
5498
5546
  "returnType": "any",
5499
5547
  "isStatic": false,
5500
5548
  "isPublic": true
5501
5549
  },
5550
+ "claimRevision": {
5551
+ "name": "claimRevision",
5552
+ "async": true,
5553
+ "parameters": [
5554
+ {
5555
+ "name": "expectedUpdatedAt",
5556
+ "type": "Date | string",
5557
+ "optional": false
5558
+ }
5559
+ ],
5560
+ "returnType": "Promise",
5561
+ "isStatic": false,
5562
+ "isPublic": true
5563
+ },
5502
5564
  "classifyConstraintError": {
5503
5565
  "name": "classifyConstraintError",
5504
5566
  "async": false,
@@ -6134,6 +6196,20 @@
6134
6196
  "isStatic": false,
6135
6197
  "isPublic": true
6136
6198
  },
6199
+ "withTransaction": {
6200
+ "name": "withTransaction",
6201
+ "async": true,
6202
+ "parameters": [
6203
+ {
6204
+ "name": "operation",
6205
+ "type": "Function",
6206
+ "optional": false
6207
+ }
6208
+ ],
6209
+ "returnType": "Promise<T>",
6210
+ "isStatic": false,
6211
+ "isPublic": true
6212
+ },
6137
6213
  "initialize": {
6138
6214
  "name": "initialize",
6139
6215
  "async": true,
@@ -6229,11 +6305,31 @@
6229
6305
  "save": {
6230
6306
  "name": "save",
6231
6307
  "async": true,
6232
- "parameters": [],
6308
+ "parameters": [
6309
+ {
6310
+ "name": "options",
6311
+ "type": "SmrtSaveOptions",
6312
+ "optional": true
6313
+ }
6314
+ ],
6233
6315
  "returnType": "any",
6234
6316
  "isStatic": false,
6235
6317
  "isPublic": true
6236
6318
  },
6319
+ "claimRevision": {
6320
+ "name": "claimRevision",
6321
+ "async": true,
6322
+ "parameters": [
6323
+ {
6324
+ "name": "expectedUpdatedAt",
6325
+ "type": "Date | string",
6326
+ "optional": false
6327
+ }
6328
+ ],
6329
+ "returnType": "Promise",
6330
+ "isStatic": false,
6331
+ "isPublic": true
6332
+ },
6237
6333
  "classifyConstraintError": {
6238
6334
  "name": "classifyConstraintError",
6239
6335
  "async": false,
@@ -6895,6 +6991,20 @@
6895
6991
  "isStatic": false,
6896
6992
  "isPublic": true
6897
6993
  },
6994
+ "withTransaction": {
6995
+ "name": "withTransaction",
6996
+ "async": true,
6997
+ "parameters": [
6998
+ {
6999
+ "name": "operation",
7000
+ "type": "Function",
7001
+ "optional": false
7002
+ }
7003
+ ],
7004
+ "returnType": "Promise<T>",
7005
+ "isStatic": false,
7006
+ "isPublic": true
7007
+ },
6898
7008
  "initialize": {
6899
7009
  "name": "initialize",
6900
7010
  "async": true,
@@ -6990,11 +7100,31 @@
6990
7100
  "save": {
6991
7101
  "name": "save",
6992
7102
  "async": true,
6993
- "parameters": [],
7103
+ "parameters": [
7104
+ {
7105
+ "name": "options",
7106
+ "type": "SmrtSaveOptions",
7107
+ "optional": true
7108
+ }
7109
+ ],
6994
7110
  "returnType": "any",
6995
7111
  "isStatic": false,
6996
7112
  "isPublic": true
6997
7113
  },
7114
+ "claimRevision": {
7115
+ "name": "claimRevision",
7116
+ "async": true,
7117
+ "parameters": [
7118
+ {
7119
+ "name": "expectedUpdatedAt",
7120
+ "type": "Date | string",
7121
+ "optional": false
7122
+ }
7123
+ ],
7124
+ "returnType": "Promise",
7125
+ "isStatic": false,
7126
+ "isPublic": true
7127
+ },
6998
7128
  "classifyConstraintError": {
6999
7129
  "name": "classifyConstraintError",
7000
7130
  "async": false,
@@ -7684,6 +7814,20 @@
7684
7814
  "isStatic": false,
7685
7815
  "isPublic": true
7686
7816
  },
7817
+ "withTransaction": {
7818
+ "name": "withTransaction",
7819
+ "async": true,
7820
+ "parameters": [
7821
+ {
7822
+ "name": "operation",
7823
+ "type": "Function",
7824
+ "optional": false
7825
+ }
7826
+ ],
7827
+ "returnType": "Promise<T>",
7828
+ "isStatic": false,
7829
+ "isPublic": true
7830
+ },
7687
7831
  "initialize": {
7688
7832
  "name": "initialize",
7689
7833
  "async": true,
@@ -7779,11 +7923,31 @@
7779
7923
  "save": {
7780
7924
  "name": "save",
7781
7925
  "async": true,
7782
- "parameters": [],
7926
+ "parameters": [
7927
+ {
7928
+ "name": "options",
7929
+ "type": "SmrtSaveOptions",
7930
+ "optional": true
7931
+ }
7932
+ ],
7783
7933
  "returnType": "any",
7784
7934
  "isStatic": false,
7785
7935
  "isPublic": true
7786
7936
  },
7937
+ "claimRevision": {
7938
+ "name": "claimRevision",
7939
+ "async": true,
7940
+ "parameters": [
7941
+ {
7942
+ "name": "expectedUpdatedAt",
7943
+ "type": "Date | string",
7944
+ "optional": false
7945
+ }
7946
+ ],
7947
+ "returnType": "Promise",
7948
+ "isStatic": false,
7949
+ "isPublic": true
7950
+ },
7787
7951
  "classifyConstraintError": {
7788
7952
  "name": "classifyConstraintError",
7789
7953
  "async": false,
@@ -8377,6 +8541,20 @@
8377
8541
  "isStatic": false,
8378
8542
  "isPublic": true
8379
8543
  },
8544
+ "withTransaction": {
8545
+ "name": "withTransaction",
8546
+ "async": true,
8547
+ "parameters": [
8548
+ {
8549
+ "name": "operation",
8550
+ "type": "Function",
8551
+ "optional": false
8552
+ }
8553
+ ],
8554
+ "returnType": "Promise<T>",
8555
+ "isStatic": false,
8556
+ "isPublic": true
8557
+ },
8380
8558
  "initialize": {
8381
8559
  "name": "initialize",
8382
8560
  "async": true,
@@ -8472,11 +8650,31 @@
8472
8650
  "save": {
8473
8651
  "name": "save",
8474
8652
  "async": true,
8475
- "parameters": [],
8653
+ "parameters": [
8654
+ {
8655
+ "name": "options",
8656
+ "type": "SmrtSaveOptions",
8657
+ "optional": true
8658
+ }
8659
+ ],
8476
8660
  "returnType": "any",
8477
8661
  "isStatic": false,
8478
8662
  "isPublic": true
8479
8663
  },
8664
+ "claimRevision": {
8665
+ "name": "claimRevision",
8666
+ "async": true,
8667
+ "parameters": [
8668
+ {
8669
+ "name": "expectedUpdatedAt",
8670
+ "type": "Date | string",
8671
+ "optional": false
8672
+ }
8673
+ ],
8674
+ "returnType": "Promise",
8675
+ "isStatic": false,
8676
+ "isPublic": true
8677
+ },
8480
8678
  "classifyConstraintError": {
8481
8679
  "name": "classifyConstraintError",
8482
8680
  "async": false,
@@ -9097,6 +9295,20 @@
9097
9295
  "isStatic": false,
9098
9296
  "isPublic": true
9099
9297
  },
9298
+ "withTransaction": {
9299
+ "name": "withTransaction",
9300
+ "async": true,
9301
+ "parameters": [
9302
+ {
9303
+ "name": "operation",
9304
+ "type": "Function",
9305
+ "optional": false
9306
+ }
9307
+ ],
9308
+ "returnType": "Promise<T>",
9309
+ "isStatic": false,
9310
+ "isPublic": true
9311
+ },
9100
9312
  "initialize": {
9101
9313
  "name": "initialize",
9102
9314
  "async": true,
@@ -9192,11 +9404,31 @@
9192
9404
  "save": {
9193
9405
  "name": "save",
9194
9406
  "async": true,
9195
- "parameters": [],
9407
+ "parameters": [
9408
+ {
9409
+ "name": "options",
9410
+ "type": "SmrtSaveOptions",
9411
+ "optional": true
9412
+ }
9413
+ ],
9196
9414
  "returnType": "any",
9197
9415
  "isStatic": false,
9198
9416
  "isPublic": true
9199
9417
  },
9418
+ "claimRevision": {
9419
+ "name": "claimRevision",
9420
+ "async": true,
9421
+ "parameters": [
9422
+ {
9423
+ "name": "expectedUpdatedAt",
9424
+ "type": "Date | string",
9425
+ "optional": false
9426
+ }
9427
+ ],
9428
+ "returnType": "Promise",
9429
+ "isStatic": false,
9430
+ "isPublic": true
9431
+ },
9200
9432
  "classifyConstraintError": {
9201
9433
  "name": "classifyConstraintError",
9202
9434
  "async": false,
@@ -9825,6 +10057,20 @@
9825
10057
  "isStatic": false,
9826
10058
  "isPublic": true
9827
10059
  },
10060
+ "withTransaction": {
10061
+ "name": "withTransaction",
10062
+ "async": true,
10063
+ "parameters": [
10064
+ {
10065
+ "name": "operation",
10066
+ "type": "Function",
10067
+ "optional": false
10068
+ }
10069
+ ],
10070
+ "returnType": "Promise<T>",
10071
+ "isStatic": false,
10072
+ "isPublic": true
10073
+ },
9828
10074
  "initialize": {
9829
10075
  "name": "initialize",
9830
10076
  "async": true,
@@ -9920,11 +10166,31 @@
9920
10166
  "save": {
9921
10167
  "name": "save",
9922
10168
  "async": true,
9923
- "parameters": [],
10169
+ "parameters": [
10170
+ {
10171
+ "name": "options",
10172
+ "type": "SmrtSaveOptions",
10173
+ "optional": true
10174
+ }
10175
+ ],
9924
10176
  "returnType": "any",
9925
10177
  "isStatic": false,
9926
10178
  "isPublic": true
9927
10179
  },
10180
+ "claimRevision": {
10181
+ "name": "claimRevision",
10182
+ "async": true,
10183
+ "parameters": [
10184
+ {
10185
+ "name": "expectedUpdatedAt",
10186
+ "type": "Date | string",
10187
+ "optional": false
10188
+ }
10189
+ ],
10190
+ "returnType": "Promise",
10191
+ "isStatic": false,
10192
+ "isPublic": true
10193
+ },
9928
10194
  "classifyConstraintError": {
9929
10195
  "name": "classifyConstraintError",
9930
10196
  "async": false,
@@ -10948,6 +11214,20 @@
10948
11214
  "isStatic": false,
10949
11215
  "isPublic": true
10950
11216
  },
11217
+ "withTransaction": {
11218
+ "name": "withTransaction",
11219
+ "async": true,
11220
+ "parameters": [
11221
+ {
11222
+ "name": "operation",
11223
+ "type": "Function",
11224
+ "optional": false
11225
+ }
11226
+ ],
11227
+ "returnType": "Promise<T>",
11228
+ "isStatic": false,
11229
+ "isPublic": true
11230
+ },
10951
11231
  "initialize": {
10952
11232
  "name": "initialize",
10953
11233
  "async": true,
@@ -11043,11 +11323,31 @@
11043
11323
  "save": {
11044
11324
  "name": "save",
11045
11325
  "async": true,
11046
- "parameters": [],
11326
+ "parameters": [
11327
+ {
11328
+ "name": "options",
11329
+ "type": "SmrtSaveOptions",
11330
+ "optional": true
11331
+ }
11332
+ ],
11047
11333
  "returnType": "any",
11048
11334
  "isStatic": false,
11049
11335
  "isPublic": true
11050
11336
  },
11337
+ "claimRevision": {
11338
+ "name": "claimRevision",
11339
+ "async": true,
11340
+ "parameters": [
11341
+ {
11342
+ "name": "expectedUpdatedAt",
11343
+ "type": "Date | string",
11344
+ "optional": false
11345
+ }
11346
+ ],
11347
+ "returnType": "Promise",
11348
+ "isStatic": false,
11349
+ "isPublic": true
11350
+ },
11051
11351
  "classifyConstraintError": {
11052
11352
  "name": "classifyConstraintError",
11053
11353
  "async": false,
@@ -12071,6 +12371,20 @@
12071
12371
  "isStatic": false,
12072
12372
  "isPublic": true
12073
12373
  },
12374
+ "withTransaction": {
12375
+ "name": "withTransaction",
12376
+ "async": true,
12377
+ "parameters": [
12378
+ {
12379
+ "name": "operation",
12380
+ "type": "Function",
12381
+ "optional": false
12382
+ }
12383
+ ],
12384
+ "returnType": "Promise<T>",
12385
+ "isStatic": false,
12386
+ "isPublic": true
12387
+ },
12074
12388
  "initialize": {
12075
12389
  "name": "initialize",
12076
12390
  "async": true,
@@ -12166,11 +12480,31 @@
12166
12480
  "save": {
12167
12481
  "name": "save",
12168
12482
  "async": true,
12169
- "parameters": [],
12483
+ "parameters": [
12484
+ {
12485
+ "name": "options",
12486
+ "type": "SmrtSaveOptions",
12487
+ "optional": true
12488
+ }
12489
+ ],
12170
12490
  "returnType": "any",
12171
12491
  "isStatic": false,
12172
12492
  "isPublic": true
12173
12493
  },
12494
+ "claimRevision": {
12495
+ "name": "claimRevision",
12496
+ "async": true,
12497
+ "parameters": [
12498
+ {
12499
+ "name": "expectedUpdatedAt",
12500
+ "type": "Date | string",
12501
+ "optional": false
12502
+ }
12503
+ ],
12504
+ "returnType": "Promise",
12505
+ "isStatic": false,
12506
+ "isPublic": true
12507
+ },
12174
12508
  "classifyConstraintError": {
12175
12509
  "name": "classifyConstraintError",
12176
12510
  "async": false,