@crowdstrike/foundry-js 0.7.2 → 0.8.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.
package/dist/types.d.ts CHANGED
@@ -26,6 +26,9 @@ export interface UserData {
26
26
  username: string;
27
27
  }
28
28
  export interface LocalData {
29
+ app: {
30
+ id: string;
31
+ };
29
32
  user: UserData;
30
33
  theme: Theme;
31
34
  cid: string;
@@ -44,11 +47,40 @@ export interface ResizeMessage extends BaseMessage {
44
47
  height: number;
45
48
  };
46
49
  }
50
+ export type CloudFunctionDefinition = {
51
+ id: string;
52
+ version?: number;
53
+ } | {
54
+ name: string;
55
+ version?: number;
56
+ };
47
57
  export interface LogscaleRequestMessage extends BaseMessage {
48
58
  type: 'loggingapi';
49
59
  payload: {
50
- type: 'ingest' | 'dynamic-execute' | 'saved-query-execute';
51
- data: Record<string, unknown>;
60
+ type: 'ingest' | 'dynamic-execute';
61
+ data: {
62
+ id: string;
63
+ version?: string;
64
+ [key: string]: unknown;
65
+ } | {
66
+ name: string;
67
+ version?: string;
68
+ [key: string]: unknown;
69
+ };
70
+ tag?: string;
71
+ tagSource?: string;
72
+ testData?: boolean;
73
+ } | {
74
+ type: 'saved-query-execute';
75
+ data: {
76
+ id: string;
77
+ version?: string;
78
+ [key: string]: unknown;
79
+ } | {
80
+ name: string;
81
+ version?: string;
82
+ [key: string]: unknown;
83
+ };
52
84
  tag?: string;
53
85
  tagSource?: string;
54
86
  testData?: boolean;
@@ -81,9 +113,10 @@ export interface CollectionRequestMessage extends BaseMessage {
81
113
  data: Record<string, unknown>;
82
114
  } | {
83
115
  type: 'search';
84
- startKey: string;
85
- endKey: string;
86
- limit: string;
116
+ filter?: string;
117
+ limit?: number;
118
+ offset?: string;
119
+ sort?: string;
87
120
  collection: string;
88
121
  } | {
89
122
  type: 'read' | 'delete';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdstrike/foundry-js",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
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",