@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
@@ -2664,6 +2664,13 @@ var DataTypesApi = class extends BaseApiClient {
2664
2664
  body: JSON.stringify(data)
2665
2665
  });
2666
2666
  }
2667
+ /** Record that a care console billing CSV was downloaded, for the export audit trail. */
2668
+ async recordCcmBillingExport(wid, data) {
2669
+ await this.fetch(`w/${wid}/ccm/billing-exports`, {
2670
+ method: "POST",
2671
+ body: JSON.stringify(data)
2672
+ });
2673
+ }
2667
2674
  /** List data records for a data type with optional filtering and pagination. */
2668
2675
  async getDataRecords(wid, dataTypeId, options) {
2669
2676
  const params = new URLSearchParams();
@@ -3165,6 +3172,7 @@ var EventsApi = class extends BaseApiClient {
3165
3172
  searchParams.append("workflowRevisionId", params.workflowRevisionId.toString());
3166
3173
  if (params.journeyStepId)
3167
3174
  searchParams.append("journeyStepId", params.journeyStepId.toString());
3175
+ if (params.folderId != null) searchParams.append("folderId", params.folderId.toString());
3168
3176
  if (params.includeDisabled) searchParams.append("includeDisabled", "true");
3169
3177
  return this.fetch(`w/${wid}/event-rules/search?${searchParams.toString()}`);
3170
3178
  }
@@ -6046,6 +6054,30 @@ var OrgApi = class extends BaseApiClient {
6046
6054
  method: "DELETE"
6047
6055
  });
6048
6056
  }
6057
+ /**
6058
+ * Read the organization's Inference API page: base URL, models, harness
6059
+ * snippets, credit posture and usage. Requires `org:admin`.
6060
+ */
6061
+ async getOrgInferenceApi(orgIdOrUuid) {
6062
+ return this.fetch(`o/${orgIdOrUuid}/inference-api`);
6063
+ }
6064
+ /** Set the Inference API credit mode. Requires `org:admin`. */
6065
+ async updateOrgInferenceApi(orgIdOrUuid, data) {
6066
+ return this.fetch(`o/${orgIdOrUuid}/inference-api`, {
6067
+ method: "PUT",
6068
+ body: JSON.stringify(data)
6069
+ });
6070
+ }
6071
+ /**
6072
+ * Mint a workspace-bound Inference API key. The secret is returned once.
6073
+ * Requires `org:admin`.
6074
+ */
6075
+ async createOrgInferenceApiKey(orgIdOrUuid, data) {
6076
+ return this.fetch(`o/${orgIdOrUuid}/inference-api/keys`, {
6077
+ method: "POST",
6078
+ body: JSON.stringify(data)
6079
+ });
6080
+ }
6049
6081
  /** Current Organization billing access and billable subscription. */
6050
6082
  async getOrgBillingAccess(orgIdOrUuid) {
6051
6083
  return this.fetch(`o/${orgIdOrUuid}/billing-access`);
@@ -11008,6 +11040,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
11008
11040
  EventRuleObjectType2["CALL"] = "call";
11009
11041
  EventRuleObjectType2["VOICEMAIL"] = "voicemail";
11010
11042
  EventRuleObjectType2["FAX"] = "fax";
11043
+ EventRuleObjectType2["FOLDER"] = "folder";
11011
11044
  return EventRuleObjectType2;
11012
11045
  })(EventRuleObjectType || {});
11013
11046
  var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
@@ -11044,11 +11077,16 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
11044
11077
  EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
11045
11078
  EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
11046
11079
  EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
11080
+ EventRuleEventType2["FILE_CREATED"] = "file:created";
11081
+ EventRuleEventType2["FILE_UPDATED"] = "file:updated";
11082
+ EventRuleEventType2["FILE_MOVED"] = "file:moved";
11083
+ EventRuleEventType2["FILE_DELETED"] = "file:deleted";
11047
11084
  return EventRuleEventType2;
11048
11085
  })(EventRuleEventType || {});
11049
11086
  var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
11050
11087
  EventRuleActionType2["MEMBER_NOTIFY_ACTION"] = "member:notify";
11051
11088
  EventRuleActionType2["MEMBER_LABEL_ACTION"] = "member:label";
11089
+ EventRuleActionType2["FILE_LABEL_ACTION"] = "file:label";
11052
11090
  EventRuleActionType2["MEMBER_UPSERT"] = "member:upsert";
11053
11091
  EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
11054
11092
  EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
@@ -13206,14 +13244,12 @@ var TeamsAppsApi = class extends BaseApiClient {
13206
13244
  );
13207
13245
  }
13208
13246
  /**
13209
- * Channels this app has observed, for approval on its settings form.
13210
- * Approval is saved through `updateTeamsApp`
13211
- * (`approvedNotificationDestinationIds`); observation approves nothing.
13247
+ * The organization Bot Teams connection that delivers this workspace's
13248
+ * notifications, the connections it may choose, and the caller's own
13249
+ * readiness. Reads only; nothing is sent to Microsoft.
13212
13250
  */
13213
- async getTeamsNotificationDestinations(wid, appId) {
13214
- return this.fetch(
13215
- `w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
13216
- );
13251
+ async getTeamsNotificationDelivery(wid) {
13252
+ return this.fetch(`w/${wid}/notification-delivery/teams`);
13217
13253
  }
13218
13254
  async getTeamsAppAccounts(wid, appId, options = {}) {
13219
13255
  const params = new URLSearchParams();
@@ -14739,7 +14775,7 @@ var WORKSPACE_METHOD_NAMES = [
14739
14775
  "getTeamsApps",
14740
14776
  "getTeamsConversations",
14741
14777
  "getTeamsInstallations",
14742
- "getTeamsNotificationDestinations",
14778
+ "getTeamsNotificationDelivery",
14743
14779
  "getTemplateContext",
14744
14780
  "getChatTestRun",
14745
14781
  "getTestChatRun",
@@ -15321,6 +15357,7 @@ function bindDataTypesMethods(target, dataTypes) {
15321
15357
  target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
15322
15358
  target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
15323
15359
  target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
15360
+ target.recordCcmBillingExport = dataTypes.recordCcmBillingExport.bind(dataTypes);
15324
15361
  target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
15325
15362
  target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
15326
15363
  target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
@@ -16051,7 +16088,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16051
16088
  target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
16052
16089
  target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
16053
16090
  target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
16054
- target.getTeamsNotificationDestinations = teamsApps.getTeamsNotificationDestinations.bind(teamsApps);
16091
+ target.getTeamsNotificationDelivery = teamsApps.getTeamsNotificationDelivery.bind(teamsApps);
16055
16092
  target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
16056
16093
  target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
16057
16094
  target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
@@ -16670,6 +16707,7 @@ var GravityRailClient = class {
16670
16707
  unarchiveDataType;
16671
16708
  cloneDataType;
16672
16709
  getDataRecords;
16710
+ recordCcmBillingExport;
16673
16711
  getWorkspaceValuesRecord;
16674
16712
  listAnonymousFormSubmissions;
16675
16713
  getAnonymousFormSubmission;
@@ -17654,7 +17692,7 @@ var GravityRailClient = class {
17654
17692
  getTeamsConversations;
17655
17693
  getTeamsInstallations;
17656
17694
  getTeamsAppAccounts;
17657
- getTeamsNotificationDestinations;
17695
+ getTeamsNotificationDelivery;
17658
17696
  // FHIR Connections API
17659
17697
  getFhirConnections;
17660
17698
  getFhirConnection;
@@ -19890,4 +19928,4 @@ export {
19890
19928
  pathDraftFromStorage,
19891
19929
  pathDraftToStorage
19892
19930
  };
19893
- //# sourceMappingURL=chunk-L4XC6KDG.js.map
19931
+ //# sourceMappingURL=chunk-M77YVSBD.js.map