@memnexus-ai/typescript-sdk 1.11.0 → 1.13.6
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 +141 -130
- package/dist/index.d.ts +618 -1
- package/dist/index.js +480 -2
- package/dist/index.mjs +476 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -8407,6 +8407,622 @@ declare const listCommunitiesOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
|
8407
8407
|
*/
|
|
8408
8408
|
type ListCommunitiesOkResponsePagination = z.infer<typeof listCommunitiesOkResponsePagination>;
|
|
8409
8409
|
|
|
8410
|
+
/**
|
|
8411
|
+
* Zod schema for the SyncUserRequest model.
|
|
8412
|
+
* Defines the structure and validation rules for this data type.
|
|
8413
|
+
* This is the shape used in application code - what developers interact with.
|
|
8414
|
+
*/
|
|
8415
|
+
declare const syncUserRequest: z.ZodLazy<z.ZodObject<{
|
|
8416
|
+
workosId: z.ZodString;
|
|
8417
|
+
email: z.ZodString;
|
|
8418
|
+
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8419
|
+
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8420
|
+
profilePictureUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8421
|
+
}, "strip", z.ZodTypeAny, {
|
|
8422
|
+
workosId: string;
|
|
8423
|
+
email: string;
|
|
8424
|
+
firstName?: string | null | undefined;
|
|
8425
|
+
lastName?: string | null | undefined;
|
|
8426
|
+
profilePictureUrl?: string | null | undefined;
|
|
8427
|
+
}, {
|
|
8428
|
+
workosId: string;
|
|
8429
|
+
email: string;
|
|
8430
|
+
firstName?: string | null | undefined;
|
|
8431
|
+
lastName?: string | null | undefined;
|
|
8432
|
+
profilePictureUrl?: string | null | undefined;
|
|
8433
|
+
}>>;
|
|
8434
|
+
/**
|
|
8435
|
+
*
|
|
8436
|
+
* @typedef {SyncUserRequest} syncUserRequest
|
|
8437
|
+
* @property {string} - WorkOS user ID
|
|
8438
|
+
* @property {string}
|
|
8439
|
+
* @property {string}
|
|
8440
|
+
* @property {string}
|
|
8441
|
+
* @property {string}
|
|
8442
|
+
*/
|
|
8443
|
+
type SyncUserRequest = z.infer<typeof syncUserRequest>;
|
|
8444
|
+
|
|
8445
|
+
/**
|
|
8446
|
+
* Zod schema for the SyncUserOkResponse model.
|
|
8447
|
+
* Defines the structure and validation rules for this data type.
|
|
8448
|
+
* This is the shape used in application code - what developers interact with.
|
|
8449
|
+
*/
|
|
8450
|
+
declare const syncUserOkResponse: z.ZodLazy<z.ZodObject<{
|
|
8451
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8452
|
+
id: z.ZodString;
|
|
8453
|
+
email: z.ZodString;
|
|
8454
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8455
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8456
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
|
8457
|
+
plan: z.ZodString;
|
|
8458
|
+
memoryLimit: z.ZodNumber;
|
|
8459
|
+
retentionDays: z.ZodNullable<z.ZodNumber>;
|
|
8460
|
+
createdAt: z.ZodString;
|
|
8461
|
+
updatedAt: z.ZodString;
|
|
8462
|
+
}, "strip", z.ZodTypeAny, {
|
|
8463
|
+
id: string;
|
|
8464
|
+
createdAt: string;
|
|
8465
|
+
updatedAt: string;
|
|
8466
|
+
email: string;
|
|
8467
|
+
firstName: string | null;
|
|
8468
|
+
lastName: string | null;
|
|
8469
|
+
profilePictureUrl: string | null;
|
|
8470
|
+
plan: string;
|
|
8471
|
+
memoryLimit: number;
|
|
8472
|
+
retentionDays: number | null;
|
|
8473
|
+
}, {
|
|
8474
|
+
id: string;
|
|
8475
|
+
createdAt: string;
|
|
8476
|
+
updatedAt: string;
|
|
8477
|
+
email: string;
|
|
8478
|
+
firstName: string | null;
|
|
8479
|
+
lastName: string | null;
|
|
8480
|
+
profilePictureUrl: string | null;
|
|
8481
|
+
plan: string;
|
|
8482
|
+
memoryLimit: number;
|
|
8483
|
+
retentionDays: number | null;
|
|
8484
|
+
}>>>;
|
|
8485
|
+
created: z.ZodOptional<z.ZodBoolean>;
|
|
8486
|
+
}, "strip", z.ZodTypeAny, {
|
|
8487
|
+
data?: {
|
|
8488
|
+
id: string;
|
|
8489
|
+
createdAt: string;
|
|
8490
|
+
updatedAt: string;
|
|
8491
|
+
email: string;
|
|
8492
|
+
firstName: string | null;
|
|
8493
|
+
lastName: string | null;
|
|
8494
|
+
profilePictureUrl: string | null;
|
|
8495
|
+
plan: string;
|
|
8496
|
+
memoryLimit: number;
|
|
8497
|
+
retentionDays: number | null;
|
|
8498
|
+
} | undefined;
|
|
8499
|
+
created?: boolean | undefined;
|
|
8500
|
+
}, {
|
|
8501
|
+
data?: {
|
|
8502
|
+
id: string;
|
|
8503
|
+
createdAt: string;
|
|
8504
|
+
updatedAt: string;
|
|
8505
|
+
email: string;
|
|
8506
|
+
firstName: string | null;
|
|
8507
|
+
lastName: string | null;
|
|
8508
|
+
profilePictureUrl: string | null;
|
|
8509
|
+
plan: string;
|
|
8510
|
+
memoryLimit: number;
|
|
8511
|
+
retentionDays: number | null;
|
|
8512
|
+
} | undefined;
|
|
8513
|
+
created?: boolean | undefined;
|
|
8514
|
+
}>>;
|
|
8515
|
+
/**
|
|
8516
|
+
*
|
|
8517
|
+
* @typedef {SyncUserOkResponse} syncUserOkResponse
|
|
8518
|
+
* @property {User}
|
|
8519
|
+
* @property {boolean} - Whether a new user was created
|
|
8520
|
+
*/
|
|
8521
|
+
type SyncUserOkResponse = z.infer<typeof syncUserOkResponse>;
|
|
8522
|
+
|
|
8523
|
+
/**
|
|
8524
|
+
* Zod schema for the GetCurrentUserOkResponse model.
|
|
8525
|
+
* Defines the structure and validation rules for this data type.
|
|
8526
|
+
* This is the shape used in application code - what developers interact with.
|
|
8527
|
+
*/
|
|
8528
|
+
declare const getCurrentUserOkResponse: z.ZodLazy<z.ZodObject<{
|
|
8529
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8530
|
+
id: z.ZodString;
|
|
8531
|
+
email: z.ZodString;
|
|
8532
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8533
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8534
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
|
8535
|
+
plan: z.ZodString;
|
|
8536
|
+
memoryLimit: z.ZodNumber;
|
|
8537
|
+
retentionDays: z.ZodNullable<z.ZodNumber>;
|
|
8538
|
+
createdAt: z.ZodString;
|
|
8539
|
+
updatedAt: z.ZodString;
|
|
8540
|
+
}, "strip", z.ZodTypeAny, {
|
|
8541
|
+
id: string;
|
|
8542
|
+
createdAt: string;
|
|
8543
|
+
updatedAt: string;
|
|
8544
|
+
email: string;
|
|
8545
|
+
firstName: string | null;
|
|
8546
|
+
lastName: string | null;
|
|
8547
|
+
profilePictureUrl: string | null;
|
|
8548
|
+
plan: string;
|
|
8549
|
+
memoryLimit: number;
|
|
8550
|
+
retentionDays: number | null;
|
|
8551
|
+
}, {
|
|
8552
|
+
id: string;
|
|
8553
|
+
createdAt: string;
|
|
8554
|
+
updatedAt: string;
|
|
8555
|
+
email: string;
|
|
8556
|
+
firstName: string | null;
|
|
8557
|
+
lastName: string | null;
|
|
8558
|
+
profilePictureUrl: string | null;
|
|
8559
|
+
plan: string;
|
|
8560
|
+
memoryLimit: number;
|
|
8561
|
+
retentionDays: number | null;
|
|
8562
|
+
}>>>;
|
|
8563
|
+
usage: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8564
|
+
memoriesUsed: z.ZodNumber;
|
|
8565
|
+
memoryLimit: z.ZodNumber;
|
|
8566
|
+
memoriesRemaining: z.ZodNumber;
|
|
8567
|
+
percentUsed: z.ZodNumber;
|
|
8568
|
+
plan: z.ZodString;
|
|
8569
|
+
periodStart: z.ZodString;
|
|
8570
|
+
periodEnd: z.ZodString;
|
|
8571
|
+
}, "strip", z.ZodTypeAny, {
|
|
8572
|
+
plan: string;
|
|
8573
|
+
memoryLimit: number;
|
|
8574
|
+
memoriesUsed: number;
|
|
8575
|
+
memoriesRemaining: number;
|
|
8576
|
+
percentUsed: number;
|
|
8577
|
+
periodStart: string;
|
|
8578
|
+
periodEnd: string;
|
|
8579
|
+
}, {
|
|
8580
|
+
plan: string;
|
|
8581
|
+
memoryLimit: number;
|
|
8582
|
+
memoriesUsed: number;
|
|
8583
|
+
memoriesRemaining: number;
|
|
8584
|
+
percentUsed: number;
|
|
8585
|
+
periodStart: string;
|
|
8586
|
+
periodEnd: string;
|
|
8587
|
+
}>>>;
|
|
8588
|
+
}, "strip", z.ZodTypeAny, {
|
|
8589
|
+
data?: {
|
|
8590
|
+
id: string;
|
|
8591
|
+
createdAt: string;
|
|
8592
|
+
updatedAt: string;
|
|
8593
|
+
email: string;
|
|
8594
|
+
firstName: string | null;
|
|
8595
|
+
lastName: string | null;
|
|
8596
|
+
profilePictureUrl: string | null;
|
|
8597
|
+
plan: string;
|
|
8598
|
+
memoryLimit: number;
|
|
8599
|
+
retentionDays: number | null;
|
|
8600
|
+
} | undefined;
|
|
8601
|
+
usage?: {
|
|
8602
|
+
plan: string;
|
|
8603
|
+
memoryLimit: number;
|
|
8604
|
+
memoriesUsed: number;
|
|
8605
|
+
memoriesRemaining: number;
|
|
8606
|
+
percentUsed: number;
|
|
8607
|
+
periodStart: string;
|
|
8608
|
+
periodEnd: string;
|
|
8609
|
+
} | undefined;
|
|
8610
|
+
}, {
|
|
8611
|
+
data?: {
|
|
8612
|
+
id: string;
|
|
8613
|
+
createdAt: string;
|
|
8614
|
+
updatedAt: string;
|
|
8615
|
+
email: string;
|
|
8616
|
+
firstName: string | null;
|
|
8617
|
+
lastName: string | null;
|
|
8618
|
+
profilePictureUrl: string | null;
|
|
8619
|
+
plan: string;
|
|
8620
|
+
memoryLimit: number;
|
|
8621
|
+
retentionDays: number | null;
|
|
8622
|
+
} | undefined;
|
|
8623
|
+
usage?: {
|
|
8624
|
+
plan: string;
|
|
8625
|
+
memoryLimit: number;
|
|
8626
|
+
memoriesUsed: number;
|
|
8627
|
+
memoriesRemaining: number;
|
|
8628
|
+
percentUsed: number;
|
|
8629
|
+
periodStart: string;
|
|
8630
|
+
periodEnd: string;
|
|
8631
|
+
} | undefined;
|
|
8632
|
+
}>>;
|
|
8633
|
+
/**
|
|
8634
|
+
*
|
|
8635
|
+
* @typedef {GetCurrentUserOkResponse} getCurrentUserOkResponse
|
|
8636
|
+
* @property {User}
|
|
8637
|
+
* @property {UserUsage}
|
|
8638
|
+
*/
|
|
8639
|
+
type GetCurrentUserOkResponse = z.infer<typeof getCurrentUserOkResponse>;
|
|
8640
|
+
|
|
8641
|
+
/**
|
|
8642
|
+
* Zod schema for the UpdateCurrentUserRequest model.
|
|
8643
|
+
* Defines the structure and validation rules for this data type.
|
|
8644
|
+
* This is the shape used in application code - what developers interact with.
|
|
8645
|
+
*/
|
|
8646
|
+
declare const updateCurrentUserRequest: z.ZodLazy<z.ZodObject<{
|
|
8647
|
+
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8648
|
+
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8649
|
+
profilePictureUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8650
|
+
}, "strip", z.ZodTypeAny, {
|
|
8651
|
+
firstName?: string | null | undefined;
|
|
8652
|
+
lastName?: string | null | undefined;
|
|
8653
|
+
profilePictureUrl?: string | null | undefined;
|
|
8654
|
+
}, {
|
|
8655
|
+
firstName?: string | null | undefined;
|
|
8656
|
+
lastName?: string | null | undefined;
|
|
8657
|
+
profilePictureUrl?: string | null | undefined;
|
|
8658
|
+
}>>;
|
|
8659
|
+
/**
|
|
8660
|
+
*
|
|
8661
|
+
* @typedef {UpdateCurrentUserRequest} updateCurrentUserRequest
|
|
8662
|
+
* @property {string}
|
|
8663
|
+
* @property {string}
|
|
8664
|
+
* @property {string}
|
|
8665
|
+
*/
|
|
8666
|
+
type UpdateCurrentUserRequest = z.infer<typeof updateCurrentUserRequest>;
|
|
8667
|
+
|
|
8668
|
+
/**
|
|
8669
|
+
* Zod schema for the UpdateCurrentUserOkResponse model.
|
|
8670
|
+
* Defines the structure and validation rules for this data type.
|
|
8671
|
+
* This is the shape used in application code - what developers interact with.
|
|
8672
|
+
*/
|
|
8673
|
+
declare const updateCurrentUserOkResponse: z.ZodLazy<z.ZodObject<{
|
|
8674
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8675
|
+
id: z.ZodString;
|
|
8676
|
+
email: z.ZodString;
|
|
8677
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8678
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8679
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
|
8680
|
+
plan: z.ZodString;
|
|
8681
|
+
memoryLimit: z.ZodNumber;
|
|
8682
|
+
retentionDays: z.ZodNullable<z.ZodNumber>;
|
|
8683
|
+
createdAt: z.ZodString;
|
|
8684
|
+
updatedAt: z.ZodString;
|
|
8685
|
+
}, "strip", z.ZodTypeAny, {
|
|
8686
|
+
id: string;
|
|
8687
|
+
createdAt: string;
|
|
8688
|
+
updatedAt: string;
|
|
8689
|
+
email: string;
|
|
8690
|
+
firstName: string | null;
|
|
8691
|
+
lastName: string | null;
|
|
8692
|
+
profilePictureUrl: string | null;
|
|
8693
|
+
plan: string;
|
|
8694
|
+
memoryLimit: number;
|
|
8695
|
+
retentionDays: number | null;
|
|
8696
|
+
}, {
|
|
8697
|
+
id: string;
|
|
8698
|
+
createdAt: string;
|
|
8699
|
+
updatedAt: string;
|
|
8700
|
+
email: string;
|
|
8701
|
+
firstName: string | null;
|
|
8702
|
+
lastName: string | null;
|
|
8703
|
+
profilePictureUrl: string | null;
|
|
8704
|
+
plan: string;
|
|
8705
|
+
memoryLimit: number;
|
|
8706
|
+
retentionDays: number | null;
|
|
8707
|
+
}>>>;
|
|
8708
|
+
}, "strip", z.ZodTypeAny, {
|
|
8709
|
+
data?: {
|
|
8710
|
+
id: string;
|
|
8711
|
+
createdAt: string;
|
|
8712
|
+
updatedAt: string;
|
|
8713
|
+
email: string;
|
|
8714
|
+
firstName: string | null;
|
|
8715
|
+
lastName: string | null;
|
|
8716
|
+
profilePictureUrl: string | null;
|
|
8717
|
+
plan: string;
|
|
8718
|
+
memoryLimit: number;
|
|
8719
|
+
retentionDays: number | null;
|
|
8720
|
+
} | undefined;
|
|
8721
|
+
}, {
|
|
8722
|
+
data?: {
|
|
8723
|
+
id: string;
|
|
8724
|
+
createdAt: string;
|
|
8725
|
+
updatedAt: string;
|
|
8726
|
+
email: string;
|
|
8727
|
+
firstName: string | null;
|
|
8728
|
+
lastName: string | null;
|
|
8729
|
+
profilePictureUrl: string | null;
|
|
8730
|
+
plan: string;
|
|
8731
|
+
memoryLimit: number;
|
|
8732
|
+
retentionDays: number | null;
|
|
8733
|
+
} | undefined;
|
|
8734
|
+
}>>;
|
|
8735
|
+
/**
|
|
8736
|
+
*
|
|
8737
|
+
* @typedef {UpdateCurrentUserOkResponse} updateCurrentUserOkResponse
|
|
8738
|
+
* @property {User}
|
|
8739
|
+
*/
|
|
8740
|
+
type UpdateCurrentUserOkResponse = z.infer<typeof updateCurrentUserOkResponse>;
|
|
8741
|
+
|
|
8742
|
+
/**
|
|
8743
|
+
* Zod schema for the GetCurrentUserUsageOkResponse model.
|
|
8744
|
+
* Defines the structure and validation rules for this data type.
|
|
8745
|
+
* This is the shape used in application code - what developers interact with.
|
|
8746
|
+
*/
|
|
8747
|
+
declare const getCurrentUserUsageOkResponse: z.ZodLazy<z.ZodObject<{
|
|
8748
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8749
|
+
memoriesUsed: z.ZodNumber;
|
|
8750
|
+
memoryLimit: z.ZodNumber;
|
|
8751
|
+
memoriesRemaining: z.ZodNumber;
|
|
8752
|
+
percentUsed: z.ZodNumber;
|
|
8753
|
+
plan: z.ZodString;
|
|
8754
|
+
periodStart: z.ZodString;
|
|
8755
|
+
periodEnd: z.ZodString;
|
|
8756
|
+
}, "strip", z.ZodTypeAny, {
|
|
8757
|
+
plan: string;
|
|
8758
|
+
memoryLimit: number;
|
|
8759
|
+
memoriesUsed: number;
|
|
8760
|
+
memoriesRemaining: number;
|
|
8761
|
+
percentUsed: number;
|
|
8762
|
+
periodStart: string;
|
|
8763
|
+
periodEnd: string;
|
|
8764
|
+
}, {
|
|
8765
|
+
plan: string;
|
|
8766
|
+
memoryLimit: number;
|
|
8767
|
+
memoriesUsed: number;
|
|
8768
|
+
memoriesRemaining: number;
|
|
8769
|
+
percentUsed: number;
|
|
8770
|
+
periodStart: string;
|
|
8771
|
+
periodEnd: string;
|
|
8772
|
+
}>>>;
|
|
8773
|
+
}, "strip", z.ZodTypeAny, {
|
|
8774
|
+
data?: {
|
|
8775
|
+
plan: string;
|
|
8776
|
+
memoryLimit: number;
|
|
8777
|
+
memoriesUsed: number;
|
|
8778
|
+
memoriesRemaining: number;
|
|
8779
|
+
percentUsed: number;
|
|
8780
|
+
periodStart: string;
|
|
8781
|
+
periodEnd: string;
|
|
8782
|
+
} | undefined;
|
|
8783
|
+
}, {
|
|
8784
|
+
data?: {
|
|
8785
|
+
plan: string;
|
|
8786
|
+
memoryLimit: number;
|
|
8787
|
+
memoriesUsed: number;
|
|
8788
|
+
memoriesRemaining: number;
|
|
8789
|
+
percentUsed: number;
|
|
8790
|
+
periodStart: string;
|
|
8791
|
+
periodEnd: string;
|
|
8792
|
+
} | undefined;
|
|
8793
|
+
}>>;
|
|
8794
|
+
/**
|
|
8795
|
+
*
|
|
8796
|
+
* @typedef {GetCurrentUserUsageOkResponse} getCurrentUserUsageOkResponse
|
|
8797
|
+
* @property {UserUsage}
|
|
8798
|
+
*/
|
|
8799
|
+
type GetCurrentUserUsageOkResponse = z.infer<typeof getCurrentUserUsageOkResponse>;
|
|
8800
|
+
|
|
8801
|
+
/**
|
|
8802
|
+
* Zod schema for the GetUserByIdOkResponse model.
|
|
8803
|
+
* Defines the structure and validation rules for this data type.
|
|
8804
|
+
* This is the shape used in application code - what developers interact with.
|
|
8805
|
+
*/
|
|
8806
|
+
declare const getUserByIdOkResponse: z.ZodLazy<z.ZodObject<{
|
|
8807
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
8808
|
+
id: z.ZodString;
|
|
8809
|
+
email: z.ZodString;
|
|
8810
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8811
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8812
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
|
8813
|
+
plan: z.ZodString;
|
|
8814
|
+
memoryLimit: z.ZodNumber;
|
|
8815
|
+
retentionDays: z.ZodNullable<z.ZodNumber>;
|
|
8816
|
+
createdAt: z.ZodString;
|
|
8817
|
+
updatedAt: z.ZodString;
|
|
8818
|
+
}, "strip", z.ZodTypeAny, {
|
|
8819
|
+
id: string;
|
|
8820
|
+
createdAt: string;
|
|
8821
|
+
updatedAt: string;
|
|
8822
|
+
email: string;
|
|
8823
|
+
firstName: string | null;
|
|
8824
|
+
lastName: string | null;
|
|
8825
|
+
profilePictureUrl: string | null;
|
|
8826
|
+
plan: string;
|
|
8827
|
+
memoryLimit: number;
|
|
8828
|
+
retentionDays: number | null;
|
|
8829
|
+
}, {
|
|
8830
|
+
id: string;
|
|
8831
|
+
createdAt: string;
|
|
8832
|
+
updatedAt: string;
|
|
8833
|
+
email: string;
|
|
8834
|
+
firstName: string | null;
|
|
8835
|
+
lastName: string | null;
|
|
8836
|
+
profilePictureUrl: string | null;
|
|
8837
|
+
plan: string;
|
|
8838
|
+
memoryLimit: number;
|
|
8839
|
+
retentionDays: number | null;
|
|
8840
|
+
}>>>;
|
|
8841
|
+
}, "strip", z.ZodTypeAny, {
|
|
8842
|
+
data?: {
|
|
8843
|
+
id: string;
|
|
8844
|
+
createdAt: string;
|
|
8845
|
+
updatedAt: string;
|
|
8846
|
+
email: string;
|
|
8847
|
+
firstName: string | null;
|
|
8848
|
+
lastName: string | null;
|
|
8849
|
+
profilePictureUrl: string | null;
|
|
8850
|
+
plan: string;
|
|
8851
|
+
memoryLimit: number;
|
|
8852
|
+
retentionDays: number | null;
|
|
8853
|
+
} | undefined;
|
|
8854
|
+
}, {
|
|
8855
|
+
data?: {
|
|
8856
|
+
id: string;
|
|
8857
|
+
createdAt: string;
|
|
8858
|
+
updatedAt: string;
|
|
8859
|
+
email: string;
|
|
8860
|
+
firstName: string | null;
|
|
8861
|
+
lastName: string | null;
|
|
8862
|
+
profilePictureUrl: string | null;
|
|
8863
|
+
plan: string;
|
|
8864
|
+
memoryLimit: number;
|
|
8865
|
+
retentionDays: number | null;
|
|
8866
|
+
} | undefined;
|
|
8867
|
+
}>>;
|
|
8868
|
+
/**
|
|
8869
|
+
*
|
|
8870
|
+
* @typedef {GetUserByIdOkResponse} getUserByIdOkResponse
|
|
8871
|
+
* @property {User}
|
|
8872
|
+
*/
|
|
8873
|
+
type GetUserByIdOkResponse = z.infer<typeof getUserByIdOkResponse>;
|
|
8874
|
+
|
|
8875
|
+
/**
|
|
8876
|
+
* Service class for UsersService operations.
|
|
8877
|
+
* Provides methods to interact with UsersService-related API endpoints.
|
|
8878
|
+
* All methods return promises and handle request/response serialization automatically.
|
|
8879
|
+
*/
|
|
8880
|
+
declare class UsersService extends BaseService {
|
|
8881
|
+
/**
|
|
8882
|
+
* Called by the customer portal after WorkOS authentication.Creates a new user if they don't exist, or updates their profile if they do.
|
|
8883
|
+
This is the main entry point for user provisioning.
|
|
8884
|
+
|
|
8885
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
8886
|
+
* @returns {Promise<HttpResponse<SyncUserOkResponse>>} - User synced successfully
|
|
8887
|
+
*/
|
|
8888
|
+
syncUser(body: SyncUserRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SyncUserOkResponse>>;
|
|
8889
|
+
/**
|
|
8890
|
+
* Get the currently authenticated user's profile and usage information
|
|
8891
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
8892
|
+
* @returns {Promise<HttpResponse<GetCurrentUserOkResponse>>} - User retrieved successfully
|
|
8893
|
+
*/
|
|
8894
|
+
getCurrentUser(requestConfig?: RequestConfig): Promise<HttpResponse<GetCurrentUserOkResponse>>;
|
|
8895
|
+
/**
|
|
8896
|
+
* Update the currently authenticated user's profile
|
|
8897
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
8898
|
+
* @returns {Promise<HttpResponse<UpdateCurrentUserOkResponse>>} - User updated successfully
|
|
8899
|
+
*/
|
|
8900
|
+
updateCurrentUser(body: UpdateCurrentUserRequest, requestConfig?: RequestConfig): Promise<HttpResponse<UpdateCurrentUserOkResponse>>;
|
|
8901
|
+
/**
|
|
8902
|
+
* Get the currently authenticated user's memory usage statistics
|
|
8903
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
8904
|
+
* @returns {Promise<HttpResponse<GetCurrentUserUsageOkResponse>>} - Usage retrieved successfully
|
|
8905
|
+
*/
|
|
8906
|
+
getCurrentUserUsage(requestConfig?: RequestConfig): Promise<HttpResponse<GetCurrentUserUsageOkResponse>>;
|
|
8907
|
+
/**
|
|
8908
|
+
* Get a user by their internal ID (admin only)
|
|
8909
|
+
* @param {string} id -
|
|
8910
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
8911
|
+
* @returns {Promise<HttpResponse<GetUserByIdOkResponse>>} - User retrieved successfully
|
|
8912
|
+
*/
|
|
8913
|
+
getUserById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetUserByIdOkResponse>>;
|
|
8914
|
+
}
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* Zod schema for the User model.
|
|
8918
|
+
* Defines the structure and validation rules for this data type.
|
|
8919
|
+
* This is the shape used in application code - what developers interact with.
|
|
8920
|
+
*/
|
|
8921
|
+
declare const user: z.ZodLazy<z.ZodObject<{
|
|
8922
|
+
id: z.ZodString;
|
|
8923
|
+
email: z.ZodString;
|
|
8924
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8925
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
8926
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
|
8927
|
+
plan: z.ZodString;
|
|
8928
|
+
memoryLimit: z.ZodNumber;
|
|
8929
|
+
retentionDays: z.ZodNullable<z.ZodNumber>;
|
|
8930
|
+
createdAt: z.ZodString;
|
|
8931
|
+
updatedAt: z.ZodString;
|
|
8932
|
+
}, "strip", z.ZodTypeAny, {
|
|
8933
|
+
id: string;
|
|
8934
|
+
createdAt: string;
|
|
8935
|
+
updatedAt: string;
|
|
8936
|
+
email: string;
|
|
8937
|
+
firstName: string | null;
|
|
8938
|
+
lastName: string | null;
|
|
8939
|
+
profilePictureUrl: string | null;
|
|
8940
|
+
plan: string;
|
|
8941
|
+
memoryLimit: number;
|
|
8942
|
+
retentionDays: number | null;
|
|
8943
|
+
}, {
|
|
8944
|
+
id: string;
|
|
8945
|
+
createdAt: string;
|
|
8946
|
+
updatedAt: string;
|
|
8947
|
+
email: string;
|
|
8948
|
+
firstName: string | null;
|
|
8949
|
+
lastName: string | null;
|
|
8950
|
+
profilePictureUrl: string | null;
|
|
8951
|
+
plan: string;
|
|
8952
|
+
memoryLimit: number;
|
|
8953
|
+
retentionDays: number | null;
|
|
8954
|
+
}>>;
|
|
8955
|
+
/**
|
|
8956
|
+
*
|
|
8957
|
+
* @typedef {User} user
|
|
8958
|
+
* @property {string}
|
|
8959
|
+
* @property {string}
|
|
8960
|
+
* @property {string}
|
|
8961
|
+
* @property {string}
|
|
8962
|
+
* @property {string}
|
|
8963
|
+
* @property {UserPlan}
|
|
8964
|
+
* @property {number}
|
|
8965
|
+
* @property {number}
|
|
8966
|
+
* @property {string}
|
|
8967
|
+
* @property {string}
|
|
8968
|
+
*/
|
|
8969
|
+
type User = z.infer<typeof user>;
|
|
8970
|
+
|
|
8971
|
+
declare enum UserPlan {
|
|
8972
|
+
FREE = "free",
|
|
8973
|
+
PRO = "pro",
|
|
8974
|
+
ENTERPRISE = "enterprise"
|
|
8975
|
+
}
|
|
8976
|
+
|
|
8977
|
+
/**
|
|
8978
|
+
* Zod schema for the UserUsage model.
|
|
8979
|
+
* Defines the structure and validation rules for this data type.
|
|
8980
|
+
* This is the shape used in application code - what developers interact with.
|
|
8981
|
+
*/
|
|
8982
|
+
declare const userUsage: z.ZodLazy<z.ZodObject<{
|
|
8983
|
+
memoriesUsed: z.ZodNumber;
|
|
8984
|
+
memoryLimit: z.ZodNumber;
|
|
8985
|
+
memoriesRemaining: z.ZodNumber;
|
|
8986
|
+
percentUsed: z.ZodNumber;
|
|
8987
|
+
plan: z.ZodString;
|
|
8988
|
+
periodStart: z.ZodString;
|
|
8989
|
+
periodEnd: z.ZodString;
|
|
8990
|
+
}, "strip", z.ZodTypeAny, {
|
|
8991
|
+
plan: string;
|
|
8992
|
+
memoryLimit: number;
|
|
8993
|
+
memoriesUsed: number;
|
|
8994
|
+
memoriesRemaining: number;
|
|
8995
|
+
percentUsed: number;
|
|
8996
|
+
periodStart: string;
|
|
8997
|
+
periodEnd: string;
|
|
8998
|
+
}, {
|
|
8999
|
+
plan: string;
|
|
9000
|
+
memoryLimit: number;
|
|
9001
|
+
memoriesUsed: number;
|
|
9002
|
+
memoriesRemaining: number;
|
|
9003
|
+
percentUsed: number;
|
|
9004
|
+
periodStart: string;
|
|
9005
|
+
periodEnd: string;
|
|
9006
|
+
}>>;
|
|
9007
|
+
/**
|
|
9008
|
+
*
|
|
9009
|
+
* @typedef {UserUsage} userUsage
|
|
9010
|
+
* @property {number}
|
|
9011
|
+
* @property {number}
|
|
9012
|
+
* @property {number}
|
|
9013
|
+
* @property {number}
|
|
9014
|
+
* @property {UserUsagePlan}
|
|
9015
|
+
* @property {string}
|
|
9016
|
+
* @property {string}
|
|
9017
|
+
*/
|
|
9018
|
+
type UserUsage = z.infer<typeof userUsage>;
|
|
9019
|
+
|
|
9020
|
+
declare enum UserUsagePlan {
|
|
9021
|
+
FREE = "free",
|
|
9022
|
+
PRO = "pro",
|
|
9023
|
+
ENTERPRISE = "enterprise"
|
|
9024
|
+
}
|
|
9025
|
+
|
|
8410
9026
|
/**
|
|
8411
9027
|
* Zod schema for the Memory model.
|
|
8412
9028
|
* Defines the structure and validation rules for this data type.
|
|
@@ -8527,6 +9143,7 @@ declare class Memnexus {
|
|
|
8527
9143
|
readonly behavior: BehaviorService;
|
|
8528
9144
|
readonly topics: TopicsService;
|
|
8529
9145
|
readonly communities: CommunitiesService;
|
|
9146
|
+
readonly users: UsersService;
|
|
8530
9147
|
constructor(config: SdkConfig);
|
|
8531
9148
|
set baseUrl(baseUrl: string);
|
|
8532
9149
|
set environment(environment: Environment);
|
|
@@ -8534,4 +9151,4 @@ declare class Memnexus {
|
|
|
8534
9151
|
set token(token: string);
|
|
8535
9152
|
}
|
|
8536
9153
|
|
|
8537
|
-
export { Analysis, AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsOkResponse, AnalyzePatternsOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityOkResponse, CalculateTopicSimilarityOkResponseData, CalculateTopicSimilarityRequest, ClusterTopicsOkResponse, ClusterTopicsOkResponseData, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsOkResponse, CompilePatternsRequest, Confidence, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DataStatus, DebugUserOkResponse, DebugUserOkResponseData, DetectCommunitiesOkResponse, DetectCommunitiesOkResponseData, DetectCommunitiesRequest, DetectPatternsOkResponse, DetectPatternsOkResponseData, DetectPatternsRequest, DiscoverRelatedTopicsOkResponse, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagOkResponse, EvaluateFeatureFlagOkResponseData, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, ExplainGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsOkResponse, FindSimilarTopicsOkResponseData, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetBehavioralStateOkResponse, GetCommunityByIdOkResponse, GetContextStatusOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetFeatureFlagsOkResponse, GetMemoryResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, GetSystemHealthOkResponse, GetSystemHealthOkResponseData, GetTopicByIdOkResponse, GraphRagQueryRequest, GraphRagQueryResponse, GraphRagQueryResponseMetadata, GraphRagService, GroupBy, HealthCheck, HealthCheckStatus, HealthService, HttpError, HttpMetadata, HttpMethod, HttpResponse, IngestionTimeRange, ListApiKeysOkResponse, ListArtifactsOkResponse, ListCommunitiesOkResponse, ListCommunitiesOkResponsePagination, ListConversationsOkResponse, ListConversationsOkResponsePagination, ListFactsOkResponse, ListMemoriesOkResponse, ListPatternsOkResponse, ListPatternsOkResponsePagination, ListTopicsOkResponse, ListTopicsOkResponsePagination, Memnexus, MemoriesService, Memory, MemoryMemoryType1, MemoryMemoryType2, MemoryMemoryType3, MemoryMemoryType4, MergeCommunitiesOkResponse, MergeCommunitiesRequest, MergeTopicsOkResponse, MergeTopicsRequest, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesOkResponse, QueryCommunitiesRequest, RecordPatternFeedbackOkResponse, RecordPatternFeedbackRequest, RelatedMemoryResult, RelatedMemoryResultMemory, RequestConfig, Results, RetryOptions, Role, SdkConfig, SearchConversationsOkResponse, SearchConversationsRequest, SearchFactsOkResponse, SearchFactsOkResponseMetadata, SearchMemoriesGetMemoryType, SearchMemoriesGetMode, SearchMemoriesGetSearchMethod, SearchMemoriesGetTemporalMode, SearchRequest, SearchRequestMemoryType, SearchRequestMode, SearchRequestSearchMethod, SearchRequestTemporalMode, SearchResponse, SearchResponsePagination, SearchResult, SearchResultMemory, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SystemService, TemporalMetadata, Topic, TopicReference, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateOkResponse, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternOkResponse, UpdatePatternRequest, ValidationOptions };
|
|
9154
|
+
export { Analysis, AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsOkResponse, AnalyzePatternsOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityOkResponse, CalculateTopicSimilarityOkResponseData, CalculateTopicSimilarityRequest, ClusterTopicsOkResponse, ClusterTopicsOkResponseData, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsOkResponse, CompilePatternsRequest, Confidence, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DataStatus, DebugUserOkResponse, DebugUserOkResponseData, DetectCommunitiesOkResponse, DetectCommunitiesOkResponseData, DetectCommunitiesRequest, DetectPatternsOkResponse, DetectPatternsOkResponseData, DetectPatternsRequest, DiscoverRelatedTopicsOkResponse, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagOkResponse, EvaluateFeatureFlagOkResponseData, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, ExplainGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsOkResponse, FindSimilarTopicsOkResponseData, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetBehavioralStateOkResponse, GetCommunityByIdOkResponse, GetContextStatusOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetCurrentUserOkResponse, GetCurrentUserUsageOkResponse, GetFactByIdOkResponse, GetFeatureFlagsOkResponse, GetMemoryResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, GetSystemHealthOkResponse, GetSystemHealthOkResponseData, GetTopicByIdOkResponse, GetUserByIdOkResponse, GraphRagQueryRequest, GraphRagQueryResponse, GraphRagQueryResponseMetadata, GraphRagService, GroupBy, HealthCheck, HealthCheckStatus, HealthService, HttpError, HttpMetadata, HttpMethod, HttpResponse, IngestionTimeRange, ListApiKeysOkResponse, ListArtifactsOkResponse, ListCommunitiesOkResponse, ListCommunitiesOkResponsePagination, ListConversationsOkResponse, ListConversationsOkResponsePagination, ListFactsOkResponse, ListMemoriesOkResponse, ListPatternsOkResponse, ListPatternsOkResponsePagination, ListTopicsOkResponse, ListTopicsOkResponsePagination, Memnexus, MemoriesService, Memory, MemoryMemoryType1, MemoryMemoryType2, MemoryMemoryType3, MemoryMemoryType4, MergeCommunitiesOkResponse, MergeCommunitiesRequest, MergeTopicsOkResponse, MergeTopicsRequest, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesOkResponse, QueryCommunitiesRequest, RecordPatternFeedbackOkResponse, RecordPatternFeedbackRequest, RelatedMemoryResult, RelatedMemoryResultMemory, RequestConfig, Results, RetryOptions, Role, SdkConfig, SearchConversationsOkResponse, SearchConversationsRequest, SearchFactsOkResponse, SearchFactsOkResponseMetadata, SearchMemoriesGetMemoryType, SearchMemoriesGetMode, SearchMemoriesGetSearchMethod, SearchMemoriesGetTemporalMode, SearchRequest, SearchRequestMemoryType, SearchRequestMode, SearchRequestSearchMethod, SearchRequestTemporalMode, SearchResponse, SearchResponsePagination, SearchResult, SearchResultMemory, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SyncUserOkResponse, SyncUserRequest, SystemService, TemporalMetadata, Topic, TopicReference, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateOkResponse, UpdateBehavioralStateRequest, UpdateCurrentUserOkResponse, UpdateCurrentUserRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternOkResponse, UpdatePatternRequest, User, UserPlan, UserUsage, UserUsagePlan, UsersService, ValidationOptions };
|