@useparagon/connect 2.2.9-experimental-18987.2 → 2.2.9-experimental.2

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.
@@ -187,9 +187,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
187
187
  }): Promise<IntegrationInstallEvent | undefined>;
188
188
  _oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
189
189
  customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
190
- /**
191
- * Display the Paragon Connect modal
192
- */
193
190
  _loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
194
191
  /**
195
192
  * Send a Connect API request. Automatically handles authorization and errors.
@@ -266,8 +263,12 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
266
263
  private getIntegrationForWorkflow;
267
264
  private updateLocalState;
268
265
  /**
269
- * gets the user data from api `/sdk/me`
270
- * userMeta header is passed to support user metadata upsert based on authentication options
266
+ * Sends user metadata to the API via PATCH /sdk/me (request body supports non-ASCII).
267
+ */
268
+ private patchUserMetadata;
269
+ /**
270
+ * Gets the user data from api `/sdk/me`.
271
+ * User metadata is set via PATCH after this succeeds when provided in authenticate (see updateLocalState).
271
272
  */
272
273
  private fetchUserData;
273
274
  /**
@@ -356,7 +357,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
356
357
  * @param userSettingsUpdate - A partial map of input IDs <> values to update the workflow's settings
357
358
  * @param settings - Optional object with selectedCredentialId or selectedConfigurationId
358
359
  * @returns Promise with the new user state and an array of errors, if any were found
359
- * @throws Error if the workflow is not enabled or if the integration is not found
360
+ * @throws Error if the workflow ID is not found in the configuration
360
361
  */
361
362
  updateWorkflowUserSettings(integration: string, workflowId: string, userSettingsUpdate: Record<string, any>, settings?: CredentialConfigOptions): Promise<{
362
363
  userState: AuthenticatedConnectUser;