@happyvertical/smrt-profiles 0.51.32 → 0.51.34
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/__smrt-register__.d.ts +2 -0
- package/dist/__smrt-register__.d.ts.map +1 -0
- package/dist/agent-profile.d.ts +71 -0
- package/dist/agent-profile.d.ts.map +1 -0
- package/dist/auth/index.d.ts +12 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/magicLinkService.d.ts +79 -0
- package/dist/auth/magicLinkService.d.ts.map +1 -0
- package/dist/auth/nip05Handler.d.ts +73 -0
- package/dist/auth/nip05Handler.d.ts.map +1 -0
- package/dist/auth/normalizeIdentityEmail.d.ts +8 -0
- package/dist/auth/normalizeIdentityEmail.d.ts.map +1 -0
- package/dist/auth/nostrCrypto.d.ts +111 -0
- package/dist/auth/nostrCrypto.d.ts.map +1 -0
- package/dist/auth/oidcProvisioningCoordinator.d.ts +58 -0
- package/dist/auth/oidcProvisioningCoordinator.d.ts.map +1 -0
- package/dist/auth/oidcProvisioningPrimitives.d.ts +23 -0
- package/dist/auth/oidcProvisioningPrimitives.d.ts.map +1 -0
- package/dist/auth/resolveIdentity.d.ts +188 -0
- package/dist/auth/resolveIdentity.d.ts.map +1 -0
- package/dist/collections/ApiKeyCollection.d.ts +46 -0
- package/dist/collections/ApiKeyCollection.d.ts.map +1 -0
- package/dist/collections/AuditLogCollection.d.ts +50 -0
- package/dist/collections/AuditLogCollection.d.ts.map +1 -0
- package/dist/collections/MagicLinkTokenCollection.d.ts +58 -0
- package/dist/collections/MagicLinkTokenCollection.d.ts.map +1 -0
- package/dist/collections/NostrIdentityCollection.d.ts +66 -0
- package/dist/collections/NostrIdentityCollection.d.ts.map +1 -0
- package/dist/collections/OidcIdentityCollection.d.ts +45 -0
- package/dist/collections/OidcIdentityCollection.d.ts.map +1 -0
- package/dist/collections/OidcProfileEmailReservationCollection.d.ts +7 -0
- package/dist/collections/OidcProfileEmailReservationCollection.d.ts.map +1 -0
- package/dist/collections/ProfileAssetCollection.d.ts +17 -0
- package/dist/collections/ProfileAssetCollection.d.ts.map +1 -0
- package/dist/collections/ProfileCollection.d.ts +130 -0
- package/dist/collections/ProfileCollection.d.ts.map +1 -0
- package/dist/collections/ProfileMetadataCollection.d.ts +33 -0
- package/dist/collections/ProfileMetadataCollection.d.ts.map +1 -0
- package/dist/collections/ProfileMetafieldCollection.d.ts +31 -0
- package/dist/collections/ProfileMetafieldCollection.d.ts.map +1 -0
- package/dist/collections/ProfileRelationshipCollection.d.ts +44 -0
- package/dist/collections/ProfileRelationshipCollection.d.ts.map +1 -0
- package/dist/collections/ProfileRelationshipTermCollection.d.ts +32 -0
- package/dist/collections/ProfileRelationshipTermCollection.d.ts.map +1 -0
- package/dist/collections/ProfileRelationshipTypeCollection.d.ts +41 -0
- package/dist/collections/ProfileRelationshipTypeCollection.d.ts.map +1 -0
- package/dist/collections/ProfileTypeCollection.d.ts +40 -0
- package/dist/collections/ProfileTypeCollection.d.ts.map +1 -0
- package/dist/collections/index.d.ts +18 -0
- package/dist/collections/index.d.ts.map +1 -0
- package/dist/index.d.ts +55 -2059
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/internal/oidc-provisioning.d.ts +14 -119
- package/dist/internal/oidc-provisioning.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/migrations/backfillProfileEmailKeys.d.ts +16 -0
- package/dist/migrations/backfillProfileEmailKeys.d.ts.map +1 -0
- package/dist/models/ApiKey.d.ts +94 -0
- package/dist/models/ApiKey.d.ts.map +1 -0
- package/dist/models/AuditLog.d.ts +71 -0
- package/dist/models/AuditLog.d.ts.map +1 -0
- package/dist/models/MagicLinkToken.d.ts +104 -0
- package/dist/models/MagicLinkToken.d.ts.map +1 -0
- package/dist/models/NostrIdentity.d.ts +112 -0
- package/dist/models/NostrIdentity.d.ts.map +1 -0
- package/dist/models/OidcIdentity.d.ts +82 -0
- package/dist/models/OidcIdentity.d.ts.map +1 -0
- package/dist/models/OidcProfileEmailReservation.d.ts +12 -0
- package/dist/models/OidcProfileEmailReservation.d.ts.map +1 -0
- package/dist/models/Profile.d.ts +243 -0
- package/dist/models/Profile.d.ts.map +1 -0
- package/dist/models/ProfileAsset.d.ts +18 -0
- package/dist/models/ProfileAsset.d.ts.map +1 -0
- package/dist/models/ProfileMetadata.d.ts +33 -0
- package/dist/models/ProfileMetadata.d.ts.map +1 -0
- package/dist/models/ProfileMetafield.d.ts +62 -0
- package/dist/models/ProfileMetafield.d.ts.map +1 -0
- package/dist/models/ProfileRelationship.d.ts +56 -0
- package/dist/models/ProfileRelationship.d.ts.map +1 -0
- package/dist/models/ProfileRelationshipTerm.d.ts +37 -0
- package/dist/models/ProfileRelationshipTerm.d.ts.map +1 -0
- package/dist/models/ProfileRelationshipType.d.ts +59 -0
- package/dist/models/ProfileRelationshipType.d.ts.map +1 -0
- package/dist/models/ProfileType.d.ts +27 -0
- package/dist/models/ProfileType.d.ts.map +1 -0
- package/dist/models/ProfileTypes.d.ts +32 -0
- package/dist/models/ProfileTypes.d.ts.map +1 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/prompts.d.ts +17 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +4 -4
- package/dist/testing/oidcProvisioningDecisionMatrix.d.ts +1168 -0
- package/dist/testing/oidcProvisioningDecisionMatrix.d.ts.map +1 -0
- package/dist/types.d.ts +33 -732
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +52 -817
- package/dist/utils.d.ts.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileMetadataCollection - Collection manager for ProfileMetadata objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying and batch operations for profile metadata.
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileMetadata } from '../models/ProfileMetadata';
|
|
8
|
+
export declare class ProfileMetadataCollection extends SmrtCollection<ProfileMetadata> {
|
|
9
|
+
static readonly _itemClass: typeof ProfileMetadata;
|
|
10
|
+
/**
|
|
11
|
+
* Get all metadata for a profile
|
|
12
|
+
*
|
|
13
|
+
* @param profileId - The profile UUID
|
|
14
|
+
* @returns Array of ProfileMetadata instances
|
|
15
|
+
*/
|
|
16
|
+
getByProfile(profileId: string): Promise<ProfileMetadata[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Get metadata as key-value object for a profile
|
|
19
|
+
*
|
|
20
|
+
* @param profileId - The profile UUID
|
|
21
|
+
* @returns Object with metafield slugs as keys
|
|
22
|
+
*/
|
|
23
|
+
getMetadataObject(profileId: string): Promise<Record<string, string>>;
|
|
24
|
+
/**
|
|
25
|
+
* Find all profiles with a specific metadata key-value pair
|
|
26
|
+
*
|
|
27
|
+
* @param metafieldId - The metafield UUID
|
|
28
|
+
* @param value - The value to match
|
|
29
|
+
* @returns Array of profile UUIDs
|
|
30
|
+
*/
|
|
31
|
+
findProfilesByMetadata(metafieldId: string, value: unknown): Promise<string[]>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ProfileMetadataCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMetadataCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileMetadataCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBAAa,yBAA0B,SAAQ,cAAc,CAAC,eAAe,CAAC;IAC5E,MAAM,CAAC,QAAQ,CAAC,UAAU,yBAAmB;IAE7C;;;;;OAKG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIjE;;;;;OAKG;IACG,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAc3E;;;;;;OAMG;IACG,sBAAsB,CAC1B,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,MAAM,EAAE,CAAC;CASrB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileMetafieldCollection - Collection manager for ProfileMetafield objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying for profile metafield lookup table.
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileMetafield } from '../models/ProfileMetafield';
|
|
8
|
+
import type { ValidationSchema } from '../types';
|
|
9
|
+
export declare class ProfileMetafieldCollection extends SmrtCollection<ProfileMetafield> {
|
|
10
|
+
static readonly _itemClass: typeof ProfileMetafield;
|
|
11
|
+
/**
|
|
12
|
+
* Get metafield by slug
|
|
13
|
+
*
|
|
14
|
+
* @param slug - The slug to search for
|
|
15
|
+
* @returns ProfileMetafield instance or null
|
|
16
|
+
*/
|
|
17
|
+
getBySlug(slug: string): Promise<ProfileMetafield | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Get or create a metafield by slug
|
|
20
|
+
*
|
|
21
|
+
* @param slug - The slug to search for
|
|
22
|
+
* @param defaults - Default values if creating
|
|
23
|
+
* @returns ProfileMetafield instance
|
|
24
|
+
*/
|
|
25
|
+
getOrCreateBySlug(slug: string, defaults: {
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
validation?: ValidationSchema;
|
|
29
|
+
}): Promise<ProfileMetafield>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ProfileMetafieldCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileMetafieldCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileMetafieldCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAC9E,MAAM,CAAC,QAAQ,CAAC,UAAU,0BAAoB;IAE9C;;;;;OAKG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAI/D;;;;;;OAMG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,gBAAgB,CAAC;KAC/B,GACA,OAAO,CAAC,gBAAgB,CAAC;CAQ7B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileRelationshipCollection - Collection manager for ProfileRelationship objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying for relationships between profiles.
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileRelationship } from '../models/ProfileRelationship';
|
|
8
|
+
export declare class ProfileRelationshipCollection extends SmrtCollection<ProfileRelationship> {
|
|
9
|
+
static readonly _itemClass: typeof ProfileRelationship;
|
|
10
|
+
/**
|
|
11
|
+
* Get all relationships from a profile
|
|
12
|
+
*
|
|
13
|
+
* @param fromProfileId - The origin profile UUID
|
|
14
|
+
* @param typeId - Optional filter by relationship type UUID
|
|
15
|
+
* @returns Array of ProfileRelationship instances
|
|
16
|
+
*/
|
|
17
|
+
getFromProfile(fromProfileId: string, typeId?: string): Promise<ProfileRelationship[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Get all relationships to a profile
|
|
20
|
+
*
|
|
21
|
+
* @param toProfileId - The target profile UUID
|
|
22
|
+
* @param typeId - Optional filter by relationship type UUID
|
|
23
|
+
* @returns Array of ProfileRelationship instances
|
|
24
|
+
*/
|
|
25
|
+
getToProfile(toProfileId: string, typeId?: string): Promise<ProfileRelationship[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Get all relationships for a profile (both directions)
|
|
28
|
+
*
|
|
29
|
+
* @param profileId - The profile UUID
|
|
30
|
+
* @param typeId - Optional filter by relationship type UUID
|
|
31
|
+
* @returns Array of ProfileRelationship instances
|
|
32
|
+
*/
|
|
33
|
+
getForProfile(profileId: string, typeId?: string): Promise<ProfileRelationship[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Check if a relationship exists between two profiles
|
|
36
|
+
*
|
|
37
|
+
* @param fromProfileId - The origin profile UUID
|
|
38
|
+
* @param toProfileId - The target profile UUID
|
|
39
|
+
* @param typeId - The relationship type UUID
|
|
40
|
+
* @returns True if relationship exists
|
|
41
|
+
*/
|
|
42
|
+
exists(fromProfileId: string, toProfileId: string, typeId: string): Promise<boolean>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ProfileRelationshipCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileRelationshipCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileRelationshipCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,UAAU,6BAAuB;IAEjD;;;;;;OAMG;IACG,cAAc,CAClB,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOjC;;;;;;OAMG;IACG,YAAY,CAChB,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOjC;;;;;;OAMG;IACG,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOjC;;;;;;;OAOG;IACG,MAAM,CACV,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC;CAQpB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileRelationshipTermCollection - Collection manager for ProfileRelationshipTerm objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying for relationship terms (temporal data).
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileRelationshipTerm } from '../models/ProfileRelationshipTerm';
|
|
8
|
+
export declare class ProfileRelationshipTermCollection extends SmrtCollection<ProfileRelationshipTerm> {
|
|
9
|
+
static readonly _itemClass: typeof ProfileRelationshipTerm;
|
|
10
|
+
/**
|
|
11
|
+
* Get all terms for a relationship
|
|
12
|
+
*
|
|
13
|
+
* @param relationshipId - The relationship UUID
|
|
14
|
+
* @returns Array of ProfileRelationshipTerm instances
|
|
15
|
+
*/
|
|
16
|
+
getByRelationship(relationshipId: string): Promise<ProfileRelationshipTerm[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Get the active term for a relationship (no end date or future end date)
|
|
19
|
+
*
|
|
20
|
+
* @param relationshipId - The relationship UUID
|
|
21
|
+
* @returns Active term or null
|
|
22
|
+
*/
|
|
23
|
+
getActiveTerm(relationshipId: string): Promise<ProfileRelationshipTerm | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Get all historical (ended) terms for a relationship
|
|
26
|
+
*
|
|
27
|
+
* @param relationshipId - The relationship UUID
|
|
28
|
+
* @returns Array of ended ProfileRelationshipTerm instances
|
|
29
|
+
*/
|
|
30
|
+
getHistoricalTerms(relationshipId: string): Promise<ProfileRelationshipTerm[]>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=ProfileRelationshipTermCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileRelationshipTermCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileRelationshipTermCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,qBAAa,iCAAkC,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC5F,MAAM,CAAC,QAAQ,CAAC,UAAU,iCAA2B;IAErD;;;;;OAKG;IACG,iBAAiB,CACrB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAOrC;;;;;OAKG;IACG,aAAa,CACjB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAY1C;;;;;OAKG;IACG,kBAAkB,CACtB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,uBAAuB,EAAE,CAAC;CAItC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileRelationshipTypeCollection - Collection manager for ProfileRelationshipType objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying for relationship type lookup table.
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileRelationshipType } from '../models/ProfileRelationshipType';
|
|
8
|
+
export declare class ProfileRelationshipTypeCollection extends SmrtCollection<ProfileRelationshipType> {
|
|
9
|
+
static readonly _itemClass: typeof ProfileRelationshipType;
|
|
10
|
+
/**
|
|
11
|
+
* Get relationship type by slug
|
|
12
|
+
*
|
|
13
|
+
* @param slug - The slug to search for
|
|
14
|
+
* @returns ProfileRelationshipType instance or null
|
|
15
|
+
*/
|
|
16
|
+
getBySlug(slug: string): Promise<ProfileRelationshipType | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Get or create a relationship type by slug
|
|
19
|
+
*
|
|
20
|
+
* @param slug - The slug to search for
|
|
21
|
+
* @param defaults - Default values if creating
|
|
22
|
+
* @returns ProfileRelationshipType instance
|
|
23
|
+
*/
|
|
24
|
+
getOrCreateBySlug(slug: string, defaults: {
|
|
25
|
+
name: string;
|
|
26
|
+
reciprocal?: boolean;
|
|
27
|
+
}): Promise<ProfileRelationshipType>;
|
|
28
|
+
/**
|
|
29
|
+
* Get all reciprocal relationship types
|
|
30
|
+
*
|
|
31
|
+
* @returns Array of reciprocal ProfileRelationshipType instances
|
|
32
|
+
*/
|
|
33
|
+
getReciprocal(): Promise<ProfileRelationshipType[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Get all directional (non-reciprocal) relationship types
|
|
36
|
+
*
|
|
37
|
+
* @returns Array of directional ProfileRelationshipType instances
|
|
38
|
+
*/
|
|
39
|
+
getDirectional(): Promise<ProfileRelationshipType[]>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=ProfileRelationshipTypeCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileRelationshipTypeCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileRelationshipTypeCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,qBAAa,iCAAkC,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC5F,MAAM,CAAC,QAAQ,CAAC,UAAU,iCAA2B;IAErD;;;;;OAKG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAItE;;;;;;OAMG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,GAC/C,OAAO,CAAC,uBAAuB,CAAC;IASnC;;;;OAIG;IACG,aAAa,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAIzD;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;CAG3D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileTypeCollection - Collection manager for ProfileType objects
|
|
3
|
+
*
|
|
4
|
+
* Provides querying for profile type lookup table.
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { ProfileType } from '../models/ProfileType';
|
|
8
|
+
export declare class ProfileTypeCollection extends SmrtCollection<ProfileType> {
|
|
9
|
+
static readonly _itemClass: typeof ProfileType;
|
|
10
|
+
/**
|
|
11
|
+
* Get profile type by slug
|
|
12
|
+
*
|
|
13
|
+
* @param slug - The slug to search for
|
|
14
|
+
* @returns ProfileType instance or null
|
|
15
|
+
*/
|
|
16
|
+
getBySlug(slug: string): Promise<ProfileType | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Get or create a profile type by slug
|
|
19
|
+
*
|
|
20
|
+
* @param slug - The slug to search for
|
|
21
|
+
* @param defaults - Default values if creating
|
|
22
|
+
* @returns ProfileType instance
|
|
23
|
+
*/
|
|
24
|
+
getOrCreateBySlug(slug: string, defaults: {
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
}): Promise<ProfileType>;
|
|
28
|
+
/**
|
|
29
|
+
* Atomically create or load a global ProfileType from trusted system code.
|
|
30
|
+
*
|
|
31
|
+
* This intentionally bypasses tenant auto-population and therefore refuses
|
|
32
|
+
* to run outside an explicit `withSystemContext()` boundary.
|
|
33
|
+
*/
|
|
34
|
+
getOrCreateGlobalBySlug(slug: string, defaults: {
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
}): Promise<ProfileType>;
|
|
38
|
+
private loadGlobalBySlug;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ProfileTypeCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileTypeCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ProfileTypeCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMpD,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,qBAAe;IAEzC;;;;;OAKG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAI1D;;;;;;OAMG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,OAAO,CAAC,WAAW,CAAC;IASvB;;;;;OAKG;IACG,uBAAuB,CAC3B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,OAAO,CAAC,WAAW,CAAC;YA+ET,gBAAgB;CAoB/B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SMRT collection exports for profiles package
|
|
3
|
+
*/
|
|
4
|
+
export { ApiKeyCollection } from './ApiKeyCollection';
|
|
5
|
+
export { AuditLogCollection } from './AuditLogCollection';
|
|
6
|
+
export { MagicLinkTokenCollection } from './MagicLinkTokenCollection';
|
|
7
|
+
export { type Nip05Response, NostrIdentityCollection, } from './NostrIdentityCollection';
|
|
8
|
+
export { AmbiguousOidcIdentityError, OidcIdentityCollection, } from './OidcIdentityCollection';
|
|
9
|
+
export { OidcProfileEmailReservationCollection } from './OidcProfileEmailReservationCollection';
|
|
10
|
+
export { ProfileAssetCollection } from './ProfileAssetCollection';
|
|
11
|
+
export { CanonicalPersonProfileError, type CanonicalPersonProfileErrorCode, ProfileCollection, } from './ProfileCollection';
|
|
12
|
+
export { ProfileMetadataCollection } from './ProfileMetadataCollection';
|
|
13
|
+
export { ProfileMetafieldCollection } from './ProfileMetafieldCollection';
|
|
14
|
+
export { ProfileRelationshipCollection } from './ProfileRelationshipCollection';
|
|
15
|
+
export { ProfileRelationshipTermCollection } from './ProfileRelationshipTermCollection';
|
|
16
|
+
export { ProfileRelationshipTypeCollection } from './ProfileRelationshipTypeCollection';
|
|
17
|
+
export { ProfileTypeCollection } from './ProfileTypeCollection';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,KAAK,aAAa,EAClB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,KAAK,+BAA+B,EACpC,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|