@slotchain/sdk 1.2.1 → 1.2.4

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.
@@ -55,6 +55,7 @@ export class DocumentClient {
55
55
  form.append('file', blob, options.filename);
56
56
  form.append('related_entity_type', options.related_entity_type);
57
57
  form.append('related_entity_id', options.related_entity_id);
58
+ if (options.tenant_id) form.append('tenant_id', options.tenant_id);
58
59
  if (options.label) form.append('label', options.label);
59
60
  if (options.mime_type) form.append('mime_type', options.mime_type);
60
61
  if (options.metadata) form.append('metadata', JSON.stringify(options.metadata));
package/src/types/api.ts CHANGED
@@ -276,6 +276,8 @@ export interface FindOrCreateCustomerOptions {
276
276
  customer_type?: 'individual' | 'organization';
277
277
  is_guest?: boolean;
278
278
  metadata?: Record<string, unknown>;
279
+ /** IDP user ID (Auth0 sub, Clerk userId, etc.) — if provided, a customer_users row is upserted server-side */
280
+ idp_id?: string;
279
281
  }
280
282
 
281
283
  export interface Flow {
@@ -390,6 +392,8 @@ export interface ArtifactWithUrl extends Artifact {
390
392
  }
391
393
 
392
394
  export interface ListArtifactsOptions {
395
+ /** Required by the API to scope results to the correct tenant */
396
+ tenant_id?: string;
393
397
  related_entity_type?: ArtifactEntityType;
394
398
  related_entity_id?: string;
395
399
  /** Include signed download URLs in each result (adds latency) */
@@ -408,6 +412,8 @@ export interface UploadArtifactOptions {
408
412
  /** The entity this artifact belongs to */
409
413
  related_entity_type: ArtifactEntityType;
410
414
  related_entity_id: string;
415
+ /** Tenant ID — required by the API to scope the artifact */
416
+ tenant_id?: string;
411
417
  /** Optional label for the UI, e.g. "CV", "Invoice" */
412
418
  label?: string;
413
419
  mime_type?: string;