@credal/sdk 0.0.16 → 0.0.17

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.
Files changed (160) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +17 -12
  3. package/api/resources/actions/client/Client.d.ts +46 -0
  4. package/api/resources/actions/client/Client.js +134 -0
  5. package/api/resources/actions/client/index.d.ts +1 -0
  6. package/api/resources/actions/client/index.js +17 -0
  7. package/api/resources/actions/client/requests/InvokeActionRequest.d.ts +46 -0
  8. package/api/resources/actions/client/requests/InvokeActionRequest.js +5 -0
  9. package/api/resources/actions/client/requests/index.d.ts +1 -0
  10. package/api/resources/actions/client/requests/index.js +2 -0
  11. package/api/resources/actions/index.d.ts +2 -0
  12. package/api/resources/actions/index.js +18 -0
  13. package/api/resources/actions/types/ActionStatus.d.ts +12 -0
  14. package/api/resources/actions/types/ActionStatus.js +14 -0
  15. package/api/resources/actions/types/Conversation.d.ts +6 -0
  16. package/api/resources/actions/types/Conversation.js +5 -0
  17. package/api/resources/actions/types/DirectMessage.d.ts +6 -0
  18. package/api/resources/actions/types/DirectMessage.js +5 -0
  19. package/api/resources/actions/types/HumanConfirmationChannel.d.ts +16 -0
  20. package/api/resources/actions/types/HumanConfirmationChannel.js +5 -0
  21. package/api/resources/actions/types/InvokeActionResponse.d.ts +8 -0
  22. package/api/resources/actions/types/InvokeActionResponse.js +5 -0
  23. package/api/resources/actions/types/SlackThread.d.ts +7 -0
  24. package/api/resources/actions/types/SlackThread.js +5 -0
  25. package/api/resources/actions/types/index.d.ts +6 -0
  26. package/api/resources/actions/types/index.js +22 -0
  27. package/api/resources/copilots/client/Client.d.ts +2 -2
  28. package/api/resources/copilots/client/Client.js +20 -20
  29. package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
  30. package/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +4 -4
  31. package/api/resources/copilots/types/InputVariable.d.ts +1 -1
  32. package/api/resources/documentCatalog/client/Client.d.ts +13 -0
  33. package/api/resources/documentCatalog/client/Client.js +67 -4
  34. package/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +7 -0
  35. package/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +5 -0
  36. package/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +6 -0
  37. package/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +5 -0
  38. package/api/resources/documentCatalog/types/index.d.ts +2 -0
  39. package/api/resources/documentCatalog/types/index.js +2 -0
  40. package/api/resources/documentCollections/client/Client.js +12 -12
  41. package/api/resources/index.d.ts +3 -0
  42. package/api/resources/index.js +4 -1
  43. package/api/resources/permissionsService/client/Client.js +6 -6
  44. package/api/resources/search/client/Client.js +2 -2
  45. package/api/resources/users/client/Client.js +2 -2
  46. package/dist/Client.d.ts +3 -0
  47. package/dist/Client.js +17 -12
  48. package/dist/api/resources/actions/client/Client.d.ts +46 -0
  49. package/dist/api/resources/actions/client/Client.js +134 -0
  50. package/dist/api/resources/actions/client/index.d.ts +1 -0
  51. package/dist/api/resources/actions/client/index.js +17 -0
  52. package/dist/api/resources/actions/client/requests/InvokeActionRequest.d.ts +46 -0
  53. package/dist/api/resources/actions/client/requests/InvokeActionRequest.js +5 -0
  54. package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
  55. package/dist/api/resources/actions/client/requests/index.js +2 -0
  56. package/dist/api/resources/actions/index.d.ts +2 -0
  57. package/dist/api/resources/actions/index.js +18 -0
  58. package/dist/api/resources/actions/types/ActionStatus.d.ts +12 -0
  59. package/dist/api/resources/actions/types/ActionStatus.js +14 -0
  60. package/dist/api/resources/actions/types/Conversation.d.ts +6 -0
  61. package/dist/api/resources/actions/types/Conversation.js +5 -0
  62. package/dist/api/resources/actions/types/DirectMessage.d.ts +6 -0
  63. package/dist/api/resources/actions/types/DirectMessage.js +5 -0
  64. package/dist/api/resources/actions/types/HumanConfirmationChannel.d.ts +16 -0
  65. package/dist/api/resources/actions/types/HumanConfirmationChannel.js +5 -0
  66. package/dist/api/resources/actions/types/InvokeActionResponse.d.ts +8 -0
  67. package/dist/api/resources/actions/types/InvokeActionResponse.js +5 -0
  68. package/dist/api/resources/actions/types/SlackThread.d.ts +7 -0
  69. package/dist/api/resources/actions/types/SlackThread.js +5 -0
  70. package/dist/api/resources/actions/types/index.d.ts +6 -0
  71. package/dist/api/resources/actions/types/index.js +22 -0
  72. package/dist/api/resources/copilots/client/Client.d.ts +2 -2
  73. package/dist/api/resources/copilots/client/Client.js +20 -20
  74. package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
  75. package/dist/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +4 -4
  76. package/dist/api/resources/copilots/types/InputVariable.d.ts +1 -1
  77. package/dist/api/resources/documentCatalog/client/Client.d.ts +13 -0
  78. package/dist/api/resources/documentCatalog/client/Client.js +67 -4
  79. package/dist/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +7 -0
  80. package/dist/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +5 -0
  81. package/dist/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +6 -0
  82. package/dist/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +5 -0
  83. package/dist/api/resources/documentCatalog/types/index.d.ts +2 -0
  84. package/dist/api/resources/documentCatalog/types/index.js +2 -0
  85. package/dist/api/resources/documentCollections/client/Client.js +12 -12
  86. package/dist/api/resources/index.d.ts +3 -0
  87. package/dist/api/resources/index.js +4 -1
  88. package/dist/api/resources/permissionsService/client/Client.js +6 -6
  89. package/dist/api/resources/search/client/Client.js +2 -2
  90. package/dist/api/resources/users/client/Client.js +2 -2
  91. package/dist/serialization/resources/actions/client/index.d.ts +1 -0
  92. package/dist/serialization/resources/actions/client/index.js +17 -0
  93. package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +18 -0
  94. package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.js +39 -0
  95. package/dist/serialization/resources/actions/client/requests/index.d.ts +1 -0
  96. package/dist/serialization/resources/actions/client/requests/index.js +5 -0
  97. package/dist/serialization/resources/actions/index.d.ts +2 -0
  98. package/dist/serialization/resources/actions/index.js +18 -0
  99. package/dist/serialization/resources/actions/types/ActionStatus.d.ts +10 -0
  100. package/dist/serialization/resources/actions/types/ActionStatus.js +38 -0
  101. package/dist/serialization/resources/actions/types/Conversation.d.ts +12 -0
  102. package/dist/serialization/resources/actions/types/Conversation.js +33 -0
  103. package/dist/serialization/resources/actions/types/DirectMessage.d.ts +12 -0
  104. package/dist/serialization/resources/actions/types/DirectMessage.js +33 -0
  105. package/dist/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +22 -0
  106. package/dist/serialization/resources/actions/types/HumanConfirmationChannel.js +43 -0
  107. package/dist/serialization/resources/actions/types/InvokeActionResponse.d.ts +14 -0
  108. package/dist/serialization/resources/actions/types/InvokeActionResponse.js +35 -0
  109. package/dist/serialization/resources/actions/types/SlackThread.d.ts +13 -0
  110. package/dist/serialization/resources/actions/types/SlackThread.js +34 -0
  111. package/dist/serialization/resources/actions/types/index.d.ts +6 -0
  112. package/dist/serialization/resources/actions/types/index.js +22 -0
  113. package/dist/serialization/resources/copilots/types/InputVariable.d.ts +1 -1
  114. package/dist/serialization/resources/copilots/types/InputVariable.js +1 -1
  115. package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +13 -0
  116. package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +34 -0
  117. package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +12 -0
  118. package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +33 -0
  119. package/dist/serialization/resources/documentCatalog/types/index.d.ts +2 -0
  120. package/dist/serialization/resources/documentCatalog/types/index.js +2 -0
  121. package/dist/serialization/resources/index.d.ts +3 -0
  122. package/dist/serialization/resources/index.js +4 -1
  123. package/dist/version.d.ts +1 -1
  124. package/dist/version.js +1 -1
  125. package/package.json +1 -1
  126. package/reference.md +145 -4
  127. package/serialization/resources/actions/client/index.d.ts +1 -0
  128. package/serialization/resources/actions/client/index.js +17 -0
  129. package/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +18 -0
  130. package/serialization/resources/actions/client/requests/InvokeActionRequest.js +39 -0
  131. package/serialization/resources/actions/client/requests/index.d.ts +1 -0
  132. package/serialization/resources/actions/client/requests/index.js +5 -0
  133. package/serialization/resources/actions/index.d.ts +2 -0
  134. package/serialization/resources/actions/index.js +18 -0
  135. package/serialization/resources/actions/types/ActionStatus.d.ts +10 -0
  136. package/serialization/resources/actions/types/ActionStatus.js +38 -0
  137. package/serialization/resources/actions/types/Conversation.d.ts +12 -0
  138. package/serialization/resources/actions/types/Conversation.js +33 -0
  139. package/serialization/resources/actions/types/DirectMessage.d.ts +12 -0
  140. package/serialization/resources/actions/types/DirectMessage.js +33 -0
  141. package/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +22 -0
  142. package/serialization/resources/actions/types/HumanConfirmationChannel.js +43 -0
  143. package/serialization/resources/actions/types/InvokeActionResponse.d.ts +14 -0
  144. package/serialization/resources/actions/types/InvokeActionResponse.js +35 -0
  145. package/serialization/resources/actions/types/SlackThread.d.ts +13 -0
  146. package/serialization/resources/actions/types/SlackThread.js +34 -0
  147. package/serialization/resources/actions/types/index.d.ts +6 -0
  148. package/serialization/resources/actions/types/index.js +22 -0
  149. package/serialization/resources/copilots/types/InputVariable.d.ts +1 -1
  150. package/serialization/resources/copilots/types/InputVariable.js +1 -1
  151. package/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +13 -0
  152. package/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +34 -0
  153. package/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +12 -0
  154. package/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +33 -0
  155. package/serialization/resources/documentCatalog/types/index.d.ts +2 -0
  156. package/serialization/resources/documentCatalog/types/index.js +2 -0
  157. package/serialization/resources/index.d.ts +3 -0
  158. package/serialization/resources/index.js +4 -1
  159. package/version.d.ts +1 -1
  160. package/version.js +1 -1
@@ -78,8 +78,8 @@ class DocumentCollections {
78
78
  Authorization: yield this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@credal/sdk",
81
- "X-Fern-SDK-Version": "0.0.16",
82
- "User-Agent": "@credal/sdk/0.0.16",
81
+ "X-Fern-SDK-Version": "0.0.17",
82
+ "User-Agent": "@credal/sdk/0.0.17",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
@@ -144,8 +144,8 @@ class DocumentCollections {
144
144
  Authorization: yield this._getAuthorizationHeader(),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "@credal/sdk",
147
- "X-Fern-SDK-Version": "0.0.16",
148
- "User-Agent": "@credal/sdk/0.0.16",
147
+ "X-Fern-SDK-Version": "0.0.17",
148
+ "User-Agent": "@credal/sdk/0.0.17",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -208,8 +208,8 @@ class DocumentCollections {
208
208
  Authorization: yield this._getAuthorizationHeader(),
209
209
  "X-Fern-Language": "JavaScript",
210
210
  "X-Fern-SDK-Name": "@credal/sdk",
211
- "X-Fern-SDK-Version": "0.0.16",
212
- "User-Agent": "@credal/sdk/0.0.16",
211
+ "X-Fern-SDK-Version": "0.0.17",
212
+ "User-Agent": "@credal/sdk/0.0.17",
213
213
  "X-Fern-Runtime": core.RUNTIME.type,
214
214
  "X-Fern-Runtime-Version": core.RUNTIME.version,
215
215
  },
@@ -270,8 +270,8 @@ class DocumentCollections {
270
270
  Authorization: yield this._getAuthorizationHeader(),
271
271
  "X-Fern-Language": "JavaScript",
272
272
  "X-Fern-SDK-Name": "@credal/sdk",
273
- "X-Fern-SDK-Version": "0.0.16",
274
- "User-Agent": "@credal/sdk/0.0.16",
273
+ "X-Fern-SDK-Version": "0.0.17",
274
+ "User-Agent": "@credal/sdk/0.0.17",
275
275
  "X-Fern-Runtime": core.RUNTIME.type,
276
276
  "X-Fern-Runtime-Version": core.RUNTIME.version,
277
277
  },
@@ -348,8 +348,8 @@ class DocumentCollections {
348
348
  Authorization: yield this._getAuthorizationHeader(),
349
349
  "X-Fern-Language": "JavaScript",
350
350
  "X-Fern-SDK-Name": "@credal/sdk",
351
- "X-Fern-SDK-Version": "0.0.16",
352
- "User-Agent": "@credal/sdk/0.0.16",
351
+ "X-Fern-SDK-Version": "0.0.17",
352
+ "User-Agent": "@credal/sdk/0.0.17",
353
353
  "X-Fern-Runtime": core.RUNTIME.type,
354
354
  "X-Fern-Runtime-Version": core.RUNTIME.version,
355
355
  },
@@ -428,8 +428,8 @@ class DocumentCollections {
428
428
  Authorization: yield this._getAuthorizationHeader(),
429
429
  "X-Fern-Language": "JavaScript",
430
430
  "X-Fern-SDK-Name": "@credal/sdk",
431
- "X-Fern-SDK-Version": "0.0.16",
432
- "User-Agent": "@credal/sdk/0.0.16",
431
+ "X-Fern-SDK-Version": "0.0.17",
432
+ "User-Agent": "@credal/sdk/0.0.17",
433
433
  "X-Fern-Runtime": core.RUNTIME.type,
434
434
  "X-Fern-Runtime-Version": core.RUNTIME.version,
435
435
  },
@@ -1,3 +1,5 @@
1
+ export * as actions from "./actions";
2
+ export * from "./actions/types";
1
3
  export * as common from "./common";
2
4
  export * from "./common/types";
3
5
  export * as copilots from "./copilots";
@@ -12,6 +14,7 @@ export * as search from "./search";
12
14
  export * from "./search/types";
13
15
  export * as users from "./users";
14
16
  export * from "./users/types";
17
+ export * from "./actions/client/requests";
15
18
  export * from "./copilots/client/requests";
16
19
  export * from "./documentCatalog/client/requests";
17
20
  export * from "./documentCollections/client/requests";
@@ -26,7 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.users = exports.search = exports.permissionsService = exports.documentCollections = exports.documentCatalog = exports.copilots = exports.common = void 0;
29
+ exports.users = exports.search = exports.permissionsService = exports.documentCollections = exports.documentCatalog = exports.copilots = exports.common = exports.actions = void 0;
30
+ exports.actions = __importStar(require("./actions"));
31
+ __exportStar(require("./actions/types"), exports);
30
32
  exports.common = __importStar(require("./common"));
31
33
  __exportStar(require("./common/types"), exports);
32
34
  exports.copilots = __importStar(require("./copilots"));
@@ -41,6 +43,7 @@ exports.search = __importStar(require("./search"));
41
43
  __exportStar(require("./search/types"), exports);
42
44
  exports.users = __importStar(require("./users"));
43
45
  __exportStar(require("./users/types"), exports);
46
+ __exportStar(require("./actions/client/requests"), exports);
44
47
  __exportStar(require("./copilots/client/requests"), exports);
45
48
  __exportStar(require("./documentCatalog/client/requests"), exports);
46
49
  __exportStar(require("./documentCollections/client/requests"), exports);
@@ -74,8 +74,8 @@ class PermissionsService {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "@credal/sdk",
77
- "X-Fern-SDK-Version": "0.0.16",
78
- "User-Agent": "@credal/sdk/0.0.16",
77
+ "X-Fern-SDK-Version": "0.0.17",
78
+ "User-Agent": "@credal/sdk/0.0.17",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -146,8 +146,8 @@ class PermissionsService {
146
146
  Authorization: yield this._getAuthorizationHeader(),
147
147
  "X-Fern-Language": "JavaScript",
148
148
  "X-Fern-SDK-Name": "@credal/sdk",
149
- "X-Fern-SDK-Version": "0.0.16",
150
- "User-Agent": "@credal/sdk/0.0.16",
149
+ "X-Fern-SDK-Version": "0.0.17",
150
+ "User-Agent": "@credal/sdk/0.0.17",
151
151
  "X-Fern-Runtime": core.RUNTIME.type,
152
152
  "X-Fern-Runtime-Version": core.RUNTIME.version,
153
153
  },
@@ -210,8 +210,8 @@ class PermissionsService {
210
210
  Authorization: yield this._getAuthorizationHeader(),
211
211
  "X-Fern-Language": "JavaScript",
212
212
  "X-Fern-SDK-Name": "@credal/sdk",
213
- "X-Fern-SDK-Version": "0.0.16",
214
- "User-Agent": "@credal/sdk/0.0.16",
213
+ "X-Fern-SDK-Version": "0.0.17",
214
+ "User-Agent": "@credal/sdk/0.0.17",
215
215
  "X-Fern-Runtime": core.RUNTIME.type,
216
216
  "X-Fern-Runtime-Version": core.RUNTIME.version,
217
217
  },
@@ -84,8 +84,8 @@ class Search {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "@credal/sdk",
87
- "X-Fern-SDK-Version": "0.0.16",
88
- "User-Agent": "@credal/sdk/0.0.16",
87
+ "X-Fern-SDK-Version": "0.0.17",
88
+ "User-Agent": "@credal/sdk/0.0.17",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -79,8 +79,8 @@ class Users {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "@credal/sdk",
82
- "X-Fern-SDK-Version": "0.0.16",
83
- "User-Agent": "@credal/sdk/0.0.16",
82
+ "X-Fern-SDK-Version": "0.0.17",
83
+ "User-Agent": "@credal/sdk/0.0.17",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Credal from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { HumanConfirmationChannel } from "../../types/HumanConfirmationChannel";
8
+ export declare const InvokeActionRequest: core.serialization.Schema<serializers.InvokeActionRequest.Raw, Credal.InvokeActionRequest>;
9
+ export declare namespace InvokeActionRequest {
10
+ interface Raw {
11
+ actionId: string;
12
+ userEmail: string;
13
+ requireHumanConfirmation?: boolean | null;
14
+ humanConfirmationChannel: HumanConfirmationChannel.Raw;
15
+ justification: string;
16
+ auditLogId: string;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InvokeActionRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const HumanConfirmationChannel_1 = require("../../types/HumanConfirmationChannel");
32
+ exports.InvokeActionRequest = core.serialization.object({
33
+ actionId: core.serialization.string(),
34
+ userEmail: core.serialization.string(),
35
+ requireHumanConfirmation: core.serialization.boolean().optional(),
36
+ humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel,
37
+ justification: core.serialization.string(),
38
+ auditLogId: core.serialization.string(),
39
+ });
@@ -0,0 +1 @@
1
+ export { InvokeActionRequest } from "./InvokeActionRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvokeActionRequest = void 0;
4
+ var InvokeActionRequest_1 = require("./InvokeActionRequest");
5
+ Object.defineProperty(exports, "InvokeActionRequest", { enumerable: true, get: function () { return InvokeActionRequest_1.InvokeActionRequest; } });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ActionStatus: core.serialization.Schema<serializers.ActionStatus.Raw, Credal.ActionStatus>;
8
+ export declare namespace ActionStatus {
9
+ type Raw = "PENDING_APPROVAL" | "IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
10
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ActionStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ActionStatus = core.serialization.enum_([
32
+ "PENDING_APPROVAL",
33
+ "IN_PROGRESS",
34
+ "APPROVED_SUCCEEDED",
35
+ "APPROVED_FAILED",
36
+ "NO_APPROVAL_NEEDED_SUCCEEDED",
37
+ "NO_APPROVAL_NEEDED_FAILED",
38
+ ]);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const Conversation: core.serialization.ObjectSchema<serializers.Conversation.Raw, Credal.Conversation>;
8
+ export declare namespace Conversation {
9
+ interface Raw {
10
+ conversationId: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Conversation = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.Conversation = core.serialization.object({
32
+ conversationId: core.serialization.string(),
33
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DirectMessage: core.serialization.ObjectSchema<serializers.DirectMessage.Raw, Credal.DirectMessage>;
8
+ export declare namespace DirectMessage {
9
+ interface Raw {
10
+ channelId: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DirectMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.DirectMessage = core.serialization.object({
32
+ channelId: core.serialization.string(),
33
+ });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DirectMessage } from "./DirectMessage";
8
+ import { SlackThread } from "./SlackThread";
9
+ import { Conversation } from "./Conversation";
10
+ export declare const HumanConfirmationChannel: core.serialization.Schema<serializers.HumanConfirmationChannel.Raw, Credal.HumanConfirmationChannel>;
11
+ export declare namespace HumanConfirmationChannel {
12
+ type Raw = HumanConfirmationChannel.DirectMessage | HumanConfirmationChannel.SlackThread | HumanConfirmationChannel.Conversation;
13
+ interface DirectMessage extends DirectMessage.Raw {
14
+ type: "directMessage";
15
+ }
16
+ interface SlackThread extends SlackThread.Raw {
17
+ type: "slackThread";
18
+ }
19
+ interface Conversation extends Conversation.Raw {
20
+ type: "conversation";
21
+ }
22
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.HumanConfirmationChannel = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const DirectMessage_1 = require("./DirectMessage");
32
+ const SlackThread_1 = require("./SlackThread");
33
+ const Conversation_1 = require("./Conversation");
34
+ exports.HumanConfirmationChannel = core.serialization
35
+ .union("type", {
36
+ directMessage: DirectMessage_1.DirectMessage,
37
+ slackThread: SlackThread_1.SlackThread,
38
+ conversation: Conversation_1.Conversation,
39
+ })
40
+ .transform({
41
+ transform: (value) => value,
42
+ untransform: (value) => value,
43
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ActionStatus } from "./ActionStatus";
8
+ export declare const InvokeActionResponse: core.serialization.ObjectSchema<serializers.InvokeActionResponse.Raw, Credal.InvokeActionResponse>;
9
+ export declare namespace InvokeActionResponse {
10
+ interface Raw {
11
+ actionInvocationId: string;
12
+ actionInvocationStatus: ActionStatus.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InvokeActionResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ActionStatus_1 = require("./ActionStatus");
32
+ exports.InvokeActionResponse = core.serialization.object({
33
+ actionInvocationId: core.serialization.string(),
34
+ actionInvocationStatus: ActionStatus_1.ActionStatus,
35
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const SlackThread: core.serialization.ObjectSchema<serializers.SlackThread.Raw, Credal.SlackThread>;
8
+ export declare namespace SlackThread {
9
+ interface Raw {
10
+ channelId: string;
11
+ threadTimestamp: number;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SlackThread = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.SlackThread = core.serialization.object({
32
+ channelId: core.serialization.string(),
33
+ threadTimestamp: core.serialization.number(),
34
+ });
@@ -0,0 +1,6 @@
1
+ export * from "./HumanConfirmationChannel";
2
+ export * from "./DirectMessage";
3
+ export * from "./SlackThread";
4
+ export * from "./Conversation";
5
+ export * from "./InvokeActionResponse";
6
+ export * from "./ActionStatus";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./HumanConfirmationChannel"), exports);
18
+ __exportStar(require("./DirectMessage"), exports);
19
+ __exportStar(require("./SlackThread"), exports);
20
+ __exportStar(require("./Conversation"), exports);
21
+ __exportStar(require("./InvokeActionResponse"), exports);
22
+ __exportStar(require("./ActionStatus"), exports);
@@ -8,6 +8,6 @@ export declare const InputVariable: core.serialization.ObjectSchema<serializers.
8
8
  export declare namespace InputVariable {
9
9
  interface Raw {
10
10
  name: string;
11
- urls: string[];
11
+ ids: string[];
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.InputVariable = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.InputVariable = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- urls: core.serialization.list(core.serialization.string()),
33
+ ids: core.serialization.list(core.serialization.string()),
34
34
  });