@crowdstrike/foundry-js 0.7.0 → 0.7.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/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ApiIdentifier } from './apis/available-apis';
2
2
  import type { ApiRequestMessage, ApiResponseMessage } from './apis/types';
3
- import type { PostEntitiesPutFilesV2ApiResponse } from './apis/remote-response';
3
+ import type { PostEntitiesPutFilesV1ApiResponse } from './apis/remote-response';
4
4
  export type QueryParam = string | number | string[] | number[] | boolean;
5
5
  export interface BaseUrlParams {
6
6
  [key: string]: QueryParam | undefined;
@@ -21,7 +21,12 @@ export interface ConnectResponseMessage<DATA extends LocalData = LocalData> exte
21
21
  };
22
22
  }
23
23
  export type Theme = 'theme-light' | 'theme-dark';
24
+ export interface UserData {
25
+ uuid: string;
26
+ username: string;
27
+ }
24
28
  export interface LocalData {
29
+ user: UserData;
25
30
  theme: Theme;
26
31
  cid: string;
27
32
  locale: string;
@@ -125,7 +130,7 @@ export interface RtrFileUploadPayload {
125
130
  description?: string;
126
131
  comments_for_audit_log?: string;
127
132
  }
128
- export type RtrFileUploadResponse = PostEntitiesPutFilesV2ApiResponse;
133
+ export type RtrFileUploadResponse = PostEntitiesPutFilesV1ApiResponse;
129
134
  export type PayloadForFileUploadType<TYPE extends FileUploadType> = TYPE extends 'remote-response' ? RtrFileUploadPayload : never;
130
135
  export type ResponseForFileUploadType<TYPE extends FileUploadType> = TYPE extends 'remote-response' ? RtrFileUploadResponse : never;
131
136
  export interface FileUploadRequestMessage<T extends FileUploadType = FileUploadType> extends BaseMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdstrike/foundry-js",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "foundry.js is the JavaScript SDK for authoring UI Extensions for CrowdStrike's Foundry platform.",
5
5
  "repository": {
6
6
  "type": "git",