@proteos/sdk 0.49.0 → 0.51.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.
- package/dist/{chunk-TDG5QFZ5.js → chunk-IRFFXJMB.js} +66 -4
- package/dist/chunk-IRFFXJMB.js.map +1 -0
- package/dist/{chunk-OD7GPJAW.cjs → chunk-RKFXHDVU.cjs} +67 -3
- package/dist/chunk-RKFXHDVU.cjs.map +1 -0
- package/dist/index.cjs +456 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1036 -9
- package/dist/index.d.ts +1036 -9
- package/dist/index.js +353 -5
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +65 -57
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-COxVBT4w.d.cts → types-C9flkAj-.d.cts} +208 -7
- package/dist/{types-COxVBT4w.d.ts → types-C9flkAj-.d.ts} +208 -7
- package/package.json +1 -1
- package/src/auth/index.ts +40 -11
- package/src/auth/me.ts +13 -1
- package/src/auth/platform-entities.ts +17 -0
- package/src/auth/profiles.ts +82 -0
- package/src/auth/types.ts +87 -0
- package/src/auth/user-profile-assignments.ts +41 -0
- package/src/auth/users.ts +37 -0
- package/src/conversation/index.ts +417 -10
- package/src/conversation/types.ts +731 -3
- package/src/errors.ts +20 -3
- package/src/index.ts +104 -17
- package/src/meta/app-configurations.ts +100 -0
- package/src/meta/index.ts +28 -10
- package/src/meta/types.ts +94 -4
- package/src/workflow/types.ts +13 -0
- package/dist/chunk-OD7GPJAW.cjs.map +0 -1
- package/dist/chunk-TDG5QFZ5.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRKFXHDVU_cjs = require('./chunk-RKFXHDVU.cjs');
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
var fetchEventSource = require('@microsoft/fetch-event-source');
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var AgentServiceImpl = class {
|
|
|
12
12
|
}
|
|
13
13
|
client;
|
|
14
14
|
list(options = {}) {
|
|
15
|
-
return new
|
|
15
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
16
16
|
}
|
|
17
17
|
async listPage(options = {}) {
|
|
18
18
|
return this.client.requestWithQuery("GET", AGENTS_BASE_PATH, options);
|
|
@@ -39,7 +39,7 @@ var McpServerServiceImpl = class {
|
|
|
39
39
|
}
|
|
40
40
|
client;
|
|
41
41
|
list(options = {}) {
|
|
42
|
-
return new
|
|
42
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
43
43
|
}
|
|
44
44
|
async listPage(options = {}) {
|
|
45
45
|
return this.client.requestWithQuery(
|
|
@@ -107,7 +107,7 @@ var PromptServiceImpl = class {
|
|
|
107
107
|
}
|
|
108
108
|
client;
|
|
109
109
|
list(options = {}) {
|
|
110
|
-
return new
|
|
110
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
111
111
|
}
|
|
112
112
|
async listPage(options = {}) {
|
|
113
113
|
return this.client.requestWithQuery("GET", PROMPTS_BASE_PATH, options);
|
|
@@ -161,7 +161,7 @@ var SessionServiceImpl = class {
|
|
|
161
161
|
}
|
|
162
162
|
client;
|
|
163
163
|
list(options = {}) {
|
|
164
|
-
return new
|
|
164
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
165
165
|
}
|
|
166
166
|
async listPage(options = {}) {
|
|
167
167
|
return this.client.requestWithQuery("GET", SESSIONS_BASE_PATH, options);
|
|
@@ -251,7 +251,7 @@ var SkillServiceImpl = class {
|
|
|
251
251
|
}
|
|
252
252
|
client;
|
|
253
253
|
list(options = {}) {
|
|
254
|
-
return new
|
|
254
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
255
255
|
}
|
|
256
256
|
async listPage(options = {}) {
|
|
257
257
|
return this.client.requestWithQuery("GET", SKILLS_BASE_PATH, options);
|
|
@@ -308,7 +308,7 @@ var ToolServiceImpl = class {
|
|
|
308
308
|
}
|
|
309
309
|
client;
|
|
310
310
|
list(options = {}) {
|
|
311
|
-
return new
|
|
311
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
312
312
|
}
|
|
313
313
|
async listPage(options = {}) {
|
|
314
314
|
return this.client.requestWithQuery("GET", TOOLS_BASE_PATH, options);
|
|
@@ -349,7 +349,7 @@ var ToolsetServiceImpl = class {
|
|
|
349
349
|
}
|
|
350
350
|
client;
|
|
351
351
|
list(options = {}) {
|
|
352
|
-
return new
|
|
352
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
353
353
|
}
|
|
354
354
|
async listPage(options = {}) {
|
|
355
355
|
return this.client.requestWithQuery("GET", TOOLSETS_BASE_PATH, options);
|
|
@@ -430,6 +430,9 @@ var MeServiceImpl = class {
|
|
|
430
430
|
);
|
|
431
431
|
return response.data;
|
|
432
432
|
}
|
|
433
|
+
async profile() {
|
|
434
|
+
return this.client.request("GET", `${ME_BASE_PATH}/profile`);
|
|
435
|
+
}
|
|
433
436
|
};
|
|
434
437
|
|
|
435
438
|
// src/auth/organizations.ts
|
|
@@ -440,7 +443,7 @@ var OrganizationServiceImpl = class {
|
|
|
440
443
|
}
|
|
441
444
|
client;
|
|
442
445
|
list(options = {}) {
|
|
443
|
-
return new
|
|
446
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
444
447
|
}
|
|
445
448
|
async listPage(options = {}) {
|
|
446
449
|
return this.client.requestWithQuery(
|
|
@@ -463,6 +466,39 @@ var OrganizationServiceImpl = class {
|
|
|
463
466
|
}
|
|
464
467
|
};
|
|
465
468
|
|
|
469
|
+
// src/auth/profiles.ts
|
|
470
|
+
var PROFILES_BASE_PATH = "/accounts/v1/profiles";
|
|
471
|
+
var ProfileServiceImpl = class {
|
|
472
|
+
constructor(client) {
|
|
473
|
+
this.client = client;
|
|
474
|
+
}
|
|
475
|
+
client;
|
|
476
|
+
list(options = {}) {
|
|
477
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
478
|
+
}
|
|
479
|
+
async listPage(options = {}) {
|
|
480
|
+
return this.client.requestWithQuery("GET", PROFILES_BASE_PATH, options);
|
|
481
|
+
}
|
|
482
|
+
async get(slug) {
|
|
483
|
+
return this.client.request("GET", `${PROFILES_BASE_PATH}/${slug}`);
|
|
484
|
+
}
|
|
485
|
+
async create(request) {
|
|
486
|
+
return this.client.request("POST", PROFILES_BASE_PATH, request);
|
|
487
|
+
}
|
|
488
|
+
async upsert(slug, request) {
|
|
489
|
+
return this.client.request("PUT", `${PROFILES_BASE_PATH}/${slug}`, {
|
|
490
|
+
...request,
|
|
491
|
+
slug
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
async update(slug, request) {
|
|
495
|
+
return this.client.request("PATCH", `${PROFILES_BASE_PATH}/${slug}`, request);
|
|
496
|
+
}
|
|
497
|
+
async delete(slug) {
|
|
498
|
+
await this.client.request("DELETE", `${PROFILES_BASE_PATH}/${slug}`);
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
|
|
466
502
|
// src/auth/roles.ts
|
|
467
503
|
var ROLES_BASE_PATH = "/accounts/v1/roles";
|
|
468
504
|
var RoleServiceImpl = class {
|
|
@@ -471,7 +507,7 @@ var RoleServiceImpl = class {
|
|
|
471
507
|
}
|
|
472
508
|
client;
|
|
473
509
|
list(options = {}) {
|
|
474
|
-
return new
|
|
510
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
475
511
|
}
|
|
476
512
|
async listPage(options = {}) {
|
|
477
513
|
return this.client.requestWithQuery("GET", ROLES_BASE_PATH, options);
|
|
@@ -492,7 +528,7 @@ var RoleServiceImpl = class {
|
|
|
492
528
|
await this.client.request("DELETE", `${ROLES_BASE_PATH}/${slug}`);
|
|
493
529
|
}
|
|
494
530
|
getPermissions(roleSlug, options = {}) {
|
|
495
|
-
return new
|
|
531
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.fetchPermissionsPage(roleSlug, opts), options);
|
|
496
532
|
}
|
|
497
533
|
async assignPermission(roleSlug, request) {
|
|
498
534
|
return this.client.request(
|
|
@@ -532,11 +568,18 @@ var ProteosError = class extends Error {
|
|
|
532
568
|
httpStatus;
|
|
533
569
|
/** API error code (e.g., 'not_found', 'unauthorized') */
|
|
534
570
|
code;
|
|
535
|
-
|
|
571
|
+
/**
|
|
572
|
+
* Optional machine-readable payload beside the message — e.g. a denied send's
|
|
573
|
+
* `earliest_allowed_at` / `rule_id`, the offending `contact_id`. Absent on
|
|
574
|
+
* most errors.
|
|
575
|
+
*/
|
|
576
|
+
details;
|
|
577
|
+
constructor(message, httpStatus, code, details) {
|
|
536
578
|
super(message);
|
|
537
579
|
this.name = "ProteosError";
|
|
538
580
|
this.httpStatus = httpStatus;
|
|
539
581
|
this.code = code;
|
|
582
|
+
this.details = details;
|
|
540
583
|
const v8Capture = Error.captureStackTrace;
|
|
541
584
|
if (v8Capture) v8Capture(this, this.constructor);
|
|
542
585
|
}
|
|
@@ -585,6 +628,7 @@ async function parseErrorResponse(response) {
|
|
|
585
628
|
const httpStatus = response.status;
|
|
586
629
|
let code = getDefaultErrorCode(httpStatus);
|
|
587
630
|
let message = "Unknown error";
|
|
631
|
+
let details;
|
|
588
632
|
try {
|
|
589
633
|
const body = await response.text();
|
|
590
634
|
try {
|
|
@@ -597,13 +641,16 @@ async function parseErrorResponse(response) {
|
|
|
597
641
|
} else {
|
|
598
642
|
message = body || `HTTP ${httpStatus}`;
|
|
599
643
|
}
|
|
644
|
+
if (json.details && typeof json.details === "object") {
|
|
645
|
+
details = json.details;
|
|
646
|
+
}
|
|
600
647
|
} catch {
|
|
601
648
|
message = body.trim() || `HTTP ${httpStatus}`;
|
|
602
649
|
}
|
|
603
650
|
} catch {
|
|
604
651
|
message = `HTTP ${httpStatus}`;
|
|
605
652
|
}
|
|
606
|
-
return new ProteosError(message, httpStatus, code);
|
|
653
|
+
return new ProteosError(message, httpStatus, code, details);
|
|
607
654
|
}
|
|
608
655
|
|
|
609
656
|
// src/auth/shares.ts
|
|
@@ -678,7 +725,7 @@ var TeamServiceImpl = class {
|
|
|
678
725
|
}
|
|
679
726
|
client;
|
|
680
727
|
list(options = {}) {
|
|
681
|
-
return new
|
|
728
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
682
729
|
}
|
|
683
730
|
async listPage(options = {}) {
|
|
684
731
|
return this.client.requestWithQuery("GET", TEAMS_BASE_PATH, options);
|
|
@@ -696,7 +743,7 @@ var TeamServiceImpl = class {
|
|
|
696
743
|
await this.client.request("DELETE", `${TEAMS_BASE_PATH}/${slug}`);
|
|
697
744
|
}
|
|
698
745
|
getMembers(slug, options = {}) {
|
|
699
|
-
return new
|
|
746
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.fetchMembersPage(slug, opts), options);
|
|
700
747
|
}
|
|
701
748
|
async addMember(slug, request) {
|
|
702
749
|
return this.client.request("POST", `${TEAMS_BASE_PATH}/${slug}/members`, request);
|
|
@@ -713,6 +760,25 @@ var TeamServiceImpl = class {
|
|
|
713
760
|
}
|
|
714
761
|
};
|
|
715
762
|
|
|
763
|
+
// src/auth/user-profile-assignments.ts
|
|
764
|
+
var USER_PROFILE_ASSIGNMENTS_BASE_PATH = "/accounts/v1/user-profile-assignments";
|
|
765
|
+
var UserProfileAssignmentServiceImpl = class {
|
|
766
|
+
constructor(client) {
|
|
767
|
+
this.client = client;
|
|
768
|
+
}
|
|
769
|
+
client;
|
|
770
|
+
list(options = {}) {
|
|
771
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
772
|
+
}
|
|
773
|
+
async listPage(options = {}) {
|
|
774
|
+
return this.client.requestWithQuery(
|
|
775
|
+
"GET",
|
|
776
|
+
USER_PROFILE_ASSIGNMENTS_BASE_PATH,
|
|
777
|
+
options
|
|
778
|
+
);
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
|
|
716
782
|
// src/auth/user-role-assignments.ts
|
|
717
783
|
var USER_ROLE_ASSIGNMENTS_BASE_PATH = "/accounts/v1/user-role-assignments";
|
|
718
784
|
var UserRoleAssignmentServiceImpl = class {
|
|
@@ -721,7 +787,7 @@ var UserRoleAssignmentServiceImpl = class {
|
|
|
721
787
|
}
|
|
722
788
|
client;
|
|
723
789
|
list(options = {}) {
|
|
724
|
-
return new
|
|
790
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
725
791
|
}
|
|
726
792
|
async listPage(options = {}) {
|
|
727
793
|
return this.client.requestWithQuery(
|
|
@@ -740,7 +806,7 @@ var UserServiceImpl = class {
|
|
|
740
806
|
}
|
|
741
807
|
client;
|
|
742
808
|
list(options = {}) {
|
|
743
|
-
return new
|
|
809
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
744
810
|
}
|
|
745
811
|
async listPage(options = {}) {
|
|
746
812
|
return this.client.requestWithQuery("GET", USERS_BASE_PATH, options);
|
|
@@ -755,7 +821,7 @@ var UserServiceImpl = class {
|
|
|
755
821
|
return this.client.request("PATCH", `${USERS_BASE_PATH}/${id}`, request);
|
|
756
822
|
}
|
|
757
823
|
getRoles(userId, options = {}) {
|
|
758
|
-
return new
|
|
824
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.fetchRolesPage(userId, opts), options);
|
|
759
825
|
}
|
|
760
826
|
async assignRole(userId, request) {
|
|
761
827
|
return this.client.request(
|
|
@@ -767,6 +833,19 @@ var UserServiceImpl = class {
|
|
|
767
833
|
async unassignRole(userId, roleSlug) {
|
|
768
834
|
await this.client.request("DELETE", `${USERS_BASE_PATH}/${userId}/roles/${roleSlug}`);
|
|
769
835
|
}
|
|
836
|
+
async getProfile(userId) {
|
|
837
|
+
return this.client.request("GET", `${USERS_BASE_PATH}/${userId}/profile`);
|
|
838
|
+
}
|
|
839
|
+
async setProfile(userId, request) {
|
|
840
|
+
return this.client.request(
|
|
841
|
+
"PUT",
|
|
842
|
+
`${USERS_BASE_PATH}/${userId}/profile`,
|
|
843
|
+
request
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
async clearProfile(userId) {
|
|
847
|
+
await this.client.request("DELETE", `${USERS_BASE_PATH}/${userId}/profile`);
|
|
848
|
+
}
|
|
770
849
|
async listApiKeys(userId) {
|
|
771
850
|
const response = await this.client.request(
|
|
772
851
|
"GET",
|
|
@@ -806,12 +885,18 @@ var PLATFORM_ENTITIES = [
|
|
|
806
885
|
// who is in it are different decisions, and membership is what moves access.
|
|
807
886
|
{ slug: "teams", name: "Teams" },
|
|
808
887
|
{ slug: "team-members", name: "Team Members" },
|
|
888
|
+
// Profiles are the org's user-types (UI defaults; app configurations key on
|
|
889
|
+
// them). ONE per user per org. Managing and assigning are separate grants.
|
|
890
|
+
{ slug: "profiles", name: "Profiles" },
|
|
891
|
+
{ slug: "user-profile-assignments", name: "User Profile Assignments" },
|
|
809
892
|
// The share audit trail — a distinct grant from the resources it references.
|
|
810
893
|
// Schema / content (metadata-service)
|
|
811
894
|
{ slug: "entities", name: "Entities" },
|
|
812
895
|
{ slug: "pages", name: "Pages" },
|
|
813
896
|
{ slug: "menu-configurations", name: "Menu Configurations" },
|
|
814
897
|
{ slug: "apps", name: "Apps" },
|
|
898
|
+
// Typed (app × profile) binding rows: home, menu, agents, record pages.
|
|
899
|
+
{ slug: "app-configurations", name: "App Configurations" },
|
|
815
900
|
{ slug: "components", name: "Components" },
|
|
816
901
|
{ slug: "lists", name: "Lists" },
|
|
817
902
|
{ slug: "list-views", name: "List Views" },
|
|
@@ -867,6 +952,17 @@ var PLATFORM_ENTITIES = [
|
|
|
867
952
|
{ slug: "contact-groups", name: "Contact Groups" },
|
|
868
953
|
// Tone-of-voice synthesis: per-user setups + generated instruction profiles.
|
|
869
954
|
{ slug: "tone-profiles", name: "Tone Profiles" },
|
|
955
|
+
// Outbound send constraints (windows, connection limits, frequency caps) +
|
|
956
|
+
// their preset catalog.
|
|
957
|
+
{ slug: "sending-rules", name: "Sending Rules" },
|
|
958
|
+
// The channel_action ledger: acts through a connection that are neither a
|
|
959
|
+
// message nor a reaction (LinkedIn invitations, profile visits, InMail).
|
|
960
|
+
{ slug: "channel-actions", name: "Channel Actions" },
|
|
961
|
+
// The channel_event ledger: provider-observed delivery / engagement events
|
|
962
|
+
// about outbound messages (delivered, bounced, opened, unsubscribed).
|
|
963
|
+
{ slug: "channel-events", name: "Channel Events" },
|
|
964
|
+
// Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact.
|
|
965
|
+
{ slug: "conversation-briefs", name: "Conversation Briefs" },
|
|
870
966
|
// Connectors (connector-service). `connections` above is shared; this is the
|
|
871
967
|
// manifest catalog.
|
|
872
968
|
{ slug: "connectors", name: "Connectors" }
|
|
@@ -878,28 +974,28 @@ var SCOPED_PLATFORM_ENTITY_SLUGS = ["knowledge-nodes"];
|
|
|
878
974
|
function isPlatformEntity(slug) {
|
|
879
975
|
return PLATFORM_ENTITY_SLUGS.includes(slug);
|
|
880
976
|
}
|
|
881
|
-
var RoleEntityPermissionSchema =
|
|
977
|
+
var RoleEntityPermissionSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
882
978
|
id: zod.z.string(),
|
|
883
979
|
role_slug: zod.z.string(),
|
|
884
980
|
entity_slug: zod.z.string(),
|
|
885
981
|
permission: zod.z.enum(["read", "write", "delete", "read_scoped", "write_scoped", "delete_scoped"])
|
|
886
982
|
});
|
|
887
|
-
var UserRoleAssignmentSchema =
|
|
983
|
+
var UserRoleAssignmentSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
888
984
|
id: zod.z.string(),
|
|
889
985
|
user_id: zod.z.string(),
|
|
890
986
|
role_slug: zod.z.string(),
|
|
891
987
|
org_id: zod.z.string()
|
|
892
988
|
});
|
|
893
|
-
var UserSchema =
|
|
989
|
+
var UserSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
894
990
|
id: zod.z.string(),
|
|
895
991
|
email: zod.z.string(),
|
|
896
992
|
given_name: zod.z.string(),
|
|
897
993
|
family_name: zod.z.string(),
|
|
898
994
|
external_id: zod.z.string(),
|
|
899
995
|
default_org_id: zod.z.string(),
|
|
900
|
-
profile_image:
|
|
996
|
+
profile_image: chunkRKFXHDVU_cjs.FileRefSchema.nullish()
|
|
901
997
|
});
|
|
902
|
-
|
|
998
|
+
chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
903
999
|
id: zod.z.string(),
|
|
904
1000
|
user_id: zod.z.string(),
|
|
905
1001
|
org_id: zod.z.string(),
|
|
@@ -909,26 +1005,41 @@ chunkOD7GPJAW_cjs.AuditFieldsSchema.extend({
|
|
|
909
1005
|
expires_at: zod.z.string().nullable(),
|
|
910
1006
|
last_used_at: zod.z.string().nullable()
|
|
911
1007
|
});
|
|
912
|
-
var
|
|
1008
|
+
var ProfileSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
1009
|
+
slug: zod.z.string(),
|
|
1010
|
+
name: zod.z.string(),
|
|
1011
|
+
org_id: zod.z.string(),
|
|
1012
|
+
description: zod.z.string(),
|
|
1013
|
+
module_slug: zod.z.string(),
|
|
1014
|
+
default_app_slug: zod.z.string(),
|
|
1015
|
+
app_slugs: zod.z.array(zod.z.string())
|
|
1016
|
+
});
|
|
1017
|
+
var UserProfileAssignmentSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
1018
|
+
id: zod.z.string(),
|
|
1019
|
+
user_id: zod.z.string(),
|
|
1020
|
+
profile_slug: zod.z.string(),
|
|
1021
|
+
org_id: zod.z.string()
|
|
1022
|
+
});
|
|
1023
|
+
var RoleSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
913
1024
|
slug: zod.z.string(),
|
|
914
1025
|
name: zod.z.string(),
|
|
915
1026
|
org_id: zod.z.string(),
|
|
916
1027
|
description: zod.z.string()
|
|
917
1028
|
});
|
|
918
|
-
|
|
1029
|
+
chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
919
1030
|
slug: zod.z.string(),
|
|
920
1031
|
name: zod.z.string(),
|
|
921
1032
|
org_id: zod.z.string(),
|
|
922
1033
|
description: zod.z.string(),
|
|
923
1034
|
parent_team_slug: zod.z.string()
|
|
924
1035
|
});
|
|
925
|
-
|
|
1036
|
+
chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
926
1037
|
id: zod.z.string(),
|
|
927
1038
|
org_id: zod.z.string(),
|
|
928
1039
|
team_slug: zod.z.string(),
|
|
929
1040
|
user_id: zod.z.string()
|
|
930
1041
|
});
|
|
931
|
-
var OrganizationSchema =
|
|
1042
|
+
var OrganizationSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
932
1043
|
id: zod.z.string(),
|
|
933
1044
|
name: zod.z.string(),
|
|
934
1045
|
description: zod.z.string()
|
|
@@ -937,7 +1048,7 @@ var SharePermissionSchema = zod.z.enum(["read", "write", "delete"]);
|
|
|
937
1048
|
zod.z.object({
|
|
938
1049
|
entity_slug: zod.z.string(),
|
|
939
1050
|
record_id: zod.z.string(),
|
|
940
|
-
principal:
|
|
1051
|
+
principal: chunkRKFXHDVU_cjs.PrincipalRefSchema,
|
|
941
1052
|
permission: SharePermissionSchema
|
|
942
1053
|
});
|
|
943
1054
|
|
|
@@ -960,6 +1071,14 @@ var AccountClient = class {
|
|
|
960
1071
|
* role" in one request).
|
|
961
1072
|
*/
|
|
962
1073
|
userRoleAssignments;
|
|
1074
|
+
/**
|
|
1075
|
+
* Service for managing profiles (the org's user-types, one per user).
|
|
1076
|
+
*/
|
|
1077
|
+
profiles;
|
|
1078
|
+
/**
|
|
1079
|
+
* Service for the org-wide user-profile-assignment listing.
|
|
1080
|
+
*/
|
|
1081
|
+
userProfileAssignments;
|
|
963
1082
|
/**
|
|
964
1083
|
* Service for managing organizations.
|
|
965
1084
|
*/
|
|
@@ -987,6 +1106,8 @@ var AccountClient = class {
|
|
|
987
1106
|
this.users = new UserServiceImpl(client);
|
|
988
1107
|
this.roles = new RoleServiceImpl(client);
|
|
989
1108
|
this.userRoleAssignments = new UserRoleAssignmentServiceImpl(client);
|
|
1109
|
+
this.profiles = new ProfileServiceImpl(client);
|
|
1110
|
+
this.userProfileAssignments = new UserProfileAssignmentServiceImpl(client);
|
|
990
1111
|
this.organizations = new OrganizationServiceImpl(client);
|
|
991
1112
|
this.teams = new TeamServiceImpl(client);
|
|
992
1113
|
this.shares = new ShareServiceImpl(client);
|
|
@@ -1501,6 +1622,14 @@ var ConversationClient = class {
|
|
|
1501
1622
|
agentListeners;
|
|
1502
1623
|
/** Ingest-time filter rules (drop-with-audit) + their event trail. */
|
|
1503
1624
|
conversationFilters;
|
|
1625
|
+
/** Outbound send constraints: windows, connection limits, frequency caps + presets. */
|
|
1626
|
+
sendingRules;
|
|
1627
|
+
/**
|
|
1628
|
+
* Channel actions: acts performed through a connection that are neither a
|
|
1629
|
+
* message nor a reaction — LinkedIn invitations, profile visits, InMail.
|
|
1630
|
+
*/
|
|
1631
|
+
channelActions;
|
|
1632
|
+
channelEvents;
|
|
1504
1633
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
1505
1634
|
glossaryTerms;
|
|
1506
1635
|
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
@@ -1517,6 +1646,8 @@ var ConversationClient = class {
|
|
|
1517
1646
|
/** Realtime speech-to-text (dictation) — moved here from agent-service. */
|
|
1518
1647
|
voice;
|
|
1519
1648
|
calls;
|
|
1649
|
+
/** Conversation briefs: guidance prepared ahead of a conversation (call, meeting) with a contact. */
|
|
1650
|
+
conversationBriefs;
|
|
1520
1651
|
constructor(client) {
|
|
1521
1652
|
this.connections = new ConnectionServiceImpl(client);
|
|
1522
1653
|
this.conversations = new ConversationServiceImpl(client);
|
|
@@ -1524,6 +1655,9 @@ var ConversationClient = class {
|
|
|
1524
1655
|
this.messages = new MessageServiceImpl(client);
|
|
1525
1656
|
this.agentListeners = new AgentListenerServiceImpl(client);
|
|
1526
1657
|
this.conversationFilters = new ConversationFilterServiceImpl(client);
|
|
1658
|
+
this.sendingRules = new SendingRuleServiceImpl(client);
|
|
1659
|
+
this.channelActions = new ChannelActionServiceImpl(client);
|
|
1660
|
+
this.channelEvents = new ChannelEventServiceImpl(client);
|
|
1527
1661
|
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1528
1662
|
this.conversationTypes = new ConversationTypeServiceImpl(client);
|
|
1529
1663
|
this.contactGroups = new ContactGroupServiceImpl(client);
|
|
@@ -1533,6 +1667,7 @@ var ConversationClient = class {
|
|
|
1533
1667
|
this.meetings = new MeetingServiceImpl(client);
|
|
1534
1668
|
this.voice = new VoiceServiceImpl(client);
|
|
1535
1669
|
this.calls = new CallServiceImpl(client);
|
|
1670
|
+
this.conversationBriefs = new ConversationBriefServiceImpl(client);
|
|
1536
1671
|
}
|
|
1537
1672
|
};
|
|
1538
1673
|
var MeetingServiceImpl = class {
|
|
@@ -1615,6 +1750,67 @@ var ConnectionServiceImpl = class {
|
|
|
1615
1750
|
query
|
|
1616
1751
|
);
|
|
1617
1752
|
}
|
|
1753
|
+
getHealth(connectionId, query = {}) {
|
|
1754
|
+
return this.client.requestWithQuery(
|
|
1755
|
+
"GET",
|
|
1756
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/health`,
|
|
1757
|
+
query
|
|
1758
|
+
);
|
|
1759
|
+
}
|
|
1760
|
+
validateDomain(connectionId) {
|
|
1761
|
+
return this.client.request(
|
|
1762
|
+
"POST",
|
|
1763
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/domain/validate`
|
|
1764
|
+
);
|
|
1765
|
+
}
|
|
1766
|
+
resendSenderVerification(connectionId) {
|
|
1767
|
+
return this.client.request(
|
|
1768
|
+
"POST",
|
|
1769
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/sender/verify`
|
|
1770
|
+
);
|
|
1771
|
+
}
|
|
1772
|
+
async listSuppressions(connectionId, kind) {
|
|
1773
|
+
const response = await this.client.requestWithQuery(
|
|
1774
|
+
"GET",
|
|
1775
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/suppressions`,
|
|
1776
|
+
{ kind }
|
|
1777
|
+
);
|
|
1778
|
+
return response.data;
|
|
1779
|
+
}
|
|
1780
|
+
removeSuppression(connectionId, kind, email) {
|
|
1781
|
+
return this.client.request(
|
|
1782
|
+
"DELETE",
|
|
1783
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/suppressions/${encodeURIComponent(kind)}/${encodeURIComponent(email)}`
|
|
1784
|
+
);
|
|
1785
|
+
}
|
|
1786
|
+
setIpWarmup(connectionId, ip, isEnabled) {
|
|
1787
|
+
return this.client.request(
|
|
1788
|
+
isEnabled ? "POST" : "DELETE",
|
|
1789
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/ip-warmup/${encodeURIComponent(ip)}`
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
async listConnectors() {
|
|
1793
|
+
const response = await this.client.request(
|
|
1794
|
+
"GET",
|
|
1795
|
+
`${CONVERSATION_BASE_PATH}/connectors`
|
|
1796
|
+
);
|
|
1797
|
+
return response.data;
|
|
1798
|
+
}
|
|
1799
|
+
async listSenders(connectionId) {
|
|
1800
|
+
const response = await this.client.request(
|
|
1801
|
+
"GET",
|
|
1802
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/senders`
|
|
1803
|
+
);
|
|
1804
|
+
return response.data;
|
|
1805
|
+
}
|
|
1806
|
+
async setDefaultSender(connectionId, request) {
|
|
1807
|
+
const response = await this.client.request(
|
|
1808
|
+
"PUT",
|
|
1809
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/senders/default`,
|
|
1810
|
+
request
|
|
1811
|
+
);
|
|
1812
|
+
return response.data;
|
|
1813
|
+
}
|
|
1618
1814
|
};
|
|
1619
1815
|
var ContactServiceImpl = class {
|
|
1620
1816
|
constructor(client) {
|
|
@@ -1805,6 +2001,13 @@ var MessageServiceImpl = class {
|
|
|
1805
2001
|
send(request) {
|
|
1806
2002
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/send`, request);
|
|
1807
2003
|
}
|
|
2004
|
+
checkSendEligibility(request) {
|
|
2005
|
+
return this.client.request(
|
|
2006
|
+
"POST",
|
|
2007
|
+
`${CONVERSATION_BASE_PATH}/messages/send-eligibility`,
|
|
2008
|
+
request
|
|
2009
|
+
);
|
|
2010
|
+
}
|
|
1808
2011
|
draft(request) {
|
|
1809
2012
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/draft`, request);
|
|
1810
2013
|
}
|
|
@@ -2184,6 +2387,151 @@ var CallServiceImpl = class {
|
|
|
2184
2387
|
);
|
|
2185
2388
|
}
|
|
2186
2389
|
};
|
|
2390
|
+
var ConversationBriefServiceImpl = class {
|
|
2391
|
+
constructor(client) {
|
|
2392
|
+
this.client = client;
|
|
2393
|
+
}
|
|
2394
|
+
client;
|
|
2395
|
+
list(query = {}) {
|
|
2396
|
+
return this.client.requestWithQuery(
|
|
2397
|
+
"GET",
|
|
2398
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs`,
|
|
2399
|
+
query
|
|
2400
|
+
);
|
|
2401
|
+
}
|
|
2402
|
+
get(id) {
|
|
2403
|
+
return this.client.request(
|
|
2404
|
+
"GET",
|
|
2405
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`
|
|
2406
|
+
);
|
|
2407
|
+
}
|
|
2408
|
+
create(request) {
|
|
2409
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-briefs`, request);
|
|
2410
|
+
}
|
|
2411
|
+
update(id, request) {
|
|
2412
|
+
return this.client.request(
|
|
2413
|
+
"PATCH",
|
|
2414
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`,
|
|
2415
|
+
request
|
|
2416
|
+
);
|
|
2417
|
+
}
|
|
2418
|
+
discard(id) {
|
|
2419
|
+
return this.client.request(
|
|
2420
|
+
"POST",
|
|
2421
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}/discard`
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2424
|
+
attach(id, request) {
|
|
2425
|
+
return this.client.request(
|
|
2426
|
+
"POST",
|
|
2427
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}/attach`,
|
|
2428
|
+
request
|
|
2429
|
+
);
|
|
2430
|
+
}
|
|
2431
|
+
async delete(id) {
|
|
2432
|
+
await this.client.request(
|
|
2433
|
+
"DELETE",
|
|
2434
|
+
`${CONVERSATION_BASE_PATH}/conversation-briefs/${encodeURIComponent(id)}`
|
|
2435
|
+
);
|
|
2436
|
+
}
|
|
2437
|
+
};
|
|
2438
|
+
var SendingRuleServiceImpl = class {
|
|
2439
|
+
constructor(client) {
|
|
2440
|
+
this.client = client;
|
|
2441
|
+
}
|
|
2442
|
+
client;
|
|
2443
|
+
list(query = {}) {
|
|
2444
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/sending-rules`, query);
|
|
2445
|
+
}
|
|
2446
|
+
get(id) {
|
|
2447
|
+
return this.client.request(
|
|
2448
|
+
"GET",
|
|
2449
|
+
`${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`
|
|
2450
|
+
);
|
|
2451
|
+
}
|
|
2452
|
+
create(request) {
|
|
2453
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/sending-rules`, request);
|
|
2454
|
+
}
|
|
2455
|
+
update(id, request) {
|
|
2456
|
+
return this.client.request(
|
|
2457
|
+
"PATCH",
|
|
2458
|
+
`${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`,
|
|
2459
|
+
request
|
|
2460
|
+
);
|
|
2461
|
+
}
|
|
2462
|
+
async delete(id) {
|
|
2463
|
+
await this.client.request(
|
|
2464
|
+
"DELETE",
|
|
2465
|
+
`${CONVERSATION_BASE_PATH}/sending-rules/${encodeURIComponent(id)}`
|
|
2466
|
+
);
|
|
2467
|
+
}
|
|
2468
|
+
listPresets(query = {}) {
|
|
2469
|
+
return this.client.requestWithQuery(
|
|
2470
|
+
"GET",
|
|
2471
|
+
`${CONVERSATION_BASE_PATH}/sending-rules/presets`,
|
|
2472
|
+
query
|
|
2473
|
+
);
|
|
2474
|
+
}
|
|
2475
|
+
applyPreset(request) {
|
|
2476
|
+
return this.client.request(
|
|
2477
|
+
"POST",
|
|
2478
|
+
`${CONVERSATION_BASE_PATH}/sending-rules/apply-preset`,
|
|
2479
|
+
request
|
|
2480
|
+
);
|
|
2481
|
+
}
|
|
2482
|
+
};
|
|
2483
|
+
var ChannelActionServiceImpl = class {
|
|
2484
|
+
constructor(client) {
|
|
2485
|
+
this.client = client;
|
|
2486
|
+
}
|
|
2487
|
+
client;
|
|
2488
|
+
list(query = {}) {
|
|
2489
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/channel-actions`, query);
|
|
2490
|
+
}
|
|
2491
|
+
get(id) {
|
|
2492
|
+
return this.client.request(
|
|
2493
|
+
"GET",
|
|
2494
|
+
`${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}`
|
|
2495
|
+
);
|
|
2496
|
+
}
|
|
2497
|
+
perform(request) {
|
|
2498
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/channel-actions`, request);
|
|
2499
|
+
}
|
|
2500
|
+
cancel(id) {
|
|
2501
|
+
return this.client.request(
|
|
2502
|
+
"POST",
|
|
2503
|
+
`${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}/cancel`
|
|
2504
|
+
);
|
|
2505
|
+
}
|
|
2506
|
+
respond(id, request) {
|
|
2507
|
+
return this.client.request(
|
|
2508
|
+
"POST",
|
|
2509
|
+
`${CONVERSATION_BASE_PATH}/channel-actions/${encodeURIComponent(id)}/respond`,
|
|
2510
|
+
request
|
|
2511
|
+
);
|
|
2512
|
+
}
|
|
2513
|
+
};
|
|
2514
|
+
var ChannelEventServiceImpl = class {
|
|
2515
|
+
constructor(client) {
|
|
2516
|
+
this.client = client;
|
|
2517
|
+
}
|
|
2518
|
+
client;
|
|
2519
|
+
list(query = {}) {
|
|
2520
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/channel-events`, query);
|
|
2521
|
+
}
|
|
2522
|
+
get(id) {
|
|
2523
|
+
return this.client.request(
|
|
2524
|
+
"GET",
|
|
2525
|
+
`${CONVERSATION_BASE_PATH}/channel-events/${encodeURIComponent(id)}`
|
|
2526
|
+
);
|
|
2527
|
+
}
|
|
2528
|
+
listByMessage(messageId) {
|
|
2529
|
+
return this.client.request(
|
|
2530
|
+
"GET",
|
|
2531
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/events`
|
|
2532
|
+
);
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2187
2535
|
|
|
2188
2536
|
// src/data/queries.ts
|
|
2189
2537
|
var QUERY_BASE_PATH = "/data/v1/query";
|
|
@@ -2212,7 +2560,7 @@ var RecordServiceImpl = class {
|
|
|
2212
2560
|
}
|
|
2213
2561
|
client;
|
|
2214
2562
|
list(entitySlug, options = {}) {
|
|
2215
|
-
return new
|
|
2563
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(entitySlug, opts), options);
|
|
2216
2564
|
}
|
|
2217
2565
|
async listPage(entitySlug, options = {}) {
|
|
2218
2566
|
return this.client.requestWithQuery(
|
|
@@ -2245,7 +2593,7 @@ var RecordServiceImpl = class {
|
|
|
2245
2593
|
);
|
|
2246
2594
|
}
|
|
2247
2595
|
listPublic(orgId, entitySlug, options = {}) {
|
|
2248
|
-
return new
|
|
2596
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPublicPage(orgId, entitySlug, opts), options);
|
|
2249
2597
|
}
|
|
2250
2598
|
async listPublicPage(orgId, entitySlug, options = {}) {
|
|
2251
2599
|
return this.client.requestWithQuery(
|
|
@@ -2404,7 +2752,7 @@ var ActionServiceImpl = class {
|
|
|
2404
2752
|
}
|
|
2405
2753
|
client;
|
|
2406
2754
|
list(options = {}) {
|
|
2407
|
-
return new
|
|
2755
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2408
2756
|
}
|
|
2409
2757
|
async listPage(options = {}) {
|
|
2410
2758
|
return this.client.requestWithQuery("GET", ACTIONS_BASE_PATH, options);
|
|
@@ -2447,7 +2795,7 @@ var ActionServiceImpl = class {
|
|
|
2447
2795
|
}
|
|
2448
2796
|
};
|
|
2449
2797
|
var ActionScopeSchema = zod.z.enum(["entity", "entity_batch", "global"]);
|
|
2450
|
-
var ActionSchema =
|
|
2798
|
+
var ActionSchema = chunkRKFXHDVU_cjs.AuditFieldsSchema.extend({
|
|
2451
2799
|
slug: zod.z.string(),
|
|
2452
2800
|
org_id: zod.z.string(),
|
|
2453
2801
|
module_slug: zod.z.string(),
|
|
@@ -2456,8 +2804,8 @@ var ActionSchema = chunkOD7GPJAW_cjs.AuditFieldsSchema.extend({
|
|
|
2456
2804
|
name: zod.z.string(),
|
|
2457
2805
|
is_active: zod.z.boolean(),
|
|
2458
2806
|
file_id: zod.z.string(),
|
|
2459
|
-
params: zod.z.array(
|
|
2460
|
-
returns: zod.z.array(
|
|
2807
|
+
params: zod.z.array(chunkRKFXHDVU_cjs.AttributeSchema),
|
|
2808
|
+
returns: zod.z.array(chunkRKFXHDVU_cjs.AttributeSchema)
|
|
2461
2809
|
});
|
|
2462
2810
|
|
|
2463
2811
|
// src/functions/index.ts
|
|
@@ -2495,7 +2843,7 @@ var LabelServiceImpl = class {
|
|
|
2495
2843
|
}
|
|
2496
2844
|
client;
|
|
2497
2845
|
list(options = {}) {
|
|
2498
|
-
return new
|
|
2846
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2499
2847
|
}
|
|
2500
2848
|
async listPage(options = {}) {
|
|
2501
2849
|
return this.client.requestWithQuery(
|
|
@@ -2526,7 +2874,7 @@ var LinkServiceImpl = class {
|
|
|
2526
2874
|
}
|
|
2527
2875
|
client;
|
|
2528
2876
|
list(options = {}) {
|
|
2529
|
-
return new
|
|
2877
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2530
2878
|
}
|
|
2531
2879
|
async listPage(options = {}) {
|
|
2532
2880
|
return this.client.requestWithQuery("GET", LINKS_BASE_PATH, options);
|
|
@@ -2553,7 +2901,7 @@ var NodeServiceImpl = class {
|
|
|
2553
2901
|
}
|
|
2554
2902
|
client;
|
|
2555
2903
|
list(options = {}) {
|
|
2556
|
-
return new
|
|
2904
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2557
2905
|
}
|
|
2558
2906
|
async listPage(options = {}) {
|
|
2559
2907
|
const { label_ids, space_slugs, ...rest } = options;
|
|
@@ -2650,7 +2998,7 @@ var SpaceServiceImpl = class {
|
|
|
2650
2998
|
}
|
|
2651
2999
|
client;
|
|
2652
3000
|
list(options = {}) {
|
|
2653
|
-
return new
|
|
3001
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2654
3002
|
}
|
|
2655
3003
|
async listPage(options = {}) {
|
|
2656
3004
|
return this.client.requestWithQuery(
|
|
@@ -2681,7 +3029,7 @@ var RecordLinkServiceImpl = class {
|
|
|
2681
3029
|
}
|
|
2682
3030
|
client;
|
|
2683
3031
|
list(options = {}) {
|
|
2684
|
-
return new
|
|
3032
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2685
3033
|
}
|
|
2686
3034
|
async listPage(options = {}) {
|
|
2687
3035
|
return this.client.requestWithQuery(
|
|
@@ -2714,7 +3062,7 @@ var KnowledgeNodeMetadataSchema = zod.z.object({
|
|
|
2714
3062
|
summary: zod.z.string().nullish(),
|
|
2715
3063
|
valid_from: zod.z.string().nullish(),
|
|
2716
3064
|
valid_until: zod.z.string().nullish()
|
|
2717
|
-
}).merge(
|
|
3065
|
+
}).merge(chunkRKFXHDVU_cjs.AuditFieldsSchema);
|
|
2718
3066
|
var KnowledgeNodeSchema = KnowledgeNodeMetadataSchema.extend({
|
|
2719
3067
|
content: zod.z.string()
|
|
2720
3068
|
});
|
|
@@ -2738,7 +3086,7 @@ var KnowledgeLinkSchema = zod.z.object({
|
|
|
2738
3086
|
"superseded_by"
|
|
2739
3087
|
]),
|
|
2740
3088
|
description: zod.z.string().nullish()
|
|
2741
|
-
}).merge(
|
|
3089
|
+
}).merge(chunkRKFXHDVU_cjs.AuditFieldsSchema);
|
|
2742
3090
|
var KnowledgeRecordLinkSchema = zod.z.object({
|
|
2743
3091
|
id: zod.z.string(),
|
|
2744
3092
|
org_id: zod.z.string(),
|
|
@@ -2746,7 +3094,7 @@ var KnowledgeRecordLinkSchema = zod.z.object({
|
|
|
2746
3094
|
entity_slug: zod.z.string(),
|
|
2747
3095
|
record_id: zod.z.string(),
|
|
2748
3096
|
created_at: zod.z.string(),
|
|
2749
|
-
created_by:
|
|
3097
|
+
created_by: chunkRKFXHDVU_cjs.UserRefSchema
|
|
2750
3098
|
});
|
|
2751
3099
|
var KnowledgeLabelSchema = zod.z.object({
|
|
2752
3100
|
id: zod.z.string(),
|
|
@@ -2756,13 +3104,13 @@ var KnowledgeLabelSchema = zod.z.object({
|
|
|
2756
3104
|
description: zod.z.string().nullish(),
|
|
2757
3105
|
color: zod.z.string().nullish(),
|
|
2758
3106
|
icon: zod.z.string().nullish()
|
|
2759
|
-
}).merge(
|
|
3107
|
+
}).merge(chunkRKFXHDVU_cjs.AuditFieldsSchema);
|
|
2760
3108
|
var KnowledgeNodeLabelSchema = zod.z.object({
|
|
2761
3109
|
org_id: zod.z.string(),
|
|
2762
3110
|
node_id: zod.z.string(),
|
|
2763
3111
|
label_id: zod.z.string(),
|
|
2764
3112
|
created_at: zod.z.string(),
|
|
2765
|
-
created_by:
|
|
3113
|
+
created_by: chunkRKFXHDVU_cjs.UserRefSchema
|
|
2766
3114
|
});
|
|
2767
3115
|
var NodeNeighborhoodSchema = zod.z.object({
|
|
2768
3116
|
nodes: zod.z.array(
|
|
@@ -2949,7 +3297,7 @@ var ExecutionServiceImpl = class {
|
|
|
2949
3297
|
}
|
|
2950
3298
|
client;
|
|
2951
3299
|
list(options = {}) {
|
|
2952
|
-
return new
|
|
3300
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
2953
3301
|
}
|
|
2954
3302
|
async listPage(options = {}) {
|
|
2955
3303
|
return this.client.requestWithQuery(
|
|
@@ -3008,7 +3356,7 @@ var WorkflowServiceImpl = class {
|
|
|
3008
3356
|
}
|
|
3009
3357
|
client;
|
|
3010
3358
|
list(options = {}) {
|
|
3011
|
-
return new
|
|
3359
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listPage(opts), options);
|
|
3012
3360
|
}
|
|
3013
3361
|
async listPage(options = {}) {
|
|
3014
3362
|
return this.client.requestWithQuery("GET", WORKFLOWS_BASE_PATH2, options);
|
|
@@ -3046,7 +3394,7 @@ var WorkflowServiceImpl = class {
|
|
|
3046
3394
|
return this.client.request("POST", `${WORKFLOWS_BASE_PATH2}/${key}/unpause`, {});
|
|
3047
3395
|
}
|
|
3048
3396
|
listVersions(key, options = {}) {
|
|
3049
|
-
return new
|
|
3397
|
+
return new chunkRKFXHDVU_cjs.PageIterator((opts) => this.listVersionsPage(key, opts), options);
|
|
3050
3398
|
}
|
|
3051
3399
|
async listVersionsPage(key, options = {}) {
|
|
3052
3400
|
return this.client.requestWithQuery(
|
|
@@ -3089,209 +3437,217 @@ var WorkflowClient = class {
|
|
|
3089
3437
|
}
|
|
3090
3438
|
};
|
|
3091
3439
|
|
|
3440
|
+
Object.defineProperty(exports, "AppConfigurationSchema", {
|
|
3441
|
+
enumerable: true,
|
|
3442
|
+
get: function () { return chunkRKFXHDVU_cjs.AppConfigurationSchema; }
|
|
3443
|
+
});
|
|
3444
|
+
Object.defineProperty(exports, "AppHomeSchema", {
|
|
3445
|
+
enumerable: true,
|
|
3446
|
+
get: function () { return chunkRKFXHDVU_cjs.AppHomeSchema; }
|
|
3447
|
+
});
|
|
3092
3448
|
Object.defineProperty(exports, "AppSchema", {
|
|
3093
3449
|
enumerable: true,
|
|
3094
|
-
get: function () { return
|
|
3450
|
+
get: function () { return chunkRKFXHDVU_cjs.AppSchema; }
|
|
3095
3451
|
});
|
|
3096
3452
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
3097
3453
|
enumerable: true,
|
|
3098
|
-
get: function () { return
|
|
3454
|
+
get: function () { return chunkRKFXHDVU_cjs.AttributeSchema; }
|
|
3099
3455
|
});
|
|
3100
3456
|
Object.defineProperty(exports, "AuditFieldsSchema", {
|
|
3101
3457
|
enumerable: true,
|
|
3102
|
-
get: function () { return
|
|
3458
|
+
get: function () { return chunkRKFXHDVU_cjs.AuditFieldsSchema; }
|
|
3103
3459
|
});
|
|
3104
3460
|
Object.defineProperty(exports, "CURRENT_USER_DEFAULT", {
|
|
3105
3461
|
enumerable: true,
|
|
3106
|
-
get: function () { return
|
|
3462
|
+
get: function () { return chunkRKFXHDVU_cjs.CURRENT_USER_DEFAULT; }
|
|
3107
3463
|
});
|
|
3108
3464
|
Object.defineProperty(exports, "ColumnSchema", {
|
|
3109
3465
|
enumerable: true,
|
|
3110
|
-
get: function () { return
|
|
3466
|
+
get: function () { return chunkRKFXHDVU_cjs.ColumnSchema; }
|
|
3111
3467
|
});
|
|
3112
3468
|
Object.defineProperty(exports, "ComponentSchema", {
|
|
3113
3469
|
enumerable: true,
|
|
3114
|
-
get: function () { return
|
|
3470
|
+
get: function () { return chunkRKFXHDVU_cjs.ComponentSchema; }
|
|
3115
3471
|
});
|
|
3116
3472
|
Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
|
|
3117
3473
|
enumerable: true,
|
|
3118
|
-
get: function () { return
|
|
3474
|
+
get: function () { return chunkRKFXHDVU_cjs.CurrencyAttributeMetaSchema; }
|
|
3119
3475
|
});
|
|
3120
3476
|
Object.defineProperty(exports, "DEFAULT_PAGE_SIZE", {
|
|
3121
3477
|
enumerable: true,
|
|
3122
|
-
get: function () { return
|
|
3478
|
+
get: function () { return chunkRKFXHDVU_cjs.DEFAULT_PAGE_SIZE; }
|
|
3123
3479
|
});
|
|
3124
3480
|
Object.defineProperty(exports, "DONE", {
|
|
3125
3481
|
enumerable: true,
|
|
3126
|
-
get: function () { return
|
|
3482
|
+
get: function () { return chunkRKFXHDVU_cjs.DONE; }
|
|
3127
3483
|
});
|
|
3128
3484
|
Object.defineProperty(exports, "DesignReferenceSchema", {
|
|
3129
3485
|
enumerable: true,
|
|
3130
|
-
get: function () { return
|
|
3486
|
+
get: function () { return chunkRKFXHDVU_cjs.DesignReferenceSchema; }
|
|
3131
3487
|
});
|
|
3132
3488
|
Object.defineProperty(exports, "EntitySchema", {
|
|
3133
3489
|
enumerable: true,
|
|
3134
|
-
get: function () { return
|
|
3490
|
+
get: function () { return chunkRKFXHDVU_cjs.EntitySchema; }
|
|
3135
3491
|
});
|
|
3136
3492
|
Object.defineProperty(exports, "EntityWithSchemaSchema", {
|
|
3137
3493
|
enumerable: true,
|
|
3138
|
-
get: function () { return
|
|
3494
|
+
get: function () { return chunkRKFXHDVU_cjs.EntityWithSchemaSchema; }
|
|
3139
3495
|
});
|
|
3140
3496
|
Object.defineProperty(exports, "FileRefSchema", {
|
|
3141
3497
|
enumerable: true,
|
|
3142
|
-
get: function () { return
|
|
3498
|
+
get: function () { return chunkRKFXHDVU_cjs.FileRefSchema; }
|
|
3143
3499
|
});
|
|
3144
3500
|
Object.defineProperty(exports, "FilterElementSchema", {
|
|
3145
3501
|
enumerable: true,
|
|
3146
|
-
get: function () { return
|
|
3502
|
+
get: function () { return chunkRKFXHDVU_cjs.FilterElementSchema; }
|
|
3147
3503
|
});
|
|
3148
3504
|
Object.defineProperty(exports, "FilterGroupSchema", {
|
|
3149
3505
|
enumerable: true,
|
|
3150
|
-
get: function () { return
|
|
3506
|
+
get: function () { return chunkRKFXHDVU_cjs.FilterGroupSchema; }
|
|
3151
3507
|
});
|
|
3152
3508
|
Object.defineProperty(exports, "ListSchema", {
|
|
3153
3509
|
enumerable: true,
|
|
3154
|
-
get: function () { return
|
|
3510
|
+
get: function () { return chunkRKFXHDVU_cjs.ListSchema; }
|
|
3155
3511
|
});
|
|
3156
3512
|
Object.defineProperty(exports, "ListViewSchema", {
|
|
3157
3513
|
enumerable: true,
|
|
3158
|
-
get: function () { return
|
|
3514
|
+
get: function () { return chunkRKFXHDVU_cjs.ListViewSchema; }
|
|
3159
3515
|
});
|
|
3160
3516
|
Object.defineProperty(exports, "MenuConfigurationSchema", {
|
|
3161
3517
|
enumerable: true,
|
|
3162
|
-
get: function () { return
|
|
3518
|
+
get: function () { return chunkRKFXHDVU_cjs.MenuConfigurationSchema; }
|
|
3163
3519
|
});
|
|
3164
3520
|
Object.defineProperty(exports, "MenuItemSchema", {
|
|
3165
3521
|
enumerable: true,
|
|
3166
|
-
get: function () { return
|
|
3522
|
+
get: function () { return chunkRKFXHDVU_cjs.MenuItemSchema; }
|
|
3167
3523
|
});
|
|
3168
3524
|
Object.defineProperty(exports, "MenuItemType", {
|
|
3169
3525
|
enumerable: true,
|
|
3170
|
-
get: function () { return
|
|
3526
|
+
get: function () { return chunkRKFXHDVU_cjs.MenuItemType; }
|
|
3171
3527
|
});
|
|
3172
3528
|
Object.defineProperty(exports, "MetaClient", {
|
|
3173
3529
|
enumerable: true,
|
|
3174
|
-
get: function () { return
|
|
3530
|
+
get: function () { return chunkRKFXHDVU_cjs.MetaClient; }
|
|
3175
3531
|
});
|
|
3176
3532
|
Object.defineProperty(exports, "ModuleSchema", {
|
|
3177
3533
|
enumerable: true,
|
|
3178
|
-
get: function () { return
|
|
3534
|
+
get: function () { return chunkRKFXHDVU_cjs.ModuleSchema; }
|
|
3179
3535
|
});
|
|
3180
3536
|
Object.defineProperty(exports, "OnDeleteActionSchema", {
|
|
3181
3537
|
enumerable: true,
|
|
3182
|
-
get: function () { return
|
|
3538
|
+
get: function () { return chunkRKFXHDVU_cjs.OnDeleteActionSchema; }
|
|
3183
3539
|
});
|
|
3184
3540
|
Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
|
|
3185
3541
|
enumerable: true,
|
|
3186
|
-
get: function () { return
|
|
3542
|
+
get: function () { return chunkRKFXHDVU_cjs.PLATFORM_ATTRIBUTE_NAMES; }
|
|
3187
3543
|
});
|
|
3188
3544
|
Object.defineProperty(exports, "PLATFORM_USER_ID", {
|
|
3189
3545
|
enumerable: true,
|
|
3190
|
-
get: function () { return
|
|
3546
|
+
get: function () { return chunkRKFXHDVU_cjs.PLATFORM_USER_ID; }
|
|
3191
3547
|
});
|
|
3192
3548
|
Object.defineProperty(exports, "PageActionSchema", {
|
|
3193
3549
|
enumerable: true,
|
|
3194
|
-
get: function () { return
|
|
3550
|
+
get: function () { return chunkRKFXHDVU_cjs.PageActionSchema; }
|
|
3195
3551
|
});
|
|
3196
3552
|
Object.defineProperty(exports, "PageIterator", {
|
|
3197
3553
|
enumerable: true,
|
|
3198
|
-
get: function () { return
|
|
3554
|
+
get: function () { return chunkRKFXHDVU_cjs.PageIterator; }
|
|
3199
3555
|
});
|
|
3200
3556
|
Object.defineProperty(exports, "PageLayoutSchema", {
|
|
3201
3557
|
enumerable: true,
|
|
3202
|
-
get: function () { return
|
|
3558
|
+
get: function () { return chunkRKFXHDVU_cjs.PageLayoutSchema; }
|
|
3203
3559
|
});
|
|
3204
3560
|
Object.defineProperty(exports, "PageSchema", {
|
|
3205
3561
|
enumerable: true,
|
|
3206
|
-
get: function () { return
|
|
3562
|
+
get: function () { return chunkRKFXHDVU_cjs.PageSchema; }
|
|
3207
3563
|
});
|
|
3208
3564
|
Object.defineProperty(exports, "RelationAttributeMetaSchema", {
|
|
3209
3565
|
enumerable: true,
|
|
3210
|
-
get: function () { return
|
|
3566
|
+
get: function () { return chunkRKFXHDVU_cjs.RelationAttributeMetaSchema; }
|
|
3211
3567
|
});
|
|
3212
3568
|
Object.defineProperty(exports, "ResponseMetaSchema", {
|
|
3213
3569
|
enumerable: true,
|
|
3214
|
-
get: function () { return
|
|
3570
|
+
get: function () { return chunkRKFXHDVU_cjs.ResponseMetaSchema; }
|
|
3215
3571
|
});
|
|
3216
3572
|
Object.defineProperty(exports, "SortConfigSchema", {
|
|
3217
3573
|
enumerable: true,
|
|
3218
|
-
get: function () { return
|
|
3574
|
+
get: function () { return chunkRKFXHDVU_cjs.SortConfigSchema; }
|
|
3219
3575
|
});
|
|
3220
3576
|
Object.defineProperty(exports, "UserRefSchema", {
|
|
3221
3577
|
enumerable: true,
|
|
3222
|
-
get: function () { return
|
|
3578
|
+
get: function () { return chunkRKFXHDVU_cjs.UserRefSchema; }
|
|
3223
3579
|
});
|
|
3224
3580
|
Object.defineProperty(exports, "VariableSchema", {
|
|
3225
3581
|
enumerable: true,
|
|
3226
|
-
get: function () { return
|
|
3582
|
+
get: function () { return chunkRKFXHDVU_cjs.VariableSchema; }
|
|
3227
3583
|
});
|
|
3228
3584
|
Object.defineProperty(exports, "acceptsCurrentUserDefault", {
|
|
3229
3585
|
enumerable: true,
|
|
3230
|
-
get: function () { return
|
|
3586
|
+
get: function () { return chunkRKFXHDVU_cjs.acceptsCurrentUserDefault; }
|
|
3231
3587
|
});
|
|
3232
3588
|
Object.defineProperty(exports, "allCurrencyCodes", {
|
|
3233
3589
|
enumerable: true,
|
|
3234
|
-
get: function () { return
|
|
3590
|
+
get: function () { return chunkRKFXHDVU_cjs.allCurrencyCodes; }
|
|
3235
3591
|
});
|
|
3236
3592
|
Object.defineProperty(exports, "createIterator", {
|
|
3237
3593
|
enumerable: true,
|
|
3238
|
-
get: function () { return
|
|
3594
|
+
get: function () { return chunkRKFXHDVU_cjs.createIterator; }
|
|
3239
3595
|
});
|
|
3240
3596
|
Object.defineProperty(exports, "createListResultSchema", {
|
|
3241
3597
|
enumerable: true,
|
|
3242
|
-
get: function () { return
|
|
3598
|
+
get: function () { return chunkRKFXHDVU_cjs.createListResultSchema; }
|
|
3243
3599
|
});
|
|
3244
3600
|
Object.defineProperty(exports, "currencyLabel", {
|
|
3245
3601
|
enumerable: true,
|
|
3246
|
-
get: function () { return
|
|
3602
|
+
get: function () { return chunkRKFXHDVU_cjs.currencyLabel; }
|
|
3247
3603
|
});
|
|
3248
3604
|
Object.defineProperty(exports, "currencySymbol", {
|
|
3249
3605
|
enumerable: true,
|
|
3250
|
-
get: function () { return
|
|
3606
|
+
get: function () { return chunkRKFXHDVU_cjs.currencySymbol; }
|
|
3251
3607
|
});
|
|
3252
3608
|
Object.defineProperty(exports, "currencySymbolSide", {
|
|
3253
3609
|
enumerable: true,
|
|
3254
|
-
get: function () { return
|
|
3610
|
+
get: function () { return chunkRKFXHDVU_cjs.currencySymbolSide; }
|
|
3255
3611
|
});
|
|
3256
3612
|
Object.defineProperty(exports, "formatAmount", {
|
|
3257
3613
|
enumerable: true,
|
|
3258
|
-
get: function () { return
|
|
3614
|
+
get: function () { return chunkRKFXHDVU_cjs.formatAmount; }
|
|
3259
3615
|
});
|
|
3260
3616
|
Object.defineProperty(exports, "formatMoney", {
|
|
3261
3617
|
enumerable: true,
|
|
3262
|
-
get: function () { return
|
|
3618
|
+
get: function () { return chunkRKFXHDVU_cjs.formatMoney; }
|
|
3263
3619
|
});
|
|
3264
3620
|
Object.defineProperty(exports, "isCurrentUserDefault", {
|
|
3265
3621
|
enumerable: true,
|
|
3266
|
-
get: function () { return
|
|
3622
|
+
get: function () { return chunkRKFXHDVU_cjs.isCurrentUserDefault; }
|
|
3267
3623
|
});
|
|
3268
3624
|
Object.defineProperty(exports, "isPlatformAttributeName", {
|
|
3269
3625
|
enumerable: true,
|
|
3270
|
-
get: function () { return
|
|
3626
|
+
get: function () { return chunkRKFXHDVU_cjs.isPlatformAttributeName; }
|
|
3271
3627
|
});
|
|
3272
3628
|
Object.defineProperty(exports, "localeNumberSeparators", {
|
|
3273
3629
|
enumerable: true,
|
|
3274
|
-
get: function () { return
|
|
3630
|
+
get: function () { return chunkRKFXHDVU_cjs.localeNumberSeparators; }
|
|
3275
3631
|
});
|
|
3276
3632
|
Object.defineProperty(exports, "parseAmount", {
|
|
3277
3633
|
enumerable: true,
|
|
3278
|
-
get: function () { return
|
|
3634
|
+
get: function () { return chunkRKFXHDVU_cjs.parseAmount; }
|
|
3279
3635
|
});
|
|
3280
3636
|
Object.defineProperty(exports, "parseCurrencyMeta", {
|
|
3281
3637
|
enumerable: true,
|
|
3282
|
-
get: function () { return
|
|
3638
|
+
get: function () { return chunkRKFXHDVU_cjs.parseCurrencyMeta; }
|
|
3283
3639
|
});
|
|
3284
3640
|
Object.defineProperty(exports, "parseFileMeta", {
|
|
3285
3641
|
enumerable: true,
|
|
3286
|
-
get: function () { return
|
|
3642
|
+
get: function () { return chunkRKFXHDVU_cjs.parseFileMeta; }
|
|
3287
3643
|
});
|
|
3288
3644
|
Object.defineProperty(exports, "parseRelationMeta", {
|
|
3289
3645
|
enumerable: true,
|
|
3290
|
-
get: function () { return
|
|
3646
|
+
get: function () { return chunkRKFXHDVU_cjs.parseRelationMeta; }
|
|
3291
3647
|
});
|
|
3292
3648
|
Object.defineProperty(exports, "platformAttributes", {
|
|
3293
3649
|
enumerable: true,
|
|
3294
|
-
get: function () { return
|
|
3650
|
+
get: function () { return chunkRKFXHDVU_cjs.platformAttributes; }
|
|
3295
3651
|
});
|
|
3296
3652
|
exports.AccountClient = AccountClient;
|
|
3297
3653
|
exports.ActionSchema = ActionSchema;
|
|
@@ -3322,6 +3678,7 @@ exports.NodeNeighborhoodSchema = NodeNeighborhoodSchema;
|
|
|
3322
3678
|
exports.OrganizationSchema = OrganizationSchema;
|
|
3323
3679
|
exports.PLATFORM_ENTITIES = PLATFORM_ENTITIES;
|
|
3324
3680
|
exports.PLATFORM_ENTITY_SLUGS = PLATFORM_ENTITY_SLUGS;
|
|
3681
|
+
exports.ProfileSchema = ProfileSchema;
|
|
3325
3682
|
exports.ProteosClient = ProteosClient;
|
|
3326
3683
|
exports.ProteosError = ProteosError;
|
|
3327
3684
|
exports.RoleEntityPermissionSchema = RoleEntityPermissionSchema;
|
|
@@ -3329,6 +3686,7 @@ exports.RoleSchema = RoleSchema;
|
|
|
3329
3686
|
exports.SCOPED_PLATFORM_ENTITY_SLUGS = SCOPED_PLATFORM_ENTITY_SLUGS;
|
|
3330
3687
|
exports.StorageClient = StorageClient;
|
|
3331
3688
|
exports.UNASSIGNED_SPACE_SLUG = UNASSIGNED_SPACE_SLUG;
|
|
3689
|
+
exports.UserProfileAssignmentSchema = UserProfileAssignmentSchema;
|
|
3332
3690
|
exports.UserRoleAssignmentSchema = UserRoleAssignmentSchema;
|
|
3333
3691
|
exports.UserSchema = UserSchema;
|
|
3334
3692
|
exports.WorkflowClient = WorkflowClient;
|