@pidgeon-ai/sdk 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -366,12 +366,18 @@ type AgentVerified = {
366
366
  address: string;
367
367
  identity_id: string;
368
368
  sign_in_url: string;
369
+ api_key: string;
370
+ api_key_id: string;
369
371
  };
370
372
  type Identity = {
371
373
  id: string;
372
374
  email: string;
373
375
  local_part: string;
374
376
  domain: string;
377
+ /**
378
+ * Pass this to POST /identities to add another address here.
379
+ */
380
+ domain_id: string;
375
381
  display_name: string | null;
376
382
  /**
377
383
  * human, team, application, workflow or agent.
@@ -984,7 +990,7 @@ type Replayed = {
984
990
  status: 'pending';
985
991
  };
986
992
  type Mailbox = {
987
- folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash';
993
+ folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
988
994
  /**
989
995
  * Null where the product does not count that folder. Not zero — zero is a claim.
990
996
  */
@@ -1273,6 +1279,9 @@ type IdentitiesListData = {
1273
1279
  path?: never;
1274
1280
  query?: {
1275
1281
  limit?: number;
1282
+ /**
1283
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
1284
+ */
1276
1285
  cursor?: string;
1277
1286
  tenant_id?: string;
1278
1287
  };
@@ -1309,8 +1318,10 @@ type IdentitiesListResponses = {
1309
1318
  type IdentitiesListResponse = IdentitiesListResponses[keyof IdentitiesListResponses];
1310
1319
  type IdentitiesCreateData = {
1311
1320
  body: {
1312
- domain_id: string;
1313
- local_part: string;
1321
+ domain_id?: string;
1322
+ domain?: string;
1323
+ address?: string;
1324
+ local_part?: string;
1314
1325
  display_name?: string | null;
1315
1326
  type?: 'human' | 'team' | 'application' | 'workflow' | 'agent';
1316
1327
  mode?: 'human' | 'automated' | 'hybrid';
@@ -2045,6 +2056,9 @@ type MessagesListInThreadData = {
2045
2056
  path?: never;
2046
2057
  query: {
2047
2058
  limit?: number;
2059
+ /**
2060
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2061
+ */
2048
2062
  cursor?: string;
2049
2063
  thread_id: string;
2050
2064
  };
@@ -2125,7 +2139,7 @@ type MessagesSearchData = {
2125
2139
  query: {
2126
2140
  identity_id: string;
2127
2141
  q?: string;
2128
- in?: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash';
2142
+ in?: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
2129
2143
  from?: string;
2130
2144
  to?: string;
2131
2145
  has_attachment?: string;
@@ -2450,7 +2464,17 @@ type ThreadsListData = {
2450
2464
  path?: never;
2451
2465
  query?: {
2452
2466
  limit?: number;
2467
+ /**
2468
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2469
+ */
2453
2470
  cursor?: string;
2471
+ identity_id?: string;
2472
+ status?: 'open' | 'waiting' | 'resolved' | 'human_review';
2473
+ owner_type?: 'human' | 'automation' | 'agent';
2474
+ /**
2475
+ * A person’s id, or `unassigned` for the queue nobody has taken.
2476
+ */
2477
+ assignee_id?: string | 'unassigned';
2454
2478
  };
2455
2479
  url: '/threads';
2456
2480
  };
@@ -2556,6 +2580,9 @@ type DomainsListData = {
2556
2580
  path?: never;
2557
2581
  query?: {
2558
2582
  limit?: number;
2583
+ /**
2584
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2585
+ */
2559
2586
  cursor?: string;
2560
2587
  };
2561
2588
  url: '/domains';
@@ -3086,6 +3113,9 @@ type MailboxesListFolderData = {
3086
3113
  query: {
3087
3114
  identity_id: string;
3088
3115
  limit?: number;
3116
+ /**
3117
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3118
+ */
3089
3119
  cursor?: string;
3090
3120
  label_id?: string;
3091
3121
  };
@@ -3460,6 +3490,9 @@ type EventsListData = {
3460
3490
  path?: never;
3461
3491
  query?: {
3462
3492
  limit?: number;
3493
+ /**
3494
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3495
+ */
3463
3496
  cursor?: string;
3464
3497
  type?: string;
3465
3498
  identity_id?: string;
@@ -3533,6 +3566,9 @@ type WebhooksListData = {
3533
3566
  path?: never;
3534
3567
  query?: {
3535
3568
  limit?: number;
3569
+ /**
3570
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3571
+ */
3536
3572
  cursor?: string;
3537
3573
  };
3538
3574
  url: '/webhooks';
@@ -3956,6 +3992,9 @@ type CalendarListEventsData = {
3956
3992
  };
3957
3993
  query?: {
3958
3994
  limit?: number;
3995
+ /**
3996
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3997
+ */
3959
3998
  cursor?: string;
3960
3999
  };
3961
4000
  url: '/identities/{id}/calendar/events';
@@ -4753,7 +4792,7 @@ declare const agentAttachHuman: <ThrowOnError extends boolean = false>(options:
4753
4792
  /**
4754
4793
  * Verify an agent with the human’s code
4755
4794
  *
4756
- * Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It returns no key: the agent asks for one through the account it now belongs to, which is how every other key is made.
4795
+ * Creates the account, the address and a workspace-scoped API key. Ten wrong codes spend the signup, whatever comes next. The key is returned once and never again — store it before doing anything else. It is minted here rather than at signup because this is the call a human has vouched for.
4757
4796
  */
4758
4797
  declare const agentVerify: <ThrowOnError extends boolean = false>(options: Options<AgentVerifyData, ThrowOnError>) => RequestResult<AgentVerifyResponses, AgentVerifyErrors, ThrowOnError>;
4759
4798
  /**
package/dist/index.d.ts CHANGED
@@ -366,12 +366,18 @@ type AgentVerified = {
366
366
  address: string;
367
367
  identity_id: string;
368
368
  sign_in_url: string;
369
+ api_key: string;
370
+ api_key_id: string;
369
371
  };
370
372
  type Identity = {
371
373
  id: string;
372
374
  email: string;
373
375
  local_part: string;
374
376
  domain: string;
377
+ /**
378
+ * Pass this to POST /identities to add another address here.
379
+ */
380
+ domain_id: string;
375
381
  display_name: string | null;
376
382
  /**
377
383
  * human, team, application, workflow or agent.
@@ -984,7 +990,7 @@ type Replayed = {
984
990
  status: 'pending';
985
991
  };
986
992
  type Mailbox = {
987
- folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash';
993
+ folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
988
994
  /**
989
995
  * Null where the product does not count that folder. Not zero — zero is a claim.
990
996
  */
@@ -1273,6 +1279,9 @@ type IdentitiesListData = {
1273
1279
  path?: never;
1274
1280
  query?: {
1275
1281
  limit?: number;
1282
+ /**
1283
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
1284
+ */
1276
1285
  cursor?: string;
1277
1286
  tenant_id?: string;
1278
1287
  };
@@ -1309,8 +1318,10 @@ type IdentitiesListResponses = {
1309
1318
  type IdentitiesListResponse = IdentitiesListResponses[keyof IdentitiesListResponses];
1310
1319
  type IdentitiesCreateData = {
1311
1320
  body: {
1312
- domain_id: string;
1313
- local_part: string;
1321
+ domain_id?: string;
1322
+ domain?: string;
1323
+ address?: string;
1324
+ local_part?: string;
1314
1325
  display_name?: string | null;
1315
1326
  type?: 'human' | 'team' | 'application' | 'workflow' | 'agent';
1316
1327
  mode?: 'human' | 'automated' | 'hybrid';
@@ -2045,6 +2056,9 @@ type MessagesListInThreadData = {
2045
2056
  path?: never;
2046
2057
  query: {
2047
2058
  limit?: number;
2059
+ /**
2060
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2061
+ */
2048
2062
  cursor?: string;
2049
2063
  thread_id: string;
2050
2064
  };
@@ -2125,7 +2139,7 @@ type MessagesSearchData = {
2125
2139
  query: {
2126
2140
  identity_id: string;
2127
2141
  q?: string;
2128
- in?: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash';
2142
+ in?: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
2129
2143
  from?: string;
2130
2144
  to?: string;
2131
2145
  has_attachment?: string;
@@ -2450,7 +2464,17 @@ type ThreadsListData = {
2450
2464
  path?: never;
2451
2465
  query?: {
2452
2466
  limit?: number;
2467
+ /**
2468
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2469
+ */
2453
2470
  cursor?: string;
2471
+ identity_id?: string;
2472
+ status?: 'open' | 'waiting' | 'resolved' | 'human_review';
2473
+ owner_type?: 'human' | 'automation' | 'agent';
2474
+ /**
2475
+ * A person’s id, or `unassigned` for the queue nobody has taken.
2476
+ */
2477
+ assignee_id?: string | 'unassigned';
2454
2478
  };
2455
2479
  url: '/threads';
2456
2480
  };
@@ -2556,6 +2580,9 @@ type DomainsListData = {
2556
2580
  path?: never;
2557
2581
  query?: {
2558
2582
  limit?: number;
2583
+ /**
2584
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
2585
+ */
2559
2586
  cursor?: string;
2560
2587
  };
2561
2588
  url: '/domains';
@@ -3086,6 +3113,9 @@ type MailboxesListFolderData = {
3086
3113
  query: {
3087
3114
  identity_id: string;
3088
3115
  limit?: number;
3116
+ /**
3117
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3118
+ */
3089
3119
  cursor?: string;
3090
3120
  label_id?: string;
3091
3121
  };
@@ -3460,6 +3490,9 @@ type EventsListData = {
3460
3490
  path?: never;
3461
3491
  query?: {
3462
3492
  limit?: number;
3493
+ /**
3494
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3495
+ */
3463
3496
  cursor?: string;
3464
3497
  type?: string;
3465
3498
  identity_id?: string;
@@ -3533,6 +3566,9 @@ type WebhooksListData = {
3533
3566
  path?: never;
3534
3567
  query?: {
3535
3568
  limit?: number;
3569
+ /**
3570
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3571
+ */
3536
3572
  cursor?: string;
3537
3573
  };
3538
3574
  url: '/webhooks';
@@ -3956,6 +3992,9 @@ type CalendarListEventsData = {
3956
3992
  };
3957
3993
  query?: {
3958
3994
  limit?: number;
3995
+ /**
3996
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
3997
+ */
3959
3998
  cursor?: string;
3960
3999
  };
3961
4000
  url: '/identities/{id}/calendar/events';
@@ -4753,7 +4792,7 @@ declare const agentAttachHuman: <ThrowOnError extends boolean = false>(options:
4753
4792
  /**
4754
4793
  * Verify an agent with the human’s code
4755
4794
  *
4756
- * Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It returns no key: the agent asks for one through the account it now belongs to, which is how every other key is made.
4795
+ * Creates the account, the address and a workspace-scoped API key. Ten wrong codes spend the signup, whatever comes next. The key is returned once and never again — store it before doing anything else. It is minted here rather than at signup because this is the call a human has vouched for.
4757
4796
  */
4758
4797
  declare const agentVerify: <ThrowOnError extends boolean = false>(options: Options<AgentVerifyData, ThrowOnError>) => RequestResult<AgentVerifyResponses, AgentVerifyErrors, ThrowOnError>;
4759
4798
  /**