@fleetless/contracts 8.1.0-next.1 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/artifacts/openapi.json +475 -0
- package/artifacts/routes.json +47 -0
- package/artifacts/schema/controller-register-org-response.schema.json +225 -0
- package/artifacts/schema/controller-register-write.schema.json +168 -0
- package/dist/controller-register.d.ts +113 -0
- package/dist/controller-register.js +38 -0
- package/dist/errors.js +14 -13
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/routes.js +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,14 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [8.2.0] — 2026-10-30
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Customer-confirmed controller register schemas and owner-only `GET` and `PUT /api/org/controller-register` routes. Optional privacy contact and EU representative can be explicitly cleared; register data never comes from billing.
|
|
17
|
+
|
|
18
|
+
## [8.1.0] — 2026-10-28
|
|
19
|
+
|
|
12
20
|
### Added
|
|
13
21
|
|
|
14
22
|
- Internal, additive shapes for Block D support sessions: `supportSessionInfo`,
|
package/artifacts/openapi.json
CHANGED
|
@@ -647,6 +647,90 @@
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
},
|
|
650
|
+
"/api/org/controller-register": {
|
|
651
|
+
"get": {
|
|
652
|
+
"operationId": "get_api_org_controller_register",
|
|
653
|
+
"summary": "Reads the calling owner's customer-confirmed controller register details.",
|
|
654
|
+
"tags": [
|
|
655
|
+
"org"
|
|
656
|
+
],
|
|
657
|
+
"security": [
|
|
658
|
+
{
|
|
659
|
+
"developerSession": []
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"parameters": [],
|
|
663
|
+
"responses": {
|
|
664
|
+
"200": {
|
|
665
|
+
"description": "Success.",
|
|
666
|
+
"content": {
|
|
667
|
+
"application/json": {
|
|
668
|
+
"schema": {
|
|
669
|
+
"$ref": "#/components/schemas/controller-register-org-response"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"default": {
|
|
675
|
+
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`.",
|
|
676
|
+
"content": {
|
|
677
|
+
"application/json": {
|
|
678
|
+
"schema": {
|
|
679
|
+
"$ref": "#/components/schemas/api-error"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"description": "The authenticated org is the only source. Members and support sessions receive no register data. A missing detail record is null. Billing data never populates this response. Access is audited."
|
|
686
|
+
},
|
|
687
|
+
"put": {
|
|
688
|
+
"operationId": "put_api_org_controller_register",
|
|
689
|
+
"summary": "Replaces the calling owner's confirmed controller register details.",
|
|
690
|
+
"tags": [
|
|
691
|
+
"org"
|
|
692
|
+
],
|
|
693
|
+
"security": [
|
|
694
|
+
{
|
|
695
|
+
"developerSession": []
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"parameters": [],
|
|
699
|
+
"responses": {
|
|
700
|
+
"200": {
|
|
701
|
+
"description": "Success.",
|
|
702
|
+
"content": {
|
|
703
|
+
"application/json": {
|
|
704
|
+
"schema": {
|
|
705
|
+
"$ref": "#/components/schemas/controller-register-org-response"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"default": {
|
|
711
|
+
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `validation_error`.",
|
|
712
|
+
"content": {
|
|
713
|
+
"application/json": {
|
|
714
|
+
"schema": {
|
|
715
|
+
"$ref": "#/components/schemas/api-error"
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"description": "The authenticated org is the only target. Null contacts explicitly clear earlier values. The write is atomic and audited; billing data is never an implicit source. Support sessions cannot write.",
|
|
722
|
+
"requestBody": {
|
|
723
|
+
"required": true,
|
|
724
|
+
"content": {
|
|
725
|
+
"application/json": {
|
|
726
|
+
"schema": {
|
|
727
|
+
"$ref": "#/components/schemas/controller-register-write"
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
650
734
|
"/api/audit": {
|
|
651
735
|
"get": {
|
|
652
736
|
"operationId": "get_api_audit",
|
|
@@ -20827,6 +20911,397 @@
|
|
|
20827
20911
|
],
|
|
20828
20912
|
"additionalProperties": false
|
|
20829
20913
|
},
|
|
20914
|
+
"controller-register-org-response": {
|
|
20915
|
+
"type": "object",
|
|
20916
|
+
"properties": {
|
|
20917
|
+
"orgId": {
|
|
20918
|
+
"type": "string",
|
|
20919
|
+
"format": "uuid",
|
|
20920
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
20921
|
+
},
|
|
20922
|
+
"details": {
|
|
20923
|
+
"anyOf": [
|
|
20924
|
+
{
|
|
20925
|
+
"type": "object",
|
|
20926
|
+
"properties": {
|
|
20927
|
+
"legalName": {
|
|
20928
|
+
"anyOf": [
|
|
20929
|
+
{
|
|
20930
|
+
"type": "string",
|
|
20931
|
+
"minLength": 1,
|
|
20932
|
+
"maxLength": 200,
|
|
20933
|
+
"pattern": "^\\P{Cc}*$"
|
|
20934
|
+
},
|
|
20935
|
+
{
|
|
20936
|
+
"type": "null"
|
|
20937
|
+
}
|
|
20938
|
+
]
|
|
20939
|
+
},
|
|
20940
|
+
"address": {
|
|
20941
|
+
"anyOf": [
|
|
20942
|
+
{
|
|
20943
|
+
"type": "object",
|
|
20944
|
+
"properties": {
|
|
20945
|
+
"line1": {
|
|
20946
|
+
"type": "string",
|
|
20947
|
+
"minLength": 1,
|
|
20948
|
+
"maxLength": 200,
|
|
20949
|
+
"pattern": "^\\P{Cc}*$"
|
|
20950
|
+
},
|
|
20951
|
+
"line2": {
|
|
20952
|
+
"default": null,
|
|
20953
|
+
"anyOf": [
|
|
20954
|
+
{
|
|
20955
|
+
"type": "string",
|
|
20956
|
+
"minLength": 1,
|
|
20957
|
+
"maxLength": 200,
|
|
20958
|
+
"pattern": "^\\P{Cc}*$"
|
|
20959
|
+
},
|
|
20960
|
+
{
|
|
20961
|
+
"type": "null"
|
|
20962
|
+
}
|
|
20963
|
+
]
|
|
20964
|
+
},
|
|
20965
|
+
"postalCode": {
|
|
20966
|
+
"type": "string",
|
|
20967
|
+
"minLength": 1,
|
|
20968
|
+
"maxLength": 32,
|
|
20969
|
+
"pattern": "^\\P{Cc}*$"
|
|
20970
|
+
},
|
|
20971
|
+
"city": {
|
|
20972
|
+
"type": "string",
|
|
20973
|
+
"minLength": 1,
|
|
20974
|
+
"maxLength": 120,
|
|
20975
|
+
"pattern": "^\\P{Cc}*$"
|
|
20976
|
+
},
|
|
20977
|
+
"country": {
|
|
20978
|
+
"type": "string",
|
|
20979
|
+
"allOf": [
|
|
20980
|
+
{
|
|
20981
|
+
"pattern": "^\\P{Cc}*$"
|
|
20982
|
+
},
|
|
20983
|
+
{
|
|
20984
|
+
"pattern": "^[A-Z]{2}$"
|
|
20985
|
+
}
|
|
20986
|
+
]
|
|
20987
|
+
}
|
|
20988
|
+
},
|
|
20989
|
+
"required": [
|
|
20990
|
+
"line1",
|
|
20991
|
+
"line2",
|
|
20992
|
+
"postalCode",
|
|
20993
|
+
"city",
|
|
20994
|
+
"country"
|
|
20995
|
+
],
|
|
20996
|
+
"additionalProperties": false
|
|
20997
|
+
},
|
|
20998
|
+
{
|
|
20999
|
+
"type": "null"
|
|
21000
|
+
}
|
|
21001
|
+
]
|
|
21002
|
+
},
|
|
21003
|
+
"privacyContact": {
|
|
21004
|
+
"anyOf": [
|
|
21005
|
+
{
|
|
21006
|
+
"type": "object",
|
|
21007
|
+
"properties": {
|
|
21008
|
+
"name": {
|
|
21009
|
+
"type": "string",
|
|
21010
|
+
"minLength": 1,
|
|
21011
|
+
"maxLength": 200,
|
|
21012
|
+
"pattern": "^\\P{Cc}*$"
|
|
21013
|
+
},
|
|
21014
|
+
"email": {
|
|
21015
|
+
"type": "string",
|
|
21016
|
+
"maxLength": 320,
|
|
21017
|
+
"format": "email",
|
|
21018
|
+
"allOf": [
|
|
21019
|
+
{
|
|
21020
|
+
"pattern": "^\\P{Cc}*$"
|
|
21021
|
+
},
|
|
21022
|
+
{
|
|
21023
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
21024
|
+
}
|
|
21025
|
+
]
|
|
21026
|
+
},
|
|
21027
|
+
"role": {
|
|
21028
|
+
"type": "string",
|
|
21029
|
+
"enum": [
|
|
21030
|
+
"general",
|
|
21031
|
+
"appointed_dpo"
|
|
21032
|
+
]
|
|
21033
|
+
}
|
|
21034
|
+
},
|
|
21035
|
+
"required": [
|
|
21036
|
+
"name",
|
|
21037
|
+
"email",
|
|
21038
|
+
"role"
|
|
21039
|
+
],
|
|
21040
|
+
"additionalProperties": false
|
|
21041
|
+
},
|
|
21042
|
+
{
|
|
21043
|
+
"type": "null"
|
|
21044
|
+
}
|
|
21045
|
+
]
|
|
21046
|
+
},
|
|
21047
|
+
"euRepresentative": {
|
|
21048
|
+
"anyOf": [
|
|
21049
|
+
{
|
|
21050
|
+
"type": "object",
|
|
21051
|
+
"properties": {
|
|
21052
|
+
"name": {
|
|
21053
|
+
"type": "string",
|
|
21054
|
+
"minLength": 1,
|
|
21055
|
+
"maxLength": 200,
|
|
21056
|
+
"pattern": "^\\P{Cc}*$"
|
|
21057
|
+
},
|
|
21058
|
+
"email": {
|
|
21059
|
+
"type": "string",
|
|
21060
|
+
"maxLength": 320,
|
|
21061
|
+
"format": "email",
|
|
21062
|
+
"allOf": [
|
|
21063
|
+
{
|
|
21064
|
+
"pattern": "^\\P{Cc}*$"
|
|
21065
|
+
},
|
|
21066
|
+
{
|
|
21067
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
21068
|
+
}
|
|
21069
|
+
]
|
|
21070
|
+
},
|
|
21071
|
+
"address": {
|
|
21072
|
+
"type": "string",
|
|
21073
|
+
"minLength": 1,
|
|
21074
|
+
"maxLength": 500,
|
|
21075
|
+
"pattern": "^\\P{Cc}*$"
|
|
21076
|
+
}
|
|
21077
|
+
},
|
|
21078
|
+
"required": [
|
|
21079
|
+
"name",
|
|
21080
|
+
"email",
|
|
21081
|
+
"address"
|
|
21082
|
+
],
|
|
21083
|
+
"additionalProperties": false
|
|
21084
|
+
},
|
|
21085
|
+
{
|
|
21086
|
+
"type": "null"
|
|
21087
|
+
}
|
|
21088
|
+
]
|
|
21089
|
+
},
|
|
21090
|
+
"confirmationSource": {
|
|
21091
|
+
"type": "string",
|
|
21092
|
+
"minLength": 1,
|
|
21093
|
+
"maxLength": 500,
|
|
21094
|
+
"pattern": "^\\P{Cc}*$"
|
|
21095
|
+
},
|
|
21096
|
+
"updatedAt": {
|
|
21097
|
+
"type": "string",
|
|
21098
|
+
"format": "date-time",
|
|
21099
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
21100
|
+
},
|
|
21101
|
+
"updatedByKind": {
|
|
21102
|
+
"type": "string",
|
|
21103
|
+
"enum": [
|
|
21104
|
+
"owner",
|
|
21105
|
+
"operator"
|
|
21106
|
+
]
|
|
21107
|
+
},
|
|
21108
|
+
"updatedById": {
|
|
21109
|
+
"type": "string",
|
|
21110
|
+
"format": "uuid",
|
|
21111
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
21112
|
+
}
|
|
21113
|
+
},
|
|
21114
|
+
"required": [
|
|
21115
|
+
"legalName",
|
|
21116
|
+
"address",
|
|
21117
|
+
"privacyContact",
|
|
21118
|
+
"euRepresentative",
|
|
21119
|
+
"confirmationSource",
|
|
21120
|
+
"updatedAt",
|
|
21121
|
+
"updatedByKind",
|
|
21122
|
+
"updatedById"
|
|
21123
|
+
],
|
|
21124
|
+
"additionalProperties": false
|
|
21125
|
+
},
|
|
21126
|
+
{
|
|
21127
|
+
"type": "null"
|
|
21128
|
+
}
|
|
21129
|
+
]
|
|
21130
|
+
}
|
|
21131
|
+
},
|
|
21132
|
+
"required": [
|
|
21133
|
+
"orgId",
|
|
21134
|
+
"details"
|
|
21135
|
+
],
|
|
21136
|
+
"additionalProperties": false
|
|
21137
|
+
},
|
|
21138
|
+
"controller-register-write": {
|
|
21139
|
+
"type": "object",
|
|
21140
|
+
"properties": {
|
|
21141
|
+
"legalName": {
|
|
21142
|
+
"type": "string",
|
|
21143
|
+
"minLength": 1,
|
|
21144
|
+
"maxLength": 200,
|
|
21145
|
+
"pattern": "^\\P{Cc}*$"
|
|
21146
|
+
},
|
|
21147
|
+
"address": {
|
|
21148
|
+
"type": "object",
|
|
21149
|
+
"properties": {
|
|
21150
|
+
"line1": {
|
|
21151
|
+
"type": "string",
|
|
21152
|
+
"minLength": 1,
|
|
21153
|
+
"maxLength": 200,
|
|
21154
|
+
"pattern": "^\\P{Cc}*$"
|
|
21155
|
+
},
|
|
21156
|
+
"line2": {
|
|
21157
|
+
"default": null,
|
|
21158
|
+
"anyOf": [
|
|
21159
|
+
{
|
|
21160
|
+
"type": "string",
|
|
21161
|
+
"minLength": 1,
|
|
21162
|
+
"maxLength": 200,
|
|
21163
|
+
"pattern": "^\\P{Cc}*$"
|
|
21164
|
+
},
|
|
21165
|
+
{
|
|
21166
|
+
"type": "null"
|
|
21167
|
+
}
|
|
21168
|
+
]
|
|
21169
|
+
},
|
|
21170
|
+
"postalCode": {
|
|
21171
|
+
"type": "string",
|
|
21172
|
+
"minLength": 1,
|
|
21173
|
+
"maxLength": 32,
|
|
21174
|
+
"pattern": "^\\P{Cc}*$"
|
|
21175
|
+
},
|
|
21176
|
+
"city": {
|
|
21177
|
+
"type": "string",
|
|
21178
|
+
"minLength": 1,
|
|
21179
|
+
"maxLength": 120,
|
|
21180
|
+
"pattern": "^\\P{Cc}*$"
|
|
21181
|
+
},
|
|
21182
|
+
"country": {
|
|
21183
|
+
"type": "string",
|
|
21184
|
+
"allOf": [
|
|
21185
|
+
{
|
|
21186
|
+
"pattern": "^\\P{Cc}*$"
|
|
21187
|
+
},
|
|
21188
|
+
{
|
|
21189
|
+
"pattern": "^[A-Z]{2}$"
|
|
21190
|
+
}
|
|
21191
|
+
]
|
|
21192
|
+
}
|
|
21193
|
+
},
|
|
21194
|
+
"required": [
|
|
21195
|
+
"line1",
|
|
21196
|
+
"postalCode",
|
|
21197
|
+
"city",
|
|
21198
|
+
"country"
|
|
21199
|
+
],
|
|
21200
|
+
"additionalProperties": false
|
|
21201
|
+
},
|
|
21202
|
+
"privacyContact": {
|
|
21203
|
+
"anyOf": [
|
|
21204
|
+
{
|
|
21205
|
+
"type": "object",
|
|
21206
|
+
"properties": {
|
|
21207
|
+
"name": {
|
|
21208
|
+
"type": "string",
|
|
21209
|
+
"minLength": 1,
|
|
21210
|
+
"maxLength": 200,
|
|
21211
|
+
"pattern": "^\\P{Cc}*$"
|
|
21212
|
+
},
|
|
21213
|
+
"email": {
|
|
21214
|
+
"type": "string",
|
|
21215
|
+
"maxLength": 320,
|
|
21216
|
+
"format": "email",
|
|
21217
|
+
"allOf": [
|
|
21218
|
+
{
|
|
21219
|
+
"pattern": "^\\P{Cc}*$"
|
|
21220
|
+
},
|
|
21221
|
+
{
|
|
21222
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
21223
|
+
}
|
|
21224
|
+
]
|
|
21225
|
+
},
|
|
21226
|
+
"role": {
|
|
21227
|
+
"type": "string",
|
|
21228
|
+
"enum": [
|
|
21229
|
+
"general",
|
|
21230
|
+
"appointed_dpo"
|
|
21231
|
+
]
|
|
21232
|
+
}
|
|
21233
|
+
},
|
|
21234
|
+
"required": [
|
|
21235
|
+
"name",
|
|
21236
|
+
"email",
|
|
21237
|
+
"role"
|
|
21238
|
+
],
|
|
21239
|
+
"additionalProperties": false
|
|
21240
|
+
},
|
|
21241
|
+
{
|
|
21242
|
+
"type": "null"
|
|
21243
|
+
}
|
|
21244
|
+
]
|
|
21245
|
+
},
|
|
21246
|
+
"euRepresentative": {
|
|
21247
|
+
"anyOf": [
|
|
21248
|
+
{
|
|
21249
|
+
"type": "object",
|
|
21250
|
+
"properties": {
|
|
21251
|
+
"name": {
|
|
21252
|
+
"type": "string",
|
|
21253
|
+
"minLength": 1,
|
|
21254
|
+
"maxLength": 200,
|
|
21255
|
+
"pattern": "^\\P{Cc}*$"
|
|
21256
|
+
},
|
|
21257
|
+
"email": {
|
|
21258
|
+
"type": "string",
|
|
21259
|
+
"maxLength": 320,
|
|
21260
|
+
"format": "email",
|
|
21261
|
+
"allOf": [
|
|
21262
|
+
{
|
|
21263
|
+
"pattern": "^\\P{Cc}*$"
|
|
21264
|
+
},
|
|
21265
|
+
{
|
|
21266
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
21267
|
+
}
|
|
21268
|
+
]
|
|
21269
|
+
},
|
|
21270
|
+
"address": {
|
|
21271
|
+
"type": "string",
|
|
21272
|
+
"minLength": 1,
|
|
21273
|
+
"maxLength": 500,
|
|
21274
|
+
"pattern": "^\\P{Cc}*$"
|
|
21275
|
+
}
|
|
21276
|
+
},
|
|
21277
|
+
"required": [
|
|
21278
|
+
"name",
|
|
21279
|
+
"email",
|
|
21280
|
+
"address"
|
|
21281
|
+
],
|
|
21282
|
+
"additionalProperties": false
|
|
21283
|
+
},
|
|
21284
|
+
{
|
|
21285
|
+
"type": "null"
|
|
21286
|
+
}
|
|
21287
|
+
]
|
|
21288
|
+
},
|
|
21289
|
+
"confirmationSource": {
|
|
21290
|
+
"type": "string",
|
|
21291
|
+
"minLength": 1,
|
|
21292
|
+
"maxLength": 500,
|
|
21293
|
+
"pattern": "^\\P{Cc}*$"
|
|
21294
|
+
}
|
|
21295
|
+
},
|
|
21296
|
+
"required": [
|
|
21297
|
+
"legalName",
|
|
21298
|
+
"address",
|
|
21299
|
+
"privacyContact",
|
|
21300
|
+
"euRepresentative",
|
|
21301
|
+
"confirmationSource"
|
|
21302
|
+
],
|
|
21303
|
+
"additionalProperties": false
|
|
21304
|
+
},
|
|
20830
21305
|
"create-app-invitation-request": {
|
|
20831
21306
|
"type": "object",
|
|
20832
21307
|
"properties": {
|
package/artifacts/routes.json
CHANGED
|
@@ -451,6 +451,53 @@
|
|
|
451
451
|
"transport": "http",
|
|
452
452
|
"notes": "Answers `202` whether or not the address was already listed: the landing page's form must not be an oracle for who signed up. The operator notification is detached from the response — awaiting it made latency answer the question the status code refuses to — and is capped by its own global ceiling, above which the row is still written and the mail is skipped."
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"method": "GET",
|
|
456
|
+
"path": "/api/org/controller-register",
|
|
457
|
+
"section": "org",
|
|
458
|
+
"summary": "Reads the calling owner's customer-confirmed controller register details.",
|
|
459
|
+
"audience": "developer",
|
|
460
|
+
"auth": "developer",
|
|
461
|
+
"rateLimited": false,
|
|
462
|
+
"ownerTier": true,
|
|
463
|
+
"status": 200,
|
|
464
|
+
"params": [],
|
|
465
|
+
"query": null,
|
|
466
|
+
"request": null,
|
|
467
|
+
"response": "controller-register-org-response",
|
|
468
|
+
"errors": [
|
|
469
|
+
"unauthorized",
|
|
470
|
+
"token_expired",
|
|
471
|
+
"token_revoked",
|
|
472
|
+
"tier_required"
|
|
473
|
+
],
|
|
474
|
+
"transport": "http",
|
|
475
|
+
"notes": "The authenticated org is the only source. Members and support sessions receive no register data. A missing detail record is null. Billing data never populates this response. Access is audited."
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"method": "PUT",
|
|
479
|
+
"path": "/api/org/controller-register",
|
|
480
|
+
"section": "org",
|
|
481
|
+
"summary": "Replaces the calling owner's confirmed controller register details.",
|
|
482
|
+
"audience": "developer",
|
|
483
|
+
"auth": "developer",
|
|
484
|
+
"rateLimited": false,
|
|
485
|
+
"ownerTier": true,
|
|
486
|
+
"status": 200,
|
|
487
|
+
"params": [],
|
|
488
|
+
"query": null,
|
|
489
|
+
"request": "controller-register-write",
|
|
490
|
+
"response": "controller-register-org-response",
|
|
491
|
+
"errors": [
|
|
492
|
+
"unauthorized",
|
|
493
|
+
"token_expired",
|
|
494
|
+
"token_revoked",
|
|
495
|
+
"tier_required",
|
|
496
|
+
"validation_error"
|
|
497
|
+
],
|
|
498
|
+
"transport": "http",
|
|
499
|
+
"notes": "The authenticated org is the only target. Null contacts explicitly clear earlier values. The write is atomic and audited; billing data is never an implicit source. Support sessions cannot write."
|
|
500
|
+
},
|
|
454
501
|
{
|
|
455
502
|
"method": "GET",
|
|
456
503
|
"path": "/api/audit",
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"orgId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
9
|
+
},
|
|
10
|
+
"details": {
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"legalName": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 200,
|
|
21
|
+
"pattern": "^\\P{Cc}*$"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "null"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"address": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"line1": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 200,
|
|
37
|
+
"pattern": "^\\P{Cc}*$"
|
|
38
|
+
},
|
|
39
|
+
"line2": {
|
|
40
|
+
"default": null,
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 200,
|
|
46
|
+
"pattern": "^\\P{Cc}*$"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "null"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"postalCode": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"maxLength": 32,
|
|
57
|
+
"pattern": "^\\P{Cc}*$"
|
|
58
|
+
},
|
|
59
|
+
"city": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 120,
|
|
63
|
+
"pattern": "^\\P{Cc}*$"
|
|
64
|
+
},
|
|
65
|
+
"country": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"allOf": [
|
|
68
|
+
{
|
|
69
|
+
"pattern": "^\\P{Cc}*$"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"pattern": "^[A-Z]{2}$"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"line1",
|
|
79
|
+
"line2",
|
|
80
|
+
"postalCode",
|
|
81
|
+
"city",
|
|
82
|
+
"country"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"privacyContact": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"name": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 200,
|
|
100
|
+
"pattern": "^\\P{Cc}*$"
|
|
101
|
+
},
|
|
102
|
+
"email": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"maxLength": 320,
|
|
105
|
+
"format": "email",
|
|
106
|
+
"allOf": [
|
|
107
|
+
{
|
|
108
|
+
"pattern": "^\\P{Cc}*$"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"role": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"general",
|
|
119
|
+
"appointed_dpo"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"name",
|
|
125
|
+
"email",
|
|
126
|
+
"role"
|
|
127
|
+
],
|
|
128
|
+
"additionalProperties": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"euRepresentative": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"maxLength": 200,
|
|
144
|
+
"pattern": "^\\P{Cc}*$"
|
|
145
|
+
},
|
|
146
|
+
"email": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"maxLength": 320,
|
|
149
|
+
"format": "email",
|
|
150
|
+
"allOf": [
|
|
151
|
+
{
|
|
152
|
+
"pattern": "^\\P{Cc}*$"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"address": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"minLength": 1,
|
|
162
|
+
"maxLength": 500,
|
|
163
|
+
"pattern": "^\\P{Cc}*$"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"name",
|
|
168
|
+
"email",
|
|
169
|
+
"address"
|
|
170
|
+
],
|
|
171
|
+
"additionalProperties": false
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "null"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"confirmationSource": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1,
|
|
181
|
+
"maxLength": 500,
|
|
182
|
+
"pattern": "^\\P{Cc}*$"
|
|
183
|
+
},
|
|
184
|
+
"updatedAt": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"format": "date-time",
|
|
187
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
188
|
+
},
|
|
189
|
+
"updatedByKind": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"owner",
|
|
193
|
+
"operator"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"updatedById": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"format": "uuid",
|
|
199
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": [
|
|
203
|
+
"legalName",
|
|
204
|
+
"address",
|
|
205
|
+
"privacyContact",
|
|
206
|
+
"euRepresentative",
|
|
207
|
+
"confirmationSource",
|
|
208
|
+
"updatedAt",
|
|
209
|
+
"updatedByKind",
|
|
210
|
+
"updatedById"
|
|
211
|
+
],
|
|
212
|
+
"additionalProperties": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "null"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"orgId",
|
|
222
|
+
"details"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"legalName": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 200,
|
|
9
|
+
"pattern": "^\\P{Cc}*$"
|
|
10
|
+
},
|
|
11
|
+
"address": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"line1": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 200,
|
|
18
|
+
"pattern": "^\\P{Cc}*$"
|
|
19
|
+
},
|
|
20
|
+
"line2": {
|
|
21
|
+
"default": null,
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 200,
|
|
27
|
+
"pattern": "^\\P{Cc}*$"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "null"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"postalCode": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 32,
|
|
38
|
+
"pattern": "^\\P{Cc}*$"
|
|
39
|
+
},
|
|
40
|
+
"city": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"maxLength": 120,
|
|
44
|
+
"pattern": "^\\P{Cc}*$"
|
|
45
|
+
},
|
|
46
|
+
"country": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"allOf": [
|
|
49
|
+
{
|
|
50
|
+
"pattern": "^\\P{Cc}*$"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pattern": "^[A-Z]{2}$"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"line1",
|
|
60
|
+
"postalCode",
|
|
61
|
+
"city",
|
|
62
|
+
"country"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"privacyContact": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"name": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"maxLength": 200,
|
|
75
|
+
"pattern": "^\\P{Cc}*$"
|
|
76
|
+
},
|
|
77
|
+
"email": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"maxLength": 320,
|
|
80
|
+
"format": "email",
|
|
81
|
+
"allOf": [
|
|
82
|
+
{
|
|
83
|
+
"pattern": "^\\P{Cc}*$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"role": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"general",
|
|
94
|
+
"appointed_dpo"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"name",
|
|
100
|
+
"email",
|
|
101
|
+
"role"
|
|
102
|
+
],
|
|
103
|
+
"additionalProperties": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"euRepresentative": {
|
|
111
|
+
"anyOf": [
|
|
112
|
+
{
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"name": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"maxLength": 200,
|
|
119
|
+
"pattern": "^\\P{Cc}*$"
|
|
120
|
+
},
|
|
121
|
+
"email": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"maxLength": 320,
|
|
124
|
+
"format": "email",
|
|
125
|
+
"allOf": [
|
|
126
|
+
{
|
|
127
|
+
"pattern": "^\\P{Cc}*$"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"address": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"maxLength": 500,
|
|
138
|
+
"pattern": "^\\P{Cc}*$"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"name",
|
|
143
|
+
"email",
|
|
144
|
+
"address"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "null"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"confirmationSource": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1,
|
|
156
|
+
"maxLength": 500,
|
|
157
|
+
"pattern": "^\\P{Cc}*$"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"legalName",
|
|
162
|
+
"address",
|
|
163
|
+
"privacyContact",
|
|
164
|
+
"euRepresentative",
|
|
165
|
+
"confirmationSource"
|
|
166
|
+
],
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const controllerRegisterAddress: z.ZodObject<{
|
|
4
|
+
line1: z.ZodString;
|
|
5
|
+
line2: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
postalCode: z.ZodString;
|
|
7
|
+
city: z.ZodString;
|
|
8
|
+
country: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const controllerRegisterPrivacyContact: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
email: z.ZodString;
|
|
13
|
+
role: z.ZodEnum<{
|
|
14
|
+
general: "general";
|
|
15
|
+
appointed_dpo: "appointed_dpo";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export declare const controllerRegisterRepresentative: z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
email: z.ZodString;
|
|
21
|
+
address: z.ZodString;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
/** PUT replaces the whole confirmed record; null explicitly clears an optional contact. */
|
|
24
|
+
export declare const controllerRegisterWrite: z.ZodObject<{
|
|
25
|
+
legalName: z.ZodString;
|
|
26
|
+
address: z.ZodObject<{
|
|
27
|
+
line1: z.ZodString;
|
|
28
|
+
line2: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
postalCode: z.ZodString;
|
|
30
|
+
city: z.ZodString;
|
|
31
|
+
country: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
privacyContact: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
email: z.ZodString;
|
|
36
|
+
role: z.ZodEnum<{
|
|
37
|
+
general: "general";
|
|
38
|
+
appointed_dpo: "appointed_dpo";
|
|
39
|
+
}>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
euRepresentative: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
email: z.ZodString;
|
|
44
|
+
address: z.ZodString;
|
|
45
|
+
}, z.core.$strict>>;
|
|
46
|
+
confirmationSource: z.ZodString;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
/** A legacy record can exist before every required field was confirmed. */
|
|
49
|
+
export declare const controllerRegisterOrgRecord: z.ZodObject<{
|
|
50
|
+
privacyContact: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
email: z.ZodString;
|
|
53
|
+
role: z.ZodEnum<{
|
|
54
|
+
general: "general";
|
|
55
|
+
appointed_dpo: "appointed_dpo";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
euRepresentative: z.ZodNullable<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
email: z.ZodString;
|
|
61
|
+
address: z.ZodString;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
confirmationSource: z.ZodString;
|
|
64
|
+
legalName: z.ZodNullable<z.ZodString>;
|
|
65
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
line1: z.ZodString;
|
|
67
|
+
line2: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
postalCode: z.ZodString;
|
|
69
|
+
city: z.ZodString;
|
|
70
|
+
country: z.ZodString;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
updatedAt: z.ZodISODateTime;
|
|
73
|
+
updatedByKind: z.ZodEnum<{
|
|
74
|
+
owner: "owner";
|
|
75
|
+
operator: "operator";
|
|
76
|
+
}>;
|
|
77
|
+
updatedById: z.ZodUUID;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export declare const controllerRegisterOrgResponse: z.ZodObject<{
|
|
80
|
+
orgId: z.ZodUUID;
|
|
81
|
+
details: z.ZodNullable<z.ZodObject<{
|
|
82
|
+
privacyContact: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
email: z.ZodString;
|
|
85
|
+
role: z.ZodEnum<{
|
|
86
|
+
general: "general";
|
|
87
|
+
appointed_dpo: "appointed_dpo";
|
|
88
|
+
}>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
euRepresentative: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
email: z.ZodString;
|
|
93
|
+
address: z.ZodString;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
confirmationSource: z.ZodString;
|
|
96
|
+
legalName: z.ZodNullable<z.ZodString>;
|
|
97
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
98
|
+
line1: z.ZodString;
|
|
99
|
+
line2: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
postalCode: z.ZodString;
|
|
101
|
+
city: z.ZodString;
|
|
102
|
+
country: z.ZodString;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
updatedAt: z.ZodISODateTime;
|
|
105
|
+
updatedByKind: z.ZodEnum<{
|
|
106
|
+
owner: "owner";
|
|
107
|
+
operator: "operator";
|
|
108
|
+
}>;
|
|
109
|
+
updatedById: z.ZodUUID;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type ControllerRegisterWrite = z.infer<typeof controllerRegisterWrite>;
|
|
113
|
+
export type ControllerRegisterOrgResponse = z.infer<typeof controllerRegisterOrgResponse>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** Customer-confirmed controller details, independent of invoice data. */
|
|
4
|
+
const text = (max) => z.string().regex(/^\P{Cc}*$/u).trim().min(1).max(max);
|
|
5
|
+
const email = z.string().regex(/^\P{Cc}*$/u).trim().email().max(320);
|
|
6
|
+
export const controllerRegisterAddress = z.object({
|
|
7
|
+
line1: text(200),
|
|
8
|
+
line2: text(200).nullable().default(null),
|
|
9
|
+
postalCode: text(32),
|
|
10
|
+
city: text(120),
|
|
11
|
+
country: z.string().regex(/^\P{Cc}*$/u).trim().regex(/^[A-Z]{2}$/),
|
|
12
|
+
}).strict();
|
|
13
|
+
export const controllerRegisterPrivacyContact = z.object({
|
|
14
|
+
name: text(200), email, role: z.enum(['general', 'appointed_dpo']),
|
|
15
|
+
}).strict();
|
|
16
|
+
export const controllerRegisterRepresentative = z.object({
|
|
17
|
+
name: text(200), email, address: text(500),
|
|
18
|
+
}).strict();
|
|
19
|
+
/** PUT replaces the whole confirmed record; null explicitly clears an optional contact. */
|
|
20
|
+
export const controllerRegisterWrite = z.object({
|
|
21
|
+
legalName: text(200),
|
|
22
|
+
address: controllerRegisterAddress,
|
|
23
|
+
privacyContact: controllerRegisterPrivacyContact.nullable(),
|
|
24
|
+
euRepresentative: controllerRegisterRepresentative.nullable(),
|
|
25
|
+
confirmationSource: text(500),
|
|
26
|
+
}).strict();
|
|
27
|
+
/** A legacy record can exist before every required field was confirmed. */
|
|
28
|
+
export const controllerRegisterOrgRecord = controllerRegisterWrite.extend({
|
|
29
|
+
legalName: text(200).nullable(),
|
|
30
|
+
address: controllerRegisterAddress.nullable(),
|
|
31
|
+
updatedAt: z.iso.datetime(),
|
|
32
|
+
updatedByKind: z.enum(['owner', 'operator']),
|
|
33
|
+
updatedById: z.uuid(),
|
|
34
|
+
}).strict();
|
|
35
|
+
export const controllerRegisterOrgResponse = z.object({
|
|
36
|
+
orgId: z.uuid(),
|
|
37
|
+
details: controllerRegisterOrgRecord.nullable(),
|
|
38
|
+
}).strict();
|
package/dist/errors.js
CHANGED
|
@@ -1103,11 +1103,11 @@ export const ERROR_CODES = [
|
|
|
1103
1103
|
'billing_documents_unavailable',
|
|
1104
1104
|
// 2026-10-28 — support sessions (Block D, internal operator impersonation).
|
|
1105
1105
|
/**
|
|
1106
|
-
* `403`: a support session in `read` mode reached a
|
|
1107
|
-
* `
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
* `
|
|
1106
|
+
* `403`: a support session in `read` mode reached a route classified as
|
|
1107
|
+
* `administration`, `robot_operation` or `robot_upload`, or sent a realtime
|
|
1108
|
+
* control frame. The route's operation class decides, not its HTTP method:
|
|
1109
|
+
* a read-classified POST may be allowed and a robot-operation GET refused.
|
|
1110
|
+
* Routes classified as `read` remain available in either session mode.
|
|
1111
1111
|
*
|
|
1112
1112
|
* Distinct from `forbidden`, which is silent about existence and about a
|
|
1113
1113
|
* caller's role: this is about the **session's mode**, not about what the
|
|
@@ -1119,18 +1119,19 @@ export const ERROR_CODES = [
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
'support_read_only',
|
|
1121
1121
|
/**
|
|
1122
|
-
* `403`: a route
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1122
|
+
* `403`: a route classified as `authentication`, `license_recovery` or
|
|
1123
|
+
* `system_operation`, or an unclassified route, is unavailable to support
|
|
1124
|
+
* sessions in either mode. The explicit exceptions are `GET /api/auth/me`
|
|
1125
|
+
* and `POST /api/auth/support/end`. These operation classes cover the
|
|
1126
|
+
* session's own sign-in/account surface, instance licence recovery and
|
|
1127
|
+
* system endpoints. Edit mode otherwise carries the organisation Owner's
|
|
1128
|
+
* rights, including member administration, credential rotation and billing;
|
|
1129
|
+
* there is no additional per-route deny list.
|
|
1128
1130
|
*
|
|
1129
1131
|
* Distinct from `support_read_only`, which is about a session's mode on a
|
|
1130
1132
|
* route it could otherwise reach: this is a route no support session
|
|
1131
1133
|
* reaches regardless of mode. Produced by the cloud's support-session
|
|
1132
|
-
* policy guard on the developer HTTP surface
|
|
1133
|
-
* for the control frames it refuses the same way.
|
|
1134
|
+
* policy guard on the developer HTTP surface.
|
|
1134
1135
|
*/
|
|
1135
1136
|
'support_forbidden',
|
|
1136
1137
|
];
|
package/dist/index.d.ts
CHANGED
|
@@ -61,5 +61,7 @@ export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason
|
|
|
61
61
|
export type { PlanCurrency, OrgAddons, OrgPlanUsage, PlanChangeKeep, PlanChangeReason, PendingPlanChange, OrgLock, OrgPlan, PlanChangeRequest, PlanOverrides, AdminPlanChangeRequest, } from './plans.js';
|
|
62
62
|
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
63
63
|
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
64
|
+
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
65
|
+
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
64
66
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
65
67
|
export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, } from './billing.js';
|
package/dist/index.js
CHANGED
|
@@ -79,4 +79,5 @@ export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCou
|
|
|
79
79
|
billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery,
|
|
80
80
|
// 2026-10-19 — the Lexware issuer cutover (fleetless/fleetless#327).
|
|
81
81
|
billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
82
|
+
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
82
83
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
package/dist/routes.js
CHANGED
|
@@ -7,6 +7,7 @@ import { feedbackRequest, feedbackResponse } from './feedback.js';
|
|
|
7
7
|
import { CLIENT_OIDC_CALLBACK_PATH, clientAcceptInvitationRequest, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, clientLoginRequest, clientLogoutRequest, clientMcpInteraction, clientMcpInteractionDecisionResponse, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcStartQuery, clientPasswordResetConfirmRequest, clientPasswordResetRequest, clientProviderListQuery, clientProviderListResponse, clientRefreshRequest, clientRegisterRequest, clientResendVerificationRequest, clientSignInResult, clientTwoFactorDisableRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorSetupRequest, clientTwoFactorVerifyRequest, clientVerifyEmailRequest, mcpConsentGrantListResponse, } from './client-auth.js';
|
|
8
8
|
import { clientRobotListResponse } from './client-robots.js';
|
|
9
9
|
import { appAuthConfig, appInvitation, appInvitationListResponse, appMailTemplate, appMailTemplateListResponse, appOidcProvider, appOidcProviderListResponse, appUser, appUserListResponse, createAppInvitationRequest, createAppOidcProviderRequest, createAppUserRequest, mailOutcome, mailTemplatePreviewRequest, mailTemplatePreviewResponse, patchAppOidcProviderRequest, patchAppUserRequest, putAppAuthLookRequest, putAppAuthMcpRequest, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppMailTemplateRequest, } from './app-users.js';
|
|
10
|
+
import { controllerRegisterOrgResponse, controllerRegisterWrite } from './controller-register.js';
|
|
10
11
|
import { acceptTeamInviteRequest, authMeResponse, createPasskeyRequest, createPasskeyResponse, createTeamInviteRequest, developerPasskey, developerTwoFactor, fleetlessUser, fleetlessUserListResponse, passwordChangeRequest, patchAuthMeRequest, patchFleetlessUserRequest, patchOrgRequest, patchOrgResponse, pendingTeamInviteListResponse, refreshRequest, sessionTokens, teamInvite, recoveryCodesResponse, renamePasskeyRequest, tierChangeRequest, totpConfirmRequest, totpConfirmResponse, twoFactorSetupResponse, waitlistRequest, webauthnOptionsResponse, } from './identity.js';
|
|
11
12
|
import { jobRunListResponse, jobRunQuery, jobRunSummary, jobRunSummaryQuery } from './jobs.js';
|
|
12
13
|
import { MCP_APP_PATHS, mcpRobotDatasheet, mcpRolePreviewResponse } from './mcp.js';
|
|
@@ -463,6 +464,24 @@ export const ROUTES = [
|
|
|
463
464
|
'capped by its own global ceiling, above which the row is still written and the mail is skipped.',
|
|
464
465
|
},
|
|
465
466
|
/* ---------------------------------------------------------------- org */
|
|
467
|
+
{
|
|
468
|
+
method: 'GET', path: '/api/org/controller-register', section: 'org',
|
|
469
|
+
summary: "Reads the calling owner's customer-confirmed controller register details.",
|
|
470
|
+
audience: 'developer', auth: 'developer', rateLimited: false, ownerTier: true, status: 200,
|
|
471
|
+
params: [], query: null, request: null, response: controllerRegisterOrgResponse,
|
|
472
|
+
errors: [...DEVELOPER_GUARD, 'tier_required'], transport: 'http',
|
|
473
|
+
notes: 'The authenticated org is the only source. Members and support sessions receive no register data. ' +
|
|
474
|
+
'A missing detail record is null. Billing data never populates this response. Access is audited.',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
method: 'PUT', path: '/api/org/controller-register', section: 'org',
|
|
478
|
+
summary: "Replaces the calling owner's confirmed controller register details.",
|
|
479
|
+
audience: 'developer', auth: 'developer', rateLimited: false, ownerTier: true, status: 200,
|
|
480
|
+
params: [], query: null, request: controllerRegisterWrite, response: controllerRegisterOrgResponse,
|
|
481
|
+
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error'], transport: 'http',
|
|
482
|
+
notes: 'The authenticated org is the only target. Null contacts explicitly clear earlier values. ' +
|
|
483
|
+
'The write is atomic and audited; billing data is never an implicit source. Support sessions cannot write.',
|
|
484
|
+
},
|
|
466
485
|
{
|
|
467
486
|
method: 'GET', path: '/api/audit', section: 'org',
|
|
468
487
|
summary: "Reads the org's audit log, newest first, cursor-paged over the durable sequence number.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|