@gravity-rail/sdk 6.0.0 → 7.0.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.
Files changed (39) hide show
  1. package/dist/{account-CSJJbLIj.d.cts → account-DLwJWX9b.d.cts} +70 -7
  2. package/dist/{account-CSJJbLIj.d.ts → account-DLwJWX9b.d.ts} +70 -7
  3. package/dist/{agent_standing_job-yehTe972.d.ts → agent_standing_job-8aO5bEFa.d.cts} +48 -4
  4. package/dist/{agent_standing_job-CqKpMoHO.d.cts → agent_standing_job-DVHim0Te.d.ts} +48 -4
  5. package/dist/{chat-interaction-BtUtVszg.d.ts → chat-interaction-B_d8hxyU.d.cts} +400 -79
  6. package/dist/{chat-interaction-CAfwlYvv.d.cts → chat-interaction-D5I0hKyc.d.ts} +400 -79
  7. package/dist/{chunk-L4XC6KDG.js → chunk-M77YVSBD.js} +49 -11
  8. package/dist/chunk-M77YVSBD.js.map +1 -0
  9. package/dist/{chunk-P2MSMMMJ.js → chunk-T26HRHRS.js} +1 -1
  10. package/dist/chunk-T26HRHRS.js.map +1 -0
  11. package/dist/helpers.d.cts +3 -3
  12. package/dist/helpers.d.ts +3 -3
  13. package/dist/index.cjs +48 -10
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +8 -49
  16. package/dist/index.d.ts +8 -49
  17. package/dist/index.js +2 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.cjs +48 -10
  20. package/dist/internal.cjs.map +1 -1
  21. package/dist/internal.d.cts +47 -8
  22. package/dist/internal.d.ts +47 -8
  23. package/dist/internal.js +2 -2
  24. package/dist/internal.js.map +1 -1
  25. package/dist/{member-import-C5nnoGvW.d.ts → member-import-BFicp3ce.d.ts} +1 -1
  26. package/dist/{member-import-DhaNVT7s.d.cts → member-import-Dy-kcTfi.d.cts} +1 -1
  27. package/dist/realtime.cjs.map +1 -1
  28. package/dist/realtime.js.map +1 -1
  29. package/dist/schemas.cjs +1 -0
  30. package/dist/schemas.cjs.map +1 -1
  31. package/dist/schemas.d.cts +9 -6
  32. package/dist/schemas.d.ts +9 -6
  33. package/dist/schemas.js +2 -1
  34. package/dist/schemas.js.map +1 -1
  35. package/dist/{tasks-A12E_RLa.d.cts → tasks-DHvGDkhw.d.cts} +74 -48
  36. package/dist/{tasks-DrmyOlRh.d.ts → tasks-DW2dTbAJ.d.ts} +74 -48
  37. package/package.json +1 -1
  38. package/dist/chunk-L4XC6KDG.js.map +0 -1
  39. package/dist/chunk-P2MSMMMJ.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -707,6 +707,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
707
707
  EventRuleObjectType2["CALL"] = "call";
708
708
  EventRuleObjectType2["VOICEMAIL"] = "voicemail";
709
709
  EventRuleObjectType2["FAX"] = "fax";
710
+ EventRuleObjectType2["FOLDER"] = "folder";
710
711
  return EventRuleObjectType2;
711
712
  })(EventRuleObjectType || {});
712
713
  var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
@@ -743,11 +744,16 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
743
744
  EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
744
745
  EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
745
746
  EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
747
+ EventRuleEventType2["FILE_CREATED"] = "file:created";
748
+ EventRuleEventType2["FILE_UPDATED"] = "file:updated";
749
+ EventRuleEventType2["FILE_MOVED"] = "file:moved";
750
+ EventRuleEventType2["FILE_DELETED"] = "file:deleted";
746
751
  return EventRuleEventType2;
747
752
  })(EventRuleEventType || {});
748
753
  var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
749
754
  EventRuleActionType2["MEMBER_NOTIFY_ACTION"] = "member:notify";
750
755
  EventRuleActionType2["MEMBER_LABEL_ACTION"] = "member:label";
756
+ EventRuleActionType2["FILE_LABEL_ACTION"] = "file:label";
751
757
  EventRuleActionType2["MEMBER_UPSERT"] = "member:upsert";
752
758
  EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
753
759
  EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
@@ -7019,6 +7025,13 @@ var DataTypesApi = class extends BaseApiClient {
7019
7025
  body: JSON.stringify(data)
7020
7026
  });
7021
7027
  }
7028
+ /** Record that a care console billing CSV was downloaded, for the export audit trail. */
7029
+ async recordCcmBillingExport(wid, data) {
7030
+ await this.fetch(`w/${wid}/ccm/billing-exports`, {
7031
+ method: "POST",
7032
+ body: JSON.stringify(data)
7033
+ });
7034
+ }
7022
7035
  /** List data records for a data type with optional filtering and pagination. */
7023
7036
  async getDataRecords(wid, dataTypeId, options) {
7024
7037
  const params = new URLSearchParams();
@@ -7578,14 +7591,12 @@ var TeamsAppsApi = class extends BaseApiClient {
7578
7591
  );
7579
7592
  }
7580
7593
  /**
7581
- * Channels this app has observed, for approval on its settings form.
7582
- * Approval is saved through `updateTeamsApp`
7583
- * (`approvedNotificationDestinationIds`); observation approves nothing.
7594
+ * The organization Bot Teams connection that delivers this workspace's
7595
+ * notifications, the connections it may choose, and the caller's own
7596
+ * readiness. Reads only; nothing is sent to Microsoft.
7584
7597
  */
7585
- async getTeamsNotificationDestinations(wid, appId) {
7586
- return this.fetch(
7587
- `w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
7588
- );
7598
+ async getTeamsNotificationDelivery(wid) {
7599
+ return this.fetch(`w/${wid}/notification-delivery/teams`);
7589
7600
  }
7590
7601
  async getTeamsAppAccounts(wid, appId, options = {}) {
7591
7602
  const params = new URLSearchParams();
@@ -7629,6 +7640,7 @@ var EventsApi = class extends BaseApiClient {
7629
7640
  searchParams.append("workflowRevisionId", params.workflowRevisionId.toString());
7630
7641
  if (params.journeyStepId)
7631
7642
  searchParams.append("journeyStepId", params.journeyStepId.toString());
7643
+ if (params.folderId != null) searchParams.append("folderId", params.folderId.toString());
7632
7644
  if (params.includeDisabled) searchParams.append("includeDisabled", "true");
7633
7645
  return this.fetch(`w/${wid}/event-rules/search?${searchParams.toString()}`);
7634
7646
  }
@@ -10956,6 +10968,30 @@ var OrgApi = class extends BaseApiClient {
10956
10968
  method: "DELETE"
10957
10969
  });
10958
10970
  }
10971
+ /**
10972
+ * Read the organization's Inference API page: base URL, models, harness
10973
+ * snippets, credit posture and usage. Requires `org:admin`.
10974
+ */
10975
+ async getOrgInferenceApi(orgIdOrUuid) {
10976
+ return this.fetch(`o/${orgIdOrUuid}/inference-api`);
10977
+ }
10978
+ /** Set the Inference API credit mode. Requires `org:admin`. */
10979
+ async updateOrgInferenceApi(orgIdOrUuid, data) {
10980
+ return this.fetch(`o/${orgIdOrUuid}/inference-api`, {
10981
+ method: "PUT",
10982
+ body: JSON.stringify(data)
10983
+ });
10984
+ }
10985
+ /**
10986
+ * Mint a workspace-bound Inference API key. The secret is returned once.
10987
+ * Requires `org:admin`.
10988
+ */
10989
+ async createOrgInferenceApiKey(orgIdOrUuid, data) {
10990
+ return this.fetch(`o/${orgIdOrUuid}/inference-api/keys`, {
10991
+ method: "POST",
10992
+ body: JSON.stringify(data)
10993
+ });
10994
+ }
10959
10995
  /** Current Organization billing access and billable subscription. */
10960
10996
  async getOrgBillingAccess(orgIdOrUuid) {
10961
10997
  return this.fetch(`o/${orgIdOrUuid}/billing-access`);
@@ -17456,7 +17492,7 @@ var WORKSPACE_METHOD_NAMES = [
17456
17492
  "getTeamsApps",
17457
17493
  "getTeamsConversations",
17458
17494
  "getTeamsInstallations",
17459
- "getTeamsNotificationDestinations",
17495
+ "getTeamsNotificationDelivery",
17460
17496
  "getTemplateContext",
17461
17497
  "getChatTestRun",
17462
17498
  "getTestChatRun",
@@ -18038,6 +18074,7 @@ function bindDataTypesMethods(target, dataTypes) {
18038
18074
  target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
18039
18075
  target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
18040
18076
  target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
18077
+ target.recordCcmBillingExport = dataTypes.recordCcmBillingExport.bind(dataTypes);
18041
18078
  target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
18042
18079
  target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
18043
18080
  target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
@@ -18768,7 +18805,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
18768
18805
  target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
18769
18806
  target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
18770
18807
  target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
18771
- target.getTeamsNotificationDestinations = teamsApps.getTeamsNotificationDestinations.bind(teamsApps);
18808
+ target.getTeamsNotificationDelivery = teamsApps.getTeamsNotificationDelivery.bind(teamsApps);
18772
18809
  target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
18773
18810
  target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
18774
18811
  target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
@@ -19387,6 +19424,7 @@ var GravityRailClient = class {
19387
19424
  unarchiveDataType;
19388
19425
  cloneDataType;
19389
19426
  getDataRecords;
19427
+ recordCcmBillingExport;
19390
19428
  getWorkspaceValuesRecord;
19391
19429
  listAnonymousFormSubmissions;
19392
19430
  getAnonymousFormSubmission;
@@ -20371,7 +20409,7 @@ var GravityRailClient = class {
20371
20409
  getTeamsConversations;
20372
20410
  getTeamsInstallations;
20373
20411
  getTeamsAppAccounts;
20374
- getTeamsNotificationDestinations;
20412
+ getTeamsNotificationDelivery;
20375
20413
  // FHIR Connections API
20376
20414
  getFhirConnections;
20377
20415
  getFhirConnection;