@sphereon/ssi-sdk.issuance-branding 0.33.1-next.3 → 0.33.1-next.73
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/index.cjs +1538 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{ssi-sdk.issuance-branding.d.ts → index.d.cts} +152 -188
- package/dist/index.d.ts +148 -4
- package/dist/index.js +1505 -24
- package/dist/index.js.map +1 -1
- package/package.json +24 -13
- package/plugin.schema.json +257 -241
- package/dist/agent/IssuanceBranding.d.ts +0 -56
- package/dist/agent/IssuanceBranding.d.ts.map +0 -1
- package/dist/agent/IssuanceBranding.js +0 -288
- package/dist/agent/IssuanceBranding.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/tsdoc-metadata.json +0 -11
- package/dist/types/IIssuanceBranding.d.ts +0 -92
- package/dist/types/IIssuanceBranding.d.ts.map +0 -1
- package/dist/types/IIssuanceBranding.js +0 -3
- package/dist/types/IIssuanceBranding.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,152 @@
|
|
|
1
|
+
import { IPluginMethodMap, IAgentContext, IAgentPlugin } from '@veramo/core';
|
|
2
|
+
import { IBasicCredentialLocaleBranding, ICredentialBranding, FindCredentialBrandingArgs, FindCredentialLocaleBrandingArgs, ICredentialLocaleBranding, ILocaleBranding, IBasicIssuerLocaleBranding, IIssuerBranding, FindIssuerBrandingArgs, FindIssuerLocaleBrandingArgs, IIssuerLocaleBranding, IBasicImageDimensions, AbstractIssuanceBrandingStore } from '@sphereon/ssi-sdk.data-store';
|
|
3
|
+
|
|
4
|
+
interface IIssuanceBranding extends IPluginMethodMap {
|
|
5
|
+
ibAddCredentialBranding(args: IAddCredentialBrandingArgs, context: IRequiredContext): Promise<ICredentialBranding>;
|
|
6
|
+
ibGetCredentialBranding(args: IGetCredentialBrandingArgs): Promise<Array<ICredentialBranding>>;
|
|
7
|
+
ibUpdateCredentialBranding(args: IUpdateCredentialBrandingArgs, context: IRequiredContext): Promise<ICredentialBranding>;
|
|
8
|
+
ibRemoveCredentialBranding(args: IRemoveCredentialBrandingArgs, context: IRequiredContext): Promise<IDeletionResult>;
|
|
9
|
+
ibAddCredentialLocaleBranding(args: IAddCredentialLocaleBrandingArgs, context: IRequiredContext): Promise<ICredentialBranding>;
|
|
10
|
+
ibGetCredentialLocaleBranding(args: IGetCredentialLocaleBrandingArgs): Promise<Array<ICredentialLocaleBranding>>;
|
|
11
|
+
ibRemoveCredentialLocaleBranding(args: IRemoveCredentialLocaleBrandingArgs, context: IRequiredContext): Promise<IDeletionResult>;
|
|
12
|
+
ibUpdateCredentialLocaleBranding(args: IUpdateCredentialLocaleBrandingArgs, context: IRequiredContext): Promise<ICredentialLocaleBranding>;
|
|
13
|
+
ibCredentialLocaleBrandingFrom(args: ICredentialBrandingFromArgs, context: IRequiredContext): Promise<IBasicCredentialLocaleBranding>;
|
|
14
|
+
ibAddIssuerBranding(args: IAddIssuerBrandingArgs, context: IRequiredContext): Promise<IIssuerBranding>;
|
|
15
|
+
ibGetIssuerBranding(args: IGetIssuerBrandingArgs): Promise<Array<IIssuerBranding>>;
|
|
16
|
+
ibUpdateIssuerBranding(args: IUpdateIssuerBrandingArgs, context: IRequiredContext): Promise<IIssuerBranding>;
|
|
17
|
+
ibRemoveIssuerBranding(args: IRemoveIssuerBrandingArgs, context: IRequiredContext): Promise<IDeletionResult>;
|
|
18
|
+
ibAddIssuerLocaleBranding(args: IAddIssuerLocaleBrandingArgs, context: IRequiredContext): Promise<IIssuerBranding>;
|
|
19
|
+
ibGetIssuerLocaleBranding(args: IGetIssuerLocaleBrandingArgs): Promise<Array<IIssuerLocaleBranding>>;
|
|
20
|
+
ibRemoveIssuerLocaleBranding(args: IRemoveIssuerLocaleBrandingArgs, context: IRequiredContext): Promise<IDeletionResult>;
|
|
21
|
+
ibUpdateIssuerLocaleBranding(args: IUpdateIssuerLocaleBrandingArgs, context: IRequiredContext): Promise<IIssuerLocaleBranding>;
|
|
22
|
+
ibIssuerLocaleBrandingFrom(args: IIssuerBrandingFromArgs, context: IRequiredContext): Promise<IBasicIssuerLocaleBranding>;
|
|
23
|
+
}
|
|
24
|
+
interface IGetCredentialBrandingArgs {
|
|
25
|
+
filter?: FindCredentialBrandingArgs;
|
|
26
|
+
}
|
|
27
|
+
interface IAdditionalImageAttributes {
|
|
28
|
+
mediaType?: string;
|
|
29
|
+
dataUri?: string;
|
|
30
|
+
dimensions: IBasicImageDimensions;
|
|
31
|
+
}
|
|
32
|
+
interface IUpdateCredentialBrandingArgs {
|
|
33
|
+
credentialBranding: Omit<ICredentialBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
|
|
34
|
+
}
|
|
35
|
+
interface IRemoveCredentialBrandingArgs {
|
|
36
|
+
filter: FindCredentialBrandingArgs;
|
|
37
|
+
}
|
|
38
|
+
interface IUpdateIssuerBrandingArgs {
|
|
39
|
+
issuerBranding: Omit<IIssuerBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
|
|
40
|
+
}
|
|
41
|
+
interface IRemoveIssuerBrandingArgs {
|
|
42
|
+
filter: FindIssuerBrandingArgs;
|
|
43
|
+
}
|
|
44
|
+
interface IAddIssuerBrandingArgs {
|
|
45
|
+
issuerCorrelationId: string;
|
|
46
|
+
localeBranding: Array<IBasicIssuerLocaleBranding>;
|
|
47
|
+
}
|
|
48
|
+
interface IGetIssuerBrandingArgs {
|
|
49
|
+
filter?: FindIssuerBrandingArgs;
|
|
50
|
+
}
|
|
51
|
+
interface IAddCredentialBrandingArgs {
|
|
52
|
+
issuerCorrelationId: string;
|
|
53
|
+
vcHash: string;
|
|
54
|
+
localeBranding: Array<IBasicCredentialLocaleBranding>;
|
|
55
|
+
}
|
|
56
|
+
interface IAddCredentialLocaleBrandingArgs {
|
|
57
|
+
credentialBrandingId: string;
|
|
58
|
+
localeBranding: Array<IBasicCredentialLocaleBranding>;
|
|
59
|
+
}
|
|
60
|
+
interface IAddIssuerLocaleBrandingArgs {
|
|
61
|
+
issuerBrandingId: string;
|
|
62
|
+
localeBranding: Array<IBasicIssuerLocaleBranding>;
|
|
63
|
+
}
|
|
64
|
+
interface IGetCredentialLocaleBrandingArgs {
|
|
65
|
+
filter?: FindCredentialLocaleBrandingArgs;
|
|
66
|
+
}
|
|
67
|
+
interface IGetIssuerLocaleBrandingArgs {
|
|
68
|
+
filter?: FindIssuerLocaleBrandingArgs;
|
|
69
|
+
}
|
|
70
|
+
interface IRemoveCredentialLocaleBrandingArgs {
|
|
71
|
+
filter: FindCredentialLocaleBrandingArgs;
|
|
72
|
+
}
|
|
73
|
+
interface IRemoveIssuerLocaleBrandingArgs {
|
|
74
|
+
filter: FindIssuerLocaleBrandingArgs;
|
|
75
|
+
}
|
|
76
|
+
interface IUpdateCredentialLocaleBrandingArgs {
|
|
77
|
+
localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
|
|
78
|
+
}
|
|
79
|
+
interface IUpdateIssuerLocaleBrandingArgs {
|
|
80
|
+
localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
|
|
81
|
+
}
|
|
82
|
+
interface ICredentialBrandingFromArgs {
|
|
83
|
+
localeBranding: IBasicCredentialLocaleBranding;
|
|
84
|
+
}
|
|
85
|
+
interface IIssuerBrandingFromArgs {
|
|
86
|
+
localeBranding: IBasicIssuerLocaleBranding;
|
|
87
|
+
}
|
|
88
|
+
interface IDeletionResult {
|
|
89
|
+
result: boolean;
|
|
90
|
+
error?: string;
|
|
91
|
+
}
|
|
92
|
+
type IRequiredContext = IAgentContext<never>;
|
|
93
|
+
|
|
94
|
+
declare const issuanceBrandingMethods: Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
* {@inheritDoc IIssuanceBranding}
|
|
97
|
+
*/
|
|
98
|
+
declare class IssuanceBranding implements IAgentPlugin {
|
|
99
|
+
readonly schema: any;
|
|
100
|
+
readonly methods: IIssuanceBranding;
|
|
101
|
+
private readonly store;
|
|
102
|
+
constructor(options: {
|
|
103
|
+
store: AbstractIssuanceBrandingStore;
|
|
104
|
+
});
|
|
105
|
+
/** {@inheritDoc IIssuanceBranding.ibAddCredentialBranding} */
|
|
106
|
+
private ibAddCredentialBranding;
|
|
107
|
+
/** {@inheritDoc IIssuanceBranding.ibGetCredentialBranding} */
|
|
108
|
+
private ibGetCredentialBranding;
|
|
109
|
+
/** {@inheritDoc IIssuanceBranding.ibUpdateCredentialBranding} */
|
|
110
|
+
private ibUpdateCredentialBranding;
|
|
111
|
+
/** {@inheritDoc IIssuanceBranding.ibRemoveCredentialBranding} */
|
|
112
|
+
private ibRemoveCredentialBranding;
|
|
113
|
+
/** {@inheritDoc IIssuanceBranding.ibAddCredentialLocaleBranding} */
|
|
114
|
+
private ibAddCredentialLocaleBranding;
|
|
115
|
+
/** {@inheritDoc IIssuanceBranding.ibGetCredentialLocaleBranding} */
|
|
116
|
+
private ibGetCredentialLocaleBranding;
|
|
117
|
+
/** {@inheritDoc IIssuanceBranding.ibRemoveCredentialLocaleBranding} */
|
|
118
|
+
private ibRemoveCredentialLocaleBranding;
|
|
119
|
+
/** {@inheritDoc IIssuanceBranding.ibUpdateCredentialLocaleBranding} */
|
|
120
|
+
private ibUpdateCredentialLocaleBranding;
|
|
121
|
+
/** {@inheritDoc IIssuanceBranding.ibCredentialLocaleBrandingFrom} */
|
|
122
|
+
private ibCredentialLocaleBrandingFrom;
|
|
123
|
+
/** {@inheritDoc IIssuanceBranding.ibAddIssuerBranding} */
|
|
124
|
+
private ibAddIssuerBranding;
|
|
125
|
+
/** {@inheritDoc IIssuanceBranding.ibGetIssuerBranding} */
|
|
126
|
+
private ibGetIssuerBranding;
|
|
127
|
+
/** {@inheritDoc IIssuanceBranding.ibUpdateIssuerBranding} */
|
|
128
|
+
private ibUpdateIssuerBranding;
|
|
129
|
+
/** {@inheritDoc IIssuanceBranding.inRemoveIssuerBranding} */
|
|
130
|
+
private inRemoveIssuerBranding;
|
|
131
|
+
/** {@inheritDoc IIssuanceBranding.ibAddIssuerLocaleBranding} */
|
|
132
|
+
private ibAddIssuerLocaleBranding;
|
|
133
|
+
/** {@inheritDoc IIssuanceBranding.ibAGetIssuerLocaleBranding} */
|
|
134
|
+
private ibAGetIssuerLocaleBranding;
|
|
135
|
+
/** {@inheritDoc IIssuanceBranding.ibRemoveIssuerLocaleBranding} */
|
|
136
|
+
private ibRemoveIssuerLocaleBranding;
|
|
137
|
+
/** {@inheritDoc IIssuanceBranding.ibUpdateIssuerLocaleBranding} */
|
|
138
|
+
private ibUpdateIssuerLocaleBranding;
|
|
139
|
+
/** {@inheritDoc IIssuanceBranding.ibIssuerLocaleBrandingFrom} */
|
|
140
|
+
private ibIssuerLocaleBrandingFrom;
|
|
141
|
+
private setAdditionalImageAttributes;
|
|
142
|
+
private getAdditionalImageAttributes;
|
|
143
|
+
private extractBase64FromDataURI;
|
|
144
|
+
private getDataTypeFromDataURI;
|
|
145
|
+
}
|
|
146
|
+
|
|
1
147
|
/**
|
|
2
148
|
* @public
|
|
3
149
|
*/
|
|
4
150
|
declare const schema: any;
|
|
5
|
-
|
|
6
|
-
export { IssuanceBranding, issuanceBrandingMethods }
|
|
7
|
-
export * from './types/IIssuanceBranding';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
151
|
+
|
|
152
|
+
export { type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAdditionalImageAttributes, type ICredentialBrandingFromArgs, type IDeletionResult, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IIssuanceBranding, type IIssuerBrandingFromArgs, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRequiredContext, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, IssuanceBranding, issuanceBrandingMethods, schema };
|