@credenza3/partner-sdk 0.0.2-alpha.6 → 0.0.2-alpha.8
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/esm/accounts/client/index.d.ts +1 -0
- package/dist/esm/accounts/client/jwt-auth/index.d.ts +1 -0
- package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.d.ts +1 -1
- package/dist/esm/accounts/index.d.ts +1 -0
- package/dist/esm/accounts/oauth/index.d.ts +1 -0
- package/dist/{types → esm}/accounts/oauth/oauth.d.ts +1 -1
- package/dist/esm/accounts/user/index.d.ts +1 -0
- package/dist/{types → esm}/accounts/user/user.d.ts +1 -1
- package/dist/esm/api/index.d.ts +4 -0
- package/dist/esm/api/nfc-id/index.d.ts +2 -0
- package/dist/{types → esm}/api/nfc-id/nfc-id.d.ts +1 -1
- package/dist/esm/api/passport-id/index.d.ts +1 -0
- package/dist/esm/api/promo/index.d.ts +2 -0
- package/dist/esm/api/promo/offers/index.d.ts +1 -0
- package/dist/{types → esm}/api/promo/offers/offers.d.ts +1 -1
- package/dist/esm/api/promo/rules/index.d.ts +1 -0
- package/dist/{types → esm}/api/promo/rules/rules.d.ts +1 -1
- package/dist/{types → esm}/credenza-partner-sdk.d.ts +2 -2
- package/dist/esm/evm/account/index.d.ts +1 -0
- package/dist/esm/evm/contract/index.d.ts +1 -0
- package/dist/esm/evm/index.d.ts +3 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/{types → esm}/lib/credentials/credentials.d.ts +1 -1
- package/dist/esm/lib/credentials/index.d.ts +2 -0
- package/dist/esm/lib/logging/index.d.ts +1 -0
- package/dist/esm/lib/obj/index.d.ts +1 -0
- package/dist/esm/lib/sdk-env/index.d.ts +3 -0
- package/dist/{types → esm}/lib/sdk-env/sdk-env.d.ts +1 -1
- package/dist/{types → esm}/lib/sdk-env/sdk-env.types.d.ts +1 -1
- package/dist/esm/lib/ws/index.d.ts +1 -0
- package/dist/esm/sui/account/index.d.ts +1 -0
- package/dist/esm/sui/index.d.ts +3 -0
- package/dist/esm/sui/zk/account/index.d.ts +1 -0
- package/dist/esm/sui/zk/index.d.ts +1 -0
- package/package.json +21 -95
- package/dist/types/accounts/client/index.d.ts +0 -1
- package/dist/types/accounts/client/jwt-auth/index.d.ts +0 -1
- package/dist/types/accounts/index.d.ts +0 -1
- package/dist/types/accounts/oauth/index.d.ts +0 -1
- package/dist/types/accounts/user/index.d.ts +0 -1
- package/dist/types/api/index.d.ts +0 -4
- package/dist/types/api/nfc-id/index.d.ts +0 -2
- package/dist/types/api/passport-id/index.d.ts +0 -1
- package/dist/types/api/promo/index.d.ts +0 -2
- package/dist/types/api/promo/offers/index.d.ts +0 -1
- package/dist/types/api/promo/rules/index.d.ts +0 -1
- package/dist/types/evm/account/index.d.ts +0 -1
- package/dist/types/evm/contract/index.d.ts +0 -1
- package/dist/types/evm/index.d.ts +0 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/types/lib/credentials/index.d.ts +0 -2
- package/dist/types/lib/logging/index.d.ts +0 -1
- package/dist/types/lib/obj/index.d.ts +0 -1
- package/dist/types/lib/sdk-env/index.d.ts +0 -3
- package/dist/types/lib/ws/index.d.ts +0 -1
- package/dist/types/sui/account/index.d.ts +0 -1
- package/dist/types/sui/index.d.ts +0 -3
- package/dist/types/sui/zk/account/index.d.ts +0 -1
- package/dist/types/sui/zk/index.d.ts +0 -1
- /package/dist/{types → esm}/accounts/accounts.d.ts +0 -0
- /package/dist/{types → esm}/accounts/client/client.d.ts +0 -0
- /package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.spec.d.ts +0 -0
- /package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.types.d.ts +0 -0
- /package/dist/{types → esm}/accounts/oauth/oauth.spec.d.ts +0 -0
- /package/dist/{types → esm}/accounts/oauth/oauth.types.d.ts +0 -0
- /package/dist/{types → esm}/accounts/user/user.types.d.ts +0 -0
- /package/dist/{types → esm}/api/api.d.ts +0 -0
- /package/dist/{types → esm}/api/nfc-id/nfc-id.types.d.ts +0 -0
- /package/dist/{types → esm}/api/passport-id/passport-id.d.ts +0 -0
- /package/dist/{types → esm}/api/promo/offers/offers.spec.d.ts +0 -0
- /package/dist/{types → esm}/api/promo/offers/offers.types.d.ts +0 -0
- /package/dist/{types → esm}/api/promo/rules/rules.spec.d.ts +0 -0
- /package/dist/{types → esm}/api/promo/rules/rules.types.d.ts +0 -0
- /package/dist/{types → esm}/evm/account/account.d.ts +0 -0
- /package/dist/{types → esm}/evm/contract/contract.d.ts +0 -0
- /package/dist/{types → esm}/evm/evm.d.ts +0 -0
- /package/dist/{types → esm}/lib/credentials/credentials.types.d.ts +0 -0
- /package/dist/{types → esm}/lib/logging/logging.d.ts +0 -0
- /package/dist/{types → esm}/lib/obj/obj.d.ts +0 -0
- /package/dist/{types → esm}/lib/obj/obj.spec.d.ts +0 -0
- /package/dist/{types → esm}/lib/sdk-env/sdk-env.constants.d.ts +0 -0
- /package/dist/{types → esm}/lib/ws/ws.d.ts +0 -0
- /package/dist/{types → esm}/sui/account/account.d.ts +0 -0
- /package/dist/{types → esm}/sui/sui.d.ts +0 -0
- /package/dist/{types → esm}/sui/zk/account/account.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './jwt-auth.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TJwtAuthValidator, TJwtAuthValidatorParams, TJwtAuthUpdateValidatorParams } from './jwt-auth.types';
|
|
1
|
+
import type { TJwtAuthValidator, TJwtAuthValidatorParams, TJwtAuthUpdateValidatorParams } from './jwt-auth.types.js';
|
|
2
2
|
export declare function addJwtValidator(params: TJwtAuthValidatorParams): Promise<TJwtAuthValidator>;
|
|
3
3
|
export declare function updateJwtValidator(id: string, params: TJwtAuthUpdateValidatorParams): Promise<TJwtAuthValidator>;
|
|
4
4
|
export declare function removeJwtValidator(id: string): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './accounts.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './oauth.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TTokenResponse, TExchangeTokenParams } from './oauth.types';
|
|
1
|
+
import type { TTokenResponse, TExchangeTokenParams } from './oauth.types.js';
|
|
2
2
|
export declare function exchangeCodeForToken(params: TExchangeTokenParams): Promise<TTokenResponse>;
|
|
3
3
|
export declare function refreshToken(refreshTokenValue: string): Promise<TTokenResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TOAuthAccountInfo } from './user.types';
|
|
1
|
+
import type { TOAuthAccountInfo } from './user.types.js';
|
|
2
2
|
export declare function getAccountInfo(sub: string): Promise<TOAuthAccountInfo>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TNfcId, TUpdateNfcId } from './nfc-id.types';
|
|
1
|
+
import { TNfcId, TUpdateNfcId } from './nfc-id.types.js';
|
|
2
2
|
export declare function addNfcId(params: TNfcId): Promise<TNfcId>;
|
|
3
3
|
export declare function updateNfcId(serialNumber: string, params: TUpdateNfcId): Promise<boolean>;
|
|
4
4
|
export declare function removeNfcId(serialNumber: string): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './passport-id.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './offers.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCreateOfferParams, TUpdateOfferParams, TOffer, TOfferRss } from './offers.types';
|
|
1
|
+
import { TCreateOfferParams, TUpdateOfferParams, TOffer, TOfferRss } from './offers.types.js';
|
|
2
2
|
export declare function addPromoOffer(params: TCreateOfferParams): Promise<TOffer>;
|
|
3
3
|
export declare function updatePromoOffer(id: string, params: TUpdateOfferParams): Promise<TOffer>;
|
|
4
4
|
export declare function removePromoOffer(id: string): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rules.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCreateRuleParams, TUpdateRuleParams, TRule } from './rules.types';
|
|
1
|
+
import { TCreateRuleParams, TUpdateRuleParams, TRule } from './rules.types.js';
|
|
2
2
|
export declare function addPromoRule(params: TCreateRuleParams): Promise<TRule>;
|
|
3
3
|
export declare function updatePromoRule(id: string, params: TUpdateRuleParams): Promise<TRule>;
|
|
4
4
|
export declare function removePromoRule(id: string): Promise<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TCredentials } from './lib/credentials';
|
|
2
|
-
import { TSdkEnv } from './lib/sdk-env';
|
|
1
|
+
import { TCredentials } from './lib/credentials/index.js';
|
|
2
|
+
import { TSdkEnv } from './lib/sdk-env/index.js';
|
|
3
3
|
export declare function useAuth(credentials: TCredentials): void;
|
|
4
4
|
export declare function useEnv(sdkEnv: TSdkEnv): void;
|
|
5
5
|
export declare function useDebug(enableDebug: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contract.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './credenza-partner-sdk.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCredentials } from './credentials.types';
|
|
1
|
+
import { TCredentials } from './credentials.types.js';
|
|
2
2
|
export declare function setCredentials(credentialsInput: TCredentials): void;
|
|
3
3
|
export declare function getCredentials(): TCredentials;
|
|
4
4
|
export declare function getBasicToken(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './logging.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './obj.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SDK_ENV } from './sdk-env.constants';
|
|
1
|
+
import { SDK_ENV } from './sdk-env.constants.js';
|
|
2
2
|
export type TSdkEnv = (typeof SDK_ENV)[keyof typeof SDK_ENV];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ws.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@credenza3/partner-sdk",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.8",
|
|
4
4
|
"description": "Credenza partner sdk",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
7
|
-
"types": "
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/credenza-web3/credenza-partner-sdk.git"
|
|
@@ -40,101 +40,27 @@
|
|
|
40
40
|
"typescript": "^5.6.3"
|
|
41
41
|
},
|
|
42
42
|
"exports": {
|
|
43
|
-
"./accounts/client/jwt-auth": {
|
|
44
|
-
"import": "./dist/esm/accounts/client/jwt-auth/index.js",
|
|
45
|
-
"require": "./dist/cjs/accounts/client/jwt-auth/index.js",
|
|
46
|
-
"types": "./dist/types/accounts/client/jwt-auth/index.d.ts"
|
|
47
|
-
},
|
|
48
|
-
"./api/promo/offers": {
|
|
49
|
-
"import": "./dist/esm/api/promo/offers/index.js",
|
|
50
|
-
"require": "./dist/cjs/api/promo/offers/index.js",
|
|
51
|
-
"types": "./dist/types/api/promo/offers/index.d.ts"
|
|
52
|
-
},
|
|
53
|
-
"./api/promo/rules": {
|
|
54
|
-
"import": "./dist/esm/api/promo/rules/index.js",
|
|
55
|
-
"require": "./dist/cjs/api/promo/rules/index.js",
|
|
56
|
-
"types": "./dist/types/api/promo/rules/index.d.ts"
|
|
57
|
-
},
|
|
58
|
-
"./sui/zk/account": {
|
|
59
|
-
"import": "./dist/esm/sui/zk/account/index.js",
|
|
60
|
-
"require": "./dist/cjs/sui/zk/account/index.js",
|
|
61
|
-
"types": "./dist/types/sui/zk/account/index.d.ts"
|
|
62
|
-
},
|
|
63
|
-
"./accounts/client": {
|
|
64
|
-
"import": "./dist/esm/accounts/client/index.js",
|
|
65
|
-
"require": "./dist/cjs/accounts/client/index.js",
|
|
66
|
-
"types": "./dist/types/accounts/client/index.d.ts"
|
|
67
|
-
},
|
|
68
|
-
"./accounts/oauth": {
|
|
69
|
-
"import": "./dist/esm/accounts/oauth/index.js",
|
|
70
|
-
"require": "./dist/cjs/accounts/oauth/index.js",
|
|
71
|
-
"types": "./dist/types/accounts/oauth/index.d.ts"
|
|
72
|
-
},
|
|
73
|
-
"./accounts/user": {
|
|
74
|
-
"import": "./dist/esm/accounts/user/index.js",
|
|
75
|
-
"require": "./dist/cjs/accounts/user/index.js",
|
|
76
|
-
"types": "./dist/types/accounts/user/index.d.ts"
|
|
77
|
-
},
|
|
78
|
-
"./api/nfc-id": {
|
|
79
|
-
"import": "./dist/esm/api/nfc-id/index.js",
|
|
80
|
-
"require": "./dist/cjs/api/nfc-id/index.js",
|
|
81
|
-
"types": "./dist/types/api/nfc-id/index.d.ts"
|
|
82
|
-
},
|
|
83
|
-
"./api/passport-id": {
|
|
84
|
-
"import": "./dist/esm/api/passport-id/index.js",
|
|
85
|
-
"require": "./dist/cjs/api/passport-id/index.js",
|
|
86
|
-
"types": "./dist/types/api/passport-id/index.d.ts"
|
|
87
|
-
},
|
|
88
|
-
"./api/promo": {
|
|
89
|
-
"import": "./dist/esm/api/promo/index.js",
|
|
90
|
-
"require": "./dist/cjs/api/promo/index.js",
|
|
91
|
-
"types": "./dist/types/api/promo/index.d.ts"
|
|
92
|
-
},
|
|
93
|
-
"./evm/account": {
|
|
94
|
-
"import": "./dist/esm/evm/account/index.js",
|
|
95
|
-
"require": "./dist/cjs/evm/account/index.js",
|
|
96
|
-
"types": "./dist/types/evm/account/index.d.ts"
|
|
97
|
-
},
|
|
98
|
-
"./evm/contract": {
|
|
99
|
-
"import": "./dist/esm/evm/contract/index.js",
|
|
100
|
-
"require": "./dist/cjs/evm/contract/index.js",
|
|
101
|
-
"types": "./dist/types/evm/contract/index.d.ts"
|
|
102
|
-
},
|
|
103
|
-
"./sui/account": {
|
|
104
|
-
"import": "./dist/esm/sui/account/index.js",
|
|
105
|
-
"require": "./dist/cjs/sui/account/index.js",
|
|
106
|
-
"types": "./dist/types/sui/account/index.d.ts"
|
|
107
|
-
},
|
|
108
|
-
"./sui/zk": {
|
|
109
|
-
"import": "./dist/esm/sui/zk/index.js",
|
|
110
|
-
"require": "./dist/cjs/sui/zk/index.js",
|
|
111
|
-
"types": "./dist/types/sui/zk/index.d.ts"
|
|
112
|
-
},
|
|
113
|
-
"./package.json": "./package.json",
|
|
114
|
-
"./accounts": {
|
|
115
|
-
"import": "./dist/esm/accounts/index.js",
|
|
116
|
-
"require": "./dist/cjs/accounts/index.js",
|
|
117
|
-
"types": "./dist/types/accounts/index.d.ts"
|
|
118
|
-
},
|
|
119
|
-
"./api": {
|
|
120
|
-
"import": "./dist/esm/api/index.js",
|
|
121
|
-
"require": "./dist/cjs/api/index.js",
|
|
122
|
-
"types": "./dist/types/api/index.d.ts"
|
|
123
|
-
},
|
|
124
|
-
"./evm": {
|
|
125
|
-
"import": "./dist/esm/evm/index.js",
|
|
126
|
-
"require": "./dist/cjs/evm/index.js",
|
|
127
|
-
"types": "./dist/types/evm/index.d.ts"
|
|
128
|
-
},
|
|
129
|
-
"./sui": {
|
|
130
|
-
"import": "./dist/esm/sui/index.js",
|
|
131
|
-
"require": "./dist/cjs/sui/index.js",
|
|
132
|
-
"types": "./dist/types/sui/index.d.ts"
|
|
133
|
-
},
|
|
134
43
|
".": {
|
|
135
44
|
"import": "./dist/esm/index.js",
|
|
136
|
-
"require": "./dist/cjs/index.js"
|
|
137
|
-
|
|
45
|
+
"require": "./dist/cjs/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json",
|
|
48
|
+
"./*": {
|
|
49
|
+
"import": "./dist/esm/*.js",
|
|
50
|
+
"require": "./dist/cjs/*.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"typesVersions": {
|
|
54
|
+
"*": {
|
|
55
|
+
"dist/esm/index.d.ts": [
|
|
56
|
+
"dist/esm/index.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"dist/cjs/index.d.ts": [
|
|
59
|
+
"dist/esm/index.d.ts"
|
|
60
|
+
],
|
|
61
|
+
"*": [
|
|
62
|
+
"dist/esm/*"
|
|
63
|
+
]
|
|
138
64
|
}
|
|
139
65
|
},
|
|
140
66
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './client';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './jwt-auth';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './accounts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './oauth';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './user';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './passport-id';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './offers';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './rules';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './account';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './contract';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './credenza-partner-sdk';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './logging';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './obj';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ws';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './account';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './account';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './account';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|