@relevanceai/sdk 1.65.0 → 1.67.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.
@@ -78,6 +78,62 @@ class DiscoveryApiClient extends BaseClient_1._GenericClient {
78
78
  options
79
79
  });
80
80
  }
81
+ async DeleteDeployableGroup(input, options) {
82
+ return this.SendRequest({
83
+ input,
84
+ method: 'post',
85
+ path: '/deployablegroups/{deployablegroup_id}/delete',
86
+ options
87
+ });
88
+ }
89
+ async ListDeployableGroups(input, options) {
90
+ return this.SendRequest({
91
+ input,
92
+ method: 'post',
93
+ path: '/deployablegroups/list',
94
+ options
95
+ });
96
+ }
97
+ async UpdateDeployableGroup(input, options) {
98
+ return this.SendRequest({
99
+ input,
100
+ method: 'post',
101
+ path: '/deployablegroups/{deployablegroup_id}/update',
102
+ options
103
+ });
104
+ }
105
+ async CreateDeployableGroup(input, options) {
106
+ return this.SendRequest({
107
+ input,
108
+ method: 'post',
109
+ path: '/deployablegroups/create',
110
+ options
111
+ });
112
+ }
113
+ async GetDeployableGroup(input, options) {
114
+ return this.SendRequest({
115
+ input,
116
+ method: 'get',
117
+ path: '/deployablegroups/{deployablegroup_id}/get',
118
+ options
119
+ });
120
+ }
121
+ async CreateDeployableGroupKey(input, options) {
122
+ return this.SendRequest({
123
+ input,
124
+ method: 'post',
125
+ path: '/deployablegroups/{deployablegroup_id}/share',
126
+ options
127
+ });
128
+ }
129
+ async DeleteDeployableGroupKey(input, options) {
130
+ return this.SendRequest({
131
+ input,
132
+ method: 'post',
133
+ path: '/deployablegroups/{deployablegroup_id}/private',
134
+ options
135
+ });
136
+ }
81
137
  async CreateProject(input, options) {
82
138
  return this.SendRequest({
83
139
  input,
@@ -894,5 +950,45 @@ class DiscoveryApiClient extends BaseClient_1._GenericClient {
894
950
  options
895
951
  });
896
952
  }
953
+ async DeleteSavedFilter(input, options) {
954
+ return this.SendRequest({
955
+ input,
956
+ method: 'post',
957
+ path: '/savedfilters/{savedfilter_id}/delete',
958
+ options
959
+ });
960
+ }
961
+ async ListSavedFilters(input, options) {
962
+ return this.SendRequest({
963
+ input,
964
+ method: 'post',
965
+ path: '/savedfilters/list',
966
+ options
967
+ });
968
+ }
969
+ async UpdateSavedFilter(input, options) {
970
+ return this.SendRequest({
971
+ input,
972
+ method: 'post',
973
+ path: '/savedfilters/{savedfilter_id}/update',
974
+ options
975
+ });
976
+ }
977
+ async GetSavedFilter(input, options) {
978
+ return this.SendRequest({
979
+ input,
980
+ method: 'get',
981
+ path: '/savedfilters/{savedfilter_id}/get',
982
+ options
983
+ });
984
+ }
985
+ async CreateSavedFilter(input, options) {
986
+ return this.SendRequest({
987
+ input,
988
+ method: 'post',
989
+ path: '/savedfilters/create',
990
+ options
991
+ });
992
+ }
897
993
  }
898
994
  exports.DiscoveryApiClient = DiscoveryApiClient;
@@ -174,6 +174,90 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
174
174
  });
175
175
  });
176
176
  };
177
+ DiscoveryApiClient.prototype.DeleteDeployableGroup = function (input, options) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ return __generator(this, function (_a) {
180
+ return [2 /*return*/, this.SendRequest({
181
+ input: input,
182
+ method: 'post',
183
+ path: '/deployablegroups/{deployablegroup_id}/delete',
184
+ options: options
185
+ })];
186
+ });
187
+ });
188
+ };
189
+ DiscoveryApiClient.prototype.ListDeployableGroups = function (input, options) {
190
+ return __awaiter(this, void 0, void 0, function () {
191
+ return __generator(this, function (_a) {
192
+ return [2 /*return*/, this.SendRequest({
193
+ input: input,
194
+ method: 'post',
195
+ path: '/deployablegroups/list',
196
+ options: options
197
+ })];
198
+ });
199
+ });
200
+ };
201
+ DiscoveryApiClient.prototype.UpdateDeployableGroup = function (input, options) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ return __generator(this, function (_a) {
204
+ return [2 /*return*/, this.SendRequest({
205
+ input: input,
206
+ method: 'post',
207
+ path: '/deployablegroups/{deployablegroup_id}/update',
208
+ options: options
209
+ })];
210
+ });
211
+ });
212
+ };
213
+ DiscoveryApiClient.prototype.CreateDeployableGroup = function (input, options) {
214
+ return __awaiter(this, void 0, void 0, function () {
215
+ return __generator(this, function (_a) {
216
+ return [2 /*return*/, this.SendRequest({
217
+ input: input,
218
+ method: 'post',
219
+ path: '/deployablegroups/create',
220
+ options: options
221
+ })];
222
+ });
223
+ });
224
+ };
225
+ DiscoveryApiClient.prototype.GetDeployableGroup = function (input, options) {
226
+ return __awaiter(this, void 0, void 0, function () {
227
+ return __generator(this, function (_a) {
228
+ return [2 /*return*/, this.SendRequest({
229
+ input: input,
230
+ method: 'get',
231
+ path: '/deployablegroups/{deployablegroup_id}/get',
232
+ options: options
233
+ })];
234
+ });
235
+ });
236
+ };
237
+ DiscoveryApiClient.prototype.CreateDeployableGroupKey = function (input, options) {
238
+ return __awaiter(this, void 0, void 0, function () {
239
+ return __generator(this, function (_a) {
240
+ return [2 /*return*/, this.SendRequest({
241
+ input: input,
242
+ method: 'post',
243
+ path: '/deployablegroups/{deployablegroup_id}/share',
244
+ options: options
245
+ })];
246
+ });
247
+ });
248
+ };
249
+ DiscoveryApiClient.prototype.DeleteDeployableGroupKey = function (input, options) {
250
+ return __awaiter(this, void 0, void 0, function () {
251
+ return __generator(this, function (_a) {
252
+ return [2 /*return*/, this.SendRequest({
253
+ input: input,
254
+ method: 'post',
255
+ path: '/deployablegroups/{deployablegroup_id}/private',
256
+ options: options
257
+ })];
258
+ });
259
+ });
260
+ };
177
261
  DiscoveryApiClient.prototype.CreateProject = function (input, options) {
178
262
  return __awaiter(this, void 0, void 0, function () {
179
263
  return __generator(this, function (_a) {
@@ -1398,6 +1482,66 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
1398
1482
  });
1399
1483
  });
1400
1484
  };
1485
+ DiscoveryApiClient.prototype.DeleteSavedFilter = function (input, options) {
1486
+ return __awaiter(this, void 0, void 0, function () {
1487
+ return __generator(this, function (_a) {
1488
+ return [2 /*return*/, this.SendRequest({
1489
+ input: input,
1490
+ method: 'post',
1491
+ path: '/savedfilters/{savedfilter_id}/delete',
1492
+ options: options
1493
+ })];
1494
+ });
1495
+ });
1496
+ };
1497
+ DiscoveryApiClient.prototype.ListSavedFilters = function (input, options) {
1498
+ return __awaiter(this, void 0, void 0, function () {
1499
+ return __generator(this, function (_a) {
1500
+ return [2 /*return*/, this.SendRequest({
1501
+ input: input,
1502
+ method: 'post',
1503
+ path: '/savedfilters/list',
1504
+ options: options
1505
+ })];
1506
+ });
1507
+ });
1508
+ };
1509
+ DiscoveryApiClient.prototype.UpdateSavedFilter = function (input, options) {
1510
+ return __awaiter(this, void 0, void 0, function () {
1511
+ return __generator(this, function (_a) {
1512
+ return [2 /*return*/, this.SendRequest({
1513
+ input: input,
1514
+ method: 'post',
1515
+ path: '/savedfilters/{savedfilter_id}/update',
1516
+ options: options
1517
+ })];
1518
+ });
1519
+ });
1520
+ };
1521
+ DiscoveryApiClient.prototype.GetSavedFilter = function (input, options) {
1522
+ return __awaiter(this, void 0, void 0, function () {
1523
+ return __generator(this, function (_a) {
1524
+ return [2 /*return*/, this.SendRequest({
1525
+ input: input,
1526
+ method: 'get',
1527
+ path: '/savedfilters/{savedfilter_id}/get',
1528
+ options: options
1529
+ })];
1530
+ });
1531
+ });
1532
+ };
1533
+ DiscoveryApiClient.prototype.CreateSavedFilter = function (input, options) {
1534
+ return __awaiter(this, void 0, void 0, function () {
1535
+ return __generator(this, function (_a) {
1536
+ return [2 /*return*/, this.SendRequest({
1537
+ input: input,
1538
+ method: 'post',
1539
+ path: '/savedfilters/create',
1540
+ options: options
1541
+ })];
1542
+ });
1543
+ });
1544
+ };
1401
1545
  return DiscoveryApiClient;
1402
1546
  }(_GenericClient));
1403
1547
  export { DiscoveryApiClient };
@@ -18,6 +18,20 @@ export declare type DeleteDeployableKeyInput = operations['DeleteDeployableKey']
18
18
  export declare type DeleteDeployableKeyOutput = operations['DeleteDeployableKey']['responses']['200']['content']['application/json'];
19
19
  export declare type ListDeployablesInput = {};
20
20
  export declare type ListDeployablesOutput = operations['ListDeployables']['responses']['200']['content']['application/json'];
21
+ export declare type DeleteDeployableGroupInput = operations['DeleteDeployableGroup']['requestBody']['content']['application/json'];
22
+ export declare type DeleteDeployableGroupOutput = operations['DeleteDeployableGroup']['responses']['200']['content']['application/json'];
23
+ export declare type ListDeployableGroupsInput = operations['ListDeployableGroups']['requestBody']['content']['application/json'];
24
+ export declare type ListDeployableGroupsOutput = operations['ListDeployableGroups']['responses']['200']['content']['application/json'];
25
+ export declare type UpdateDeployableGroupInput = operations['UpdateDeployableGroup']['requestBody']['content']['application/json'];
26
+ export declare type UpdateDeployableGroupOutput = operations['UpdateDeployableGroup']['responses']['200']['content']['application/json'];
27
+ export declare type CreateDeployableGroupInput = operations['CreateDeployableGroup']['requestBody']['content']['application/json'];
28
+ export declare type CreateDeployableGroupOutput = operations['CreateDeployableGroup']['responses']['200']['content']['application/json'];
29
+ export declare type GetDeployableGroupInput = {};
30
+ export declare type GetDeployableGroupOutput = operations['GetDeployableGroup']['responses']['200']['content']['application/json'];
31
+ export declare type CreateDeployableGroupKeyInput = operations['CreateDeployableGroupKey']['requestBody']['content']['application/json'];
32
+ export declare type CreateDeployableGroupKeyOutput = operations['CreateDeployableGroupKey']['responses']['200']['content']['application/json'];
33
+ export declare type DeleteDeployableGroupKeyInput = operations['DeleteDeployableGroupKey']['requestBody']['content']['application/json'];
34
+ export declare type DeleteDeployableGroupKeyOutput = operations['DeleteDeployableGroupKey']['responses']['200']['content']['application/json'];
21
35
  export declare type CreateProjectInput = operations['CreateProject']['requestBody']['content']['application/json'];
22
36
  export declare type CreateProjectOutput = operations['CreateProject']['responses']['200']['content']['application/json'];
23
37
  export declare type UpdateProjectInput = operations['UpdateProject']['requestBody']['content']['application/json'];
@@ -222,6 +236,16 @@ export declare type ListFavouriteWorkflowsInput = operations['ListFavouriteWorkf
222
236
  export declare type ListFavouriteWorkflowsOutput = operations['ListFavouriteWorkflows']['responses']['200']['content']['application/json'];
223
237
  export declare type UpdateFavouriteWorkflowInput = operations['UpdateFavouriteWorkflow']['requestBody']['content']['application/json'];
224
238
  export declare type UpdateFavouriteWorkflowOutput = operations['UpdateFavouriteWorkflow']['responses']['200']['content']['application/json'];
239
+ export declare type DeleteSavedFilterInput = operations['DeleteSavedFilter']['requestBody']['content']['application/json'];
240
+ export declare type DeleteSavedFilterOutput = operations['DeleteSavedFilter']['responses']['200']['content']['application/json'];
241
+ export declare type ListSavedFiltersInput = operations['ListSavedFilters']['requestBody']['content']['application/json'];
242
+ export declare type ListSavedFiltersOutput = operations['ListSavedFilters']['responses']['200']['content']['application/json'];
243
+ export declare type UpdateSavedFilterInput = operations['UpdateSavedFilter']['requestBody']['content']['application/json'];
244
+ export declare type UpdateSavedFilterOutput = operations['UpdateSavedFilter']['responses']['200']['content']['application/json'];
245
+ export declare type GetSavedFilterInput = {};
246
+ export declare type GetSavedFilterOutput = operations['GetSavedFilter']['responses']['200']['content']['application/json'];
247
+ export declare type CreateSavedFilterInput = operations['CreateSavedFilter']['requestBody']['content']['application/json'];
248
+ export declare type CreateSavedFilterOutput = operations['CreateSavedFilter']['responses']['200']['content']['application/json'];
225
249
  export declare class DiscoveryApiClient extends _GenericClient {
226
250
  constructor(config: _ClientInput);
227
251
  CreateDeployable(input: CommandInput<CreateDeployableInput>, options?: _GenericMethodOptions): Promise<CommandOutput<CreateDeployableOutput>>;
@@ -233,6 +257,13 @@ export declare class DiscoveryApiClient extends _GenericClient {
233
257
  UpdateUsersDeployablePermissions(input: CommandInput<UpdateUsersDeployablePermissionsInput>, options?: _GenericMethodOptions): Promise<CommandOutput<UpdateUsersDeployablePermissionsOutput>>;
234
258
  DeleteDeployableKey(input: CommandInput<DeleteDeployableKeyInput>, options?: _GenericMethodOptions): Promise<CommandOutput<DeleteDeployableKeyOutput>>;
235
259
  ListDeployables(input: CommandInput<ListDeployablesInput>, options?: _GenericMethodOptions): Promise<CommandOutput<ListDeployablesOutput>>;
260
+ DeleteDeployableGroup(input: CommandInput<DeleteDeployableGroupInput>, options?: _GenericMethodOptions): Promise<CommandOutput<DeleteDeployableGroupOutput>>;
261
+ ListDeployableGroups(input: CommandInput<ListDeployableGroupsInput>, options?: _GenericMethodOptions): Promise<CommandOutput<ListDeployableGroupsOutput>>;
262
+ UpdateDeployableGroup(input: CommandInput<UpdateDeployableGroupInput>, options?: _GenericMethodOptions): Promise<CommandOutput<UpdateDeployableGroupOutput>>;
263
+ CreateDeployableGroup(input: CommandInput<CreateDeployableGroupInput>, options?: _GenericMethodOptions): Promise<CommandOutput<CreateDeployableGroupOutput>>;
264
+ GetDeployableGroup(input: CommandInput<GetDeployableGroupInput>, options?: _GenericMethodOptions): Promise<CommandOutput<GetDeployableGroupOutput>>;
265
+ CreateDeployableGroupKey(input: CommandInput<CreateDeployableGroupKeyInput>, options?: _GenericMethodOptions): Promise<CommandOutput<CreateDeployableGroupKeyOutput>>;
266
+ DeleteDeployableGroupKey(input: CommandInput<DeleteDeployableGroupKeyInput>, options?: _GenericMethodOptions): Promise<CommandOutput<DeleteDeployableGroupKeyOutput>>;
236
267
  CreateProject(input: CommandInput<CreateProjectInput>, options?: _GenericMethodOptions): Promise<CommandOutput<CreateProjectOutput>>;
237
268
  UpdateProject(input: CommandInput<UpdateProjectInput>, options?: _GenericMethodOptions): Promise<CommandOutput<UpdateProjectOutput>>;
238
269
  TransferProjectToOrganization(input: CommandInput<TransferProjectToOrganizationInput>, options?: _GenericMethodOptions): Promise<CommandOutput<TransferProjectToOrganizationOutput>>;
@@ -335,4 +366,9 @@ export declare class DiscoveryApiClient extends _GenericClient {
335
366
  DeleteFavouriteWorkflow(input: CommandInput<DeleteFavouriteWorkflowInput>, options?: _GenericMethodOptions): Promise<CommandOutput<DeleteFavouriteWorkflowOutput>>;
336
367
  ListFavouriteWorkflows(input: CommandInput<ListFavouriteWorkflowsInput>, options?: _GenericMethodOptions): Promise<CommandOutput<ListFavouriteWorkflowsOutput>>;
337
368
  UpdateFavouriteWorkflow(input: CommandInput<UpdateFavouriteWorkflowInput>, options?: _GenericMethodOptions): Promise<CommandOutput<UpdateFavouriteWorkflowOutput>>;
369
+ DeleteSavedFilter(input: CommandInput<DeleteSavedFilterInput>, options?: _GenericMethodOptions): Promise<CommandOutput<DeleteSavedFilterOutput>>;
370
+ ListSavedFilters(input: CommandInput<ListSavedFiltersInput>, options?: _GenericMethodOptions): Promise<CommandOutput<ListSavedFiltersOutput>>;
371
+ UpdateSavedFilter(input: CommandInput<UpdateSavedFilterInput>, options?: _GenericMethodOptions): Promise<CommandOutput<UpdateSavedFilterOutput>>;
372
+ GetSavedFilter(input: CommandInput<GetSavedFilterInput>, options?: _GenericMethodOptions): Promise<CommandOutput<GetSavedFilterOutput>>;
373
+ CreateSavedFilter(input: CommandInput<CreateSavedFilterInput>, options?: _GenericMethodOptions): Promise<CommandOutput<CreateSavedFilterOutput>>;
338
374
  }
@@ -39,6 +39,29 @@ export interface paths {
39
39
  /** List all deployables. */
40
40
  get: operations["ListDeployables"];
41
41
  };
42
+ "/deployablegroups/{deployablegroup_id}/delete": {
43
+ post: operations["DeleteDeployableGroup"];
44
+ };
45
+ "/deployablegroups/list": {
46
+ post: operations["ListDeployableGroups"];
47
+ };
48
+ "/deployablegroups/{deployablegroup_id}/update": {
49
+ post: operations["UpdateDeployableGroup"];
50
+ };
51
+ "/deployablegroups/create": {
52
+ post: operations["CreateDeployableGroup"];
53
+ };
54
+ "/deployablegroups/{deployablegroup_id}/get": {
55
+ get: operations["GetDeployableGroup"];
56
+ };
57
+ "/deployablegroups/{deployablegroup_id}/share": {
58
+ /** Share a private deployable group. Required read access to all deployables that are shared, and the datasets deployables are tied to. */
59
+ post: operations["CreateDeployableGroupKey"];
60
+ };
61
+ "/deployablegroups/{deployablegroup_id}/private": {
62
+ /** Unshare a shared deployable group, making it private. */
63
+ post: operations["DeleteDeployableGroupKey"];
64
+ };
42
65
  "/projects/create": {
43
66
  /** Create a new Project that your user will have access to */
44
67
  post: operations["CreateProject"];
@@ -562,6 +585,21 @@ export interface paths {
562
585
  "/workflows/favourites/{favouriteworkflow_id}/update": {
563
586
  post: operations["UpdateFavouriteWorkflow"];
564
587
  };
588
+ "/savedfilters/{savedfilter_id}/delete": {
589
+ post: operations["DeleteSavedFilter"];
590
+ };
591
+ "/savedfilters/list": {
592
+ post: operations["ListSavedFilters"];
593
+ };
594
+ "/savedfilters/{savedfilter_id}/update": {
595
+ post: operations["UpdateSavedFilter"];
596
+ };
597
+ "/savedfilters/{savedfilter_id}/get": {
598
+ get: operations["GetSavedFilter"];
599
+ };
600
+ "/savedfilters/create": {
601
+ post: operations["CreateSavedFilter"];
602
+ };
565
603
  }
566
604
  export interface components {
567
605
  schemas: {
@@ -657,6 +695,66 @@ export interface components {
657
695
  }[];
658
696
  count: number;
659
697
  };
698
+ DeleteDeployableGroupInput: unknown;
699
+ DeleteDeployableGroupOutput: unknown;
700
+ ListDeployableGroupsInput: {
701
+ [key: string]: unknown;
702
+ };
703
+ ListDeployableGroupsOutput: {
704
+ results: {
705
+ _id?: string;
706
+ name?: string;
707
+ description?: string;
708
+ deployables?: {
709
+ id: string;
710
+ name?: string;
711
+ api_key?: string;
712
+ private?: boolean;
713
+ }[];
714
+ }[];
715
+ };
716
+ UpdateDeployableGroupInput: {
717
+ _id?: string;
718
+ name?: string;
719
+ description?: string;
720
+ deployables?: {
721
+ id: string;
722
+ name?: string;
723
+ api_key?: string;
724
+ private?: boolean;
725
+ }[];
726
+ };
727
+ UpdateDeployableGroupOutput: unknown;
728
+ CreateDeployableGroupInput: {
729
+ _id?: string;
730
+ name?: string;
731
+ description?: string;
732
+ deployables?: {
733
+ id: string;
734
+ name?: string;
735
+ api_key?: string;
736
+ private?: boolean;
737
+ }[];
738
+ };
739
+ CreateDeployableGroupOutput: {
740
+ id: string;
741
+ };
742
+ GetDeployableGroupInput: unknown;
743
+ GetDeployableGroupOutput: {
744
+ _id?: string;
745
+ name?: string;
746
+ description?: string;
747
+ deployables?: {
748
+ id: string;
749
+ name?: string;
750
+ api_key?: string;
751
+ private?: boolean;
752
+ }[];
753
+ };
754
+ CreateDeployableGroupKeyInput: unknown;
755
+ CreateDeployableGroupKeyOutput: unknown;
756
+ DeleteDeployableGroupKeyInput: unknown;
757
+ DeleteDeployableGroupKeyOutput: unknown;
660
758
  CreateProjectInput: {
661
759
  /** @description The name of the project */
662
760
  name?: string;
@@ -1092,6 +1190,8 @@ export interface components {
1092
1190
  ListUserKeysOutput: {
1093
1191
  results: {
1094
1192
  _id: string;
1193
+ label?: string;
1194
+ notes?: string;
1095
1195
  }[];
1096
1196
  };
1097
1197
  DeleteUserKeyInput: {
@@ -7558,13 +7658,10 @@ export interface components {
7558
7658
  ListWorkflowsInput: unknown;
7559
7659
  ListWorkflowsOutput: {
7560
7660
  results: ({
7561
- job_status: "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped";
7562
- job_message: string;
7563
- creation_time: string;
7661
+ creation_time?: string;
7564
7662
  notebook_path?: string;
7565
7663
  instance_type?: string;
7566
7664
  dataset_id?: string;
7567
- status?: string;
7568
7665
  params?: {
7569
7666
  [key: string]: unknown;
7570
7667
  };
@@ -7572,19 +7669,19 @@ export interface components {
7572
7669
  metadata?: {
7573
7670
  [key: string]: unknown;
7574
7671
  };
7672
+ /** @description Status of the workflow. Used for knowing when to send an email notification. */
7673
+ status?: "complete" | "inprogress" | "failed";
7674
+ job_status?: "InProgress" | "Completed" | "Failed";
7575
7675
  } & {
7576
7676
  [key: string]: unknown;
7577
7677
  })[];
7578
7678
  };
7579
7679
  GetWorkflowStatusInput: unknown;
7580
7680
  GetWorkflowStatusOutput: {
7581
- job_status: "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped";
7582
- job_message: string;
7583
- creation_time: string;
7681
+ creation_time?: string;
7584
7682
  notebook_path?: string;
7585
7683
  instance_type?: string;
7586
7684
  dataset_id?: string;
7587
- status?: string;
7588
7685
  params?: {
7589
7686
  [key: string]: unknown;
7590
7687
  };
@@ -7592,6 +7689,9 @@ export interface components {
7592
7689
  metadata?: {
7593
7690
  [key: string]: unknown;
7594
7691
  };
7692
+ /** @description Status of the workflow. Used for knowing when to send an email notification. */
7693
+ status?: "complete" | "inprogress" | "failed";
7694
+ job_status?: "InProgress" | "Completed" | "Failed";
7595
7695
  } & {
7596
7696
  [key: string]: unknown;
7597
7697
  };
@@ -7615,7 +7715,10 @@ export interface components {
7615
7715
  workflow_name?: string;
7616
7716
  /** @description Additional information of the workflow that is passed into the email. */
7617
7717
  additional_information?: string;
7618
- /** @description Whether to send an email on workflow completion. */
7718
+ /**
7719
+ * @description Whether to send an email on workflow completion.
7720
+ * @default true
7721
+ */
7619
7722
  send_email?: boolean;
7620
7723
  };
7621
7724
  UpsertWorkflowStatusOutput: unknown;
@@ -7657,6 +7760,34 @@ export interface components {
7657
7760
  _id?: string;
7658
7761
  };
7659
7762
  UpdateFavouriteWorkflowOutput: unknown;
7763
+ DeleteSavedFilterInput: unknown;
7764
+ DeleteSavedFilterOutput: unknown;
7765
+ ListSavedFiltersInput: {
7766
+ [key: string]: unknown;
7767
+ };
7768
+ ListSavedFiltersOutput: {
7769
+ results: {
7770
+ _id?: string;
7771
+ filters?: unknown[];
7772
+ }[];
7773
+ };
7774
+ UpdateSavedFilterInput: {
7775
+ _id?: string;
7776
+ filters?: unknown[];
7777
+ };
7778
+ UpdateSavedFilterOutput: unknown;
7779
+ GetSavedFilterInput: unknown;
7780
+ GetSavedFilterOutput: {
7781
+ _id?: string;
7782
+ filters?: unknown[];
7783
+ };
7784
+ CreateSavedFilterInput: {
7785
+ _id?: string;
7786
+ filters?: unknown[];
7787
+ };
7788
+ CreateSavedFilterOutput: {
7789
+ id: string;
7790
+ };
7660
7791
  };
7661
7792
  }
7662
7793
  export interface operations {
@@ -7841,6 +7972,140 @@ export interface operations {
7841
7972
  };
7842
7973
  };
7843
7974
  };
7975
+ DeleteDeployableGroup: {
7976
+ parameters: {
7977
+ path: {
7978
+ /** ID of deployablegroup */
7979
+ deployablegroup_id: string;
7980
+ };
7981
+ };
7982
+ responses: {
7983
+ /** successful operation */
7984
+ 200: {
7985
+ content: {
7986
+ "application/json": components["schemas"]["DeleteDeployableGroupOutput"];
7987
+ };
7988
+ };
7989
+ };
7990
+ requestBody: {
7991
+ content: {
7992
+ "application/json": components["schemas"]["DeleteDeployableGroupInput"];
7993
+ };
7994
+ };
7995
+ };
7996
+ ListDeployableGroups: {
7997
+ parameters: {};
7998
+ responses: {
7999
+ /** successful operation */
8000
+ 200: {
8001
+ content: {
8002
+ "application/json": components["schemas"]["ListDeployableGroupsOutput"];
8003
+ };
8004
+ };
8005
+ };
8006
+ requestBody: {
8007
+ content: {
8008
+ "application/json": components["schemas"]["ListDeployableGroupsInput"];
8009
+ };
8010
+ };
8011
+ };
8012
+ UpdateDeployableGroup: {
8013
+ parameters: {
8014
+ path: {
8015
+ /** ID of deployablegroup */
8016
+ deployablegroup_id: string;
8017
+ };
8018
+ };
8019
+ responses: {
8020
+ /** successful operation */
8021
+ 200: {
8022
+ content: {
8023
+ "application/json": components["schemas"]["UpdateDeployableGroupOutput"];
8024
+ };
8025
+ };
8026
+ };
8027
+ requestBody: {
8028
+ content: {
8029
+ "application/json": components["schemas"]["UpdateDeployableGroupInput"];
8030
+ };
8031
+ };
8032
+ };
8033
+ CreateDeployableGroup: {
8034
+ parameters: {};
8035
+ responses: {
8036
+ /** successful operation */
8037
+ 200: {
8038
+ content: {
8039
+ "application/json": components["schemas"]["CreateDeployableGroupOutput"];
8040
+ };
8041
+ };
8042
+ };
8043
+ requestBody: {
8044
+ content: {
8045
+ "application/json": components["schemas"]["CreateDeployableGroupInput"];
8046
+ };
8047
+ };
8048
+ };
8049
+ GetDeployableGroup: {
8050
+ parameters: {
8051
+ path: {
8052
+ /** ID of deployablegroup */
8053
+ deployablegroup_id: string;
8054
+ };
8055
+ };
8056
+ responses: {
8057
+ /** successful operation */
8058
+ 200: {
8059
+ content: {
8060
+ "application/json": components["schemas"]["GetDeployableGroupOutput"];
8061
+ };
8062
+ };
8063
+ };
8064
+ };
8065
+ /** Share a private deployable group. Required read access to all deployables that are shared, and the datasets deployables are tied to. */
8066
+ CreateDeployableGroupKey: {
8067
+ parameters: {
8068
+ path: {
8069
+ /** ID of deployablegroup */
8070
+ deployablegroup_id: string;
8071
+ };
8072
+ };
8073
+ responses: {
8074
+ /** successful operation */
8075
+ 200: {
8076
+ content: {
8077
+ "application/json": components["schemas"]["CreateDeployableGroupKeyOutput"];
8078
+ };
8079
+ };
8080
+ };
8081
+ requestBody: {
8082
+ content: {
8083
+ "application/json": components["schemas"]["CreateDeployableGroupKeyInput"];
8084
+ };
8085
+ };
8086
+ };
8087
+ /** Unshare a shared deployable group, making it private. */
8088
+ DeleteDeployableGroupKey: {
8089
+ parameters: {
8090
+ path: {
8091
+ /** ID of deployablegroup */
8092
+ deployablegroup_id: string;
8093
+ };
8094
+ };
8095
+ responses: {
8096
+ /** successful operation */
8097
+ 200: {
8098
+ content: {
8099
+ "application/json": components["schemas"]["DeleteDeployableGroupKeyOutput"];
8100
+ };
8101
+ };
8102
+ };
8103
+ requestBody: {
8104
+ content: {
8105
+ "application/json": components["schemas"]["DeleteDeployableGroupKeyInput"];
8106
+ };
8107
+ };
8108
+ };
7844
8109
  /** Create a new Project that your user will have access to */
7845
8110
  CreateProject: {
7846
8111
  parameters: {};
@@ -10015,7 +10280,7 @@ export interface operations {
10015
10280
  parameters: {
10016
10281
  query: {
10017
10282
  /** Only retrieve workflows of this status */
10018
- job_status?: "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped";
10283
+ job_status?: string;
10019
10284
  /** Currently limited to exact_match, ids, exists, regexp filter_type */
10020
10285
  filters?: {
10021
10286
  strict?: "must" | "should" | "must_or";
@@ -10026,6 +10291,10 @@ export interface operations {
10026
10291
  fuzzy?: number;
10027
10292
  join?: boolean;
10028
10293
  }[];
10294
+ /** Size of each page of results. */
10295
+ page?: number;
10296
+ /** Size of each page of results. */
10297
+ page_size?: number;
10029
10298
  };
10030
10299
  };
10031
10300
  responses: {
@@ -10248,6 +10517,96 @@ export interface operations {
10248
10517
  };
10249
10518
  };
10250
10519
  };
10520
+ DeleteSavedFilter: {
10521
+ parameters: {
10522
+ path: {
10523
+ /** ID of savedfilter */
10524
+ savedfilter_id: string;
10525
+ };
10526
+ };
10527
+ responses: {
10528
+ /** successful operation */
10529
+ 200: {
10530
+ content: {
10531
+ "application/json": components["schemas"]["DeleteSavedFilterOutput"];
10532
+ };
10533
+ };
10534
+ };
10535
+ requestBody: {
10536
+ content: {
10537
+ "application/json": components["schemas"]["DeleteSavedFilterInput"];
10538
+ };
10539
+ };
10540
+ };
10541
+ ListSavedFilters: {
10542
+ parameters: {};
10543
+ responses: {
10544
+ /** successful operation */
10545
+ 200: {
10546
+ content: {
10547
+ "application/json": components["schemas"]["ListSavedFiltersOutput"];
10548
+ };
10549
+ };
10550
+ };
10551
+ requestBody: {
10552
+ content: {
10553
+ "application/json": components["schemas"]["ListSavedFiltersInput"];
10554
+ };
10555
+ };
10556
+ };
10557
+ UpdateSavedFilter: {
10558
+ parameters: {
10559
+ path: {
10560
+ /** ID of savedfilter */
10561
+ savedfilter_id: string;
10562
+ };
10563
+ };
10564
+ responses: {
10565
+ /** successful operation */
10566
+ 200: {
10567
+ content: {
10568
+ "application/json": components["schemas"]["UpdateSavedFilterOutput"];
10569
+ };
10570
+ };
10571
+ };
10572
+ requestBody: {
10573
+ content: {
10574
+ "application/json": components["schemas"]["UpdateSavedFilterInput"];
10575
+ };
10576
+ };
10577
+ };
10578
+ GetSavedFilter: {
10579
+ parameters: {
10580
+ path: {
10581
+ /** ID of savedfilter */
10582
+ savedfilter_id: string;
10583
+ };
10584
+ };
10585
+ responses: {
10586
+ /** successful operation */
10587
+ 200: {
10588
+ content: {
10589
+ "application/json": components["schemas"]["GetSavedFilterOutput"];
10590
+ };
10591
+ };
10592
+ };
10593
+ };
10594
+ CreateSavedFilter: {
10595
+ parameters: {};
10596
+ responses: {
10597
+ /** successful operation */
10598
+ 200: {
10599
+ content: {
10600
+ "application/json": components["schemas"]["CreateSavedFilterOutput"];
10601
+ };
10602
+ };
10603
+ };
10604
+ requestBody: {
10605
+ content: {
10606
+ "application/json": components["schemas"]["CreateSavedFilterInput"];
10607
+ };
10608
+ };
10609
+ };
10251
10610
  }
10252
10611
  export interface external {
10253
10612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relevanceai/sdk",
3
- "version": "1.65.0",
3
+ "version": "1.67.0",
4
4
  "description": "Javascript client for RelevanceAI APIs. Browser, Node.js and typescript support.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "types": "./dist-types/index.d.ts",