@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
|
@@ -5380,7 +5380,7 @@ export const operations = [
|
|
|
5380
5380
|
"trigger"
|
|
5381
5381
|
],
|
|
5382
5382
|
"required": false,
|
|
5383
|
-
"description": "Root initiator type: user, api_key, agent or
|
|
5383
|
+
"description": "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."
|
|
5384
5384
|
},
|
|
5385
5385
|
{
|
|
5386
5386
|
"name": "initiator",
|
|
@@ -26483,29 +26483,46 @@ export const operations = [
|
|
|
26483
26483
|
{
|
|
26484
26484
|
"resource": "organization.notifications.letters",
|
|
26485
26485
|
"method": "list",
|
|
26486
|
-
"summary": "List the letters addressed to you",
|
|
26487
|
-
"description": "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.",
|
|
26486
|
+
"summary": "List the letters addressed to you, or the ones you sent",
|
|
26487
|
+
"description": "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.",
|
|
26488
26488
|
"http": "GET",
|
|
26489
26489
|
"path": "/organization/v1/notifications/letters",
|
|
26490
26490
|
"streaming": "no",
|
|
26491
26491
|
"pagination": false,
|
|
26492
26492
|
"pathParams": [],
|
|
26493
26493
|
"query": [
|
|
26494
|
+
{
|
|
26495
|
+
"name": "direction",
|
|
26496
|
+
"type": "string",
|
|
26497
|
+
"enum": [
|
|
26498
|
+
"received",
|
|
26499
|
+
"sent"
|
|
26500
|
+
],
|
|
26501
|
+
"required": false,
|
|
26502
|
+
"description": "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."
|
|
26503
|
+
},
|
|
26494
26504
|
{
|
|
26495
26505
|
"name": "status",
|
|
26496
26506
|
"type": "string",
|
|
26497
26507
|
"enum": [
|
|
26498
26508
|
"unread",
|
|
26499
|
-
"read"
|
|
26509
|
+
"read",
|
|
26510
|
+
"scheduled"
|
|
26500
26511
|
],
|
|
26501
26512
|
"required": false,
|
|
26502
|
-
"description": "Only unread letters, or only
|
|
26513
|
+
"description": "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."
|
|
26514
|
+
},
|
|
26515
|
+
{
|
|
26516
|
+
"name": "thread",
|
|
26517
|
+
"type": "string",
|
|
26518
|
+
"required": false,
|
|
26519
|
+
"description": "Only letters of this conversation, for received and sent alike; omit for all."
|
|
26503
26520
|
},
|
|
26504
26521
|
{
|
|
26505
26522
|
"name": "archived",
|
|
26506
26523
|
"type": "boolean",
|
|
26507
26524
|
"required": false,
|
|
26508
|
-
"description": "false (the default) hides archived letters; true lists only the archived ones."
|
|
26525
|
+
"description": "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."
|
|
26509
26526
|
},
|
|
26510
26527
|
{
|
|
26511
26528
|
"name": "limit",
|
|
@@ -26521,6 +26538,64 @@ export const operations = [
|
|
|
26521
26538
|
}
|
|
26522
26539
|
]
|
|
26523
26540
|
},
|
|
26541
|
+
{
|
|
26542
|
+
"resource": "organization.notifications.letters",
|
|
26543
|
+
"method": "create",
|
|
26544
|
+
"summary": "Send a letter to a person or an agent",
|
|
26545
|
+
"description": "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.",
|
|
26546
|
+
"http": "POST",
|
|
26547
|
+
"path": "/organization/v1/notifications/letters",
|
|
26548
|
+
"streaming": "no",
|
|
26549
|
+
"pagination": false,
|
|
26550
|
+
"pathParams": [],
|
|
26551
|
+
"query": [],
|
|
26552
|
+
"body": {
|
|
26553
|
+
"required": true,
|
|
26554
|
+
"fields": [
|
|
26555
|
+
{
|
|
26556
|
+
"name": "to",
|
|
26557
|
+
"type": "string",
|
|
26558
|
+
"required": true,
|
|
26559
|
+
"description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
|
|
26560
|
+
},
|
|
26561
|
+
{
|
|
26562
|
+
"name": "body",
|
|
26563
|
+
"type": "string",
|
|
26564
|
+
"required": true,
|
|
26565
|
+
"description": "The whole letter, 1 to 16000 characters."
|
|
26566
|
+
},
|
|
26567
|
+
{
|
|
26568
|
+
"name": "summary",
|
|
26569
|
+
"type": "string",
|
|
26570
|
+
"required": false,
|
|
26571
|
+
"description": "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."
|
|
26572
|
+
},
|
|
26573
|
+
{
|
|
26574
|
+
"name": "kind",
|
|
26575
|
+
"type": "string",
|
|
26576
|
+
"enum": [
|
|
26577
|
+
"notice",
|
|
26578
|
+
"mention",
|
|
26579
|
+
"decision"
|
|
26580
|
+
],
|
|
26581
|
+
"required": false,
|
|
26582
|
+
"description": "The letter's kind; it decides the channels. Defaults to mention."
|
|
26583
|
+
},
|
|
26584
|
+
{
|
|
26585
|
+
"name": "thread",
|
|
26586
|
+
"type": "string",
|
|
26587
|
+
"required": false,
|
|
26588
|
+
"description": "The conversation the letter belongs to, free text; omit for none."
|
|
26589
|
+
},
|
|
26590
|
+
{
|
|
26591
|
+
"name": "deliver_at",
|
|
26592
|
+
"type": "string",
|
|
26593
|
+
"required": false,
|
|
26594
|
+
"description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
|
|
26595
|
+
}
|
|
26596
|
+
]
|
|
26597
|
+
}
|
|
26598
|
+
},
|
|
26524
26599
|
{
|
|
26525
26600
|
"resource": "organization.notifications.letters",
|
|
26526
26601
|
"method": "retrieve",
|
|
@@ -26603,6 +26678,124 @@ export const operations = [
|
|
|
26603
26678
|
]
|
|
26604
26679
|
}
|
|
26605
26680
|
},
|
|
26681
|
+
{
|
|
26682
|
+
"resource": "organization.notifications.messages",
|
|
26683
|
+
"method": "list",
|
|
26684
|
+
"summary": "List your bell messages",
|
|
26685
|
+
"description": "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.",
|
|
26686
|
+
"http": "GET",
|
|
26687
|
+
"path": "/organization/v1/notifications/messages",
|
|
26688
|
+
"streaming": "no",
|
|
26689
|
+
"pagination": false,
|
|
26690
|
+
"pathParams": [],
|
|
26691
|
+
"query": [
|
|
26692
|
+
{
|
|
26693
|
+
"name": "archived",
|
|
26694
|
+
"type": "string",
|
|
26695
|
+
"enum": [
|
|
26696
|
+
"0",
|
|
26697
|
+
"1"
|
|
26698
|
+
],
|
|
26699
|
+
"required": false,
|
|
26700
|
+
"description": "0 (the default) lists the inbox tab, 1 lists archived messages."
|
|
26701
|
+
},
|
|
26702
|
+
{
|
|
26703
|
+
"name": "limit",
|
|
26704
|
+
"type": "integer",
|
|
26705
|
+
"required": false,
|
|
26706
|
+
"description": "Messages per page, 1 to 100; defaults to 20."
|
|
26707
|
+
},
|
|
26708
|
+
{
|
|
26709
|
+
"name": "page",
|
|
26710
|
+
"type": "string",
|
|
26711
|
+
"required": false,
|
|
26712
|
+
"description": "Opaque nextPageToken from the previous response; omit for the first page."
|
|
26713
|
+
}
|
|
26714
|
+
]
|
|
26715
|
+
},
|
|
26716
|
+
{
|
|
26717
|
+
"resource": "organization.notifications.messages",
|
|
26718
|
+
"method": "delete",
|
|
26719
|
+
"summary": "Delete one of your bell messages",
|
|
26720
|
+
"description": "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.",
|
|
26721
|
+
"http": "DELETE",
|
|
26722
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
26723
|
+
"streaming": "no",
|
|
26724
|
+
"pagination": false,
|
|
26725
|
+
"pathParams": [
|
|
26726
|
+
{
|
|
26727
|
+
"name": "name",
|
|
26728
|
+
"sdkName": "name",
|
|
26729
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
26730
|
+
}
|
|
26731
|
+
],
|
|
26732
|
+
"query": []
|
|
26733
|
+
},
|
|
26734
|
+
{
|
|
26735
|
+
"resource": "organization.notifications.messages",
|
|
26736
|
+
"method": "retrieve",
|
|
26737
|
+
"summary": "Open one of your bell messages",
|
|
26738
|
+
"description": "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.",
|
|
26739
|
+
"http": "GET",
|
|
26740
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
26741
|
+
"streaming": "no",
|
|
26742
|
+
"pagination": false,
|
|
26743
|
+
"pathParams": [
|
|
26744
|
+
{
|
|
26745
|
+
"name": "name",
|
|
26746
|
+
"sdkName": "name",
|
|
26747
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
26748
|
+
}
|
|
26749
|
+
],
|
|
26750
|
+
"query": []
|
|
26751
|
+
},
|
|
26752
|
+
{
|
|
26753
|
+
"resource": "organization.notifications.messages",
|
|
26754
|
+
"method": "update",
|
|
26755
|
+
"summary": "Mark one of your bell messages read or archived",
|
|
26756
|
+
"description": "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.",
|
|
26757
|
+
"http": "POST",
|
|
26758
|
+
"path": "/organization/v1/notifications/messages/{name}",
|
|
26759
|
+
"streaming": "no",
|
|
26760
|
+
"pagination": false,
|
|
26761
|
+
"pathParams": [
|
|
26762
|
+
{
|
|
26763
|
+
"name": "name",
|
|
26764
|
+
"sdkName": "name",
|
|
26765
|
+
"description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
|
|
26766
|
+
}
|
|
26767
|
+
],
|
|
26768
|
+
"query": [],
|
|
26769
|
+
"body": {
|
|
26770
|
+
"required": true,
|
|
26771
|
+
"fields": [
|
|
26772
|
+
{
|
|
26773
|
+
"name": "read",
|
|
26774
|
+
"type": "boolean",
|
|
26775
|
+
"required": false,
|
|
26776
|
+
"description": "Mark the message read (true) or unread (false); omit to leave it."
|
|
26777
|
+
},
|
|
26778
|
+
{
|
|
26779
|
+
"name": "archived",
|
|
26780
|
+
"type": "boolean",
|
|
26781
|
+
"required": false,
|
|
26782
|
+
"description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
|
|
26783
|
+
}
|
|
26784
|
+
]
|
|
26785
|
+
}
|
|
26786
|
+
},
|
|
26787
|
+
{
|
|
26788
|
+
"resource": "organization.notifications.messages",
|
|
26789
|
+
"method": "readAll",
|
|
26790
|
+
"summary": "Mark all your unread bell messages read",
|
|
26791
|
+
"description": "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.",
|
|
26792
|
+
"http": "POST",
|
|
26793
|
+
"path": "/organization/v1/notifications/messages:readAll",
|
|
26794
|
+
"streaming": "no",
|
|
26795
|
+
"pagination": false,
|
|
26796
|
+
"pathParams": [],
|
|
26797
|
+
"query": []
|
|
26798
|
+
},
|
|
26606
26799
|
{
|
|
26607
26800
|
"resource": "organization.notifications",
|
|
26608
26801
|
"method": "retrieveOrganizationDefault",
|
|
@@ -26714,7 +26907,7 @@ export const operations = [
|
|
|
26714
26907
|
"resource": "organization.usage",
|
|
26715
26908
|
"method": "list",
|
|
26716
26909
|
"summary": "List Organization Usage",
|
|
26717
|
-
"description": "Consumed quantity per time bucket per group. Buckets are whole
|
|
26910
|
+
"description": "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.\n",
|
|
26718
26911
|
"http": "GET",
|
|
26719
26912
|
"path": "/organization/v1/usage",
|
|
26720
26913
|
"streaming": "no",
|
|
@@ -8045,6 +8045,12 @@ export declare function createOrganization(transport: Transport): {
|
|
|
8045
8045
|
archive: (options: import("./core/transport.js").CallOptions<Types.ArchiveOrganizationNotificationLetterData>) => Promise<{
|
|
8046
8046
|
unread: number;
|
|
8047
8047
|
}>;
|
|
8048
|
+
create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationNotificationLetterData>) => Promise<{
|
|
8049
|
+
letter: {
|
|
8050
|
+
id: string;
|
|
8051
|
+
deliverAt: string;
|
|
8052
|
+
};
|
|
8053
|
+
}>;
|
|
8048
8054
|
list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationNotificationLettersData> | undefined) => Promise<{
|
|
8049
8055
|
letters: Array<{
|
|
8050
8056
|
id: string;
|
|
@@ -8098,6 +8104,56 @@ export declare function createOrganization(transport: Transport): {
|
|
|
8098
8104
|
};
|
|
8099
8105
|
}>;
|
|
8100
8106
|
};
|
|
8107
|
+
messages: {
|
|
8108
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.DeleteOrganizationNotificationMessageData>) => Promise<{
|
|
8109
|
+
deleted: boolean;
|
|
8110
|
+
}>;
|
|
8111
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationNotificationMessagesData> | undefined) => Promise<{
|
|
8112
|
+
items: Array<{
|
|
8113
|
+
name: string;
|
|
8114
|
+
organizationId: string;
|
|
8115
|
+
group: "members" | "usage" | "alerts" | "agent" | "nonConfigurable";
|
|
8116
|
+
workflow: string;
|
|
8117
|
+
title: string;
|
|
8118
|
+
body: string;
|
|
8119
|
+
actionUrl?: string;
|
|
8120
|
+
seen: boolean;
|
|
8121
|
+
read: boolean;
|
|
8122
|
+
archived: boolean;
|
|
8123
|
+
createTime: string;
|
|
8124
|
+
}>;
|
|
8125
|
+
nextPageToken?: string;
|
|
8126
|
+
}>;
|
|
8127
|
+
readAll: (options?: import("./core/transport.js").CallOptions<Types.ReadAllOrganizationNotificationMessagesData> | undefined) => Promise<{
|
|
8128
|
+
updated: number;
|
|
8129
|
+
}>;
|
|
8130
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationNotificationMessageData>) => Promise<{
|
|
8131
|
+
name: string;
|
|
8132
|
+
organizationId: string;
|
|
8133
|
+
group: "members" | "usage" | "alerts" | "agent" | "nonConfigurable";
|
|
8134
|
+
workflow: string;
|
|
8135
|
+
title: string;
|
|
8136
|
+
body: string;
|
|
8137
|
+
actionUrl?: string;
|
|
8138
|
+
seen: boolean;
|
|
8139
|
+
read: boolean;
|
|
8140
|
+
archived: boolean;
|
|
8141
|
+
createTime: string;
|
|
8142
|
+
}>;
|
|
8143
|
+
update: (options: import("./core/transport.js").CallOptions<Types.UpdateOrganizationNotificationMessageData>) => Promise<{
|
|
8144
|
+
name: string;
|
|
8145
|
+
organizationId: string;
|
|
8146
|
+
group: "members" | "usage" | "alerts" | "agent" | "nonConfigurable";
|
|
8147
|
+
workflow: string;
|
|
8148
|
+
title: string;
|
|
8149
|
+
body: string;
|
|
8150
|
+
actionUrl?: string;
|
|
8151
|
+
seen: boolean;
|
|
8152
|
+
read: boolean;
|
|
8153
|
+
archived: boolean;
|
|
8154
|
+
createTime: string;
|
|
8155
|
+
}>;
|
|
8156
|
+
};
|
|
8101
8157
|
organizationDefault: {
|
|
8102
8158
|
create: (options: import("./core/transport.js").CallOptions<Types.UpdateOrganizationNotificationDefaultsData>) => Promise<{
|
|
8103
8159
|
[key: string]: unknown;
|
|
@@ -1490,11 +1490,19 @@ export function createOrganization(transport) {
|
|
|
1490
1490
|
},
|
|
1491
1491
|
letters: {
|
|
1492
1492
|
archive: bind(transport, sdk.archiveOrganizationNotificationLetter),
|
|
1493
|
+
create: bind(transport, sdk.createOrganizationNotificationLetter),
|
|
1493
1494
|
list: bind(transport, sdk.listOrganizationNotificationLetters),
|
|
1494
1495
|
read: bind(transport, sdk.readOrganizationNotificationLetter),
|
|
1495
1496
|
readAll: bind(transport, sdk.readAllOrganizationNotificationLetters),
|
|
1496
1497
|
retrieve: bind(transport, sdk.getOrganizationNotificationLetter),
|
|
1497
1498
|
},
|
|
1499
|
+
messages: {
|
|
1500
|
+
delete: bind(transport, sdk.deleteOrganizationNotificationMessage),
|
|
1501
|
+
list: bind(transport, sdk.listOrganizationNotificationMessages),
|
|
1502
|
+
readAll: bind(transport, sdk.readAllOrganizationNotificationMessages),
|
|
1503
|
+
retrieve: bind(transport, sdk.getOrganizationNotificationMessage),
|
|
1504
|
+
update: bind(transport, sdk.updateOrganizationNotificationMessage),
|
|
1505
|
+
},
|
|
1498
1506
|
organizationDefault: {
|
|
1499
1507
|
create: bind(transport, sdk.updateOrganizationNotificationDefaults),
|
|
1500
1508
|
},
|