mftsccs-node 0.2.20 → 0.2.22

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/README.md CHANGED
@@ -125,12 +125,21 @@ Initialize the CCS system before performing any operations:
125
125
 
126
126
  ```typescript
127
127
  import { init, updateAccessToken } from 'mftsccs-node';
128
+ import { CCSConfig } from 'mftsccs-node';
128
129
 
129
- // Initialize with backend URLs and auth token
130
+ // Access control is disabled by default (all access allowed).
131
+ // Enable it explicitly via CCSConfig when needed.
132
+ const config = new CCSConfig({
133
+ accessToken: 'your-bearer-access-token',
134
+ enableAccessControl: true
135
+ });
136
+
137
+ // Initialize with backend URLs and config
130
138
  init(
131
139
  'https://api.freeschema.com', // Base API URL
132
- 'https://ai.freeschema.com', // AI service URL
133
- 'your-bearer-access-token' // Authentication token
140
+ '', // Optional Node URL
141
+ 'MyApp', // Application name
142
+ config
134
143
  );
135
144
 
136
145
  // Update token later if needed