@seamapi/types 1.77.0 → 1.78.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.
@@ -8014,7 +8014,28 @@ export interface Routes {
8014
8014
  commonParams: {};
8015
8015
  formData: {};
8016
8016
  jsonResponse: {
8017
- message: string;
8017
+ action_attempt: {
8018
+ status: 'success';
8019
+ action_type: string;
8020
+ action_attempt_id: string;
8021
+ result?: any;
8022
+ error: null;
8023
+ } | {
8024
+ status: 'pending';
8025
+ action_type: string;
8026
+ action_attempt_id: string;
8027
+ result: null;
8028
+ error: null;
8029
+ } | {
8030
+ status: 'error';
8031
+ action_type: string;
8032
+ action_attempt_id: string;
8033
+ result: null;
8034
+ error: {
8035
+ type: string;
8036
+ message: string;
8037
+ };
8038
+ };
8018
8039
  };
8019
8040
  };
8020
8041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.77.0",
3
+ "version": "1.78.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -12221,10 +12221,12 @@ export default {
12221
12221
  'application/json': {
12222
12222
  schema: {
12223
12223
  properties: {
12224
- message: { type: 'string' },
12224
+ action_attempt: {
12225
+ $ref: '#/components/schemas/action_attempt',
12226
+ },
12225
12227
  ok: { type: 'boolean' },
12226
12228
  },
12227
- required: ['message', 'ok'],
12229
+ required: ['action_attempt', 'ok'],
12228
12230
  type: 'object',
12229
12231
  },
12230
12232
  },
@@ -11002,7 +11002,31 @@ export interface Routes {
11002
11002
  commonParams: {}
11003
11003
  formData: {}
11004
11004
  jsonResponse: {
11005
- message: string
11005
+ action_attempt:
11006
+ | {
11007
+ status: 'success'
11008
+ action_type: string
11009
+ action_attempt_id: string
11010
+ result?: any
11011
+ error: null
11012
+ }
11013
+ | {
11014
+ status: 'pending'
11015
+ action_type: string
11016
+ action_attempt_id: string
11017
+ result: null
11018
+ error: null
11019
+ }
11020
+ | {
11021
+ status: 'error'
11022
+ action_type: string
11023
+ action_attempt_id: string
11024
+ result: null
11025
+ error: {
11026
+ type: string
11027
+ message: string
11028
+ }
11029
+ }
11006
11030
  }
11007
11031
  }
11008
11032
  }