@remit/electrodb-entities 0.0.11 → 0.0.13
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/index.cjs +267 -1
- package/index.d.cts +188 -0
- package/index.d.mts +188 -0
- package/index.d.ts +188 -0
- package/index.mjs +266 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterAnchor = exports.MessageLabel = exports.BodyPartContent = exports.BodyPartStorage = exports.RawMessageStorage = exports.BodyPartParameter = exports.Envelope = exports.MessageFlagPush = exports.MessagePlacementMove = exports.MessageFlag = exports.MailboxLock = exports.MailboxFlag = exports.MailboxSpecialUseEntry = exports.MailboxAttributeEntry = exports.AccountSetting = exports.EnvelopeAddress = exports.MessageReference = exports.BodyPart = exports.Message = exports.Address = exports.OutboxMessage = exports.ThreadMessage = exports.OrganizeJobRequest = exports.Label = exports.Filter = exports.Mailbox = exports.Account = exports.AccountConfig = exports.Quarantine = exports.AccountExportRequest = void 0;
|
|
3
|
+
exports.FilterAnchor = exports.MessageLabel = exports.BodyPartContent = exports.BodyPartStorage = exports.RawMessageStorage = exports.BodyPartParameter = exports.SenderSignerStanding = exports.Envelope = exports.MessageFlagPush = exports.MessagePlacementMove = exports.MessageFlag = exports.MailboxLock = exports.MailboxFlag = exports.MailboxSpecialUseEntry = exports.MailboxAttributeEntry = exports.AccountSetting = exports.EnvelopeAddress = exports.MessageReference = exports.BodyPart = exports.Message = exports.Address = exports.OutboxAttachment = exports.OutboxMessage = exports.ThreadMessage = exports.OrganizeJobRequest = exports.Label = exports.Filter = exports.Mailbox = exports.Account = exports.AccountConfig = exports.Quarantine = exports.AccountExportRequest = void 0;
|
|
4
4
|
const electrodb_1 = require("electrodb");
|
|
5
5
|
exports.AccountExportRequest = {
|
|
6
6
|
attributes: {
|
|
@@ -1836,6 +1836,149 @@ exports.OutboxMessage = {
|
|
|
1836
1836
|
version: "1"
|
|
1837
1837
|
}
|
|
1838
1838
|
};
|
|
1839
|
+
exports.OutboxAttachment = {
|
|
1840
|
+
attributes: {
|
|
1841
|
+
outboxAttachmentId: {
|
|
1842
|
+
type: "string",
|
|
1843
|
+
required: true,
|
|
1844
|
+
validate: value => {
|
|
1845
|
+
if (typeof value === "string" && value.length < 25)
|
|
1846
|
+
throw new Error("'outboxAttachmentId' must be at least 25 characters");
|
|
1847
|
+
if (typeof value === "string" && value.length > 25)
|
|
1848
|
+
throw new Error("'outboxAttachmentId' must be at most 25 characters");
|
|
1849
|
+
return true;
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
outboxMessageId: {
|
|
1853
|
+
type: "string",
|
|
1854
|
+
required: true,
|
|
1855
|
+
validate: value => {
|
|
1856
|
+
if (typeof value === "string" && value.length < 25)
|
|
1857
|
+
throw new Error("'outboxMessageId' must be at least 25 characters");
|
|
1858
|
+
if (typeof value === "string" && value.length > 25)
|
|
1859
|
+
throw new Error("'outboxMessageId' must be at most 25 characters");
|
|
1860
|
+
return true;
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
accountId: {
|
|
1864
|
+
type: "string",
|
|
1865
|
+
required: true,
|
|
1866
|
+
validate: value => {
|
|
1867
|
+
if (typeof value === "string" && value.length < 25)
|
|
1868
|
+
throw new Error("'accountId' must be at least 25 characters");
|
|
1869
|
+
if (typeof value === "string" && value.length > 25)
|
|
1870
|
+
throw new Error("'accountId' must be at most 25 characters");
|
|
1871
|
+
return true;
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
accountConfigId: {
|
|
1875
|
+
type: "string",
|
|
1876
|
+
required: true,
|
|
1877
|
+
validate: value => {
|
|
1878
|
+
if (typeof value === "string" && value.length < 25)
|
|
1879
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
1880
|
+
if (typeof value === "string" && value.length > 25)
|
|
1881
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
1882
|
+
return true;
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
filename: {
|
|
1886
|
+
type: "string",
|
|
1887
|
+
required: true,
|
|
1888
|
+
validate: value => {
|
|
1889
|
+
if (typeof value === "string" && value.length > 256)
|
|
1890
|
+
throw new Error("'filename' must be at most 256 characters");
|
|
1891
|
+
return true;
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1894
|
+
contentType: {
|
|
1895
|
+
type: "string",
|
|
1896
|
+
required: true,
|
|
1897
|
+
validate: value => {
|
|
1898
|
+
if (typeof value === "string" && value.length > 256)
|
|
1899
|
+
throw new Error("'contentType' must be at most 256 characters");
|
|
1900
|
+
return true;
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
sizeBytes: {
|
|
1904
|
+
type: "number",
|
|
1905
|
+
required: true,
|
|
1906
|
+
validate: value => {
|
|
1907
|
+
if (typeof value === "number" && value < 0)
|
|
1908
|
+
throw new Error("'sizeBytes' must be at least 0");
|
|
1909
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1910
|
+
throw new Error("'sizeBytes' must be an integer");
|
|
1911
|
+
return true;
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
state: {
|
|
1915
|
+
type: ["Pending", "Stored"],
|
|
1916
|
+
required: true
|
|
1917
|
+
},
|
|
1918
|
+
storageKey: {
|
|
1919
|
+
type: "string",
|
|
1920
|
+
required: true,
|
|
1921
|
+
validate: value => {
|
|
1922
|
+
if (typeof value === "string" && value.length > 2048)
|
|
1923
|
+
throw new Error("'storageKey' must be at most 2048 characters");
|
|
1924
|
+
return true;
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
reservationExpiresAt: {
|
|
1928
|
+
type: "number",
|
|
1929
|
+
required: true,
|
|
1930
|
+
validate: value => {
|
|
1931
|
+
if (typeof value === "number" && value < 0)
|
|
1932
|
+
throw new Error("'reservationExpiresAt' must be at least 0");
|
|
1933
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1934
|
+
throw new Error("'reservationExpiresAt' must be an integer");
|
|
1935
|
+
return true;
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
createdAt: {
|
|
1939
|
+
type: "number",
|
|
1940
|
+
readOnly: true,
|
|
1941
|
+
required: true,
|
|
1942
|
+
default: () => Date.now(),
|
|
1943
|
+
set: () => Date.now()
|
|
1944
|
+
},
|
|
1945
|
+
updatedAt: {
|
|
1946
|
+
type: "number",
|
|
1947
|
+
watch: "*",
|
|
1948
|
+
required: true,
|
|
1949
|
+
default: () => Date.now(),
|
|
1950
|
+
set: () => Date.now()
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
indexes: {
|
|
1954
|
+
byOutboxMessageId: {
|
|
1955
|
+
pk: {
|
|
1956
|
+
field: "gsi0pk",
|
|
1957
|
+
composite: ["outboxMessageId"]
|
|
1958
|
+
},
|
|
1959
|
+
sk: {
|
|
1960
|
+
field: "gsi0sk",
|
|
1961
|
+
composite: ["createdAt"]
|
|
1962
|
+
},
|
|
1963
|
+
index: "gsi0"
|
|
1964
|
+
},
|
|
1965
|
+
OutboxAttachment: {
|
|
1966
|
+
pk: {
|
|
1967
|
+
field: "pk",
|
|
1968
|
+
composite: ["outboxAttachmentId"]
|
|
1969
|
+
},
|
|
1970
|
+
sk: {
|
|
1971
|
+
field: "sk",
|
|
1972
|
+
composite: []
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1976
|
+
model: {
|
|
1977
|
+
entity: "outboxAttachment",
|
|
1978
|
+
service: "remit",
|
|
1979
|
+
version: "1"
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1839
1982
|
exports.Address = {
|
|
1840
1983
|
attributes: {
|
|
1841
1984
|
addressId: {
|
|
@@ -2364,10 +2507,31 @@ exports.Message = {
|
|
|
2364
2507
|
type: "string"
|
|
2365
2508
|
},
|
|
2366
2509
|
required: false
|
|
2510
|
+
},
|
|
2511
|
+
signerDomain: {
|
|
2512
|
+
type: "string",
|
|
2513
|
+
required: false
|
|
2514
|
+
},
|
|
2515
|
+
envelopeDomain: {
|
|
2516
|
+
type: "string",
|
|
2517
|
+
required: false
|
|
2518
|
+
},
|
|
2519
|
+
signerMessageCount: {
|
|
2520
|
+
type: "number",
|
|
2521
|
+
required: false
|
|
2522
|
+
},
|
|
2523
|
+
signerFirstSeenAt: {
|
|
2524
|
+
type: "number",
|
|
2525
|
+
required: false
|
|
2367
2526
|
}
|
|
2368
2527
|
},
|
|
2369
2528
|
required: false
|
|
2370
2529
|
},
|
|
2530
|
+
authenticityVerdict: {
|
|
2531
|
+
type: ["NotEvaluated", "NotChecked", "Aligned", "Authenticated", "Routine", "Caution", "Impersonation"],
|
|
2532
|
+
required: true,
|
|
2533
|
+
default: "NotEvaluated"
|
|
2534
|
+
},
|
|
2371
2535
|
authResult: {
|
|
2372
2536
|
type: "map",
|
|
2373
2537
|
properties: {
|
|
@@ -3661,6 +3825,108 @@ exports.Envelope = {
|
|
|
3661
3825
|
version: "1"
|
|
3662
3826
|
}
|
|
3663
3827
|
};
|
|
3828
|
+
exports.SenderSignerStanding = {
|
|
3829
|
+
attributes: {
|
|
3830
|
+
accountConfigId: {
|
|
3831
|
+
type: "string",
|
|
3832
|
+
required: true,
|
|
3833
|
+
validate: value => {
|
|
3834
|
+
if (typeof value === "string" && value.length < 25)
|
|
3835
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3836
|
+
if (typeof value === "string" && value.length > 25)
|
|
3837
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3838
|
+
return true;
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3841
|
+
senderKey: {
|
|
3842
|
+
type: "string",
|
|
3843
|
+
required: true,
|
|
3844
|
+
validate: value => {
|
|
3845
|
+
if (typeof value === "string" && value.length > 256)
|
|
3846
|
+
throw new Error("'senderKey' must be at most 256 characters");
|
|
3847
|
+
return true;
|
|
3848
|
+
}
|
|
3849
|
+
},
|
|
3850
|
+
signerDomain: {
|
|
3851
|
+
type: "string",
|
|
3852
|
+
required: true,
|
|
3853
|
+
validate: value => {
|
|
3854
|
+
if (typeof value === "string" && value.length > 256)
|
|
3855
|
+
throw new Error("'signerDomain' must be at most 256 characters");
|
|
3856
|
+
return true;
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
messageCount: {
|
|
3860
|
+
type: "number",
|
|
3861
|
+
required: true,
|
|
3862
|
+
default: 0,
|
|
3863
|
+
validate: value => {
|
|
3864
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3865
|
+
throw new Error("'messageCount' must be an integer");
|
|
3866
|
+
return true;
|
|
3867
|
+
}
|
|
3868
|
+
},
|
|
3869
|
+
firstSeenAt: {
|
|
3870
|
+
type: "number",
|
|
3871
|
+
required: true,
|
|
3872
|
+
validate: value => {
|
|
3873
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3874
|
+
throw new Error("'firstSeenAt' must be an integer");
|
|
3875
|
+
return true;
|
|
3876
|
+
}
|
|
3877
|
+
},
|
|
3878
|
+
lastSeenAt: {
|
|
3879
|
+
type: "number",
|
|
3880
|
+
required: true,
|
|
3881
|
+
validate: value => {
|
|
3882
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3883
|
+
throw new Error("'lastSeenAt' must be an integer");
|
|
3884
|
+
return true;
|
|
3885
|
+
}
|
|
3886
|
+
},
|
|
3887
|
+
userAffirmedAt: {
|
|
3888
|
+
type: "number",
|
|
3889
|
+
required: true,
|
|
3890
|
+
default: 0,
|
|
3891
|
+
validate: value => {
|
|
3892
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3893
|
+
throw new Error("'userAffirmedAt' must be an integer");
|
|
3894
|
+
return true;
|
|
3895
|
+
}
|
|
3896
|
+
},
|
|
3897
|
+
createdAt: {
|
|
3898
|
+
type: "number",
|
|
3899
|
+
readOnly: true,
|
|
3900
|
+
required: true,
|
|
3901
|
+
default: () => Date.now(),
|
|
3902
|
+
set: () => Date.now()
|
|
3903
|
+
},
|
|
3904
|
+
updatedAt: {
|
|
3905
|
+
type: "number",
|
|
3906
|
+
watch: "*",
|
|
3907
|
+
required: true,
|
|
3908
|
+
default: () => Date.now(),
|
|
3909
|
+
set: () => Date.now()
|
|
3910
|
+
}
|
|
3911
|
+
},
|
|
3912
|
+
indexes: {
|
|
3913
|
+
SenderSignerStanding: {
|
|
3914
|
+
pk: {
|
|
3915
|
+
field: "pk",
|
|
3916
|
+
composite: ["accountConfigId"]
|
|
3917
|
+
},
|
|
3918
|
+
sk: {
|
|
3919
|
+
field: "sk",
|
|
3920
|
+
composite: ["senderKey", "signerDomain"]
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
model: {
|
|
3925
|
+
entity: "senderSignerStanding",
|
|
3926
|
+
service: "remit",
|
|
3927
|
+
version: "1"
|
|
3928
|
+
}
|
|
3929
|
+
};
|
|
3664
3930
|
exports.BodyPartParameter = {
|
|
3665
3931
|
attributes: {
|
|
3666
3932
|
bodyPartParameterId: {
|
package/index.d.cts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1837,9 +1932,30 @@ export declare const Message: {
|
|
|
1837
1932
|
};
|
|
1838
1933
|
readonly required: false;
|
|
1839
1934
|
};
|
|
1935
|
+
readonly signerDomain: {
|
|
1936
|
+
readonly type: "string";
|
|
1937
|
+
readonly required: false;
|
|
1938
|
+
};
|
|
1939
|
+
readonly envelopeDomain: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly required: false;
|
|
1942
|
+
};
|
|
1943
|
+
readonly signerMessageCount: {
|
|
1944
|
+
readonly type: "number";
|
|
1945
|
+
readonly required: false;
|
|
1946
|
+
};
|
|
1947
|
+
readonly signerFirstSeenAt: {
|
|
1948
|
+
readonly type: "number";
|
|
1949
|
+
readonly required: false;
|
|
1950
|
+
};
|
|
1840
1951
|
};
|
|
1841
1952
|
readonly required: false;
|
|
1842
1953
|
};
|
|
1954
|
+
readonly authenticityVerdict: {
|
|
1955
|
+
readonly type: readonly ["NotEvaluated", "NotChecked", "Aligned", "Authenticated", "Routine", "Caution", "Impersonation"];
|
|
1956
|
+
readonly required: true;
|
|
1957
|
+
readonly default: "NotEvaluated";
|
|
1958
|
+
};
|
|
1843
1959
|
readonly authResult: {
|
|
1844
1960
|
readonly type: "map";
|
|
1845
1961
|
readonly properties: {
|
|
@@ -2885,6 +3001,78 @@ export declare const Envelope: {
|
|
|
2885
3001
|
readonly version: "1";
|
|
2886
3002
|
};
|
|
2887
3003
|
};
|
|
3004
|
+
export declare const SenderSignerStanding: {
|
|
3005
|
+
readonly attributes: {
|
|
3006
|
+
readonly accountConfigId: {
|
|
3007
|
+
readonly type: "string";
|
|
3008
|
+
readonly required: true;
|
|
3009
|
+
readonly validate: (value: unknown) => boolean;
|
|
3010
|
+
};
|
|
3011
|
+
readonly senderKey: {
|
|
3012
|
+
readonly type: "string";
|
|
3013
|
+
readonly required: true;
|
|
3014
|
+
readonly validate: (value: unknown) => boolean;
|
|
3015
|
+
};
|
|
3016
|
+
readonly signerDomain: {
|
|
3017
|
+
readonly type: "string";
|
|
3018
|
+
readonly required: true;
|
|
3019
|
+
readonly validate: (value: unknown) => boolean;
|
|
3020
|
+
};
|
|
3021
|
+
readonly messageCount: {
|
|
3022
|
+
readonly type: "number";
|
|
3023
|
+
readonly required: true;
|
|
3024
|
+
readonly default: 0;
|
|
3025
|
+
readonly validate: (value: unknown) => boolean;
|
|
3026
|
+
};
|
|
3027
|
+
readonly firstSeenAt: {
|
|
3028
|
+
readonly type: "number";
|
|
3029
|
+
readonly required: true;
|
|
3030
|
+
readonly validate: (value: unknown) => boolean;
|
|
3031
|
+
};
|
|
3032
|
+
readonly lastSeenAt: {
|
|
3033
|
+
readonly type: "number";
|
|
3034
|
+
readonly required: true;
|
|
3035
|
+
readonly validate: (value: unknown) => boolean;
|
|
3036
|
+
};
|
|
3037
|
+
readonly userAffirmedAt: {
|
|
3038
|
+
readonly type: "number";
|
|
3039
|
+
readonly required: true;
|
|
3040
|
+
readonly default: 0;
|
|
3041
|
+
readonly validate: (value: unknown) => boolean;
|
|
3042
|
+
};
|
|
3043
|
+
readonly createdAt: {
|
|
3044
|
+
readonly type: "number";
|
|
3045
|
+
readonly readOnly: true;
|
|
3046
|
+
readonly required: true;
|
|
3047
|
+
readonly default: () => any;
|
|
3048
|
+
readonly set: () => any;
|
|
3049
|
+
};
|
|
3050
|
+
readonly updatedAt: {
|
|
3051
|
+
readonly type: "number";
|
|
3052
|
+
readonly watch: "*";
|
|
3053
|
+
readonly required: true;
|
|
3054
|
+
readonly default: () => any;
|
|
3055
|
+
readonly set: () => any;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
readonly indexes: {
|
|
3059
|
+
readonly SenderSignerStanding: {
|
|
3060
|
+
readonly pk: {
|
|
3061
|
+
readonly field: "pk";
|
|
3062
|
+
readonly composite: readonly ["accountConfigId"];
|
|
3063
|
+
};
|
|
3064
|
+
readonly sk: {
|
|
3065
|
+
readonly field: "sk";
|
|
3066
|
+
readonly composite: readonly ["senderKey", "signerDomain"];
|
|
3067
|
+
};
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
readonly model: {
|
|
3071
|
+
readonly entity: "senderSignerStanding";
|
|
3072
|
+
readonly service: "remit";
|
|
3073
|
+
readonly version: "1";
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
2888
3076
|
export declare const BodyPartParameter: {
|
|
2889
3077
|
readonly attributes: {
|
|
2890
3078
|
readonly bodyPartParameterId: {
|
package/index.d.mts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1837,9 +1932,30 @@ export declare const Message: {
|
|
|
1837
1932
|
};
|
|
1838
1933
|
readonly required: false;
|
|
1839
1934
|
};
|
|
1935
|
+
readonly signerDomain: {
|
|
1936
|
+
readonly type: "string";
|
|
1937
|
+
readonly required: false;
|
|
1938
|
+
};
|
|
1939
|
+
readonly envelopeDomain: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly required: false;
|
|
1942
|
+
};
|
|
1943
|
+
readonly signerMessageCount: {
|
|
1944
|
+
readonly type: "number";
|
|
1945
|
+
readonly required: false;
|
|
1946
|
+
};
|
|
1947
|
+
readonly signerFirstSeenAt: {
|
|
1948
|
+
readonly type: "number";
|
|
1949
|
+
readonly required: false;
|
|
1950
|
+
};
|
|
1840
1951
|
};
|
|
1841
1952
|
readonly required: false;
|
|
1842
1953
|
};
|
|
1954
|
+
readonly authenticityVerdict: {
|
|
1955
|
+
readonly type: readonly ["NotEvaluated", "NotChecked", "Aligned", "Authenticated", "Routine", "Caution", "Impersonation"];
|
|
1956
|
+
readonly required: true;
|
|
1957
|
+
readonly default: "NotEvaluated";
|
|
1958
|
+
};
|
|
1843
1959
|
readonly authResult: {
|
|
1844
1960
|
readonly type: "map";
|
|
1845
1961
|
readonly properties: {
|
|
@@ -2885,6 +3001,78 @@ export declare const Envelope: {
|
|
|
2885
3001
|
readonly version: "1";
|
|
2886
3002
|
};
|
|
2887
3003
|
};
|
|
3004
|
+
export declare const SenderSignerStanding: {
|
|
3005
|
+
readonly attributes: {
|
|
3006
|
+
readonly accountConfigId: {
|
|
3007
|
+
readonly type: "string";
|
|
3008
|
+
readonly required: true;
|
|
3009
|
+
readonly validate: (value: unknown) => boolean;
|
|
3010
|
+
};
|
|
3011
|
+
readonly senderKey: {
|
|
3012
|
+
readonly type: "string";
|
|
3013
|
+
readonly required: true;
|
|
3014
|
+
readonly validate: (value: unknown) => boolean;
|
|
3015
|
+
};
|
|
3016
|
+
readonly signerDomain: {
|
|
3017
|
+
readonly type: "string";
|
|
3018
|
+
readonly required: true;
|
|
3019
|
+
readonly validate: (value: unknown) => boolean;
|
|
3020
|
+
};
|
|
3021
|
+
readonly messageCount: {
|
|
3022
|
+
readonly type: "number";
|
|
3023
|
+
readonly required: true;
|
|
3024
|
+
readonly default: 0;
|
|
3025
|
+
readonly validate: (value: unknown) => boolean;
|
|
3026
|
+
};
|
|
3027
|
+
readonly firstSeenAt: {
|
|
3028
|
+
readonly type: "number";
|
|
3029
|
+
readonly required: true;
|
|
3030
|
+
readonly validate: (value: unknown) => boolean;
|
|
3031
|
+
};
|
|
3032
|
+
readonly lastSeenAt: {
|
|
3033
|
+
readonly type: "number";
|
|
3034
|
+
readonly required: true;
|
|
3035
|
+
readonly validate: (value: unknown) => boolean;
|
|
3036
|
+
};
|
|
3037
|
+
readonly userAffirmedAt: {
|
|
3038
|
+
readonly type: "number";
|
|
3039
|
+
readonly required: true;
|
|
3040
|
+
readonly default: 0;
|
|
3041
|
+
readonly validate: (value: unknown) => boolean;
|
|
3042
|
+
};
|
|
3043
|
+
readonly createdAt: {
|
|
3044
|
+
readonly type: "number";
|
|
3045
|
+
readonly readOnly: true;
|
|
3046
|
+
readonly required: true;
|
|
3047
|
+
readonly default: () => any;
|
|
3048
|
+
readonly set: () => any;
|
|
3049
|
+
};
|
|
3050
|
+
readonly updatedAt: {
|
|
3051
|
+
readonly type: "number";
|
|
3052
|
+
readonly watch: "*";
|
|
3053
|
+
readonly required: true;
|
|
3054
|
+
readonly default: () => any;
|
|
3055
|
+
readonly set: () => any;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
readonly indexes: {
|
|
3059
|
+
readonly SenderSignerStanding: {
|
|
3060
|
+
readonly pk: {
|
|
3061
|
+
readonly field: "pk";
|
|
3062
|
+
readonly composite: readonly ["accountConfigId"];
|
|
3063
|
+
};
|
|
3064
|
+
readonly sk: {
|
|
3065
|
+
readonly field: "sk";
|
|
3066
|
+
readonly composite: readonly ["senderKey", "signerDomain"];
|
|
3067
|
+
};
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
readonly model: {
|
|
3071
|
+
readonly entity: "senderSignerStanding";
|
|
3072
|
+
readonly service: "remit";
|
|
3073
|
+
readonly version: "1";
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
2888
3076
|
export declare const BodyPartParameter: {
|
|
2889
3077
|
readonly attributes: {
|
|
2890
3078
|
readonly bodyPartParameterId: {
|
package/index.d.ts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1837,9 +1932,30 @@ export declare const Message: {
|
|
|
1837
1932
|
};
|
|
1838
1933
|
readonly required: false;
|
|
1839
1934
|
};
|
|
1935
|
+
readonly signerDomain: {
|
|
1936
|
+
readonly type: "string";
|
|
1937
|
+
readonly required: false;
|
|
1938
|
+
};
|
|
1939
|
+
readonly envelopeDomain: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly required: false;
|
|
1942
|
+
};
|
|
1943
|
+
readonly signerMessageCount: {
|
|
1944
|
+
readonly type: "number";
|
|
1945
|
+
readonly required: false;
|
|
1946
|
+
};
|
|
1947
|
+
readonly signerFirstSeenAt: {
|
|
1948
|
+
readonly type: "number";
|
|
1949
|
+
readonly required: false;
|
|
1950
|
+
};
|
|
1840
1951
|
};
|
|
1841
1952
|
readonly required: false;
|
|
1842
1953
|
};
|
|
1954
|
+
readonly authenticityVerdict: {
|
|
1955
|
+
readonly type: readonly ["NotEvaluated", "NotChecked", "Aligned", "Authenticated", "Routine", "Caution", "Impersonation"];
|
|
1956
|
+
readonly required: true;
|
|
1957
|
+
readonly default: "NotEvaluated";
|
|
1958
|
+
};
|
|
1843
1959
|
readonly authResult: {
|
|
1844
1960
|
readonly type: "map";
|
|
1845
1961
|
readonly properties: {
|
|
@@ -2885,6 +3001,78 @@ export declare const Envelope: {
|
|
|
2885
3001
|
readonly version: "1";
|
|
2886
3002
|
};
|
|
2887
3003
|
};
|
|
3004
|
+
export declare const SenderSignerStanding: {
|
|
3005
|
+
readonly attributes: {
|
|
3006
|
+
readonly accountConfigId: {
|
|
3007
|
+
readonly type: "string";
|
|
3008
|
+
readonly required: true;
|
|
3009
|
+
readonly validate: (value: unknown) => boolean;
|
|
3010
|
+
};
|
|
3011
|
+
readonly senderKey: {
|
|
3012
|
+
readonly type: "string";
|
|
3013
|
+
readonly required: true;
|
|
3014
|
+
readonly validate: (value: unknown) => boolean;
|
|
3015
|
+
};
|
|
3016
|
+
readonly signerDomain: {
|
|
3017
|
+
readonly type: "string";
|
|
3018
|
+
readonly required: true;
|
|
3019
|
+
readonly validate: (value: unknown) => boolean;
|
|
3020
|
+
};
|
|
3021
|
+
readonly messageCount: {
|
|
3022
|
+
readonly type: "number";
|
|
3023
|
+
readonly required: true;
|
|
3024
|
+
readonly default: 0;
|
|
3025
|
+
readonly validate: (value: unknown) => boolean;
|
|
3026
|
+
};
|
|
3027
|
+
readonly firstSeenAt: {
|
|
3028
|
+
readonly type: "number";
|
|
3029
|
+
readonly required: true;
|
|
3030
|
+
readonly validate: (value: unknown) => boolean;
|
|
3031
|
+
};
|
|
3032
|
+
readonly lastSeenAt: {
|
|
3033
|
+
readonly type: "number";
|
|
3034
|
+
readonly required: true;
|
|
3035
|
+
readonly validate: (value: unknown) => boolean;
|
|
3036
|
+
};
|
|
3037
|
+
readonly userAffirmedAt: {
|
|
3038
|
+
readonly type: "number";
|
|
3039
|
+
readonly required: true;
|
|
3040
|
+
readonly default: 0;
|
|
3041
|
+
readonly validate: (value: unknown) => boolean;
|
|
3042
|
+
};
|
|
3043
|
+
readonly createdAt: {
|
|
3044
|
+
readonly type: "number";
|
|
3045
|
+
readonly readOnly: true;
|
|
3046
|
+
readonly required: true;
|
|
3047
|
+
readonly default: () => any;
|
|
3048
|
+
readonly set: () => any;
|
|
3049
|
+
};
|
|
3050
|
+
readonly updatedAt: {
|
|
3051
|
+
readonly type: "number";
|
|
3052
|
+
readonly watch: "*";
|
|
3053
|
+
readonly required: true;
|
|
3054
|
+
readonly default: () => any;
|
|
3055
|
+
readonly set: () => any;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
readonly indexes: {
|
|
3059
|
+
readonly SenderSignerStanding: {
|
|
3060
|
+
readonly pk: {
|
|
3061
|
+
readonly field: "pk";
|
|
3062
|
+
readonly composite: readonly ["accountConfigId"];
|
|
3063
|
+
};
|
|
3064
|
+
readonly sk: {
|
|
3065
|
+
readonly field: "sk";
|
|
3066
|
+
readonly composite: readonly ["senderKey", "signerDomain"];
|
|
3067
|
+
};
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
readonly model: {
|
|
3071
|
+
readonly entity: "senderSignerStanding";
|
|
3072
|
+
readonly service: "remit";
|
|
3073
|
+
readonly version: "1";
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
2888
3076
|
export declare const BodyPartParameter: {
|
|
2889
3077
|
readonly attributes: {
|
|
2890
3078
|
readonly bodyPartParameterId: {
|
package/index.mjs
CHANGED
|
@@ -1833,6 +1833,149 @@ export const OutboxMessage = {
|
|
|
1833
1833
|
version: "1"
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
+
export const OutboxAttachment = {
|
|
1837
|
+
attributes: {
|
|
1838
|
+
outboxAttachmentId: {
|
|
1839
|
+
type: "string",
|
|
1840
|
+
required: true,
|
|
1841
|
+
validate: value => {
|
|
1842
|
+
if (typeof value === "string" && value.length < 25)
|
|
1843
|
+
throw new Error("'outboxAttachmentId' must be at least 25 characters");
|
|
1844
|
+
if (typeof value === "string" && value.length > 25)
|
|
1845
|
+
throw new Error("'outboxAttachmentId' must be at most 25 characters");
|
|
1846
|
+
return true;
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
outboxMessageId: {
|
|
1850
|
+
type: "string",
|
|
1851
|
+
required: true,
|
|
1852
|
+
validate: value => {
|
|
1853
|
+
if (typeof value === "string" && value.length < 25)
|
|
1854
|
+
throw new Error("'outboxMessageId' must be at least 25 characters");
|
|
1855
|
+
if (typeof value === "string" && value.length > 25)
|
|
1856
|
+
throw new Error("'outboxMessageId' must be at most 25 characters");
|
|
1857
|
+
return true;
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
accountId: {
|
|
1861
|
+
type: "string",
|
|
1862
|
+
required: true,
|
|
1863
|
+
validate: value => {
|
|
1864
|
+
if (typeof value === "string" && value.length < 25)
|
|
1865
|
+
throw new Error("'accountId' must be at least 25 characters");
|
|
1866
|
+
if (typeof value === "string" && value.length > 25)
|
|
1867
|
+
throw new Error("'accountId' must be at most 25 characters");
|
|
1868
|
+
return true;
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
accountConfigId: {
|
|
1872
|
+
type: "string",
|
|
1873
|
+
required: true,
|
|
1874
|
+
validate: value => {
|
|
1875
|
+
if (typeof value === "string" && value.length < 25)
|
|
1876
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
1877
|
+
if (typeof value === "string" && value.length > 25)
|
|
1878
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
1879
|
+
return true;
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
filename: {
|
|
1883
|
+
type: "string",
|
|
1884
|
+
required: true,
|
|
1885
|
+
validate: value => {
|
|
1886
|
+
if (typeof value === "string" && value.length > 256)
|
|
1887
|
+
throw new Error("'filename' must be at most 256 characters");
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
contentType: {
|
|
1892
|
+
type: "string",
|
|
1893
|
+
required: true,
|
|
1894
|
+
validate: value => {
|
|
1895
|
+
if (typeof value === "string" && value.length > 256)
|
|
1896
|
+
throw new Error("'contentType' must be at most 256 characters");
|
|
1897
|
+
return true;
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
sizeBytes: {
|
|
1901
|
+
type: "number",
|
|
1902
|
+
required: true,
|
|
1903
|
+
validate: value => {
|
|
1904
|
+
if (typeof value === "number" && value < 0)
|
|
1905
|
+
throw new Error("'sizeBytes' must be at least 0");
|
|
1906
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1907
|
+
throw new Error("'sizeBytes' must be an integer");
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1911
|
+
state: {
|
|
1912
|
+
type: ["Pending", "Stored"],
|
|
1913
|
+
required: true
|
|
1914
|
+
},
|
|
1915
|
+
storageKey: {
|
|
1916
|
+
type: "string",
|
|
1917
|
+
required: true,
|
|
1918
|
+
validate: value => {
|
|
1919
|
+
if (typeof value === "string" && value.length > 2048)
|
|
1920
|
+
throw new Error("'storageKey' must be at most 2048 characters");
|
|
1921
|
+
return true;
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
reservationExpiresAt: {
|
|
1925
|
+
type: "number",
|
|
1926
|
+
required: true,
|
|
1927
|
+
validate: value => {
|
|
1928
|
+
if (typeof value === "number" && value < 0)
|
|
1929
|
+
throw new Error("'reservationExpiresAt' must be at least 0");
|
|
1930
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1931
|
+
throw new Error("'reservationExpiresAt' must be an integer");
|
|
1932
|
+
return true;
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
createdAt: {
|
|
1936
|
+
type: "number",
|
|
1937
|
+
readOnly: true,
|
|
1938
|
+
required: true,
|
|
1939
|
+
default: () => Date.now(),
|
|
1940
|
+
set: () => Date.now()
|
|
1941
|
+
},
|
|
1942
|
+
updatedAt: {
|
|
1943
|
+
type: "number",
|
|
1944
|
+
watch: "*",
|
|
1945
|
+
required: true,
|
|
1946
|
+
default: () => Date.now(),
|
|
1947
|
+
set: () => Date.now()
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
indexes: {
|
|
1951
|
+
byOutboxMessageId: {
|
|
1952
|
+
pk: {
|
|
1953
|
+
field: "gsi0pk",
|
|
1954
|
+
composite: ["outboxMessageId"]
|
|
1955
|
+
},
|
|
1956
|
+
sk: {
|
|
1957
|
+
field: "gsi0sk",
|
|
1958
|
+
composite: ["createdAt"]
|
|
1959
|
+
},
|
|
1960
|
+
index: "gsi0"
|
|
1961
|
+
},
|
|
1962
|
+
OutboxAttachment: {
|
|
1963
|
+
pk: {
|
|
1964
|
+
field: "pk",
|
|
1965
|
+
composite: ["outboxAttachmentId"]
|
|
1966
|
+
},
|
|
1967
|
+
sk: {
|
|
1968
|
+
field: "sk",
|
|
1969
|
+
composite: []
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
},
|
|
1973
|
+
model: {
|
|
1974
|
+
entity: "outboxAttachment",
|
|
1975
|
+
service: "remit",
|
|
1976
|
+
version: "1"
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1836
1979
|
export const Address = {
|
|
1837
1980
|
attributes: {
|
|
1838
1981
|
addressId: {
|
|
@@ -2361,10 +2504,31 @@ export const Message = {
|
|
|
2361
2504
|
type: "string"
|
|
2362
2505
|
},
|
|
2363
2506
|
required: false
|
|
2507
|
+
},
|
|
2508
|
+
signerDomain: {
|
|
2509
|
+
type: "string",
|
|
2510
|
+
required: false
|
|
2511
|
+
},
|
|
2512
|
+
envelopeDomain: {
|
|
2513
|
+
type: "string",
|
|
2514
|
+
required: false
|
|
2515
|
+
},
|
|
2516
|
+
signerMessageCount: {
|
|
2517
|
+
type: "number",
|
|
2518
|
+
required: false
|
|
2519
|
+
},
|
|
2520
|
+
signerFirstSeenAt: {
|
|
2521
|
+
type: "number",
|
|
2522
|
+
required: false
|
|
2364
2523
|
}
|
|
2365
2524
|
},
|
|
2366
2525
|
required: false
|
|
2367
2526
|
},
|
|
2527
|
+
authenticityVerdict: {
|
|
2528
|
+
type: ["NotEvaluated", "NotChecked", "Aligned", "Authenticated", "Routine", "Caution", "Impersonation"],
|
|
2529
|
+
required: true,
|
|
2530
|
+
default: "NotEvaluated"
|
|
2531
|
+
},
|
|
2368
2532
|
authResult: {
|
|
2369
2533
|
type: "map",
|
|
2370
2534
|
properties: {
|
|
@@ -3658,6 +3822,108 @@ export const Envelope = {
|
|
|
3658
3822
|
version: "1"
|
|
3659
3823
|
}
|
|
3660
3824
|
};
|
|
3825
|
+
export const SenderSignerStanding = {
|
|
3826
|
+
attributes: {
|
|
3827
|
+
accountConfigId: {
|
|
3828
|
+
type: "string",
|
|
3829
|
+
required: true,
|
|
3830
|
+
validate: value => {
|
|
3831
|
+
if (typeof value === "string" && value.length < 25)
|
|
3832
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3833
|
+
if (typeof value === "string" && value.length > 25)
|
|
3834
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3835
|
+
return true;
|
|
3836
|
+
}
|
|
3837
|
+
},
|
|
3838
|
+
senderKey: {
|
|
3839
|
+
type: "string",
|
|
3840
|
+
required: true,
|
|
3841
|
+
validate: value => {
|
|
3842
|
+
if (typeof value === "string" && value.length > 256)
|
|
3843
|
+
throw new Error("'senderKey' must be at most 256 characters");
|
|
3844
|
+
return true;
|
|
3845
|
+
}
|
|
3846
|
+
},
|
|
3847
|
+
signerDomain: {
|
|
3848
|
+
type: "string",
|
|
3849
|
+
required: true,
|
|
3850
|
+
validate: value => {
|
|
3851
|
+
if (typeof value === "string" && value.length > 256)
|
|
3852
|
+
throw new Error("'signerDomain' must be at most 256 characters");
|
|
3853
|
+
return true;
|
|
3854
|
+
}
|
|
3855
|
+
},
|
|
3856
|
+
messageCount: {
|
|
3857
|
+
type: "number",
|
|
3858
|
+
required: true,
|
|
3859
|
+
default: 0,
|
|
3860
|
+
validate: value => {
|
|
3861
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3862
|
+
throw new Error("'messageCount' must be an integer");
|
|
3863
|
+
return true;
|
|
3864
|
+
}
|
|
3865
|
+
},
|
|
3866
|
+
firstSeenAt: {
|
|
3867
|
+
type: "number",
|
|
3868
|
+
required: true,
|
|
3869
|
+
validate: value => {
|
|
3870
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3871
|
+
throw new Error("'firstSeenAt' must be an integer");
|
|
3872
|
+
return true;
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
lastSeenAt: {
|
|
3876
|
+
type: "number",
|
|
3877
|
+
required: true,
|
|
3878
|
+
validate: value => {
|
|
3879
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3880
|
+
throw new Error("'lastSeenAt' must be an integer");
|
|
3881
|
+
return true;
|
|
3882
|
+
}
|
|
3883
|
+
},
|
|
3884
|
+
userAffirmedAt: {
|
|
3885
|
+
type: "number",
|
|
3886
|
+
required: true,
|
|
3887
|
+
default: 0,
|
|
3888
|
+
validate: value => {
|
|
3889
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3890
|
+
throw new Error("'userAffirmedAt' must be an integer");
|
|
3891
|
+
return true;
|
|
3892
|
+
}
|
|
3893
|
+
},
|
|
3894
|
+
createdAt: {
|
|
3895
|
+
type: "number",
|
|
3896
|
+
readOnly: true,
|
|
3897
|
+
required: true,
|
|
3898
|
+
default: () => Date.now(),
|
|
3899
|
+
set: () => Date.now()
|
|
3900
|
+
},
|
|
3901
|
+
updatedAt: {
|
|
3902
|
+
type: "number",
|
|
3903
|
+
watch: "*",
|
|
3904
|
+
required: true,
|
|
3905
|
+
default: () => Date.now(),
|
|
3906
|
+
set: () => Date.now()
|
|
3907
|
+
}
|
|
3908
|
+
},
|
|
3909
|
+
indexes: {
|
|
3910
|
+
SenderSignerStanding: {
|
|
3911
|
+
pk: {
|
|
3912
|
+
field: "pk",
|
|
3913
|
+
composite: ["accountConfigId"]
|
|
3914
|
+
},
|
|
3915
|
+
sk: {
|
|
3916
|
+
field: "sk",
|
|
3917
|
+
composite: ["senderKey", "signerDomain"]
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
},
|
|
3921
|
+
model: {
|
|
3922
|
+
entity: "senderSignerStanding",
|
|
3923
|
+
service: "remit",
|
|
3924
|
+
version: "1"
|
|
3925
|
+
}
|
|
3926
|
+
};
|
|
3661
3927
|
export const BodyPartParameter = {
|
|
3662
3928
|
attributes: {
|
|
3663
3929
|
bodyPartParameterId: {
|