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.
Files changed (157) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +94 -0
  3. package/dist/cjs/api/resources/apiKeys/client/Client.js +372 -0
  4. package/dist/cjs/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.ts +10 -0
  5. package/dist/cjs/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.ts +10 -0
  6. package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -0
  8. package/dist/cjs/api/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +21 -0
  9. package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.d.ts +7 -0
  10. package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.js +3 -0
  11. package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.d.ts +7 -0
  12. package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.js +3 -0
  13. package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +4 -0
  14. package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.js +3 -0
  15. package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.d.ts +7 -0
  16. package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.js +3 -0
  17. package/dist/cjs/api/resources/apiKeys/types/PublicJwk.d.ts +13 -0
  18. package/dist/cjs/api/resources/apiKeys/types/PublicJwk.js +3 -0
  19. package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.d.ts +4 -0
  20. package/dist/cjs/api/resources/apiKeys/types/PublicJwkCoordinate.js +3 -0
  21. package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +22 -0
  22. package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.js +3 -0
  23. package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.d.ts +9 -0
  24. package/dist/cjs/api/resources/apiKeys/types/PublicKeyMaterial.js +3 -0
  25. package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.d.ts +16 -0
  26. package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.js +3 -0
  27. package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +8 -0
  28. package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +3 -0
  29. package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +7 -0
  30. package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +3 -0
  31. package/dist/cjs/api/resources/apiKeys/types/index.d.ts +12 -0
  32. package/dist/cjs/api/resources/apiKeys/types/index.js +12 -0
  33. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +2 -3
  34. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -11
  35. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +0 -1
  36. package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +2 -3
  37. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -11
  38. package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +0 -1
  39. package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -3
  40. package/dist/cjs/api/resources/threads/client/Client.js +6 -11
  41. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +0 -1
  42. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +1 -0
  43. package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +1 -0
  44. package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +14 -0
  45. package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.js +46 -0
  46. package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.ts +9 -0
  47. package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.js +41 -0
  48. package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.ts +14 -0
  49. package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.js +46 -0
  50. package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +7 -0
  51. package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.js +39 -0
  52. package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.d.ts +9 -0
  53. package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.js +41 -0
  54. package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.d.ts +13 -0
  55. package/dist/cjs/serialization/resources/apiKeys/types/PublicJwk.js +45 -0
  56. package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.ts +7 -0
  57. package/dist/cjs/serialization/resources/apiKeys/types/PublicJwkCoordinate.js +39 -0
  58. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.d.ts +20 -0
  59. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.js +52 -0
  60. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.d.ts +11 -0
  61. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyMaterial.js +43 -0
  62. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.d.ts +19 -0
  63. package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.js +51 -0
  64. package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +11 -0
  65. package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +43 -0
  66. package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +9 -0
  67. package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +41 -0
  68. package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +12 -0
  69. package/dist/cjs/serialization/resources/apiKeys/types/index.js +12 -0
  70. package/dist/cjs/version.d.ts +1 -1
  71. package/dist/cjs/version.js +1 -1
  72. package/dist/esm/BaseClient.mjs +2 -2
  73. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +94 -0
  74. package/dist/esm/api/resources/apiKeys/client/Client.mjs +373 -1
  75. package/dist/esm/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.mts +10 -0
  76. package/dist/esm/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.mts +10 -0
  77. package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +2 -0
  78. package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -0
  79. package/dist/esm/api/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +21 -0
  80. package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.d.mts +7 -0
  81. package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.mjs +2 -0
  82. package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.d.mts +7 -0
  83. package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.mjs +2 -0
  84. package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +4 -0
  85. package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +2 -0
  86. package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.d.mts +7 -0
  87. package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.mjs +2 -0
  88. package/dist/esm/api/resources/apiKeys/types/PublicJwk.d.mts +13 -0
  89. package/dist/esm/api/resources/apiKeys/types/PublicJwk.mjs +2 -0
  90. package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.d.mts +4 -0
  91. package/dist/esm/api/resources/apiKeys/types/PublicJwkCoordinate.mjs +2 -0
  92. package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +22 -0
  93. package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.mjs +2 -0
  94. package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.d.mts +9 -0
  95. package/dist/esm/api/resources/apiKeys/types/PublicKeyMaterial.mjs +2 -0
  96. package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.d.mts +16 -0
  97. package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.mjs +2 -0
  98. package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +8 -0
  99. package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +2 -0
  100. package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +7 -0
  101. package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +2 -0
  102. package/dist/esm/api/resources/apiKeys/types/index.d.mts +12 -0
  103. package/dist/esm/api/resources/apiKeys/types/index.mjs +12 -0
  104. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +2 -3
  105. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -11
  106. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +0 -1
  107. package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +2 -3
  108. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -11
  109. package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +0 -1
  110. package/dist/esm/api/resources/threads/client/Client.d.mts +2 -3
  111. package/dist/esm/api/resources/threads/client/Client.mjs +6 -11
  112. package/dist/esm/api/resources/threads/client/requests/index.d.mts +0 -1
  113. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +1 -0
  114. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +1 -0
  115. package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +14 -0
  116. package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.mjs +10 -0
  117. package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.mts +9 -0
  118. package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.mjs +5 -0
  119. package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.mts +14 -0
  120. package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.mjs +10 -0
  121. package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +7 -0
  122. package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +3 -0
  123. package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.d.mts +9 -0
  124. package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.mjs +5 -0
  125. package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.d.mts +13 -0
  126. package/dist/esm/serialization/resources/apiKeys/types/PublicJwk.mjs +9 -0
  127. package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.d.mts +7 -0
  128. package/dist/esm/serialization/resources/apiKeys/types/PublicJwkCoordinate.mjs +3 -0
  129. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.d.mts +20 -0
  130. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.mjs +16 -0
  131. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.d.mts +11 -0
  132. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyMaterial.mjs +7 -0
  133. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.d.mts +19 -0
  134. package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.mjs +15 -0
  135. package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +11 -0
  136. package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +7 -0
  137. package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +9 -0
  138. package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +5 -0
  139. package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +12 -0
  140. package/dist/esm/serialization/resources/apiKeys/types/index.mjs +12 -0
  141. package/dist/esm/version.d.mts +1 -1
  142. package/dist/esm/version.mjs +1 -1
  143. package/dist/llms.txt +2 -4
  144. package/package.json +1 -1
  145. package/reference.md +356 -30
  146. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
  147. package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
  148. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
  149. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
  150. package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
  151. package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
  152. /package/dist/cjs/api/resources/{inboxes/resources/threads/client/requests/DeleteThreadRequest.js → apiKeys/client/requests/ListPublicKeysRequest.js} +0 -0
  153. /package/dist/cjs/api/resources/{pods/resources/threads/client/requests/DeleteThreadRequest.js → apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.js} +0 -0
  154. /package/dist/cjs/api/resources/{threads/client/requests/DeleteThreadRequest.js → apiKeys/types/CreatePublicKeyRequest.js} +0 -0
  155. /package/dist/esm/api/resources/{inboxes/resources/threads/client/requests/DeleteThreadRequest.mjs → apiKeys/client/requests/ListPublicKeysRequest.mjs} +0 -0
  156. /package/dist/esm/api/resources/{pods/resources/threads/client/requests/DeleteThreadRequest.mjs → apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.mjs} +0 -0
  157. /package/dist/esm/api/resources/{threads/client/requests/DeleteThreadRequest.mjs → apiKeys/types/CreatePublicKeyRequest.mjs} +0 -0
@@ -4,6 +4,18 @@ export * from "./ApiKeyPermissions.mjs";
4
4
  export * from "./CreateApiKeyRequest.mjs";
5
5
  export * from "./CreateApiKeyResponse.mjs";
6
6
  export * from "./CreatedAt.mjs";
7
+ export * from "./CreatePublicKeyRequest.mjs";
8
+ export * from "./InboxPublicKeyScope.mjs";
7
9
  export * from "./ListApiKeysResponse.mjs";
10
+ export * from "./ListPublicKeysResponse.mjs";
8
11
  export * from "./Name.mjs";
12
+ export * from "./OrganizationPublicKeyScope.mjs";
13
+ export * from "./PodPublicKeyScope.mjs";
9
14
  export * from "./Prefix.mjs";
15
+ export * from "./PublicJwk.mjs";
16
+ export * from "./PublicJwkCoordinate.mjs";
17
+ export * from "./PublicKeyCredential.mjs";
18
+ export * from "./PublicKeyMaterial.mjs";
19
+ export * from "./PublicKeyScope.mjs";
20
+ export * from "./RevokeAllAgentIdSignInKeysResponse.mjs";
21
+ export * from "./UpdatePublicKeyNameRequest.mjs";
@@ -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
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
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, request?: AgentMail.inboxes.DeleteThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
124
+ delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
126
125
  private __delete;
127
126
  }
@@ -438,7 +438,7 @@ export class ThreadsClient {
438
438
  });
439
439
  }
440
440
  /**
441
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
441
+ * Permanently deletes a thread and all of its messages.
442
442
  *
443
443
  * **CLI:**
444
444
  * ```bash
@@ -447,7 +447,6 @@ export class ThreadsClient {
447
447
  *
448
448
  * @param {AgentMail.inboxes.InboxId} inbox_id
449
449
  * @param {AgentMail.ThreadId} thread_id
450
- * @param {AgentMail.inboxes.DeleteThreadRequest} request
451
450
  * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
452
451
  *
453
452
  * @throws {@link AgentMail.NotFoundError}
@@ -455,16 +454,12 @@ export class ThreadsClient {
455
454
  * @example
456
455
  * await client.inboxes.threads.delete("inbox_id", "thread_id")
457
456
  */
458
- delete(inbox_id, thread_id, request = {}, requestOptions) {
459
- return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id, request, requestOptions));
457
+ delete(inbox_id, thread_id, requestOptions) {
458
+ return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id, requestOptions));
460
459
  }
461
- __delete(inbox_id_1, thread_id_1) {
462
- return __awaiter(this, arguments, void 0, function* (inbox_id, thread_id, request = {}, requestOptions) {
460
+ __delete(inbox_id, thread_id, requestOptions) {
461
+ return __awaiter(this, void 0, void 0, function* () {
463
462
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
464
- const { permanent } = request;
465
- const _queryParams = {
466
- permanent,
467
- };
468
463
  const _authRequest = yield this._options.authProvider.getAuthRequest();
469
464
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
470
465
  const _response = yield core.fetcher({
@@ -472,7 +467,7 @@ export class ThreadsClient {
472
467
  .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 }))}`),
473
468
  method: "DELETE",
474
469
  headers: _headers,
475
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
470
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
476
471
  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,
477
472
  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,
478
473
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,3 +1,2 @@
1
- export type { DeleteThreadRequest } from "./DeleteThreadRequest.mjs";
2
1
  export type { ListThreadsRequest } from "./ListThreadsRequest.mjs";
3
2
  export type { SearchThreadsRequest } from "./SearchThreadsRequest.mjs";
@@ -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
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
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, request?: AgentMail.pods.DeleteThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
124
+ delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
126
125
  private __delete;
127
126
  }
@@ -438,7 +438,7 @@ export class ThreadsClient {
438
438
  });
439
439
  }
440
440
  /**
441
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
441
+ * Permanently deletes a thread and all of its messages.
442
442
  *
443
443
  * **CLI:**
444
444
  * ```bash
@@ -447,7 +447,6 @@ export class ThreadsClient {
447
447
  *
448
448
  * @param {AgentMail.pods.PodId} pod_id
449
449
  * @param {AgentMail.ThreadId} thread_id
450
- * @param {AgentMail.pods.DeleteThreadRequest} request
451
450
  * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
452
451
  *
453
452
  * @throws {@link AgentMail.NotFoundError}
@@ -455,16 +454,12 @@ export class ThreadsClient {
455
454
  * @example
456
455
  * await client.pods.threads.delete("pod_id", "thread_id")
457
456
  */
458
- delete(pod_id, thread_id, request = {}, requestOptions) {
459
- return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id, request, requestOptions));
457
+ delete(pod_id, thread_id, requestOptions) {
458
+ return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id, requestOptions));
460
459
  }
461
- __delete(pod_id_1, thread_id_1) {
462
- return __awaiter(this, arguments, void 0, function* (pod_id, thread_id, request = {}, requestOptions) {
460
+ __delete(pod_id, thread_id, requestOptions) {
461
+ return __awaiter(this, void 0, void 0, function* () {
463
462
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
464
- const { permanent } = request;
465
- const _queryParams = {
466
- permanent,
467
- };
468
463
  const _authRequest = yield this._options.authProvider.getAuthRequest();
469
464
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
470
465
  const _response = yield core.fetcher({
@@ -472,7 +467,7 @@ export class ThreadsClient {
472
467
  .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 }))}`),
473
468
  method: "DELETE",
474
469
  headers: _headers,
475
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
470
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
476
471
  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,
477
472
  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,
478
473
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,3 +1,2 @@
1
- export type { DeleteThreadRequest } from "./DeleteThreadRequest.mjs";
2
1
  export type { ListThreadsRequest } from "./ListThreadsRequest.mjs";
3
2
  export type { SearchThreadsRequest } from "./SearchThreadsRequest.mjs";
@@ -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
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
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, request?: AgentMail.DeleteThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
120
+ delete(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
122
121
  private __delete;
123
122
  }
@@ -435,7 +435,7 @@ export class ThreadsClient {
435
435
  });
436
436
  }
437
437
  /**
438
- * Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.
438
+ * Permanently deletes a thread and all of its messages.
439
439
  *
440
440
  * **CLI:**
441
441
  * ```bash
@@ -443,7 +443,6 @@ export class ThreadsClient {
443
443
  * ```
444
444
  *
445
445
  * @param {AgentMail.ThreadId} thread_id
446
- * @param {AgentMail.DeleteThreadRequest} request
447
446
  * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
448
447
  *
449
448
  * @throws {@link AgentMail.NotFoundError}
@@ -451,16 +450,12 @@ export class ThreadsClient {
451
450
  * @example
452
451
  * await client.threads.delete("thread_id")
453
452
  */
454
- delete(thread_id, request = {}, requestOptions) {
455
- return core.HttpResponsePromise.fromPromise(this.__delete(thread_id, request, requestOptions));
453
+ delete(thread_id, requestOptions) {
454
+ return core.HttpResponsePromise.fromPromise(this.__delete(thread_id, requestOptions));
456
455
  }
457
- __delete(thread_id_1) {
458
- return __awaiter(this, arguments, void 0, function* (thread_id, request = {}, requestOptions) {
456
+ __delete(thread_id, requestOptions) {
457
+ return __awaiter(this, void 0, void 0, function* () {
459
458
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
460
- const { permanent } = request;
461
- const _queryParams = {
462
- permanent,
463
- };
464
459
  const _authRequest = yield this._options.authProvider.getAuthRequest();
465
460
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
466
461
  const _response = yield core.fetcher({
@@ -468,7 +463,7 @@ export class ThreadsClient {
468
463
  .http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
469
464
  method: "DELETE",
470
465
  headers: _headers,
471
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
466
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
472
467
  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,
473
468
  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,
474
469
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,3 +1,2 @@
1
- export type { DeleteThreadRequest } from "./DeleteThreadRequest.mjs";
2
1
  export type { ListThreadsRequest } from "./ListThreadsRequest.mjs";
3
2
  export type { SearchThreadsRequest } from "./SearchThreadsRequest.mjs";
@@ -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;
@@ -32,6 +32,7 @@ export const ApiKeyPermissions = core.serialization.object({
32
32
  metricsRead: core.serialization.property("metrics_read", core.serialization.boolean().optional()),
33
33
  apiKeyRead: core.serialization.property("api_key_read", core.serialization.boolean().optional()),
34
34
  apiKeyCreate: core.serialization.property("api_key_create", core.serialization.boolean().optional()),
35
+ apiKeyUpdate: core.serialization.property("api_key_update", core.serialization.boolean().optional()),
35
36
  apiKeyDelete: core.serialization.property("api_key_delete", core.serialization.boolean().optional()),
36
37
  podRead: core.serialization.property("pod_read", core.serialization.boolean().optional()),
37
38
  podCreate: core.serialization.property("pod_create", core.serialization.boolean().optional()),
@@ -0,0 +1,14 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { PublicJwk } from "./PublicJwk.mjs";
5
+ import { PublicKeyScope } from "./PublicKeyScope.mjs";
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,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { PublicJwk } from "./PublicJwk.mjs";
4
+ import { PublicKeyScope } from "./PublicKeyScope.mjs";
5
+ export const CreatePublicKeyRequest = core.serialization.object({
6
+ publicKey: core.serialization.property("public_key", PublicJwk),
7
+ name: core.serialization.string().optional(),
8
+ scope: PublicKeyScope.optional(),
9
+ expiresAt: core.serialization.property("expires_at", core.serialization.date().optional()),
10
+ });
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
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,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const InboxPublicKeyScope = core.serialization.object({
4
+ id: core.serialization.string(),
5
+ });
@@ -0,0 +1,14 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { Count } from "../../../types/Count.mjs";
5
+ import { PageToken } from "../../../types/PageToken.mjs";
6
+ import { PublicKeyCredential } from "./PublicKeyCredential.mjs";
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,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { Count } from "../../../types/Count.mjs";
4
+ import { PageToken } from "../../../types/PageToken.mjs";
5
+ import { PublicKeyCredential } from "./PublicKeyCredential.mjs";
6
+ export const ListPublicKeysResponse = core.serialization.object({
7
+ count: Count,
8
+ nextPageToken: core.serialization.property("next_page_token", PageToken.optional()),
9
+ publicKeys: core.serialization.property("public_keys", core.serialization.list(PublicKeyCredential)),
10
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const OrganizationPublicKeyScope = core.serialization.object({});
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
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
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const PodPublicKeyScope = core.serialization.object({
4
+ id: core.serialization.string(),
5
+ });
@@ -0,0 +1,13 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { PublicJwkCoordinate } from "./PublicJwkCoordinate.mjs";
5
+ export declare const PublicJwk: core.serialization.ObjectSchema<serializers.PublicJwk.Raw, AgentMail.PublicJwk>;
6
+ export declare namespace PublicJwk {
7
+ interface Raw {
8
+ kty: "EC";
9
+ crv: "P-256";
10
+ x: PublicJwkCoordinate.Raw;
11
+ y: PublicJwkCoordinate.Raw;
12
+ }
13
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { PublicJwkCoordinate } from "./PublicJwkCoordinate.mjs";
4
+ export const PublicJwk = core.serialization.object({
5
+ kty: core.serialization.stringLiteral("EC"),
6
+ crv: core.serialization.stringLiteral("P-256"),
7
+ x: PublicJwkCoordinate,
8
+ y: PublicJwkCoordinate,
9
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const PublicJwkCoordinate: core.serialization.Schema<serializers.PublicJwkCoordinate.Raw, AgentMail.PublicJwkCoordinate>;
5
+ export declare namespace PublicJwkCoordinate {
6
+ type Raw = string;
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const PublicJwkCoordinate = core.serialization.string();
@@ -0,0 +1,20 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { Name } from "./Name.mjs";
5
+ import { PublicKeyMaterial } from "./PublicKeyMaterial.mjs";
6
+ import { PublicKeyScope } from "./PublicKeyScope.mjs";
7
+ export declare const PublicKeyCredential: core.serialization.ObjectSchema<serializers.PublicKeyCredential.Raw, AgentMail.PublicKeyCredential>;
8
+ export declare namespace PublicKeyCredential {
9
+ interface Raw {
10
+ api_key_id: string;
11
+ type: "public_key";
12
+ name: Name.Raw;
13
+ public_key: PublicKeyMaterial.Raw;
14
+ scope: PublicKeyScope.Raw;
15
+ expires_at?: string | null;
16
+ revoked_at?: string | null;
17
+ created_at: string;
18
+ updated_at: string;
19
+ }
20
+ }
@@ -0,0 +1,16 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { Name } from "./Name.mjs";
4
+ import { PublicKeyMaterial } from "./PublicKeyMaterial.mjs";
5
+ import { PublicKeyScope } from "./PublicKeyScope.mjs";
6
+ export const PublicKeyCredential = core.serialization.object({
7
+ apiKeyId: core.serialization.property("api_key_id", core.serialization.string()),
8
+ type: core.serialization.stringLiteral("public_key"),
9
+ name: Name,
10
+ publicKey: core.serialization.property("public_key", PublicKeyMaterial),
11
+ scope: PublicKeyScope,
12
+ expiresAt: core.serialization.property("expires_at", core.serialization.date().optional()),
13
+ revokedAt: core.serialization.property("revoked_at", core.serialization.date().optional()),
14
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
15
+ updatedAt: core.serialization.property("updated_at", core.serialization.date()),
16
+ });
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { PublicJwk } from "./PublicJwk.mjs";
5
+ export declare const PublicKeyMaterial: core.serialization.ObjectSchema<serializers.PublicKeyMaterial.Raw, AgentMail.PublicKeyMaterial>;
6
+ export declare namespace PublicKeyMaterial {
7
+ interface Raw {
8
+ jwk: PublicJwk.Raw;
9
+ fingerprint: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { PublicJwk } from "./PublicJwk.mjs";
4
+ export const PublicKeyMaterial = core.serialization.object({
5
+ jwk: PublicJwk,
6
+ fingerprint: core.serialization.string(),
7
+ });
@@ -0,0 +1,19 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { InboxPublicKeyScope } from "./InboxPublicKeyScope.mjs";
5
+ import { OrganizationPublicKeyScope } from "./OrganizationPublicKeyScope.mjs";
6
+ import { PodPublicKeyScope } from "./PodPublicKeyScope.mjs";
7
+ export declare const PublicKeyScope: core.serialization.Schema<serializers.PublicKeyScope.Raw, AgentMail.PublicKeyScope>;
8
+ export declare namespace PublicKeyScope {
9
+ type Raw = PublicKeyScope.Organization | PublicKeyScope.Pod | PublicKeyScope.Inbox;
10
+ interface Organization extends OrganizationPublicKeyScope.Raw {
11
+ type: "organization";
12
+ }
13
+ interface Pod extends PodPublicKeyScope.Raw {
14
+ type: "pod";
15
+ }
16
+ interface Inbox extends InboxPublicKeyScope.Raw {
17
+ type: "inbox";
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { InboxPublicKeyScope } from "./InboxPublicKeyScope.mjs";
4
+ import { OrganizationPublicKeyScope } from "./OrganizationPublicKeyScope.mjs";
5
+ import { PodPublicKeyScope } from "./PodPublicKeyScope.mjs";
6
+ export const PublicKeyScope = core.serialization
7
+ .union("type", {
8
+ organization: OrganizationPublicKeyScope,
9
+ pod: PodPublicKeyScope,
10
+ inbox: InboxPublicKeyScope,
11
+ })
12
+ .transform({
13
+ transform: (value) => value,
14
+ untransform: (value) => value,
15
+ });
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const RevokeAllAgentIdSignInKeysResponse: core.serialization.ObjectSchema<serializers.RevokeAllAgentIdSignInKeysResponse.Raw, AgentMail.RevokeAllAgentIdSignInKeysResponse>;
5
+ export declare namespace RevokeAllAgentIdSignInKeysResponse {
6
+ interface Raw {
7
+ previous_generation: number;
8
+ current_generation: number;
9
+ revoked_at: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RevokeAllAgentIdSignInKeysResponse = core.serialization.object({
4
+ previousGeneration: core.serialization.property("previous_generation", core.serialization.number()),
5
+ currentGeneration: core.serialization.property("current_generation", core.serialization.number()),
6
+ revokedAt: core.serialization.property("revoked_at", core.serialization.date()),
7
+ });
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const UpdatePublicKeyNameRequest: core.serialization.ObjectSchema<serializers.UpdatePublicKeyNameRequest.Raw, AgentMail.UpdatePublicKeyNameRequest>;
5
+ export declare namespace UpdatePublicKeyNameRequest {
6
+ interface Raw {
7
+ name: string;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const UpdatePublicKeyNameRequest = core.serialization.object({
4
+ name: core.serialization.string(),
5
+ });
@@ -4,6 +4,18 @@ export * from "./ApiKeyPermissions.mjs";
4
4
  export * from "./CreateApiKeyRequest.mjs";
5
5
  export * from "./CreateApiKeyResponse.mjs";
6
6
  export * from "./CreatedAt.mjs";
7
+ export * from "./CreatePublicKeyRequest.mjs";
8
+ export * from "./InboxPublicKeyScope.mjs";
7
9
  export * from "./ListApiKeysResponse.mjs";
10
+ export * from "./ListPublicKeysResponse.mjs";
8
11
  export * from "./Name.mjs";
12
+ export * from "./OrganizationPublicKeyScope.mjs";
13
+ export * from "./PodPublicKeyScope.mjs";
9
14
  export * from "./Prefix.mjs";
15
+ export * from "./PublicJwk.mjs";
16
+ export * from "./PublicJwkCoordinate.mjs";
17
+ export * from "./PublicKeyCredential.mjs";
18
+ export * from "./PublicKeyMaterial.mjs";
19
+ export * from "./PublicKeyScope.mjs";
20
+ export * from "./RevokeAllAgentIdSignInKeysResponse.mjs";
21
+ export * from "./UpdatePublicKeyNameRequest.mjs";
@@ -4,6 +4,18 @@ export * from "./ApiKeyPermissions.mjs";
4
4
  export * from "./CreateApiKeyRequest.mjs";
5
5
  export * from "./CreateApiKeyResponse.mjs";
6
6
  export * from "./CreatedAt.mjs";
7
+ export * from "./CreatePublicKeyRequest.mjs";
8
+ export * from "./InboxPublicKeyScope.mjs";
7
9
  export * from "./ListApiKeysResponse.mjs";
10
+ export * from "./ListPublicKeysResponse.mjs";
8
11
  export * from "./Name.mjs";
12
+ export * from "./OrganizationPublicKeyScope.mjs";
13
+ export * from "./PodPublicKeyScope.mjs";
9
14
  export * from "./Prefix.mjs";
15
+ export * from "./PublicJwk.mjs";
16
+ export * from "./PublicJwkCoordinate.mjs";
17
+ export * from "./PublicKeyCredential.mjs";
18
+ export * from "./PublicKeyMaterial.mjs";
19
+ export * from "./PublicKeyScope.mjs";
20
+ export * from "./RevokeAllAgentIdSignInKeysResponse.mjs";
21
+ export * from "./UpdatePublicKeyNameRequest.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.15";
1
+ export declare const SDK_VERSION = "0.5.17";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.5.15";
1
+ export const SDK_VERSION = "0.5.17";