@seamapi/types 0.2.2 → 0.3.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.
@@ -501,8 +501,8 @@ export interface Routes {
501
501
  route: '/client_sessions/create';
502
502
  method: 'POST' | 'PUT';
503
503
  queryParams: {};
504
- jsonBody: any | {
505
- user_identifier_key: string;
504
+ jsonBody: {
505
+ user_identifier_key?: string | undefined;
506
506
  connect_webview_ids?: string[] | undefined;
507
507
  connected_account_ids?: string[] | undefined;
508
508
  };
@@ -512,6 +512,7 @@ export interface Routes {
512
512
  client_session: {
513
513
  token: string;
514
514
  client_session_id: string;
515
+ user_identifier_key: string | null;
515
516
  created_at: string;
516
517
  };
517
518
  };
@@ -532,7 +533,11 @@ export interface Routes {
532
533
  method: 'POST' | 'GET';
533
534
  queryParams: {};
534
535
  jsonBody: {};
535
- commonParams: {};
536
+ commonParams: {
537
+ client_session_id?: string | undefined;
538
+ user_identifier_key?: string | undefined;
539
+ without_user_identifier_key?: boolean | undefined;
540
+ };
536
541
  formData: {};
537
542
  jsonResponse: {
538
543
  client_sessions: Array<{
@@ -900,7 +905,7 @@ export interface Routes {
900
905
  };
901
906
  '/events/get': {
902
907
  route: '/events/get';
903
- method: 'GET';
908
+ method: 'GET' | 'POST';
904
909
  queryParams: {};
905
910
  jsonBody: {};
906
911
  commonParams: {
@@ -915,8 +920,8 @@ export interface Routes {
915
920
  device_id?: string | undefined;
916
921
  event_type: string;
917
922
  workspace_id: string;
918
- created_at: Date;
919
- occurred_at: Date;
923
+ created_at: string;
924
+ occurred_at: string;
920
925
  } | undefined;
921
926
  message?: string | undefined;
922
927
  };
@@ -944,8 +949,8 @@ export interface Routes {
944
949
  device_id?: string | undefined;
945
950
  event_type: string;
946
951
  workspace_id: string;
947
- created_at: Date;
948
- occurred_at: Date;
952
+ created_at: string;
953
+ occurred_at: string;
949
954
  }> | undefined;
950
955
  message?: string | undefined;
951
956
  };
@@ -960,7 +965,7 @@ export interface Routes {
960
965
  jsonResponse: {
961
966
  ok: boolean;
962
967
  msg: 'I\u2019m one with the Force. The Force is with me.';
963
- last_service_evaluation_at: string;
968
+ last_service_evaluation_at?: string | undefined;
964
969
  service_health_statuses: Array<{
965
970
  service: string;
966
971
  status: 'healthy' | 'degraded' | 'down';
@@ -978,7 +983,7 @@ export interface Routes {
978
983
  jsonResponse: {
979
984
  ok: boolean;
980
985
  msg: 'I\u2019m one with the Force. The Force is with me.';
981
- last_service_evaluation_at: string;
986
+ last_service_evaluation_at?: string | undefined;
982
987
  service_health_statuses: Array<{
983
988
  service: string;
984
989
  status: 'healthy' | 'degraded' | 'down';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -522,19 +522,18 @@ export interface Routes {
522
522
  route: '/client_sessions/create'
523
523
  method: 'POST' | 'PUT'
524
524
  queryParams: {}
525
- jsonBody:
526
- | any
527
- | {
528
- user_identifier_key: string
529
- connect_webview_ids?: string[] | undefined
530
- connected_account_ids?: string[] | undefined
531
- }
525
+ jsonBody: {
526
+ user_identifier_key?: string | undefined
527
+ connect_webview_ids?: string[] | undefined
528
+ connected_account_ids?: string[] | undefined
529
+ }
532
530
  commonParams: {}
533
531
  formData: {}
534
532
  jsonResponse: {
535
533
  client_session: {
536
534
  token: string
537
535
  client_session_id: string
536
+ user_identifier_key: string | null
538
537
  created_at: string
539
538
  }
540
539
  }
@@ -555,7 +554,11 @@ export interface Routes {
555
554
  method: 'POST' | 'GET'
556
555
  queryParams: {}
557
556
  jsonBody: {}
558
- commonParams: {}
557
+ commonParams: {
558
+ client_session_id?: string | undefined
559
+ user_identifier_key?: string | undefined
560
+ without_user_identifier_key?: boolean | undefined
561
+ }
559
562
  formData: {}
560
563
  jsonResponse: {
561
564
  client_sessions: Array<{
@@ -1211,7 +1214,7 @@ export interface Routes {
1211
1214
  }
1212
1215
  '/events/get': {
1213
1216
  route: '/events/get'
1214
- method: 'GET'
1217
+ method: 'GET' | 'POST'
1215
1218
  queryParams: {}
1216
1219
  jsonBody: {}
1217
1220
  commonParams: {
@@ -1227,8 +1230,8 @@ export interface Routes {
1227
1230
  device_id?: string | undefined
1228
1231
  event_type: string
1229
1232
  workspace_id: string
1230
- created_at: Date
1231
- occurred_at: Date
1233
+ created_at: string
1234
+ occurred_at: string
1232
1235
  }
1233
1236
  | undefined
1234
1237
  message?: string | undefined
@@ -1326,8 +1329,8 @@ export interface Routes {
1326
1329
  device_id?: string | undefined
1327
1330
  event_type: string
1328
1331
  workspace_id: string
1329
- created_at: Date
1330
- occurred_at: Date
1332
+ created_at: string
1333
+ occurred_at: string
1331
1334
  }>
1332
1335
  | undefined
1333
1336
  message?: string | undefined
@@ -1343,7 +1346,7 @@ export interface Routes {
1343
1346
  jsonResponse: {
1344
1347
  ok: boolean
1345
1348
  msg: 'I\u2019m one with the Force. The Force is with me.'
1346
- last_service_evaluation_at: string
1349
+ last_service_evaluation_at?: string | undefined
1347
1350
  service_health_statuses: Array<{
1348
1351
  service: string
1349
1352
  status: 'healthy' | 'degraded' | 'down'
@@ -1361,7 +1364,7 @@ export interface Routes {
1361
1364
  jsonResponse: {
1362
1365
  ok: boolean
1363
1366
  msg: 'I\u2019m one with the Force. The Force is with me.'
1364
- last_service_evaluation_at: string
1367
+ last_service_evaluation_at?: string | undefined
1365
1368
  service_health_statuses: Array<{
1366
1369
  service: string
1367
1370
  status: 'healthy' | 'degraded' | 'down'