@deepraxis/sdk 0.2.0-dev.053bf41 → 0.2.0-dev.05b5159
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/METHODS.md +12 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +40 -4
- package/dist/generated/sdk.gen.js +119 -3
- package/dist/generated/types.gen.d.ts +444 -8
- package/dist/operations.generated.js +200 -7
- package/dist/resources.generated.d.ts +56 -0
- package/dist/resources.generated.js +8 -0
- package/package.json +1 -1
|
@@ -3184,7 +3184,7 @@ export const listOrganizationCosts = (options) => (options.client ?? client).get
|
|
|
3184
3184
|
/**
|
|
3185
3185
|
* List Organization Usage
|
|
3186
3186
|
*
|
|
3187
|
-
* Consumed quantity per time bucket per group. Buckets are whole
|
|
3187
|
+
* Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.
|
|
3188
3188
|
*
|
|
3189
3189
|
*/
|
|
3190
3190
|
export const listOrganizationUsage = (options) => (options.client ?? client).get({
|
|
@@ -3276,9 +3276,9 @@ export const getOrganizationNotificationsInbox = (options) => (options?.client ?
|
|
|
3276
3276
|
...options
|
|
3277
3277
|
});
|
|
3278
3278
|
/**
|
|
3279
|
-
* List the letters addressed to you
|
|
3279
|
+
* List the letters addressed to you, or the ones you sent
|
|
3280
3280
|
*
|
|
3281
|
-
* The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.
|
|
3281
|
+
* The letters this person received (or, with direction=sent, wrote) in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.
|
|
3282
3282
|
*/
|
|
3283
3283
|
export const listOrganizationNotificationLetters = (options) => (options?.client ?? client).get({
|
|
3284
3284
|
security: [{
|
|
@@ -3293,6 +3293,28 @@ export const listOrganizationNotificationLetters = (options) => (options?.client
|
|
|
3293
3293
|
url: '/organization/v1/notifications/letters',
|
|
3294
3294
|
...options
|
|
3295
3295
|
});
|
|
3296
|
+
/**
|
|
3297
|
+
* Send a letter to a person or an agent
|
|
3298
|
+
*
|
|
3299
|
+
* Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.
|
|
3300
|
+
*/
|
|
3301
|
+
export const createOrganizationNotificationLetter = (options) => (options.client ?? client).post({
|
|
3302
|
+
security: [{
|
|
3303
|
+
key: 'BearerAuth',
|
|
3304
|
+
scheme: 'bearer',
|
|
3305
|
+
type: 'http'
|
|
3306
|
+
}, {
|
|
3307
|
+
key: 'ApiKeyAuth',
|
|
3308
|
+
name: 'X-API-Key',
|
|
3309
|
+
type: 'apiKey'
|
|
3310
|
+
}],
|
|
3311
|
+
url: '/organization/v1/notifications/letters',
|
|
3312
|
+
...options,
|
|
3313
|
+
headers: {
|
|
3314
|
+
'Content-Type': 'application/json',
|
|
3315
|
+
...options.headers
|
|
3316
|
+
}
|
|
3317
|
+
});
|
|
3296
3318
|
/**
|
|
3297
3319
|
* Open one of your letters by its id
|
|
3298
3320
|
*
|
|
@@ -3369,6 +3391,100 @@ export const archiveOrganizationNotificationLetter = (options) => (options.clien
|
|
|
3369
3391
|
url: '/organization/v1/notifications/letters/{id}:archive',
|
|
3370
3392
|
...options
|
|
3371
3393
|
});
|
|
3394
|
+
/**
|
|
3395
|
+
* List your bell messages
|
|
3396
|
+
*
|
|
3397
|
+
* The calling person's bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential's own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.
|
|
3398
|
+
*/
|
|
3399
|
+
export const listOrganizationNotificationMessages = (options) => (options?.client ?? client).get({
|
|
3400
|
+
security: [{
|
|
3401
|
+
key: 'BearerAuth',
|
|
3402
|
+
scheme: 'bearer',
|
|
3403
|
+
type: 'http'
|
|
3404
|
+
}, {
|
|
3405
|
+
key: 'ApiKeyAuth',
|
|
3406
|
+
name: 'X-API-Key',
|
|
3407
|
+
type: 'apiKey'
|
|
3408
|
+
}],
|
|
3409
|
+
url: '/organization/v1/notifications/messages',
|
|
3410
|
+
...options
|
|
3411
|
+
});
|
|
3412
|
+
/**
|
|
3413
|
+
* Delete one of your bell messages
|
|
3414
|
+
*
|
|
3415
|
+
* Delete one of the calling person's own bell messages for good. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.
|
|
3416
|
+
*/
|
|
3417
|
+
export const deleteOrganizationNotificationMessage = (options) => (options.client ?? client).delete({
|
|
3418
|
+
security: [{
|
|
3419
|
+
key: 'BearerAuth',
|
|
3420
|
+
scheme: 'bearer',
|
|
3421
|
+
type: 'http'
|
|
3422
|
+
}, {
|
|
3423
|
+
key: 'ApiKeyAuth',
|
|
3424
|
+
name: 'X-API-Key',
|
|
3425
|
+
type: 'apiKey'
|
|
3426
|
+
}],
|
|
3427
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3428
|
+
...options
|
|
3429
|
+
});
|
|
3430
|
+
/**
|
|
3431
|
+
* Open one of your bell messages
|
|
3432
|
+
*
|
|
3433
|
+
* One bell message of the calling person by its name. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, without saying which. Read-only; no usage charge.
|
|
3434
|
+
*/
|
|
3435
|
+
export const getOrganizationNotificationMessage = (options) => (options.client ?? client).get({
|
|
3436
|
+
security: [{
|
|
3437
|
+
key: 'BearerAuth',
|
|
3438
|
+
scheme: 'bearer',
|
|
3439
|
+
type: 'http'
|
|
3440
|
+
}, {
|
|
3441
|
+
key: 'ApiKeyAuth',
|
|
3442
|
+
name: 'X-API-Key',
|
|
3443
|
+
type: 'apiKey'
|
|
3444
|
+
}],
|
|
3445
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3446
|
+
...options
|
|
3447
|
+
});
|
|
3448
|
+
/**
|
|
3449
|
+
* Mark one of your bell messages read or archived
|
|
3450
|
+
*
|
|
3451
|
+
* Change the read or archived flag of one of the calling person's own bell messages and return it. Name at least one flag. Reading a message also tells the notification still waiting on it, so it is not emailed later as unread. A message that is not theirs answers 404 like one that does not exist. No usage charge.
|
|
3452
|
+
*/
|
|
3453
|
+
export const updateOrganizationNotificationMessage = (options) => (options.client ?? client).post({
|
|
3454
|
+
security: [{
|
|
3455
|
+
key: 'BearerAuth',
|
|
3456
|
+
scheme: 'bearer',
|
|
3457
|
+
type: 'http'
|
|
3458
|
+
}, {
|
|
3459
|
+
key: 'ApiKeyAuth',
|
|
3460
|
+
name: 'X-API-Key',
|
|
3461
|
+
type: 'apiKey'
|
|
3462
|
+
}],
|
|
3463
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3464
|
+
...options,
|
|
3465
|
+
headers: {
|
|
3466
|
+
'Content-Type': 'application/json',
|
|
3467
|
+
...options.headers
|
|
3468
|
+
}
|
|
3469
|
+
});
|
|
3470
|
+
/**
|
|
3471
|
+
* Mark all your unread bell messages read
|
|
3472
|
+
*
|
|
3473
|
+
* Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else's is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.
|
|
3474
|
+
*/
|
|
3475
|
+
export const readAllOrganizationNotificationMessages = (options) => (options?.client ?? client).post({
|
|
3476
|
+
security: [{
|
|
3477
|
+
key: 'BearerAuth',
|
|
3478
|
+
scheme: 'bearer',
|
|
3479
|
+
type: 'http'
|
|
3480
|
+
}, {
|
|
3481
|
+
key: 'ApiKeyAuth',
|
|
3482
|
+
name: 'X-API-Key',
|
|
3483
|
+
type: 'apiKey'
|
|
3484
|
+
}],
|
|
3485
|
+
url: '/organization/v1/notifications/messages:readAll',
|
|
3486
|
+
...options
|
|
3487
|
+
});
|
|
3372
3488
|
/**
|
|
3373
3489
|
* Your notification switches, and what they resolve to
|
|
3374
3490
|
*
|
|
@@ -13839,7 +13839,7 @@ export type AutomationHumanTask = {
|
|
|
13839
13839
|
*/
|
|
13840
13840
|
initiator: {
|
|
13841
13841
|
/**
|
|
13842
|
-
* Initiator type: user, api_key, agent, run (a parent run) or
|
|
13842
|
+
* Initiator type: user, api_key, agent, run (a parent run), trigger or application.
|
|
13843
13843
|
*/
|
|
13844
13844
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
13845
13845
|
/**
|
|
@@ -36818,11 +36818,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36818
36818
|
*/
|
|
36819
36819
|
export type AutomationSubject = {
|
|
36820
36820
|
/**
|
|
36821
|
-
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
|
|
36821
|
+
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
|
|
36822
36822
|
*/
|
|
36823
36823
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36824
36824
|
/**
|
|
36825
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36825
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36826
36826
|
*/
|
|
36827
36827
|
id: string;
|
|
36828
36828
|
};
|
|
@@ -79463,11 +79463,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79463
79463
|
path?: never;
|
|
79464
79464
|
query?: {
|
|
79465
79465
|
/**
|
|
79466
|
-
*
|
|
79466
|
+
* received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
|
|
79467
79467
|
*/
|
|
79468
|
-
|
|
79468
|
+
direction?: 'received' | 'sent';
|
|
79469
79469
|
/**
|
|
79470
|
-
*
|
|
79470
|
+
* Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
|
|
79471
|
+
*/
|
|
79472
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
79473
|
+
/**
|
|
79474
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
79475
|
+
*/
|
|
79476
|
+
thread?: string;
|
|
79477
|
+
/**
|
|
79478
|
+
* false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
|
|
79471
79479
|
*/
|
|
79472
79480
|
archived?: boolean;
|
|
79473
79481
|
/**
|
|
@@ -79483,7 +79491,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79483
79491
|
};
|
|
79484
79492
|
export type ListOrganizationNotificationLettersErrors = {
|
|
79485
79493
|
/**
|
|
79486
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79494
|
+
* A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79487
79495
|
*/
|
|
79488
79496
|
400: unknown;
|
|
79489
79497
|
/**
|
|
@@ -79583,6 +79591,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79583
79591
|
};
|
|
79584
79592
|
};
|
|
79585
79593
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
79594
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
79595
|
+
body: {
|
|
79596
|
+
/**
|
|
79597
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
79598
|
+
*/
|
|
79599
|
+
to: string;
|
|
79600
|
+
/**
|
|
79601
|
+
* The whole letter, 1 to 16000 characters.
|
|
79602
|
+
*/
|
|
79603
|
+
body: string;
|
|
79604
|
+
/**
|
|
79605
|
+
* One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
|
|
79606
|
+
*/
|
|
79607
|
+
summary?: string;
|
|
79608
|
+
/**
|
|
79609
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
79610
|
+
*/
|
|
79611
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
79612
|
+
/**
|
|
79613
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
79614
|
+
*/
|
|
79615
|
+
thread?: string;
|
|
79616
|
+
/**
|
|
79617
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
79618
|
+
*/
|
|
79619
|
+
deliver_at?: string;
|
|
79620
|
+
};
|
|
79621
|
+
path?: never;
|
|
79622
|
+
query?: never;
|
|
79623
|
+
url: '/organization/v1/notifications/letters';
|
|
79624
|
+
};
|
|
79625
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
79626
|
+
/**
|
|
79627
|
+
* `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
|
|
79628
|
+
*/
|
|
79629
|
+
400: unknown;
|
|
79630
|
+
/**
|
|
79631
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79632
|
+
*/
|
|
79633
|
+
401: unknown;
|
|
79634
|
+
/**
|
|
79635
|
+
* `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
|
|
79636
|
+
*/
|
|
79637
|
+
403: unknown;
|
|
79638
|
+
/**
|
|
79639
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
79640
|
+
*/
|
|
79641
|
+
404: unknown;
|
|
79642
|
+
/**
|
|
79643
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79644
|
+
*/
|
|
79645
|
+
502: unknown;
|
|
79646
|
+
};
|
|
79647
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
79648
|
+
/**
|
|
79649
|
+
* The letter is written; it is delivered at deliverAt.
|
|
79650
|
+
*/
|
|
79651
|
+
200: {
|
|
79652
|
+
/**
|
|
79653
|
+
* The letter that was written: its id and the time it is delivered.
|
|
79654
|
+
*/
|
|
79655
|
+
letter: {
|
|
79656
|
+
/**
|
|
79657
|
+
* The letter's id.
|
|
79658
|
+
*/
|
|
79659
|
+
id: string;
|
|
79660
|
+
/**
|
|
79661
|
+
* When it is delivered: now, or the time asked for.
|
|
79662
|
+
*/
|
|
79663
|
+
deliverAt: string;
|
|
79664
|
+
};
|
|
79665
|
+
};
|
|
79666
|
+
};
|
|
79667
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79586
79668
|
export type GetOrganizationNotificationLetterData = {
|
|
79587
79669
|
body?: never;
|
|
79588
79670
|
path: {
|
|
@@ -79806,6 +79888,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79806
79888
|
};
|
|
79807
79889
|
};
|
|
79808
79890
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
79891
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
79892
|
+
body?: never;
|
|
79893
|
+
path?: never;
|
|
79894
|
+
query?: {
|
|
79895
|
+
/**
|
|
79896
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
79897
|
+
*/
|
|
79898
|
+
archived?: '0' | '1';
|
|
79899
|
+
/**
|
|
79900
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
79901
|
+
*/
|
|
79902
|
+
limit?: number;
|
|
79903
|
+
/**
|
|
79904
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
79905
|
+
*/
|
|
79906
|
+
page?: string;
|
|
79907
|
+
};
|
|
79908
|
+
url: '/organization/v1/notifications/messages';
|
|
79909
|
+
};
|
|
79910
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
79911
|
+
/**
|
|
79912
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79913
|
+
*/
|
|
79914
|
+
400: unknown;
|
|
79915
|
+
/**
|
|
79916
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
79917
|
+
*/
|
|
79918
|
+
401: unknown;
|
|
79919
|
+
/**
|
|
79920
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
79921
|
+
*/
|
|
79922
|
+
403: unknown;
|
|
79923
|
+
/**
|
|
79924
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
79925
|
+
*/
|
|
79926
|
+
502: unknown;
|
|
79927
|
+
};
|
|
79928
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
79929
|
+
/**
|
|
79930
|
+
* One page of this person's messages.
|
|
79931
|
+
*/
|
|
79932
|
+
200: {
|
|
79933
|
+
/**
|
|
79934
|
+
* The page, newest first.
|
|
79935
|
+
*/
|
|
79936
|
+
items: Array<{
|
|
79937
|
+
/**
|
|
79938
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
79939
|
+
*/
|
|
79940
|
+
name: string;
|
|
79941
|
+
/**
|
|
79942
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
79943
|
+
*/
|
|
79944
|
+
organizationId: string;
|
|
79945
|
+
/**
|
|
79946
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
79947
|
+
*/
|
|
79948
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
79949
|
+
/**
|
|
79950
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
79951
|
+
*/
|
|
79952
|
+
workflow: string;
|
|
79953
|
+
/**
|
|
79954
|
+
* The message's headline, as the bell shows it.
|
|
79955
|
+
*/
|
|
79956
|
+
title: string;
|
|
79957
|
+
/**
|
|
79958
|
+
* The message text.
|
|
79959
|
+
*/
|
|
79960
|
+
body: string;
|
|
79961
|
+
/**
|
|
79962
|
+
* Where the bell opens this message; absent when it has no page.
|
|
79963
|
+
*/
|
|
79964
|
+
actionUrl?: string;
|
|
79965
|
+
/**
|
|
79966
|
+
* Whether the bell has been opened since the message arrived.
|
|
79967
|
+
*/
|
|
79968
|
+
seen: boolean;
|
|
79969
|
+
/**
|
|
79970
|
+
* Whether this person has read it.
|
|
79971
|
+
*/
|
|
79972
|
+
read: boolean;
|
|
79973
|
+
/**
|
|
79974
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
79975
|
+
*/
|
|
79976
|
+
archived: boolean;
|
|
79977
|
+
/**
|
|
79978
|
+
* When the message arrived.
|
|
79979
|
+
*/
|
|
79980
|
+
createTime: string;
|
|
79981
|
+
}>;
|
|
79982
|
+
/**
|
|
79983
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
79984
|
+
*/
|
|
79985
|
+
nextPageToken?: string;
|
|
79986
|
+
};
|
|
79987
|
+
};
|
|
79988
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
79989
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
79990
|
+
body?: never;
|
|
79991
|
+
path: {
|
|
79992
|
+
/**
|
|
79993
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
79994
|
+
*/
|
|
79995
|
+
name: string;
|
|
79996
|
+
};
|
|
79997
|
+
query?: never;
|
|
79998
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
79999
|
+
};
|
|
80000
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80001
|
+
/**
|
|
80002
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80003
|
+
*/
|
|
80004
|
+
400: unknown;
|
|
80005
|
+
/**
|
|
80006
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80007
|
+
*/
|
|
80008
|
+
401: unknown;
|
|
80009
|
+
/**
|
|
80010
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80011
|
+
*/
|
|
80012
|
+
403: unknown;
|
|
80013
|
+
/**
|
|
80014
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80015
|
+
*/
|
|
80016
|
+
404: unknown;
|
|
80017
|
+
/**
|
|
80018
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80019
|
+
*/
|
|
80020
|
+
502: unknown;
|
|
80021
|
+
};
|
|
80022
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80023
|
+
/**
|
|
80024
|
+
* The message is deleted.
|
|
80025
|
+
*/
|
|
80026
|
+
200: {
|
|
80027
|
+
/**
|
|
80028
|
+
* Always true: the message was deleted.
|
|
80029
|
+
*/
|
|
80030
|
+
deleted: boolean;
|
|
80031
|
+
};
|
|
80032
|
+
};
|
|
80033
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80034
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80035
|
+
body?: never;
|
|
80036
|
+
path: {
|
|
80037
|
+
/**
|
|
80038
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80039
|
+
*/
|
|
80040
|
+
name: string;
|
|
80041
|
+
};
|
|
80042
|
+
query?: never;
|
|
80043
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80044
|
+
};
|
|
80045
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80046
|
+
/**
|
|
80047
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80048
|
+
*/
|
|
80049
|
+
400: unknown;
|
|
80050
|
+
/**
|
|
80051
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80052
|
+
*/
|
|
80053
|
+
401: unknown;
|
|
80054
|
+
/**
|
|
80055
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80056
|
+
*/
|
|
80057
|
+
403: unknown;
|
|
80058
|
+
/**
|
|
80059
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
|
|
80060
|
+
*/
|
|
80061
|
+
404: unknown;
|
|
80062
|
+
/**
|
|
80063
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80064
|
+
*/
|
|
80065
|
+
502: unknown;
|
|
80066
|
+
};
|
|
80067
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80068
|
+
/**
|
|
80069
|
+
* The message.
|
|
80070
|
+
*/
|
|
80071
|
+
200: {
|
|
80072
|
+
/**
|
|
80073
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80074
|
+
*/
|
|
80075
|
+
name: string;
|
|
80076
|
+
/**
|
|
80077
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80078
|
+
*/
|
|
80079
|
+
organizationId: string;
|
|
80080
|
+
/**
|
|
80081
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80082
|
+
*/
|
|
80083
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80084
|
+
/**
|
|
80085
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80086
|
+
*/
|
|
80087
|
+
workflow: string;
|
|
80088
|
+
/**
|
|
80089
|
+
* The message's headline, as the bell shows it.
|
|
80090
|
+
*/
|
|
80091
|
+
title: string;
|
|
80092
|
+
/**
|
|
80093
|
+
* The message text.
|
|
80094
|
+
*/
|
|
80095
|
+
body: string;
|
|
80096
|
+
/**
|
|
80097
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80098
|
+
*/
|
|
80099
|
+
actionUrl?: string;
|
|
80100
|
+
/**
|
|
80101
|
+
* Whether the bell has been opened since the message arrived.
|
|
80102
|
+
*/
|
|
80103
|
+
seen: boolean;
|
|
80104
|
+
/**
|
|
80105
|
+
* Whether this person has read it.
|
|
80106
|
+
*/
|
|
80107
|
+
read: boolean;
|
|
80108
|
+
/**
|
|
80109
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80110
|
+
*/
|
|
80111
|
+
archived: boolean;
|
|
80112
|
+
/**
|
|
80113
|
+
* When the message arrived.
|
|
80114
|
+
*/
|
|
80115
|
+
createTime: string;
|
|
80116
|
+
};
|
|
80117
|
+
};
|
|
80118
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80119
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80120
|
+
body: {
|
|
80121
|
+
/**
|
|
80122
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80123
|
+
*/
|
|
80124
|
+
read?: boolean;
|
|
80125
|
+
/**
|
|
80126
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80127
|
+
*/
|
|
80128
|
+
archived?: boolean;
|
|
80129
|
+
};
|
|
80130
|
+
path: {
|
|
80131
|
+
/**
|
|
80132
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80133
|
+
*/
|
|
80134
|
+
name: string;
|
|
80135
|
+
};
|
|
80136
|
+
query?: never;
|
|
80137
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80138
|
+
};
|
|
80139
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80140
|
+
/**
|
|
80141
|
+
* The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
|
|
80142
|
+
*/
|
|
80143
|
+
400: unknown;
|
|
80144
|
+
/**
|
|
80145
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80146
|
+
*/
|
|
80147
|
+
401: unknown;
|
|
80148
|
+
/**
|
|
80149
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80150
|
+
*/
|
|
80151
|
+
403: unknown;
|
|
80152
|
+
/**
|
|
80153
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80154
|
+
*/
|
|
80155
|
+
404: unknown;
|
|
80156
|
+
/**
|
|
80157
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80158
|
+
*/
|
|
80159
|
+
502: unknown;
|
|
80160
|
+
};
|
|
80161
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80162
|
+
/**
|
|
80163
|
+
* The message after the change.
|
|
80164
|
+
*/
|
|
80165
|
+
200: {
|
|
80166
|
+
/**
|
|
80167
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80168
|
+
*/
|
|
80169
|
+
name: string;
|
|
80170
|
+
/**
|
|
80171
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80172
|
+
*/
|
|
80173
|
+
organizationId: string;
|
|
80174
|
+
/**
|
|
80175
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80176
|
+
*/
|
|
80177
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80178
|
+
/**
|
|
80179
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80180
|
+
*/
|
|
80181
|
+
workflow: string;
|
|
80182
|
+
/**
|
|
80183
|
+
* The message's headline, as the bell shows it.
|
|
80184
|
+
*/
|
|
80185
|
+
title: string;
|
|
80186
|
+
/**
|
|
80187
|
+
* The message text.
|
|
80188
|
+
*/
|
|
80189
|
+
body: string;
|
|
80190
|
+
/**
|
|
80191
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80192
|
+
*/
|
|
80193
|
+
actionUrl?: string;
|
|
80194
|
+
/**
|
|
80195
|
+
* Whether the bell has been opened since the message arrived.
|
|
80196
|
+
*/
|
|
80197
|
+
seen: boolean;
|
|
80198
|
+
/**
|
|
80199
|
+
* Whether this person has read it.
|
|
80200
|
+
*/
|
|
80201
|
+
read: boolean;
|
|
80202
|
+
/**
|
|
80203
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80204
|
+
*/
|
|
80205
|
+
archived: boolean;
|
|
80206
|
+
/**
|
|
80207
|
+
* When the message arrived.
|
|
80208
|
+
*/
|
|
80209
|
+
createTime: string;
|
|
80210
|
+
};
|
|
80211
|
+
};
|
|
80212
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80213
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80214
|
+
body?: never;
|
|
80215
|
+
path?: never;
|
|
80216
|
+
query?: never;
|
|
80217
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80218
|
+
};
|
|
80219
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80220
|
+
/**
|
|
80221
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80222
|
+
*/
|
|
80223
|
+
401: unknown;
|
|
80224
|
+
/**
|
|
80225
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80226
|
+
*/
|
|
80227
|
+
403: unknown;
|
|
80228
|
+
/**
|
|
80229
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80230
|
+
*/
|
|
80231
|
+
502: unknown;
|
|
80232
|
+
};
|
|
80233
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80234
|
+
/**
|
|
80235
|
+
* How many messages were marked read.
|
|
80236
|
+
*/
|
|
80237
|
+
200: {
|
|
80238
|
+
/**
|
|
80239
|
+
* The number of messages that were unread and are now read.
|
|
80240
|
+
*/
|
|
80241
|
+
updated: number;
|
|
80242
|
+
};
|
|
80243
|
+
};
|
|
80244
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79809
80245
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79810
80246
|
body?: never;
|
|
79811
80247
|
path?: never;
|
|
@@ -99514,7 +99950,7 @@ export type AutomationRunsListData = {
|
|
|
99514
99950
|
*/
|
|
99515
99951
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
99516
99952
|
/**
|
|
99517
|
-
* Root initiator type: user, api_key, agent or
|
|
99953
|
+
* Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
|
|
99518
99954
|
*/
|
|
99519
99955
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
99520
99956
|
/**
|