agentmail 0.5.15 → 0.5.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +94 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +372 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +21 -0
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwk.d.ts +13 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwk.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +22 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.d.ts +16 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +8 -0
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +12 -0
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +1 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +1 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.js +46 -0
- package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.js +46 -0
- package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.d.ts +13 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.js +45 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.d.ts +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.js +52 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.d.ts +19 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.js +51 -0
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +12 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +12 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +373 -1
- package/dist/esm/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +21 -0
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwk.d.mts +13 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwk.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +22 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.d.mts +16 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +8 -0
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +12 -0
- package/dist/esm/api/resources/apiKeys/types/index.mjs +12 -0
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +1 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +1 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.mjs +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.mts +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.mjs +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.d.mts +13 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.mjs +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.d.mts +20 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.mjs +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.d.mts +19 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.mjs +15 -0
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +2 -4
- package/package.json +1 -1
- package/reference.md +356 -30
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- /package/dist/cjs/api/resources/{inboxes/resources/threads/client/requests/DeleteThreadRequest.js → apiKeys/client/requests/ListPublicKeysRequest.js} +0 -0
- /package/dist/cjs/api/resources/{pods/resources/threads/client/requests/DeleteThreadRequest.js → apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.js} +0 -0
- /package/dist/cjs/api/resources/{threads/client/requests/DeleteThreadRequest.js → apiKeys/types/CreatePublicKeyRequest.js} +0 -0
- /package/dist/esm/api/resources/{inboxes/resources/threads/client/requests/DeleteThreadRequest.mjs → apiKeys/client/requests/ListPublicKeysRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{pods/resources/threads/client/requests/DeleteThreadRequest.mjs → apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{threads/client/requests/DeleteThreadRequest.mjs → apiKeys/types/CreatePublicKeyRequest.mjs} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* An AgentID sign-in credential. `type` and `api_key_id` are server-owned;
|
|
4
|
+
* use `api_key_id` as the JWS `kid`. This response never contains a bearer
|
|
5
|
+
* secret or private key.
|
|
6
|
+
*/
|
|
7
|
+
export interface PublicKeyCredential {
|
|
8
|
+
/** Server-generated credential ID. Store this value as the signing key's `kid`. */
|
|
9
|
+
apiKeyId: string;
|
|
10
|
+
/** Server-owned credential discriminator. Callers cannot select or update it. */
|
|
11
|
+
type: "public_key";
|
|
12
|
+
/** Human-readable credential name. */
|
|
13
|
+
name: AgentMail.Name;
|
|
14
|
+
publicKey: AgentMail.PublicKeyMaterial;
|
|
15
|
+
scope: AgentMail.PublicKeyScope;
|
|
16
|
+
/** Immutable absolute expiry. Omitted when the credential does not expire. */
|
|
17
|
+
expiresAt?: Date;
|
|
18
|
+
/** Present when organization-wide revoke-all invalidated this credential generation. */
|
|
19
|
+
revokedAt?: Date;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Registered public key material and its server-computed RFC 7638 thumbprint.
|
|
4
|
+
*/
|
|
5
|
+
export interface PublicKeyMaterial {
|
|
6
|
+
jwk: AgentMail.PublicJwk;
|
|
7
|
+
/** RFC 7638 SHA-256 JWK thumbprint encoded as unpadded base64url. */
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The immutable scope in which a public-key credential can approve AgentID sign-in.
|
|
4
|
+
*/
|
|
5
|
+
export type PublicKeyScope = AgentMail.PublicKeyScope.Organization | AgentMail.PublicKeyScope.Pod | AgentMail.PublicKeyScope.Inbox;
|
|
6
|
+
export declare namespace PublicKeyScope {
|
|
7
|
+
interface Organization extends AgentMail.OrganizationPublicKeyScope {
|
|
8
|
+
type: "organization";
|
|
9
|
+
}
|
|
10
|
+
interface Pod extends AgentMail.PodPublicKeyScope {
|
|
11
|
+
type: "pod";
|
|
12
|
+
}
|
|
13
|
+
interface Inbox extends AgentMail.InboxPublicKeyScope {
|
|
14
|
+
type: "inbox";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -4,6 +4,18 @@ export * from "./ApiKeyPermissions.js";
|
|
|
4
4
|
export * from "./CreateApiKeyRequest.js";
|
|
5
5
|
export * from "./CreateApiKeyResponse.js";
|
|
6
6
|
export * from "./CreatedAt.js";
|
|
7
|
+
export * from "./CreatePublicKeyRequest.js";
|
|
8
|
+
export * from "./InboxPublicKeyScope.js";
|
|
7
9
|
export * from "./ListApiKeysResponse.js";
|
|
10
|
+
export * from "./ListPublicKeysResponse.js";
|
|
8
11
|
export * from "./Name.js";
|
|
12
|
+
export * from "./OrganizationPublicKeyScope.js";
|
|
13
|
+
export * from "./PodPublicKeyScope.js";
|
|
9
14
|
export * from "./Prefix.js";
|
|
15
|
+
export * from "./PublicJwk.js";
|
|
16
|
+
export * from "./PublicJwkCoordinate.js";
|
|
17
|
+
export * from "./PublicKeyCredential.js";
|
|
18
|
+
export * from "./PublicKeyMaterial.js";
|
|
19
|
+
export * from "./PublicKeyScope.js";
|
|
20
|
+
export * from "./RevokeAllAgentIdSignInKeysResponse.js";
|
|
21
|
+
export * from "./UpdatePublicKeyNameRequest.js";
|
|
@@ -20,6 +20,18 @@ __exportStar(require("./ApiKeyPermissions.js"), exports);
|
|
|
20
20
|
__exportStar(require("./CreateApiKeyRequest.js"), exports);
|
|
21
21
|
__exportStar(require("./CreateApiKeyResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./CreatedAt.js"), exports);
|
|
23
|
+
__exportStar(require("./CreatePublicKeyRequest.js"), exports);
|
|
24
|
+
__exportStar(require("./InboxPublicKeyScope.js"), exports);
|
|
23
25
|
__exportStar(require("./ListApiKeysResponse.js"), exports);
|
|
26
|
+
__exportStar(require("./ListPublicKeysResponse.js"), exports);
|
|
24
27
|
__exportStar(require("./Name.js"), exports);
|
|
28
|
+
__exportStar(require("./OrganizationPublicKeyScope.js"), exports);
|
|
29
|
+
__exportStar(require("./PodPublicKeyScope.js"), exports);
|
|
25
30
|
__exportStar(require("./Prefix.js"), exports);
|
|
31
|
+
__exportStar(require("./PublicJwk.js"), exports);
|
|
32
|
+
__exportStar(require("./PublicJwkCoordinate.js"), exports);
|
|
33
|
+
__exportStar(require("./PublicKeyCredential.js"), exports);
|
|
34
|
+
__exportStar(require("./PublicKeyMaterial.js"), exports);
|
|
35
|
+
__exportStar(require("./PublicKeyScope.js"), exports);
|
|
36
|
+
__exportStar(require("./RevokeAllAgentIdSignInKeysResponse.js"), exports);
|
|
37
|
+
__exportStar(require("./UpdatePublicKeyNameRequest.js"), exports);
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -474,7 +474,7 @@ class ThreadsClient {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Permanently deletes a thread and all of its messages.
|
|
478
478
|
*
|
|
479
479
|
* **CLI:**
|
|
480
480
|
* ```bash
|
|
@@ -483,7 +483,6 @@ class ThreadsClient {
|
|
|
483
483
|
*
|
|
484
484
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
485
485
|
* @param {AgentMail.ThreadId} thread_id
|
|
486
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
487
486
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
487
|
*
|
|
489
488
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -491,16 +490,12 @@ class ThreadsClient {
|
|
|
491
490
|
* @example
|
|
492
491
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
493
492
|
*/
|
|
494
|
-
delete(inbox_id, thread_id,
|
|
495
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id,
|
|
493
|
+
delete(inbox_id, thread_id, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id, requestOptions));
|
|
496
495
|
}
|
|
497
|
-
__delete(
|
|
498
|
-
return __awaiter(this,
|
|
496
|
+
__delete(inbox_id, thread_id, requestOptions) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
498
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
500
|
-
const { permanent } = request;
|
|
501
|
-
const _queryParams = {
|
|
502
|
-
permanent,
|
|
503
|
-
};
|
|
504
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
505
500
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
506
501
|
const _response = yield core.fetcher({
|
|
@@ -508,7 +503,7 @@ class ThreadsClient {
|
|
|
508
503
|
.http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
509
504
|
method: "DELETE",
|
|
510
505
|
headers: _headers,
|
|
511
|
-
queryParameters:
|
|
506
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
512
507
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
513
508
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
514
509
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.pods.PodId} pod_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -474,7 +474,7 @@ class ThreadsClient {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Permanently deletes a thread and all of its messages.
|
|
478
478
|
*
|
|
479
479
|
* **CLI:**
|
|
480
480
|
* ```bash
|
|
@@ -483,7 +483,6 @@ class ThreadsClient {
|
|
|
483
483
|
*
|
|
484
484
|
* @param {AgentMail.pods.PodId} pod_id
|
|
485
485
|
* @param {AgentMail.ThreadId} thread_id
|
|
486
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
487
486
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
487
|
*
|
|
489
488
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -491,16 +490,12 @@ class ThreadsClient {
|
|
|
491
490
|
* @example
|
|
492
491
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
493
492
|
*/
|
|
494
|
-
delete(pod_id, thread_id,
|
|
495
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id,
|
|
493
|
+
delete(pod_id, thread_id, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id, requestOptions));
|
|
496
495
|
}
|
|
497
|
-
__delete(
|
|
498
|
-
return __awaiter(this,
|
|
496
|
+
__delete(pod_id, thread_id, requestOptions) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
498
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
500
|
-
const { permanent } = request;
|
|
501
|
-
const _queryParams = {
|
|
502
|
-
permanent,
|
|
503
|
-
};
|
|
504
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
505
500
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
506
501
|
const _response = yield core.fetcher({
|
|
@@ -508,7 +503,7 @@ class ThreadsClient {
|
|
|
508
503
|
.http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
509
504
|
method: "DELETE",
|
|
510
505
|
headers: _headers,
|
|
511
|
-
queryParameters:
|
|
506
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
512
507
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
513
508
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
514
509
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -102,7 +102,7 @@ export declare class ThreadsClient {
|
|
|
102
102
|
update(thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
103
103
|
private __update;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Permanently deletes a thread and all of its messages.
|
|
106
106
|
*
|
|
107
107
|
* **CLI:**
|
|
108
108
|
* ```bash
|
|
@@ -110,7 +110,6 @@ export declare class ThreadsClient {
|
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @param {AgentMail.ThreadId} thread_id
|
|
113
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
114
113
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
114
|
*
|
|
116
115
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -118,6 +117,6 @@ export declare class ThreadsClient {
|
|
|
118
117
|
* @example
|
|
119
118
|
* await client.threads.delete("thread_id")
|
|
120
119
|
*/
|
|
121
|
-
delete(thread_id: AgentMail.ThreadId,
|
|
120
|
+
delete(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
122
121
|
private __delete;
|
|
123
122
|
}
|
|
@@ -471,7 +471,7 @@ class ThreadsClient {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
474
|
+
* Permanently deletes a thread and all of its messages.
|
|
475
475
|
*
|
|
476
476
|
* **CLI:**
|
|
477
477
|
* ```bash
|
|
@@ -479,7 +479,6 @@ class ThreadsClient {
|
|
|
479
479
|
* ```
|
|
480
480
|
*
|
|
481
481
|
* @param {AgentMail.ThreadId} thread_id
|
|
482
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
483
482
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
484
483
|
*
|
|
485
484
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -487,16 +486,12 @@ class ThreadsClient {
|
|
|
487
486
|
* @example
|
|
488
487
|
* await client.threads.delete("thread_id")
|
|
489
488
|
*/
|
|
490
|
-
delete(thread_id,
|
|
491
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id,
|
|
489
|
+
delete(thread_id, requestOptions) {
|
|
490
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id, requestOptions));
|
|
492
491
|
}
|
|
493
|
-
__delete(
|
|
494
|
-
return __awaiter(this,
|
|
492
|
+
__delete(thread_id, requestOptions) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
494
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
496
|
-
const { permanent } = request;
|
|
497
|
-
const _queryParams = {
|
|
498
|
-
permanent,
|
|
499
|
-
};
|
|
500
495
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
501
496
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
502
497
|
const _response = yield core.fetcher({
|
|
@@ -504,7 +499,7 @@ class ThreadsClient {
|
|
|
504
499
|
.http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
505
500
|
method: "DELETE",
|
|
506
501
|
headers: _headers,
|
|
507
|
-
queryParameters:
|
|
502
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
508
503
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
509
504
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
510
505
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -35,6 +35,7 @@ export declare namespace ApiKeyPermissions {
|
|
|
35
35
|
metrics_read?: boolean | null;
|
|
36
36
|
api_key_read?: boolean | null;
|
|
37
37
|
api_key_create?: boolean | null;
|
|
38
|
+
api_key_update?: boolean | null;
|
|
38
39
|
api_key_delete?: boolean | null;
|
|
39
40
|
pod_read?: boolean | null;
|
|
40
41
|
pod_create?: boolean | null;
|
|
@@ -68,6 +68,7 @@ exports.ApiKeyPermissions = core.serialization.object({
|
|
|
68
68
|
metricsRead: core.serialization.property("metrics_read", core.serialization.boolean().optional()),
|
|
69
69
|
apiKeyRead: core.serialization.property("api_key_read", core.serialization.boolean().optional()),
|
|
70
70
|
apiKeyCreate: core.serialization.property("api_key_create", core.serialization.boolean().optional()),
|
|
71
|
+
apiKeyUpdate: core.serialization.property("api_key_update", core.serialization.boolean().optional()),
|
|
71
72
|
apiKeyDelete: core.serialization.property("api_key_delete", core.serialization.boolean().optional()),
|
|
72
73
|
podRead: core.serialization.property("pod_read", core.serialization.boolean().optional()),
|
|
73
74
|
podCreate: core.serialization.property("pod_create", core.serialization.boolean().optional()),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { PublicJwk } from "./PublicJwk.js";
|
|
5
|
+
import { PublicKeyScope } from "./PublicKeyScope.js";
|
|
6
|
+
export declare const CreatePublicKeyRequest: core.serialization.ObjectSchema<serializers.CreatePublicKeyRequest.Raw, AgentMail.CreatePublicKeyRequest>;
|
|
7
|
+
export declare namespace CreatePublicKeyRequest {
|
|
8
|
+
interface Raw {
|
|
9
|
+
public_key: PublicJwk.Raw;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
scope?: PublicKeyScope.Raw | null;
|
|
12
|
+
expires_at?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CreatePublicKeyRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const PublicJwk_js_1 = require("./PublicJwk.js");
|
|
40
|
+
const PublicKeyScope_js_1 = require("./PublicKeyScope.js");
|
|
41
|
+
exports.CreatePublicKeyRequest = core.serialization.object({
|
|
42
|
+
publicKey: core.serialization.property("public_key", PublicJwk_js_1.PublicJwk),
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
scope: PublicKeyScope_js_1.PublicKeyScope.optional(),
|
|
45
|
+
expiresAt: core.serialization.property("expires_at", core.serialization.date().optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const InboxPublicKeyScope: core.serialization.ObjectSchema<serializers.InboxPublicKeyScope.Raw, AgentMail.InboxPublicKeyScope>;
|
|
5
|
+
export declare namespace InboxPublicKeyScope {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InboxPublicKeyScope = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InboxPublicKeyScope = core.serialization.object({
|
|
40
|
+
id: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { Count } from "../../../types/Count.js";
|
|
5
|
+
import { PageToken } from "../../../types/PageToken.js";
|
|
6
|
+
import { PublicKeyCredential } from "./PublicKeyCredential.js";
|
|
7
|
+
export declare const ListPublicKeysResponse: core.serialization.ObjectSchema<serializers.ListPublicKeysResponse.Raw, AgentMail.ListPublicKeysResponse>;
|
|
8
|
+
export declare namespace ListPublicKeysResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
count: Count.Raw;
|
|
11
|
+
next_page_token?: PageToken.Raw | null;
|
|
12
|
+
public_keys: PublicKeyCredential.Raw[];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ListPublicKeysResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const Count_js_1 = require("../../../types/Count.js");
|
|
40
|
+
const PageToken_js_1 = require("../../../types/PageToken.js");
|
|
41
|
+
const PublicKeyCredential_js_1 = require("./PublicKeyCredential.js");
|
|
42
|
+
exports.ListPublicKeysResponse = core.serialization.object({
|
|
43
|
+
count: Count_js_1.Count,
|
|
44
|
+
nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
|
|
45
|
+
publicKeys: core.serialization.property("public_keys", core.serialization.list(PublicKeyCredential_js_1.PublicKeyCredential)),
|
|
46
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const OrganizationPublicKeyScope: core.serialization.ObjectSchema<serializers.OrganizationPublicKeyScope.Raw, AgentMail.OrganizationPublicKeyScope>;
|
|
5
|
+
export declare namespace OrganizationPublicKeyScope {
|
|
6
|
+
type Raw = {};
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.OrganizationPublicKeyScope = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.OrganizationPublicKeyScope = core.serialization.object({});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const PodPublicKeyScope: core.serialization.ObjectSchema<serializers.PodPublicKeyScope.Raw, AgentMail.PodPublicKeyScope>;
|
|
5
|
+
export declare namespace PodPublicKeyScope {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
}
|