@arbium/enterprise-agent-connect-client 0.0.0-stage → 0.1.2-dev.cba5f68
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/lib/index.d.ts +1274 -0
- package/lib/index.js +235 -0
- package/lib/schema.d.ts +6448 -0
- package/lib/schema.js +5 -0
- package/lib/steps.d.ts +1448 -0
- package/lib/steps.js +725 -0
- package/lib/types.d.ts +62 -0
- package/lib/types.js +1 -0
- package/package.json +19 -4
- package/README.md +0 -3
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { components, operations } from "./schema.js";
|
|
2
|
+
type S = components["schemas"];
|
|
3
|
+
/** The JSON a route answers with on success. */
|
|
4
|
+
export type Answer<K extends keyof operations> = operations[K]["responses"] extends infer R ? {
|
|
5
|
+
[C in keyof R]: C extends 200 | 201 ? R[C] extends {
|
|
6
|
+
content: {
|
|
7
|
+
"application/json": infer J;
|
|
8
|
+
};
|
|
9
|
+
} ? J : never : never;
|
|
10
|
+
}[keyof R] : never;
|
|
11
|
+
/** The JSON body a route takes. */
|
|
12
|
+
export type Body<K extends keyof operations> = operations[K]["requestBody"] extends {
|
|
13
|
+
content: {
|
|
14
|
+
"application/json": infer J;
|
|
15
|
+
};
|
|
16
|
+
} | undefined ? J : never;
|
|
17
|
+
export type Organization = S["Organization"];
|
|
18
|
+
export type Connector = S["Connector"];
|
|
19
|
+
export type Provider = S["Provider"];
|
|
20
|
+
export type ProviderConnection = S["ProviderConnection"];
|
|
21
|
+
export type Connection = S["Connection"];
|
|
22
|
+
export type CertificateInfo = S["CertificateInfo"];
|
|
23
|
+
export type Check = S["Check"];
|
|
24
|
+
export type CheckOutcome = S["CheckOutcome"];
|
|
25
|
+
export type SignInCheck = S["SignInCheck"];
|
|
26
|
+
export type SiteAccess = S["SiteAccess"];
|
|
27
|
+
export type AgentAccess = S["AgentAccess"];
|
|
28
|
+
export type Limits = S["Limits"];
|
|
29
|
+
export type Grant = S["Grant"];
|
|
30
|
+
export type Agent = S["Agent"];
|
|
31
|
+
export type NewAgent = S["NewAgent"];
|
|
32
|
+
export type AuditRow = S["AuditRow"];
|
|
33
|
+
export type LiveCheck = S["LiveCheck"];
|
|
34
|
+
export type TeamsBot = S["TeamsBot"];
|
|
35
|
+
export type TeamsBotRecord = S["TeamsBotRecord"];
|
|
36
|
+
export type TeamsPlace = S["TeamsPlace"];
|
|
37
|
+
export type AddStep = S["AddStep"];
|
|
38
|
+
export type InstallTarget = S["InstallTarget"];
|
|
39
|
+
export type TeamsTrigger = S["TeamsTrigger"];
|
|
40
|
+
export type TeamsTriggerInput = Body<"setTeamsTrigger">;
|
|
41
|
+
export type TeamsRun = S["TeamsRun"];
|
|
42
|
+
export type EventSubscription = S["EventSubscription"];
|
|
43
|
+
export type EventSubscriptionInput = Body<"subscribeEvents">;
|
|
44
|
+
export type EventSubscribed = S["EventSubscribed"];
|
|
45
|
+
export type EventTrigger = S["EventTrigger"];
|
|
46
|
+
export type EventTriggerInput = Body<"setEventTrigger">;
|
|
47
|
+
export type EventRun = S["EventRun"];
|
|
48
|
+
export type ClaudeKey = S["ClaudeKey"];
|
|
49
|
+
export type ClaudeAgent = S["ClaudeAgent"];
|
|
50
|
+
export type Step = Connector["setup"][number];
|
|
51
|
+
export type AgentStep = Provider["addAgent"][number];
|
|
52
|
+
export type Setting = NonNullable<Step["settings"]>[number];
|
|
53
|
+
export type ChosenOption = NonNullable<Step["option"]>;
|
|
54
|
+
/** A connect form field; an `optional` one may be left empty. */
|
|
55
|
+
export type Field = Connector["fields"][number] & {
|
|
56
|
+
optional?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type FieldOption = NonNullable<Field["options"]>[number];
|
|
59
|
+
export type Limit = Connector["limits"][number];
|
|
60
|
+
export type Capability = Connector["capabilities"][number];
|
|
61
|
+
export type Probe = Connector["verify"];
|
|
62
|
+
export {};
|
package/lib/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbium/enterprise-agent-connect-client",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2-dev.cba5f68",
|
|
4
|
+
"description": "Typed client for the Agent Connect admin API (v1), and the pure logic admin pages share",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"lib"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/try-caret/enterprise-agent-connect.git",
|
|
18
|
+
"directory": "packages/client"
|
|
19
|
+
},
|
|
20
|
+
"license": "Apache-2.0"
|
|
21
|
+
}
|
package/README.md
DELETED