@isomorph.ai/app-sdk 2.6.1 → 2.6.2

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/index.d.ts CHANGED
@@ -298,6 +298,8 @@ export interface GmailAttachmentInput {
298
298
  export interface GmailMessageSendRequest {
299
299
  operation: 'gmail.message.send';
300
300
  resource: string;
301
+ /** `app` sends from the company mailbox IT connected (contracts 0.102.0); `user` (the default) sends as the signed-in person. */
302
+ mode?: SlackIdentityMode;
301
303
  input: {
302
304
  /** 1 to 50 email addresses per recipient list (at most 50 across to, cc and bcc). */
303
305
  to: string[];
package/dist/index.js CHANGED
@@ -835,7 +835,7 @@ export function createClient(options = {}) {
835
835
  }
836
836
  catch { /* not JSON: the status says what happened */ }
837
837
  if (!response.ok || body.error) {
838
- throw new IsomorphError(body.error?.category ?? 'INTERNAL', body.error?.message ?? `the public action answered ${response.status}`, body.requestId, undefined, response.status);
838
+ throw new IsomorphError(body.error?.category ?? 'INTERNAL', body.error?.message ?? `the public action answered ${response.status}`, body.requestId, body.error?.details, response.status);
839
839
  }
840
840
  return body.data;
841
841
  },
@@ -65,9 +65,9 @@ export declare const IntegrationOperations: {
65
65
  };
66
66
  readonly "gmail.message.send": {
67
67
  readonly kind: "saas";
68
- readonly identities: readonly ["user"];
68
+ readonly identities: readonly ["user", "app"];
69
69
  readonly readOnly: false;
70
- readonly declaredMode: false;
70
+ readonly declaredMode: true;
71
71
  readonly idempotencyKey: true;
72
72
  };
73
73
  readonly "gmail.attachment.read": {
@@ -90,10 +90,11 @@ export const IntegrationOperations = {
90
90
  "gmail.message.send": {
91
91
  "kind": "saas",
92
92
  "identities": [
93
- "user"
93
+ "user",
94
+ "app"
94
95
  ],
95
96
  "readOnly": false,
96
- "declaredMode": false,
97
+ "declaredMode": true,
97
98
  "idempotencyKey": true
98
99
  },
99
100
  "gmail.attachment.read": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isomorph.ai/app-sdk",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",