@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.
Files changed (85) hide show
  1. package/dist/esm/accounts/client/index.d.ts +1 -0
  2. package/dist/esm/accounts/client/jwt-auth/index.d.ts +1 -0
  3. package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.d.ts +1 -1
  4. package/dist/esm/accounts/index.d.ts +1 -0
  5. package/dist/esm/accounts/oauth/index.d.ts +1 -0
  6. package/dist/{types → esm}/accounts/oauth/oauth.d.ts +1 -1
  7. package/dist/esm/accounts/user/index.d.ts +1 -0
  8. package/dist/{types → esm}/accounts/user/user.d.ts +1 -1
  9. package/dist/esm/api/index.d.ts +4 -0
  10. package/dist/esm/api/nfc-id/index.d.ts +2 -0
  11. package/dist/{types → esm}/api/nfc-id/nfc-id.d.ts +1 -1
  12. package/dist/esm/api/passport-id/index.d.ts +1 -0
  13. package/dist/esm/api/promo/index.d.ts +2 -0
  14. package/dist/esm/api/promo/offers/index.d.ts +1 -0
  15. package/dist/{types → esm}/api/promo/offers/offers.d.ts +1 -1
  16. package/dist/esm/api/promo/rules/index.d.ts +1 -0
  17. package/dist/{types → esm}/api/promo/rules/rules.d.ts +1 -1
  18. package/dist/{types → esm}/credenza-partner-sdk.d.ts +2 -2
  19. package/dist/esm/evm/account/index.d.ts +1 -0
  20. package/dist/esm/evm/contract/index.d.ts +1 -0
  21. package/dist/esm/evm/index.d.ts +3 -0
  22. package/dist/esm/index.d.ts +1 -0
  23. package/dist/{types → esm}/lib/credentials/credentials.d.ts +1 -1
  24. package/dist/esm/lib/credentials/index.d.ts +2 -0
  25. package/dist/esm/lib/logging/index.d.ts +1 -0
  26. package/dist/esm/lib/obj/index.d.ts +1 -0
  27. package/dist/esm/lib/sdk-env/index.d.ts +3 -0
  28. package/dist/{types → esm}/lib/sdk-env/sdk-env.d.ts +1 -1
  29. package/dist/{types → esm}/lib/sdk-env/sdk-env.types.d.ts +1 -1
  30. package/dist/esm/lib/ws/index.d.ts +1 -0
  31. package/dist/esm/sui/account/index.d.ts +1 -0
  32. package/dist/esm/sui/index.d.ts +3 -0
  33. package/dist/esm/sui/zk/account/index.d.ts +1 -0
  34. package/dist/esm/sui/zk/index.d.ts +1 -0
  35. package/package.json +21 -95
  36. package/dist/types/accounts/client/index.d.ts +0 -1
  37. package/dist/types/accounts/client/jwt-auth/index.d.ts +0 -1
  38. package/dist/types/accounts/index.d.ts +0 -1
  39. package/dist/types/accounts/oauth/index.d.ts +0 -1
  40. package/dist/types/accounts/user/index.d.ts +0 -1
  41. package/dist/types/api/index.d.ts +0 -4
  42. package/dist/types/api/nfc-id/index.d.ts +0 -2
  43. package/dist/types/api/passport-id/index.d.ts +0 -1
  44. package/dist/types/api/promo/index.d.ts +0 -2
  45. package/dist/types/api/promo/offers/index.d.ts +0 -1
  46. package/dist/types/api/promo/rules/index.d.ts +0 -1
  47. package/dist/types/evm/account/index.d.ts +0 -1
  48. package/dist/types/evm/contract/index.d.ts +0 -1
  49. package/dist/types/evm/index.d.ts +0 -3
  50. package/dist/types/index.d.ts +0 -1
  51. package/dist/types/lib/credentials/index.d.ts +0 -2
  52. package/dist/types/lib/logging/index.d.ts +0 -1
  53. package/dist/types/lib/obj/index.d.ts +0 -1
  54. package/dist/types/lib/sdk-env/index.d.ts +0 -3
  55. package/dist/types/lib/ws/index.d.ts +0 -1
  56. package/dist/types/sui/account/index.d.ts +0 -1
  57. package/dist/types/sui/index.d.ts +0 -3
  58. package/dist/types/sui/zk/account/index.d.ts +0 -1
  59. package/dist/types/sui/zk/index.d.ts +0 -1
  60. /package/dist/{types → esm}/accounts/accounts.d.ts +0 -0
  61. /package/dist/{types → esm}/accounts/client/client.d.ts +0 -0
  62. /package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.spec.d.ts +0 -0
  63. /package/dist/{types → esm}/accounts/client/jwt-auth/jwt-auth.types.d.ts +0 -0
  64. /package/dist/{types → esm}/accounts/oauth/oauth.spec.d.ts +0 -0
  65. /package/dist/{types → esm}/accounts/oauth/oauth.types.d.ts +0 -0
  66. /package/dist/{types → esm}/accounts/user/user.types.d.ts +0 -0
  67. /package/dist/{types → esm}/api/api.d.ts +0 -0
  68. /package/dist/{types → esm}/api/nfc-id/nfc-id.types.d.ts +0 -0
  69. /package/dist/{types → esm}/api/passport-id/passport-id.d.ts +0 -0
  70. /package/dist/{types → esm}/api/promo/offers/offers.spec.d.ts +0 -0
  71. /package/dist/{types → esm}/api/promo/offers/offers.types.d.ts +0 -0
  72. /package/dist/{types → esm}/api/promo/rules/rules.spec.d.ts +0 -0
  73. /package/dist/{types → esm}/api/promo/rules/rules.types.d.ts +0 -0
  74. /package/dist/{types → esm}/evm/account/account.d.ts +0 -0
  75. /package/dist/{types → esm}/evm/contract/contract.d.ts +0 -0
  76. /package/dist/{types → esm}/evm/evm.d.ts +0 -0
  77. /package/dist/{types → esm}/lib/credentials/credentials.types.d.ts +0 -0
  78. /package/dist/{types → esm}/lib/logging/logging.d.ts +0 -0
  79. /package/dist/{types → esm}/lib/obj/obj.d.ts +0 -0
  80. /package/dist/{types → esm}/lib/obj/obj.spec.d.ts +0 -0
  81. /package/dist/{types → esm}/lib/sdk-env/sdk-env.constants.d.ts +0 -0
  82. /package/dist/{types → esm}/lib/ws/ws.d.ts +0 -0
  83. /package/dist/{types → esm}/sui/account/account.d.ts +0 -0
  84. /package/dist/{types → esm}/sui/sui.d.ts +0 -0
  85. /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>;
@@ -0,0 +1,4 @@
1
+ export * from './api.js';
2
+ export * from './nfc-id/index.js';
3
+ export * from './passport-id/index.js';
4
+ export * from './promo/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './nfc-id.js';
2
+ export * from './nfc-id.types.js';
@@ -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,2 @@
1
+ export * from './rules/index.js';
2
+ export * from './offers/index.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,3 @@
1
+ export * from './evm.js';
2
+ export * from './account/index.js';
3
+ export * from './contract/index.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,2 @@
1
+ export * from './credentials.js';
2
+ export * from './credentials.types.js';
@@ -0,0 +1 @@
1
+ export * from './logging.js';
@@ -0,0 +1 @@
1
+ export * from './obj.js';
@@ -0,0 +1,3 @@
1
+ export * from './sdk-env.js';
2
+ export * from './sdk-env.types.js';
3
+ export * from './sdk-env.constants.js';
@@ -1,3 +1,3 @@
1
- import { TSdkEnv } from './sdk-env.types';
1
+ import { TSdkEnv } from './sdk-env.types.js';
2
2
  export declare function getSdkEnv(): TSdkEnv;
3
3
  export declare function setSdkEnv(sdkEnvironment: TSdkEnv): void;
@@ -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,3 @@
1
+ export * from './sui.js';
2
+ export * from './account/index.js';
3
+ export * as zk from './zk/index.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.6",
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": "./dist/types/index.d.ts",
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
- "types": "./dist/types/index.d.ts"
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,4 +0,0 @@
1
- export * from './api';
2
- export * from './nfc-id';
3
- export * from './passport-id';
4
- export * from './promo';
@@ -1,2 +0,0 @@
1
- export * from './nfc-id';
2
- export * from './nfc-id.types';
@@ -1 +0,0 @@
1
- export * from './passport-id';
@@ -1,2 +0,0 @@
1
- export * from './rules';
2
- export * from './offers';
@@ -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';
@@ -1,3 +0,0 @@
1
- export * from './evm';
2
- export * from './account';
3
- export * from './contract';
@@ -1 +0,0 @@
1
- export * from './credenza-partner-sdk';
@@ -1,2 +0,0 @@
1
- export * from './credentials';
2
- export * from './credentials.types';
@@ -1 +0,0 @@
1
- export * from './logging';
@@ -1 +0,0 @@
1
- export * from './obj';
@@ -1,3 +0,0 @@
1
- export * from './sdk-env';
2
- export * from './sdk-env.types';
3
- export * from './sdk-env.constants';
@@ -1 +0,0 @@
1
- export * from './ws';
@@ -1 +0,0 @@
1
- export * from './account';
@@ -1,3 +0,0 @@
1
- export * from './sui';
2
- export * from './account';
3
- export * as zk from './zk';
@@ -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