@veroxm/sdk 1.12.0 → 1.14.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.
@@ -849,6 +849,173 @@ export interface paths {
849
849
  patch?: never;
850
850
  trace?: never;
851
851
  };
852
+ "/projects/{uuid}/storage/files": {
853
+ parameters: {
854
+ query?: never;
855
+ header?: never;
856
+ path?: never;
857
+ cookie?: never;
858
+ };
859
+ /**
860
+ * A page of private files (files:read keys)
861
+ * @description In one folder, or with `under=true` everything under it. By id, up to 100 a page. A project key on your server: an end user's login answers 403 (`code: "key_required"`).
862
+ */
863
+ get: operations["listStoredFiles"];
864
+ put?: never;
865
+ /**
866
+ * Store a private file (files:write keys)
867
+ * @description Up to 25 MB. Its type is what its bytes show. Never public: read it by id, or make a short-lived link.
868
+ */
869
+ post: operations["storeFile"];
870
+ delete?: never;
871
+ options?: never;
872
+ head?: never;
873
+ patch?: never;
874
+ trace?: never;
875
+ };
876
+ "/projects/{uuid}/storage/files/{id}": {
877
+ parameters: {
878
+ query?: never;
879
+ header?: never;
880
+ path?: never;
881
+ cookie?: never;
882
+ };
883
+ /** A private file's details (files:read keys) */
884
+ get: operations["getStoredFile"];
885
+ put?: never;
886
+ post?: never;
887
+ /** Delete a private file (files:write keys) */
888
+ delete: operations["deleteStoredFile"];
889
+ options?: never;
890
+ head?: never;
891
+ patch?: never;
892
+ trace?: never;
893
+ };
894
+ "/projects/{uuid}/storage/files/{id}/link": {
895
+ parameters: {
896
+ query?: never;
897
+ header?: never;
898
+ path?: never;
899
+ cookie?: never;
900
+ };
901
+ get?: never;
902
+ put?: never;
903
+ /**
904
+ * A short-lived link to a private file (files:read keys)
905
+ * @description The link opens the file with no key until it expires: 15 minutes unless asked, at most 7 days. Anyone with it can open it, so give it only to whom the file is for.
906
+ */
907
+ post: operations["linkStoredFile"];
908
+ delete?: never;
909
+ options?: never;
910
+ head?: never;
911
+ patch?: never;
912
+ trace?: never;
913
+ };
914
+ "/projects/{uuid}/storage/events": {
915
+ parameters: {
916
+ query?: never;
917
+ header?: never;
918
+ path?: never;
919
+ cookie?: never;
920
+ };
921
+ /**
922
+ * The private files access log (files:read keys)
923
+ * @description Who stored, read, linked, opened and deleted each file, newest first, up to 100 a page; one file's with `fileId` (kept after it is removed). An open names the link used, who made it and for whom. Kept a year.
924
+ */
925
+ get: operations["listFileEvents"];
926
+ put?: never;
927
+ post?: never;
928
+ delete?: never;
929
+ options?: never;
930
+ head?: never;
931
+ patch?: never;
932
+ trace?: never;
933
+ };
934
+ "/projects/{uuid}/storage/folders": {
935
+ parameters: {
936
+ query?: never;
937
+ header?: never;
938
+ path?: never;
939
+ cookie?: never;
940
+ };
941
+ /** Folder retention rules (files:read keys) */
942
+ get: operations["listFileFolders"];
943
+ /**
944
+ * Set a folder's retention rule (files:write keys)
945
+ * @description Files in the folder, or in a subfolder without a rule of its own, are kept `keepDays` at most. Files already there that it now holds for are shortened to it: the ones older than it are removed. A longer rule applies to files stored from then on. veroxm.json can carry the rules (`fileFolders`).
946
+ */
947
+ put: operations["setFileFolder"];
948
+ post?: never;
949
+ /**
950
+ * Remove a folder's retention rule (files:write keys)
951
+ * @description Files keep the expiry they have; new ones follow the next rule up, if any.
952
+ */
953
+ delete: operations["removeFileFolder"];
954
+ options?: never;
955
+ head?: never;
956
+ patch?: never;
957
+ trace?: never;
958
+ };
959
+ "/projects/{uuid}/storage/grants": {
960
+ parameters: {
961
+ query?: never;
962
+ header?: never;
963
+ path?: never;
964
+ cookie?: never;
965
+ };
966
+ get?: never;
967
+ put?: never;
968
+ /**
969
+ * A one-time upload link for a browser or app (files:write keys)
970
+ * @description The `uploadUrl` takes one file, within `maxBytes` and `kinds` (checked from its bytes), before it expires. Only its hash is kept.
971
+ */
972
+ post: operations["grantFileUpload"];
973
+ delete?: never;
974
+ options?: never;
975
+ head?: never;
976
+ patch?: never;
977
+ trace?: never;
978
+ };
979
+ "/projects/{uuid}/storage/links/{token}": {
980
+ parameters: {
981
+ query?: never;
982
+ header?: never;
983
+ path?: never;
984
+ cookie?: never;
985
+ };
986
+ /**
987
+ * A private file, by its short-lived link
988
+ * @description No key: the link is the credential. Shown in the browser for images, PDF, plain text, audio and video; downloaded otherwise (never HTML, SVG or XML inline).
989
+ */
990
+ get: operations["openFileLink"];
991
+ put?: never;
992
+ post?: never;
993
+ delete?: never;
994
+ options?: never;
995
+ head?: never;
996
+ patch?: never;
997
+ trace?: never;
998
+ };
999
+ "/projects/{uuid}/storage/uploads/{token}": {
1000
+ parameters: {
1001
+ query?: never;
1002
+ header?: never;
1003
+ path?: never;
1004
+ cookie?: never;
1005
+ };
1006
+ get?: never;
1007
+ put?: never;
1008
+ /**
1009
+ * Upload one file with an upload link
1010
+ * @description No key: the grant is the credential, once. 403 (`code: "invalid_grant"`) when it was used, has expired or isn't valid; 413 over its size; 415 for a kind it doesn't take.
1011
+ */
1012
+ post: operations["uploadWithGrant"];
1013
+ delete?: never;
1014
+ options?: never;
1015
+ head?: never;
1016
+ patch?: never;
1017
+ trace?: never;
1018
+ };
852
1019
  "/projects/{uuid}/setup": {
853
1020
  parameters: {
854
1021
  query?: never;
@@ -1031,6 +1198,26 @@ export interface paths {
1031
1198
  patch?: never;
1032
1199
  trace?: never;
1033
1200
  };
1201
+ "/projects/{uuid}/setup/functions/{name}/invoke": {
1202
+ parameters: {
1203
+ query?: never;
1204
+ header?: never;
1205
+ path?: never;
1206
+ cookie?: never;
1207
+ };
1208
+ get?: never;
1209
+ put?: never;
1210
+ /**
1211
+ * Run a deployed function once, as the project or as its schedule (setup keys)
1212
+ * @description For `veroxm functions invoke`. With `dryRun`, only the calls that read are made. In the function's call log as `cli:<key name>`. 400 (`code: "no_schedule"`) for `as: schedule` on a function without one.
1213
+ */
1214
+ post: operations["invokeFunction"];
1215
+ delete?: never;
1216
+ options?: never;
1217
+ head?: never;
1218
+ patch?: never;
1219
+ trace?: never;
1220
+ };
1034
1221
  "/projects/{uuid}/setup/apply": {
1035
1222
  parameters: {
1036
1223
  query?: never;
@@ -1310,6 +1497,86 @@ export interface paths {
1310
1497
  patch?: never;
1311
1498
  trace?: never;
1312
1499
  };
1500
+ "/projects/{uuid}/translations": {
1501
+ parameters: {
1502
+ query?: never;
1503
+ header?: never;
1504
+ path?: never;
1505
+ cookie?: never;
1506
+ };
1507
+ /**
1508
+ * The project's locales: names, writing direction and how much is translated
1509
+ * @description Any key of the project, a browser key too. Every answer has an ETag: send it back as If-None-Match and an unchanged answer is a 304 with no body. The project's own address (/projects/{uuid}/...) is cacheable by CDNs; with `v` set to the current version it is cached for a year. The short address (/translations/...) takes the project from the key and is cached by the browser only.
1510
+ */
1511
+ get: operations["listTranslationLocales"];
1512
+ put?: never;
1513
+ post?: never;
1514
+ delete?: never;
1515
+ options?: never;
1516
+ head?: never;
1517
+ patch?: never;
1518
+ trace?: never;
1519
+ };
1520
+ "/projects/{uuid}/translations/{locale}": {
1521
+ parameters: {
1522
+ query?: never;
1523
+ header?: never;
1524
+ path?: never;
1525
+ cookie?: never;
1526
+ };
1527
+ /**
1528
+ * A locale's app translations
1529
+ * @description Any key of the project, a browser key too. Every answer has an ETag: send it back as If-None-Match and an unchanged answer is a 304 with no body. The project's own address (/projects/{uuid}/...) is cacheable by CDNs; with `v` set to the current version it is cached for a year. The short address (/translations/...) takes the project from the key and is cached by the browser only.
1530
+ */
1531
+ get: operations["getTranslations"];
1532
+ put?: never;
1533
+ post?: never;
1534
+ delete?: never;
1535
+ options?: never;
1536
+ head?: never;
1537
+ patch?: never;
1538
+ trace?: never;
1539
+ };
1540
+ "/translations": {
1541
+ parameters: {
1542
+ query?: never;
1543
+ header?: never;
1544
+ path?: never;
1545
+ cookie?: never;
1546
+ };
1547
+ /**
1548
+ * The project's locales: names, writing direction and how much is translated
1549
+ * @description Any key of the project, a browser key too. Every answer has an ETag: send it back as If-None-Match and an unchanged answer is a 304 with no body. The project's own address (/projects/{uuid}/...) is cacheable by CDNs; with `v` set to the current version it is cached for a year. The short address (/translations/...) takes the project from the key and is cached by the browser only.
1550
+ */
1551
+ get: operations["listTranslationLocalesByKey"];
1552
+ put?: never;
1553
+ post?: never;
1554
+ delete?: never;
1555
+ options?: never;
1556
+ head?: never;
1557
+ patch?: never;
1558
+ trace?: never;
1559
+ };
1560
+ "/translations/{locale}": {
1561
+ parameters: {
1562
+ query?: never;
1563
+ header?: never;
1564
+ path?: never;
1565
+ cookie?: never;
1566
+ };
1567
+ /**
1568
+ * A locale's app translations
1569
+ * @description Any key of the project, a browser key too. Every answer has an ETag: send it back as If-None-Match and an unchanged answer is a 304 with no body. The project's own address (/projects/{uuid}/...) is cacheable by CDNs; with `v` set to the current version it is cached for a year. The short address (/translations/...) takes the project from the key and is cached by the browser only.
1570
+ */
1571
+ get: operations["getTranslationsByKey"];
1572
+ put?: never;
1573
+ post?: never;
1574
+ delete?: never;
1575
+ options?: never;
1576
+ head?: never;
1577
+ patch?: never;
1578
+ trace?: never;
1579
+ };
1313
1580
  }
1314
1581
  export type webhooks = Record<string, never>;
1315
1582
  export interface components {
@@ -1678,6 +1945,127 @@ export interface components {
1678
1945
  /** @constant */
1679
1946
  success: true;
1680
1947
  };
1948
+ StoredFile: {
1949
+ /** @description f_… */
1950
+ id: string;
1951
+ name: string;
1952
+ /** @description "" when it isn't in one. */
1953
+ folder: string;
1954
+ /** @description What its bytes show it is; a data or text type its writer gave; else application/octet-stream. */
1955
+ contentType: string;
1956
+ size: number;
1957
+ sha256: string;
1958
+ /** Format: date-time */
1959
+ createdAt: string;
1960
+ /** Format: date-time */
1961
+ expiresAt: string | null;
1962
+ createdBy: {
1963
+ /** @enum {string} */
1964
+ kind: "function" | "key" | "grant" | "dashboard";
1965
+ name: string | null;
1966
+ };
1967
+ };
1968
+ StoredFilePage: {
1969
+ files: components["schemas"]["StoredFile"][];
1970
+ /** @description The last id: pass it as after for the next page. */
1971
+ next: string | null;
1972
+ };
1973
+ StoredFileUpload: {
1974
+ file: string;
1975
+ /** @description Instead of the uploaded file's own name. */
1976
+ name?: string;
1977
+ folder?: string;
1978
+ /** @description For a file whose bytes don't show its type: a data or text type. */
1979
+ contentType?: string;
1980
+ /** @description Removed after this long (60 to 31536000). */
1981
+ keepSeconds?: number;
1982
+ };
1983
+ StoredFileLinkRequest: {
1984
+ /** @description 10 to 604800; 900 unless given. */
1985
+ ttlSeconds?: number;
1986
+ /** @description Download it rather than show it. */
1987
+ download?: boolean;
1988
+ /** @description Whom it's for (an end user's id, a case number): the access log shows it next to every open. 160 characters at most. */
1989
+ for?: string;
1990
+ };
1991
+ StoredFileLink: {
1992
+ url: string;
1993
+ /** Format: date-time */
1994
+ expiresAt: string;
1995
+ /** @description How the access log names this link. */
1996
+ linkId: string;
1997
+ };
1998
+ StoredFileEvent: {
1999
+ id: string;
2000
+ fileId: string;
2001
+ /** @enum {string} */
2002
+ action: "stored" | "read" | "linked" | "opened" | "deleted" | "expired";
2003
+ /** Format: date-time */
2004
+ at: string;
2005
+ actor: {
2006
+ /** @description function, key, grant, dashboard; link for an open; system for an expiry. */
2007
+ kind: string;
2008
+ id: string | null;
2009
+ name: string | null;
2010
+ };
2011
+ link: {
2012
+ id: string;
2013
+ for: string | null;
2014
+ madeBy: {
2015
+ kind: string;
2016
+ name: string | null;
2017
+ } | null;
2018
+ } | null;
2019
+ /** @description The opener's address, for an open. */
2020
+ ip: string | null;
2021
+ };
2022
+ StoredFileEventPage: {
2023
+ events: components["schemas"]["StoredFileEvent"][];
2024
+ /** @description The last id: pass it as before for the next page. */
2025
+ next: string | null;
2026
+ };
2027
+ FileFolderRule: {
2028
+ /** @description "" for every folder. */
2029
+ folder: string;
2030
+ /** @description 1 to 3650. */
2031
+ keepDays: number;
2032
+ };
2033
+ FileFolderRules: {
2034
+ folders: components["schemas"]["FileFolderRule"][];
2035
+ };
2036
+ FileFolderRuleSet: {
2037
+ folder: string;
2038
+ keepDays: number;
2039
+ /** @description Files already there that now expire sooner. */
2040
+ shortened: number;
2041
+ };
2042
+ FileFolderRuleRemoved: {
2043
+ removed: boolean;
2044
+ };
2045
+ StoredFileDeleted: {
2046
+ /** @constant */
2047
+ deleted: true;
2048
+ };
2049
+ FileGrantRequest: {
2050
+ /** @description Up to 26214400; 10485760 unless given. */
2051
+ maxBytes?: number;
2052
+ /** @description Checked from the file's bytes; all of them unless given. */
2053
+ kinds?: ("image" | "pdf" | "document" | "spreadsheet" | "audio" | "video")[];
2054
+ folder?: string;
2055
+ /** @description 30 to 86400; 900 unless given. */
2056
+ ttlSeconds?: number;
2057
+ };
2058
+ FileGrant: {
2059
+ /** @description POST one file here (multipart, field "file"), with no key. */
2060
+ uploadUrl: string;
2061
+ /** Format: date-time */
2062
+ expiresAt: string;
2063
+ maxBytes: number;
2064
+ kinds: string[];
2065
+ };
2066
+ FileGrantUpload: {
2067
+ file: string;
2068
+ };
1681
2069
  TaskFormField: {
1682
2070
  name: string;
1683
2071
  label: string;
@@ -2159,6 +2547,50 @@ export interface components {
2159
2547
  managedBy: string;
2160
2548
  rolledBackTo: number;
2161
2549
  };
2550
+ FunctionInvokeRequest: {
2551
+ /**
2552
+ * @description As an HTTP call (default POST).
2553
+ * @enum {string}
2554
+ */
2555
+ method?: "GET" | "POST";
2556
+ /** @description The query string, as an object. */
2557
+ query?: {
2558
+ [key: string]: unknown;
2559
+ };
2560
+ /** @description The JSON body of a POST. */
2561
+ body?: unknown;
2562
+ /**
2563
+ * @description http (default): as the project's server calls it. schedule: as its schedule runs it.
2564
+ * @enum {string}
2565
+ */
2566
+ as?: "http" | "schedule";
2567
+ /** @description Make only the calls that read; list the ones that would change something instead. */
2568
+ dryRun?: boolean;
2569
+ };
2570
+ FunctionInvoked: {
2571
+ function: string;
2572
+ version: number;
2573
+ /** @enum {string} */
2574
+ trigger: "http" | "schedule";
2575
+ ok: boolean;
2576
+ /** @description What the function returned (ok). */
2577
+ value?: unknown;
2578
+ /** @description Why it failed (not ok). */
2579
+ error?: string;
2580
+ timedOut?: boolean;
2581
+ /** @description The HTTP status the call answers with (as http). */
2582
+ status?: number;
2583
+ logs: string[];
2584
+ durationMs: number;
2585
+ /** @description A scheduled run asked to run again this much later (not queued for a run started here). */
2586
+ runAgainSeconds?: number;
2587
+ dryRun: boolean;
2588
+ /** @description A dry run: the calls not made, by what they were about, never their values. */
2589
+ skipped?: {
2590
+ method: string;
2591
+ target: string | null;
2592
+ }[];
2593
+ };
2162
2594
  SetupApplied: {
2163
2595
  /** @description How many changes were made. */
2164
2596
  applied: number;
@@ -2400,8 +2832,53 @@ export interface components {
2400
2832
  /** @description Pass as `cursor` for the next page; null at the end. */
2401
2833
  next: string | null;
2402
2834
  };
2403
- };
2404
- responses: {
2835
+ /** @description Texts by key: nested objects (`{ "checkout": { "pay": "Pay {{amount}}" } }`), or dotted keys with `flat=1`. Texts keep i18next placeholders (`{{name}}`, `$t(key)`). */
2836
+ TranslationTexts: {
2837
+ [key: string]: string | components["schemas"]["TranslationTexts"];
2838
+ };
2839
+ TranslationLocale: {
2840
+ /** @description The locale code, e.g. "ar". */
2841
+ code: string;
2842
+ /** @description The project's name for it ("Arabic"). */
2843
+ name: string;
2844
+ /** @description Its own name ("العربية"). */
2845
+ nativeName: string;
2846
+ /**
2847
+ * @description Writing direction.
2848
+ * @enum {string}
2849
+ */
2850
+ dir: "rtl" | "ltr";
2851
+ isDefault: boolean;
2852
+ /** @description Keys of the default locale with a text in this one. */
2853
+ translated: number;
2854
+ /** @description Keys of the default locale. */
2855
+ total: number;
2856
+ };
2857
+ TranslationLocales: {
2858
+ /** @description Rises with every change: send it as `v` for an address cached for a year. */
2859
+ version: number;
2860
+ defaultLocale: string;
2861
+ locales: components["schemas"]["TranslationLocale"][];
2862
+ };
2863
+ TranslationBundle: {
2864
+ /** @description The locale answered: "ar" for a request for "ar-SA" when the project has only "ar". */
2865
+ locale: string;
2866
+ name: string;
2867
+ nativeName: string;
2868
+ /** @enum {string} */
2869
+ dir: "rtl" | "ltr";
2870
+ defaultLocale: string;
2871
+ version: number;
2872
+ /** @description Keys in the bundle. */
2873
+ keys: number;
2874
+ /** @description Keys with a text in this locale. */
2875
+ translated: number;
2876
+ /** @description Keys whose text is the default locale's (not translated yet). */
2877
+ fallback: string[];
2878
+ translations: components["schemas"]["TranslationTexts"];
2879
+ };
2880
+ };
2881
+ responses: {
2405
2882
  /** @description The request is not valid */
2406
2883
  E400: {
2407
2884
  headers: {
@@ -2465,6 +2942,15 @@ export interface components {
2465
2942
  "application/json": components["schemas"]["Error"];
2466
2943
  };
2467
2944
  };
2945
+ /** @description A kind of file this does not take */
2946
+ E415: {
2947
+ headers: {
2948
+ [name: string]: unknown;
2949
+ };
2950
+ content: {
2951
+ "application/json": components["schemas"]["Error"];
2952
+ };
2953
+ };
2468
2954
  /** @description Some answers need attention: `fieldErrors` says which, by question id */
2469
2955
  E422: {
2470
2956
  headers: {
@@ -4417,6 +4903,408 @@ export interface operations {
4417
4903
  504: components["responses"]["E504"];
4418
4904
  };
4419
4905
  };
4906
+ listStoredFiles: {
4907
+ parameters: {
4908
+ query?: {
4909
+ folder?: string;
4910
+ under?: boolean;
4911
+ /** @description The previous page's next. */
4912
+ after?: string;
4913
+ limit?: number;
4914
+ };
4915
+ header?: never;
4916
+ path: {
4917
+ /** @description The project's UUID. */
4918
+ uuid: string;
4919
+ };
4920
+ cookie?: never;
4921
+ };
4922
+ requestBody?: never;
4923
+ responses: {
4924
+ /** @description OK */
4925
+ 200: {
4926
+ headers: {
4927
+ [name: string]: unknown;
4928
+ };
4929
+ content: {
4930
+ "application/json": components["schemas"]["StoredFilePage"];
4931
+ };
4932
+ };
4933
+ 400: components["responses"]["E400"];
4934
+ 401: components["responses"]["E401"];
4935
+ 403: components["responses"]["E403"];
4936
+ 404: components["responses"]["E404"];
4937
+ 429: components["responses"]["E429"];
4938
+ };
4939
+ };
4940
+ storeFile: {
4941
+ parameters: {
4942
+ query?: never;
4943
+ header?: never;
4944
+ path: {
4945
+ /** @description The project's UUID. */
4946
+ uuid: string;
4947
+ };
4948
+ cookie?: never;
4949
+ };
4950
+ requestBody: {
4951
+ content: {
4952
+ "multipart/form-data": components["schemas"]["StoredFileUpload"];
4953
+ };
4954
+ };
4955
+ responses: {
4956
+ /** @description Stored */
4957
+ 201: {
4958
+ headers: {
4959
+ [name: string]: unknown;
4960
+ };
4961
+ content: {
4962
+ "application/json": components["schemas"]["StoredFile"];
4963
+ };
4964
+ };
4965
+ 400: components["responses"]["E400"];
4966
+ 401: components["responses"]["E401"];
4967
+ 403: components["responses"]["E403"];
4968
+ 404: components["responses"]["E404"];
4969
+ 413: components["responses"]["E413"];
4970
+ 429: components["responses"]["E429"];
4971
+ };
4972
+ };
4973
+ getStoredFile: {
4974
+ parameters: {
4975
+ query?: never;
4976
+ header?: never;
4977
+ path: {
4978
+ /** @description The project's UUID. */
4979
+ uuid: string;
4980
+ id: string;
4981
+ };
4982
+ cookie?: never;
4983
+ };
4984
+ requestBody?: never;
4985
+ responses: {
4986
+ /** @description OK */
4987
+ 200: {
4988
+ headers: {
4989
+ [name: string]: unknown;
4990
+ };
4991
+ content: {
4992
+ "application/json": components["schemas"]["StoredFile"];
4993
+ };
4994
+ };
4995
+ 401: components["responses"]["E401"];
4996
+ 403: components["responses"]["E403"];
4997
+ 404: components["responses"]["E404"];
4998
+ 429: components["responses"]["E429"];
4999
+ };
5000
+ };
5001
+ deleteStoredFile: {
5002
+ parameters: {
5003
+ query?: never;
5004
+ header?: never;
5005
+ path: {
5006
+ /** @description The project's UUID. */
5007
+ uuid: string;
5008
+ id: string;
5009
+ };
5010
+ cookie?: never;
5011
+ };
5012
+ requestBody?: never;
5013
+ responses: {
5014
+ /** @description OK */
5015
+ 200: {
5016
+ headers: {
5017
+ [name: string]: unknown;
5018
+ };
5019
+ content: {
5020
+ "application/json": components["schemas"]["StoredFileDeleted"];
5021
+ };
5022
+ };
5023
+ 401: components["responses"]["E401"];
5024
+ 403: components["responses"]["E403"];
5025
+ 404: components["responses"]["E404"];
5026
+ 429: components["responses"]["E429"];
5027
+ };
5028
+ };
5029
+ linkStoredFile: {
5030
+ parameters: {
5031
+ query?: never;
5032
+ header?: never;
5033
+ path: {
5034
+ /** @description The project's UUID. */
5035
+ uuid: string;
5036
+ id: string;
5037
+ };
5038
+ cookie?: never;
5039
+ };
5040
+ requestBody: {
5041
+ content: {
5042
+ "application/json": components["schemas"]["StoredFileLinkRequest"];
5043
+ };
5044
+ };
5045
+ responses: {
5046
+ /** @description A link */
5047
+ 201: {
5048
+ headers: {
5049
+ [name: string]: unknown;
5050
+ };
5051
+ content: {
5052
+ "application/json": components["schemas"]["StoredFileLink"];
5053
+ };
5054
+ };
5055
+ 400: components["responses"]["E400"];
5056
+ 401: components["responses"]["E401"];
5057
+ 403: components["responses"]["E403"];
5058
+ 404: components["responses"]["E404"];
5059
+ 429: components["responses"]["E429"];
5060
+ };
5061
+ };
5062
+ listFileEvents: {
5063
+ parameters: {
5064
+ query?: {
5065
+ fileId?: string;
5066
+ /** @description The previous page's next. */
5067
+ before?: string;
5068
+ limit?: number;
5069
+ };
5070
+ header?: never;
5071
+ path: {
5072
+ /** @description The project's UUID. */
5073
+ uuid: string;
5074
+ };
5075
+ cookie?: never;
5076
+ };
5077
+ requestBody?: never;
5078
+ responses: {
5079
+ /** @description OK */
5080
+ 200: {
5081
+ headers: {
5082
+ [name: string]: unknown;
5083
+ };
5084
+ content: {
5085
+ "application/json": components["schemas"]["StoredFileEventPage"];
5086
+ };
5087
+ };
5088
+ 400: components["responses"]["E400"];
5089
+ 401: components["responses"]["E401"];
5090
+ 403: components["responses"]["E403"];
5091
+ 404: components["responses"]["E404"];
5092
+ 429: components["responses"]["E429"];
5093
+ };
5094
+ };
5095
+ listFileFolders: {
5096
+ parameters: {
5097
+ query?: never;
5098
+ header?: never;
5099
+ path: {
5100
+ /** @description The project's UUID. */
5101
+ uuid: string;
5102
+ };
5103
+ cookie?: never;
5104
+ };
5105
+ requestBody?: never;
5106
+ responses: {
5107
+ /** @description OK */
5108
+ 200: {
5109
+ headers: {
5110
+ [name: string]: unknown;
5111
+ };
5112
+ content: {
5113
+ "application/json": components["schemas"]["FileFolderRules"];
5114
+ };
5115
+ };
5116
+ 401: components["responses"]["E401"];
5117
+ 403: components["responses"]["E403"];
5118
+ 404: components["responses"]["E404"];
5119
+ 429: components["responses"]["E429"];
5120
+ };
5121
+ };
5122
+ setFileFolder: {
5123
+ parameters: {
5124
+ query?: never;
5125
+ header?: never;
5126
+ path: {
5127
+ /** @description The project's UUID. */
5128
+ uuid: string;
5129
+ };
5130
+ cookie?: never;
5131
+ };
5132
+ requestBody: {
5133
+ content: {
5134
+ "application/json": components["schemas"]["FileFolderRule"];
5135
+ };
5136
+ };
5137
+ responses: {
5138
+ /** @description OK */
5139
+ 200: {
5140
+ headers: {
5141
+ [name: string]: unknown;
5142
+ };
5143
+ content: {
5144
+ "application/json": components["schemas"]["FileFolderRuleSet"];
5145
+ };
5146
+ };
5147
+ 400: components["responses"]["E400"];
5148
+ 401: components["responses"]["E401"];
5149
+ 403: components["responses"]["E403"];
5150
+ 404: components["responses"]["E404"];
5151
+ 429: components["responses"]["E429"];
5152
+ };
5153
+ };
5154
+ removeFileFolder: {
5155
+ parameters: {
5156
+ query?: {
5157
+ /** @description "" (or left out) for the every-folder rule. */
5158
+ folder?: string;
5159
+ };
5160
+ header?: never;
5161
+ path: {
5162
+ /** @description The project's UUID. */
5163
+ uuid: string;
5164
+ };
5165
+ cookie?: never;
5166
+ };
5167
+ requestBody?: never;
5168
+ responses: {
5169
+ /** @description OK */
5170
+ 200: {
5171
+ headers: {
5172
+ [name: string]: unknown;
5173
+ };
5174
+ content: {
5175
+ "application/json": components["schemas"]["FileFolderRuleRemoved"];
5176
+ };
5177
+ };
5178
+ 400: components["responses"]["E400"];
5179
+ 401: components["responses"]["E401"];
5180
+ 403: components["responses"]["E403"];
5181
+ 404: components["responses"]["E404"];
5182
+ 429: components["responses"]["E429"];
5183
+ };
5184
+ };
5185
+ grantFileUpload: {
5186
+ parameters: {
5187
+ query?: never;
5188
+ header?: never;
5189
+ path: {
5190
+ /** @description The project's UUID. */
5191
+ uuid: string;
5192
+ };
5193
+ cookie?: never;
5194
+ };
5195
+ requestBody: {
5196
+ content: {
5197
+ "application/json": components["schemas"]["FileGrantRequest"];
5198
+ };
5199
+ };
5200
+ responses: {
5201
+ /** @description A grant */
5202
+ 201: {
5203
+ headers: {
5204
+ [name: string]: unknown;
5205
+ };
5206
+ content: {
5207
+ "application/json": components["schemas"]["FileGrant"];
5208
+ };
5209
+ };
5210
+ 400: components["responses"]["E400"];
5211
+ 401: components["responses"]["E401"];
5212
+ 403: components["responses"]["E403"];
5213
+ 404: components["responses"]["E404"];
5214
+ 429: components["responses"]["E429"];
5215
+ };
5216
+ };
5217
+ openFileLink: {
5218
+ parameters: {
5219
+ query?: never;
5220
+ header?: never;
5221
+ path: {
5222
+ /** @description The project's UUID. */
5223
+ uuid: string;
5224
+ token: string;
5225
+ };
5226
+ cookie?: never;
5227
+ };
5228
+ requestBody?: never;
5229
+ responses: {
5230
+ /** @description The file, with the type it was stored with */
5231
+ 200: {
5232
+ headers: {
5233
+ [name: string]: unknown;
5234
+ };
5235
+ content: {
5236
+ "application/pdf": string;
5237
+ "image/png": string;
5238
+ "image/jpeg": string;
5239
+ "image/gif": string;
5240
+ "image/webp": string;
5241
+ "image/heic": string;
5242
+ "image/svg+xml": string;
5243
+ "text/plain": string;
5244
+ "text/csv": string;
5245
+ "text/html": string;
5246
+ "text/markdown": string;
5247
+ "text/calendar": string;
5248
+ "application/json": string;
5249
+ "application/xml": string;
5250
+ "text/xml": string;
5251
+ "application/zip": string;
5252
+ "application/msword": string;
5253
+ "application/rtf": string;
5254
+ "application/vnd.ms-excel": string;
5255
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": string;
5256
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": string;
5257
+ "application/vnd.oasis.opendocument.text": string;
5258
+ "application/vnd.oasis.opendocument.spreadsheet": string;
5259
+ "audio/mpeg": string;
5260
+ "audio/mp4": string;
5261
+ "audio/ogg": string;
5262
+ "audio/wav": string;
5263
+ "audio/webm": string;
5264
+ "video/mp4": string;
5265
+ "video/webm": string;
5266
+ "video/quicktime": string;
5267
+ "application/octet-stream": string;
5268
+ };
5269
+ };
5270
+ 403: components["responses"]["E403"];
5271
+ 404: components["responses"]["E404"];
5272
+ 429: components["responses"]["E429"];
5273
+ };
5274
+ };
5275
+ uploadWithGrant: {
5276
+ parameters: {
5277
+ query?: never;
5278
+ header?: never;
5279
+ path: {
5280
+ /** @description The project's UUID. */
5281
+ uuid: string;
5282
+ token: string;
5283
+ };
5284
+ cookie?: never;
5285
+ };
5286
+ requestBody: {
5287
+ content: {
5288
+ "multipart/form-data": components["schemas"]["FileGrantUpload"];
5289
+ };
5290
+ };
5291
+ responses: {
5292
+ /** @description Stored */
5293
+ 201: {
5294
+ headers: {
5295
+ [name: string]: unknown;
5296
+ };
5297
+ content: {
5298
+ "application/json": components["schemas"]["StoredFile"];
5299
+ };
5300
+ };
5301
+ 400: components["responses"]["E400"];
5302
+ 403: components["responses"]["E403"];
5303
+ 413: components["responses"]["E413"];
5304
+ 415: components["responses"]["E415"];
5305
+ 429: components["responses"]["E429"];
5306
+ };
5307
+ };
4420
5308
  exportSetup: {
4421
5309
  parameters: {
4422
5310
  query?: never;
@@ -4726,6 +5614,39 @@ export interface operations {
4726
5614
  429: components["responses"]["E429"];
4727
5615
  };
4728
5616
  };
5617
+ invokeFunction: {
5618
+ parameters: {
5619
+ query?: never;
5620
+ header?: never;
5621
+ path: {
5622
+ /** @description The project's UUID. */
5623
+ uuid: string;
5624
+ name: string;
5625
+ };
5626
+ cookie?: never;
5627
+ };
5628
+ requestBody: {
5629
+ content: {
5630
+ "application/json": components["schemas"]["FunctionInvokeRequest"];
5631
+ };
5632
+ };
5633
+ responses: {
5634
+ /** @description OK */
5635
+ 200: {
5636
+ headers: {
5637
+ [name: string]: unknown;
5638
+ };
5639
+ content: {
5640
+ "application/json": components["schemas"]["FunctionInvoked"];
5641
+ };
5642
+ };
5643
+ 400: components["responses"]["E400"];
5644
+ 401: components["responses"]["E401"];
5645
+ 403: components["responses"]["E403"];
5646
+ 404: components["responses"]["E404"];
5647
+ 429: components["responses"]["E429"];
5648
+ };
5649
+ };
4729
5650
  applySetup: {
4730
5651
  parameters: {
4731
5652
  query?: never;
@@ -5213,4 +6134,127 @@ export interface operations {
5213
6134
  429: components["responses"]["E429"];
5214
6135
  };
5215
6136
  };
6137
+ listTranslationLocales: {
6138
+ parameters: {
6139
+ query?: never;
6140
+ header?: never;
6141
+ path: {
6142
+ /** @description The project's UUID. */
6143
+ uuid: string;
6144
+ };
6145
+ cookie?: never;
6146
+ };
6147
+ requestBody?: never;
6148
+ responses: {
6149
+ /** @description OK */
6150
+ 200: {
6151
+ headers: {
6152
+ [name: string]: unknown;
6153
+ };
6154
+ content: {
6155
+ "application/json": components["schemas"]["TranslationLocales"];
6156
+ };
6157
+ };
6158
+ 401: components["responses"]["E401"];
6159
+ 403: components["responses"]["E403"];
6160
+ 429: components["responses"]["E429"];
6161
+ };
6162
+ };
6163
+ getTranslations: {
6164
+ parameters: {
6165
+ query?: {
6166
+ /** @description i18next: only the texts (TranslationTexts), as i18next backends load them. */
6167
+ format?: "i18next";
6168
+ /** @description Dotted keys instead of nested objects. */
6169
+ flat?: "1" | "0" | "true" | "false";
6170
+ /** @description Default on: the default locale's text for keys not translated yet. 0: only this locale's own texts. */
6171
+ fallback?: "1" | "0" | "true" | "false";
6172
+ /** @description The current translations version: a long-cached address (a new version is a new address). */
6173
+ v?: number;
6174
+ };
6175
+ header?: never;
6176
+ path: {
6177
+ /** @description The project's UUID. */
6178
+ uuid: string;
6179
+ /** @description A locale of the project; "ar-SA" is answered by "ar" when the project has only "ar". */
6180
+ locale: string;
6181
+ };
6182
+ cookie?: never;
6183
+ };
6184
+ requestBody?: never;
6185
+ responses: {
6186
+ /** @description The bundle, or with format=i18next only its texts */
6187
+ 200: {
6188
+ headers: {
6189
+ [name: string]: unknown;
6190
+ };
6191
+ content: {
6192
+ "application/json": components["schemas"]["TranslationBundle"] | components["schemas"]["TranslationTexts"];
6193
+ };
6194
+ };
6195
+ 401: components["responses"]["E401"];
6196
+ 403: components["responses"]["E403"];
6197
+ 404: components["responses"]["E404"];
6198
+ 429: components["responses"]["E429"];
6199
+ };
6200
+ };
6201
+ listTranslationLocalesByKey: {
6202
+ parameters: {
6203
+ query?: never;
6204
+ header?: never;
6205
+ path?: never;
6206
+ cookie?: never;
6207
+ };
6208
+ requestBody?: never;
6209
+ responses: {
6210
+ /** @description OK */
6211
+ 200: {
6212
+ headers: {
6213
+ [name: string]: unknown;
6214
+ };
6215
+ content: {
6216
+ "application/json": components["schemas"]["TranslationLocales"];
6217
+ };
6218
+ };
6219
+ 401: components["responses"]["E401"];
6220
+ 403: components["responses"]["E403"];
6221
+ 429: components["responses"]["E429"];
6222
+ };
6223
+ };
6224
+ getTranslationsByKey: {
6225
+ parameters: {
6226
+ query?: {
6227
+ /** @description i18next: only the texts (TranslationTexts), as i18next backends load them. */
6228
+ format?: "i18next";
6229
+ /** @description Dotted keys instead of nested objects. */
6230
+ flat?: "1" | "0" | "true" | "false";
6231
+ /** @description Default on: the default locale's text for keys not translated yet. 0: only this locale's own texts. */
6232
+ fallback?: "1" | "0" | "true" | "false";
6233
+ /** @description The current translations version: a long-cached address (a new version is a new address). */
6234
+ v?: number;
6235
+ };
6236
+ header?: never;
6237
+ path: {
6238
+ /** @description A locale of the project; "ar-SA" is answered by "ar" when the project has only "ar". */
6239
+ locale: string;
6240
+ };
6241
+ cookie?: never;
6242
+ };
6243
+ requestBody?: never;
6244
+ responses: {
6245
+ /** @description The bundle, or with format=i18next only its texts */
6246
+ 200: {
6247
+ headers: {
6248
+ [name: string]: unknown;
6249
+ };
6250
+ content: {
6251
+ "application/json": components["schemas"]["TranslationBundle"] | components["schemas"]["TranslationTexts"];
6252
+ };
6253
+ };
6254
+ 401: components["responses"]["E401"];
6255
+ 403: components["responses"]["E403"];
6256
+ 404: components["responses"]["E404"];
6257
+ 429: components["responses"]["E429"];
6258
+ };
6259
+ };
5216
6260
  }