@settlemint/sdk-portal 2.4.0-prf9d91e91 → 2.4.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 (2) hide show
  1. package/README.md +2 -10
  2. package/package.json +3 -5
package/README.md CHANGED
@@ -926,20 +926,12 @@ Options for the GraphQL WebSocket client
926
926
 
927
927
  #### ClientOptions
928
928
 
929
- > **ClientOptions** = `object`
929
+ > **ClientOptions** = `z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>
930
930
 
931
931
  Defined in: [sdk/portal/src/portal.ts:25](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L25)
932
932
 
933
933
  Type representing the validated client options.
934
934
 
935
- ##### Type declaration
936
-
937
- | Name | Type | Default value | Defined in |
938
- | ------ | ------ | ------ | ------ |
939
- | <a id="accesstoken-2"></a> `accessToken?` | `string` | - | [sdk/portal/src/portal.ts:18](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L18) |
940
- | <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/portal/src/portal.ts:19](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L19) |
941
- | <a id="instance"></a> `instance` | `string` | `UrlOrPathSchema` | [sdk/portal/src/portal.ts:17](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L17) |
942
-
943
935
  ***
944
936
 
945
937
  #### RequestConfig
@@ -954,7 +946,7 @@ Configuration options for the GraphQL client, excluding 'url' and 'exchanges'.
954
946
 
955
947
  #### ClientOptionsSchema
956
948
 
957
- > `const` **ClientOptionsSchema**: `ZodObject`\<[`ClientOptions`](#clientoptions)\>
949
+ > `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `cache`: `ZodOptional`\<`ZodEnum`\<\{ `default`: `"default"`; `force-cache`: `"force-cache"`; `no-cache`: `"no-cache"`; `no-store`: `"no-store"`; `only-if-cached`: `"only-if-cached"`; `reload`: `"reload"`; \}\>\>; `instance`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
958
950
 
959
951
  Defined in: [sdk/portal/src/portal.ts:16](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L16)
960
952
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-portal",
3
3
  "description": "Portal API client module for SettleMint SDK, providing access to smart contract portal services and APIs",
4
- "version": "2.4.0-prf9d91e91",
4
+ "version": "2.4.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -20,9 +20,7 @@
20
20
  "url": "https://github.com/settlemint/sdk/issues",
21
21
  "email": "support@settlemint.com"
22
22
  },
23
- "files": [
24
- "dist"
25
- ],
23
+ "files": ["dist"],
26
24
  "main": "./dist/portal.cjs",
27
25
  "module": "./dist/portal.js",
28
26
  "types": "./dist/portal.d.ts",
@@ -58,7 +56,7 @@
58
56
  "dependencies": {
59
57
  "gql.tada": "^1",
60
58
  "graphql-ws": "^6",
61
- "@settlemint/sdk-utils": "2.4.0-prf9d91e91",
59
+ "@settlemint/sdk-utils": "2.4.0",
62
60
  "graphql-request": "^7",
63
61
  "zod": "^3.25.0"
64
62
  },