@andco/protocol 0.1.0-ti.1 → 0.1.0-ti.3
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/dist/intent-input.d.ts +2 -12
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +2 -12
- package/dist/rar/bank.d.ts +152 -0
- package/dist/rar/bank.d.ts.map +1 -1
- package/dist/rar/bank.js +38 -0
- package/dist/rar/catalog.d.ts +131 -1
- package/dist/rar/catalog.d.ts.map +1 -1
- package/dist/rar/catalog.js +7 -1
- package/dist/rar/json-schemas.generated.d.ts.map +1 -1
- package/dist/rar/json-schemas.generated.js +372 -0
- package/dist/rest/accounts.d.ts +3 -3
- package/dist/rest/accounts.js +1 -1
- package/dist/rest/contract.d.ts +12 -12
- package/dist/rest/intents.d.ts +42 -71
- package/dist/rest/intents.d.ts.map +1 -1
- package/dist/rest/intents.js +11 -23
- package/dist/rest/signatures.d.ts +10 -9
- package/dist/rest/signatures.d.ts.map +1 -1
- package/dist/rest/signatures.js +11 -10
- package/dist/rest/transfers.d.ts +16 -16
- package/dist/rest/transfers.d.ts.map +1 -1
- package/dist/rest/transfers.js +6 -6
- package/dist/transfer.d.ts +10 -10
- package/dist/transfer.d.ts.map +1 -1
- package/dist/transfer.js +10 -9
- package/dist/transport/generated/oauth-api.d.ts +29 -31
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +9 -1
- package/dist/transport/intents.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2684,6 +2684,378 @@ export const ANDCO_RAR_JSON_SCHEMAS = {
|
|
|
2684
2684
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2685
2685
|
}
|
|
2686
2686
|
},
|
|
2687
|
+
"bank_own_account_transfer": {
|
|
2688
|
+
"grantRequest": {
|
|
2689
|
+
"type": "object",
|
|
2690
|
+
"properties": {
|
|
2691
|
+
"type": {
|
|
2692
|
+
"const": "bank_own_account_transfer"
|
|
2693
|
+
},
|
|
2694
|
+
"actions": {
|
|
2695
|
+
"type": "array",
|
|
2696
|
+
"items": {
|
|
2697
|
+
"enum": [
|
|
2698
|
+
"create"
|
|
2699
|
+
],
|
|
2700
|
+
"type": "string"
|
|
2701
|
+
},
|
|
2702
|
+
"minItems": 1,
|
|
2703
|
+
"uniqueItems": true
|
|
2704
|
+
},
|
|
2705
|
+
"locations": {
|
|
2706
|
+
"type": "array",
|
|
2707
|
+
"items": [
|
|
2708
|
+
{
|
|
2709
|
+
"const": "https://api.andco.com"
|
|
2710
|
+
}
|
|
2711
|
+
],
|
|
2712
|
+
"minItems": 1,
|
|
2713
|
+
"additionalItems": false
|
|
2714
|
+
},
|
|
2715
|
+
"subject": {
|
|
2716
|
+
"anyOf": [
|
|
2717
|
+
{
|
|
2718
|
+
"oneOf": [
|
|
2719
|
+
{
|
|
2720
|
+
"type": "object",
|
|
2721
|
+
"properties": {
|
|
2722
|
+
"type": {
|
|
2723
|
+
"const": "profile"
|
|
2724
|
+
},
|
|
2725
|
+
"identifier": {
|
|
2726
|
+
"anyOf": [
|
|
2727
|
+
{
|
|
2728
|
+
"type": "string",
|
|
2729
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"type": "null"
|
|
2733
|
+
}
|
|
2734
|
+
]
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"required": [
|
|
2738
|
+
"type"
|
|
2739
|
+
],
|
|
2740
|
+
"additionalProperties": false
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
"type": "object",
|
|
2744
|
+
"properties": {
|
|
2745
|
+
"type": {
|
|
2746
|
+
"const": "organization"
|
|
2747
|
+
},
|
|
2748
|
+
"identifier": {
|
|
2749
|
+
"anyOf": [
|
|
2750
|
+
{
|
|
2751
|
+
"type": "string",
|
|
2752
|
+
"pattern": "^[1-9][0-9]{0,9}$"
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"type": "null"
|
|
2756
|
+
}
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
"editable": {
|
|
2760
|
+
"anyOf": [
|
|
2761
|
+
{
|
|
2762
|
+
"type": "boolean"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"type": "null"
|
|
2766
|
+
}
|
|
2767
|
+
]
|
|
2768
|
+
}
|
|
2769
|
+
},
|
|
2770
|
+
"required": [
|
|
2771
|
+
"type"
|
|
2772
|
+
],
|
|
2773
|
+
"additionalProperties": false
|
|
2774
|
+
}
|
|
2775
|
+
]
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"type": "null"
|
|
2779
|
+
}
|
|
2780
|
+
]
|
|
2781
|
+
},
|
|
2782
|
+
"accounts": {
|
|
2783
|
+
"anyOf": [
|
|
2784
|
+
{
|
|
2785
|
+
"type": "array",
|
|
2786
|
+
"items": {
|
|
2787
|
+
"anyOf": [
|
|
2788
|
+
{
|
|
2789
|
+
"type": "object",
|
|
2790
|
+
"properties": {
|
|
2791
|
+
"type": {
|
|
2792
|
+
"anyOf": [
|
|
2793
|
+
{
|
|
2794
|
+
"const": "account_key"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"type": "null"
|
|
2798
|
+
}
|
|
2799
|
+
]
|
|
2800
|
+
},
|
|
2801
|
+
"pattern": {
|
|
2802
|
+
"type": "string",
|
|
2803
|
+
"pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
|
|
2804
|
+
},
|
|
2805
|
+
"editable": {
|
|
2806
|
+
"anyOf": [
|
|
2807
|
+
{
|
|
2808
|
+
"type": "boolean"
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
"type": "null"
|
|
2812
|
+
}
|
|
2813
|
+
]
|
|
2814
|
+
},
|
|
2815
|
+
"selection": {
|
|
2816
|
+
"anyOf": [
|
|
2817
|
+
{
|
|
2818
|
+
"enum": [
|
|
2819
|
+
"single",
|
|
2820
|
+
"multiple"
|
|
2821
|
+
],
|
|
2822
|
+
"type": "string"
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
"type": "null"
|
|
2826
|
+
}
|
|
2827
|
+
]
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"required": [
|
|
2831
|
+
"pattern"
|
|
2832
|
+
],
|
|
2833
|
+
"additionalProperties": false
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"type": "object",
|
|
2837
|
+
"properties": {
|
|
2838
|
+
"type": {
|
|
2839
|
+
"const": "account"
|
|
2840
|
+
},
|
|
2841
|
+
"id": {
|
|
2842
|
+
"type": "string",
|
|
2843
|
+
"format": "uuid"
|
|
2844
|
+
},
|
|
2845
|
+
"editable": {
|
|
2846
|
+
"anyOf": [
|
|
2847
|
+
{
|
|
2848
|
+
"type": "boolean"
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"type": "null"
|
|
2852
|
+
}
|
|
2853
|
+
]
|
|
2854
|
+
}
|
|
2855
|
+
},
|
|
2856
|
+
"required": [
|
|
2857
|
+
"type",
|
|
2858
|
+
"id"
|
|
2859
|
+
],
|
|
2860
|
+
"additionalProperties": false
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
"type": "object",
|
|
2864
|
+
"properties": {
|
|
2865
|
+
"type": {
|
|
2866
|
+
"const": "any"
|
|
2867
|
+
},
|
|
2868
|
+
"limit": {
|
|
2869
|
+
"const": "own"
|
|
2870
|
+
},
|
|
2871
|
+
"editable": {
|
|
2872
|
+
"anyOf": [
|
|
2873
|
+
{
|
|
2874
|
+
"type": "boolean"
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"type": "null"
|
|
2878
|
+
}
|
|
2879
|
+
]
|
|
2880
|
+
},
|
|
2881
|
+
"selection": {
|
|
2882
|
+
"anyOf": [
|
|
2883
|
+
{
|
|
2884
|
+
"enum": [
|
|
2885
|
+
"single",
|
|
2886
|
+
"multiple"
|
|
2887
|
+
],
|
|
2888
|
+
"type": "string"
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
"type": "null"
|
|
2892
|
+
}
|
|
2893
|
+
]
|
|
2894
|
+
}
|
|
2895
|
+
},
|
|
2896
|
+
"required": [
|
|
2897
|
+
"type",
|
|
2898
|
+
"limit"
|
|
2899
|
+
],
|
|
2900
|
+
"additionalProperties": false
|
|
2901
|
+
}
|
|
2902
|
+
]
|
|
2903
|
+
},
|
|
2904
|
+
"minItems": 1,
|
|
2905
|
+
"maxItems": 100,
|
|
2906
|
+
"uniqueItems": true
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"type": "null"
|
|
2910
|
+
}
|
|
2911
|
+
]
|
|
2912
|
+
}
|
|
2913
|
+
},
|
|
2914
|
+
"required": [
|
|
2915
|
+
"type",
|
|
2916
|
+
"actions",
|
|
2917
|
+
"locations"
|
|
2918
|
+
],
|
|
2919
|
+
"additionalProperties": false,
|
|
2920
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2921
|
+
},
|
|
2922
|
+
"grant": {
|
|
2923
|
+
"type": "object",
|
|
2924
|
+
"properties": {
|
|
2925
|
+
"type": {
|
|
2926
|
+
"const": "bank_own_account_transfer"
|
|
2927
|
+
},
|
|
2928
|
+
"actions": {
|
|
2929
|
+
"type": "array",
|
|
2930
|
+
"items": {
|
|
2931
|
+
"enum": [
|
|
2932
|
+
"create"
|
|
2933
|
+
],
|
|
2934
|
+
"type": "string"
|
|
2935
|
+
},
|
|
2936
|
+
"minItems": 1,
|
|
2937
|
+
"uniqueItems": true
|
|
2938
|
+
},
|
|
2939
|
+
"locations": {
|
|
2940
|
+
"type": "array",
|
|
2941
|
+
"items": [
|
|
2942
|
+
{
|
|
2943
|
+
"const": "https://api.andco.com"
|
|
2944
|
+
}
|
|
2945
|
+
],
|
|
2946
|
+
"minItems": 1,
|
|
2947
|
+
"additionalItems": false
|
|
2948
|
+
},
|
|
2949
|
+
"subject": {
|
|
2950
|
+
"oneOf": [
|
|
2951
|
+
{
|
|
2952
|
+
"type": "object",
|
|
2953
|
+
"properties": {
|
|
2954
|
+
"type": {
|
|
2955
|
+
"const": "profile"
|
|
2956
|
+
},
|
|
2957
|
+
"identifier": {
|
|
2958
|
+
"type": "string",
|
|
2959
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
2960
|
+
}
|
|
2961
|
+
},
|
|
2962
|
+
"required": [
|
|
2963
|
+
"type",
|
|
2964
|
+
"identifier"
|
|
2965
|
+
],
|
|
2966
|
+
"additionalProperties": false
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"type": "object",
|
|
2970
|
+
"properties": {
|
|
2971
|
+
"type": {
|
|
2972
|
+
"const": "organization"
|
|
2973
|
+
},
|
|
2974
|
+
"identifier": {
|
|
2975
|
+
"type": "string",
|
|
2976
|
+
"pattern": "^[1-9][0-9]{0,9}$"
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2979
|
+
"required": [
|
|
2980
|
+
"type",
|
|
2981
|
+
"identifier"
|
|
2982
|
+
],
|
|
2983
|
+
"additionalProperties": false
|
|
2984
|
+
}
|
|
2985
|
+
]
|
|
2986
|
+
},
|
|
2987
|
+
"accounts": {
|
|
2988
|
+
"type": "array",
|
|
2989
|
+
"items": {
|
|
2990
|
+
"anyOf": [
|
|
2991
|
+
{
|
|
2992
|
+
"type": "object",
|
|
2993
|
+
"properties": {
|
|
2994
|
+
"type": {
|
|
2995
|
+
"const": "account_key"
|
|
2996
|
+
},
|
|
2997
|
+
"pattern": {
|
|
2998
|
+
"type": "string",
|
|
2999
|
+
"pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
|
|
3000
|
+
}
|
|
3001
|
+
},
|
|
3002
|
+
"required": [
|
|
3003
|
+
"type",
|
|
3004
|
+
"pattern"
|
|
3005
|
+
],
|
|
3006
|
+
"additionalProperties": false
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
"type": "object",
|
|
3010
|
+
"properties": {
|
|
3011
|
+
"type": {
|
|
3012
|
+
"const": "account"
|
|
3013
|
+
},
|
|
3014
|
+
"id": {
|
|
3015
|
+
"type": "string",
|
|
3016
|
+
"format": "uuid"
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"required": [
|
|
3020
|
+
"type",
|
|
3021
|
+
"id"
|
|
3022
|
+
],
|
|
3023
|
+
"additionalProperties": false
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"type": "object",
|
|
3027
|
+
"properties": {
|
|
3028
|
+
"type": {
|
|
3029
|
+
"const": "any"
|
|
3030
|
+
},
|
|
3031
|
+
"limit": {
|
|
3032
|
+
"const": "own"
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
"required": [
|
|
3036
|
+
"type",
|
|
3037
|
+
"limit"
|
|
3038
|
+
],
|
|
3039
|
+
"additionalProperties": false
|
|
3040
|
+
}
|
|
3041
|
+
]
|
|
3042
|
+
},
|
|
3043
|
+
"minItems": 1,
|
|
3044
|
+
"maxItems": 100,
|
|
3045
|
+
"uniqueItems": true
|
|
3046
|
+
}
|
|
3047
|
+
},
|
|
3048
|
+
"required": [
|
|
3049
|
+
"type",
|
|
3050
|
+
"actions",
|
|
3051
|
+
"locations",
|
|
3052
|
+
"subject",
|
|
3053
|
+
"accounts"
|
|
3054
|
+
],
|
|
3055
|
+
"additionalProperties": false,
|
|
3056
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
2687
3059
|
"bank_deposit": {
|
|
2688
3060
|
"grantRequest": {
|
|
2689
3061
|
"type": "object",
|
package/dist/rest/accounts.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare const Movement: v.StrictObjectSchema<{
|
|
|
201
201
|
readonly payment_type: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
202
202
|
readonly reversed: v.BooleanSchema<undefined>;
|
|
203
203
|
readonly note: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
204
|
-
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a
|
|
204
|
+
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a Movement without a `transaction_id` and for one that AndCo has posted before AndCo recorded the Transfer, which fills on a later read. It is null for a credit too, except the credit leg of an own-account Transfer, which links by the same read rule as the debit.">]>;
|
|
205
205
|
}, undefined>;
|
|
206
206
|
/** One Movement of an account. */
|
|
207
207
|
export type Movement = v.InferOutput<typeof Movement>;
|
|
@@ -223,7 +223,7 @@ export declare const MovementPage: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
223
223
|
readonly payment_type: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
224
224
|
readonly reversed: v.BooleanSchema<undefined>;
|
|
225
225
|
readonly note: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
226
|
-
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a
|
|
226
|
+
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a Movement without a `transaction_id` and for one that AndCo has posted before AndCo recorded the Transfer, which fills on a later read. It is null for a credit too, except the credit leg of an own-account Transfer, which links by the same read rule as the debit.">]>;
|
|
227
227
|
}, undefined>;
|
|
228
228
|
}, undefined>, undefined>;
|
|
229
229
|
readonly pageInfo: v.StrictObjectSchema<{
|
|
@@ -329,7 +329,7 @@ export declare const listAccountMovements: import("@orpc/contract").ProcedureCon
|
|
|
329
329
|
readonly payment_type: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
330
330
|
readonly reversed: v.BooleanSchema<undefined>;
|
|
331
331
|
readonly note: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
332
|
-
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a
|
|
332
|
+
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a Movement without a `transaction_id` and for one that AndCo has posted before AndCo recorded the Transfer, which fills on a later read. It is null for a credit too, except the credit leg of an own-account Transfer, which links by the same read rule as the debit.">]>;
|
|
333
333
|
}, undefined>;
|
|
334
334
|
}, undefined>, undefined>;
|
|
335
335
|
readonly pageInfo: v.StrictObjectSchema<{
|
package/dist/rest/accounts.js
CHANGED
|
@@ -82,7 +82,7 @@ export const Movement = /* @__PURE__ */ v.strictObject({
|
|
|
82
82
|
payment_type: v.nullable(v.string()),
|
|
83
83
|
reversed: v.boolean(),
|
|
84
84
|
note: v.nullable(v.string()),
|
|
85
|
-
transfer_id: v.pipe(v.nullable(v.pipe(v.string(), v.uuid())), v.description("The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a
|
|
85
|
+
transfer_id: v.pipe(v.nullable(v.pipe(v.string(), v.uuid())), v.description("The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a Movement without a `transaction_id` and for one that AndCo has posted before AndCo recorded the Transfer, which fills on a later read. It is null for a credit too, except the credit leg of an own-account Transfer, which links by the same read rule as the debit.")),
|
|
86
86
|
});
|
|
87
87
|
/** A page of one account's Movements, read live from the bank. */
|
|
88
88
|
export const MovementPage = /* @__PURE__ */ cursorlessConnection(Movement, "A connection read live from AndCo, which issues one cursor per page and walks forward only. `pageInfo.endCursor` is that cursor and is null on the last page; `pageInfo.startCursor` is always null and `pageInfo.hasPreviousPage` always false. An edge's `cursor` is null: AndCo names no position inside a page, so a walk resumes from the end of a page, never from one Movement.");
|
package/dist/rest/contract.d.ts
CHANGED
|
@@ -1869,7 +1869,7 @@ export declare const contract: {
|
|
|
1869
1869
|
server_time: string;
|
|
1870
1870
|
created_at: string;
|
|
1871
1871
|
authorization_url: string;
|
|
1872
|
-
}, "Authoritative Project-facing state of an account closure. It carries no amount and no fee.">]>], undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidRequest, typeof import("./intents.js").IdempotencyKeyNotAllowed, typeof import("./intents.js").
|
|
1872
|
+
}, "Authoritative Project-facing state of an account closure. It carries no amount and no fee.">]>], undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidRequest, typeof import("./intents.js").IdempotencyKeyNotAllowed, typeof import("./intents.js").InvalidSignedInstruction, typeof import("./common.js").InvalidToken, typeof import("./intents.js").ExpiredSignedInstruction, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").InsufficientAuthorization, typeof import("./intents.js").AccountKeyOutOfGrant, typeof import("./common.js").NotFound, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./intents.js").IdempotencyConflict, typeof import("./intents.js").IntentInteractionRequired, typeof import("./intents.js").AccountKeyTaken, typeof import("./intents.js").BankAccountQuotaExceeded, typeof import("./intents.js").InvalidIntentState, typeof import("./intents.js").IntentExpired, typeof import("./common.js").PayloadTooLarge, typeof import("./common.js").UnsupportedMediaType, typeof import("./intents.js").DepositAmountOutOfBounds, typeof import("./intents.js").DepositDestinationAmbiguous, typeof import("./intents.js").DestinationNotOwnAccount, typeof import("./intents.js").AmountOutOfGrant, typeof import("./intents.js").InvalidSource, typeof import("./intents.js").InvalidDestination, typeof import("./intents.js").TransferSenderIdentityUnavailable, typeof import("./intents.js").UnsupportedBank, typeof import("./intents.js").BankConnectionUnavailable, typeof import("./intents.js").BankAccountNumberMissing, typeof import("./intents.js").BankAuthorizationDenied, typeof import("./intents.js").BankHolderWithoutAccount, typeof import("./intents.js").BankAccountLimitReached, typeof import("./intents.js").BankRefused, typeof import("./intents.js").InsufficientFunds, typeof import("./intents.js").BankRejected, typeof import("./intents.js").BankReviewRequired, typeof import("./intents.js").NotImplemented, typeof import("./common.js").TemporarilyUnavailable]>>;
|
|
1873
1873
|
createTransfer: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1874
1874
|
readonly payload: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "The base64url of the JSON claims (`SignedTransferClaims`).">]>;
|
|
1875
1875
|
readonly signatures: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
@@ -1947,8 +1947,8 @@ export declare const contract: {
|
|
|
1947
1947
|
national_id: string | null;
|
|
1948
1948
|
}, "The Receptor: the account the money lands on and its holder.">]>;
|
|
1949
1949
|
readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
|
|
1950
|
-
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer
|
|
1951
|
-
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer
|
|
1950
|
+
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer submitted through `POST /transfers` (approved when it was submitted, so there was no request).">]>;
|
|
1951
|
+
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer that submitted it through `POST /transfers`, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent, even after it is approved. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
|
|
1952
1952
|
readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
|
|
1953
1953
|
readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
|
|
1954
1954
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1982,7 +1982,7 @@ export declare const contract: {
|
|
|
1982
1982
|
jti: string | null;
|
|
1983
1983
|
transaction_id: string | null;
|
|
1984
1984
|
created_at: string;
|
|
1985
|
-
}, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidRequest, typeof import("./intents.js").IdempotencyKeyNotAllowed, typeof import("./intents.js").
|
|
1985
|
+
}, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidRequest, typeof import("./intents.js").IdempotencyKeyNotAllowed, typeof import("./intents.js").InvalidSignedInstruction, typeof import("./common.js").InvalidToken, typeof import("./intents.js").ExpiredSignedInstruction, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./intents.js").IdempotencyConflict, typeof import("./intents.js").IntentInteractionRequired, typeof import("./common.js").PayloadTooLarge, typeof import("./common.js").UnsupportedMediaType, typeof import("./transfers.js").SenderMismatch, typeof import("./intents.js").TransferSenderIdentityUnavailable, typeof import("./intents.js").AmountOutOfGrant, typeof import("./intents.js").InvalidSource, typeof import("./intents.js").InvalidDestination, typeof import("./intents.js").BankConnectionUnavailable, typeof import("./intents.js").BankRefused, typeof import("./intents.js").InsufficientFunds, typeof import("./intents.js").BankRejected, typeof import("./intents.js").BankReviewRequired, typeof import("./intents.js").NotImplemented, typeof import("./common.js").TemporarilyUnavailable]>>;
|
|
1986
1986
|
getBankCatalog: import("@orpc/contract").ProcedureContractBuilderWithOutput<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1987
1987
|
readonly edges: v.ArraySchema<v.StrictObjectSchema<{
|
|
1988
1988
|
readonly cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2563,8 +2563,8 @@ export declare const contract: {
|
|
|
2563
2563
|
national_id: string | null;
|
|
2564
2564
|
}, "The Receptor: the account the money lands on and its holder.">]>;
|
|
2565
2565
|
readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
|
|
2566
|
-
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer
|
|
2567
|
-
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer
|
|
2566
|
+
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer submitted through `POST /transfers` (approved when it was submitted, so there was no request).">]>;
|
|
2567
|
+
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer that submitted it through `POST /transfers`, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent, even after it is approved. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
|
|
2568
2568
|
readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
|
|
2569
2569
|
readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
|
|
2570
2570
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -2676,7 +2676,7 @@ export declare const contract: {
|
|
|
2676
2676
|
readonly payment_type: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2677
2677
|
readonly reversed: v.BooleanSchema<undefined>;
|
|
2678
2678
|
readonly note: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2679
|
-
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a
|
|
2679
|
+
readonly transfer_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The id of the Transfer that this debit belongs to, only when the Grant may read that Transfer: one this client created for the same subject, or any Transfer of an account that a `bank_transfer` `read` detail covers. Always present. A null never means that no Transfer exists: it means no Transfer that this Grant may read, and it is also null for a Movement without a `transaction_id` and for one that AndCo has posted before AndCo recorded the Transfer, which fills on a later read. It is null for a credit too, except the credit leg of an own-account Transfer, which links by the same read rule as the debit.">]>;
|
|
2680
2680
|
}, undefined>;
|
|
2681
2681
|
}, undefined>, undefined>;
|
|
2682
2682
|
readonly pageInfo: v.StrictObjectSchema<{
|
|
@@ -2778,8 +2778,8 @@ export declare const contract: {
|
|
|
2778
2778
|
national_id: string | null;
|
|
2779
2779
|
}, "The Receptor: the account the money lands on and its holder.">]>;
|
|
2780
2780
|
readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
|
|
2781
|
-
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer
|
|
2782
|
-
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer
|
|
2781
|
+
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer submitted through `POST /transfers` (approved when it was submitted, so there was no request).">]>;
|
|
2782
|
+
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer that submitted it through `POST /transfers`, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent, even after it is approved. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
|
|
2783
2783
|
readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
|
|
2784
2784
|
readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
|
|
2785
2785
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -3298,8 +3298,8 @@ export declare const contract: {
|
|
|
3298
3298
|
national_id: string | null;
|
|
3299
3299
|
}, "The Receptor: the account the money lands on and its holder.">]>;
|
|
3300
3300
|
readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
|
|
3301
|
-
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer
|
|
3302
|
-
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer
|
|
3301
|
+
readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer submitted through `POST /transfers` (approved when it was submitted, so there was no request).">]>;
|
|
3302
|
+
readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer that submitted it through `POST /transfers`, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent, even after it is approved. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
|
|
3303
3303
|
readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
|
|
3304
3304
|
readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
|
|
3305
3305
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -4111,7 +4111,7 @@ export declare const contract: {
|
|
|
4111
4111
|
claims: {
|
|
4112
4112
|
[x: string]: unknown;
|
|
4113
4113
|
};
|
|
4114
|
-
}, "The verified `kid`, algorithm and claims of a Signed Instruction that verified against the
|
|
4114
|
+
}, "The verified `kid`, algorithm and claims of a Signed Instruction that verified against the keys of a person who may sign for the Grant's holder. `claims` is the decoded JWT payload as signed -- this operation checks only `exp` and `jti` structurally and otherwise passes every claim through untouched, so it never narrows to one Intent family's claim schema.">]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidToken, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").PayloadTooLarge, typeof import("./common.js").UnsupportedMediaType, typeof import("./signatures.js").UnverifiedSignedInstruction, typeof import("./common.js").TemporarilyUnavailable]>>;
|
|
4115
4115
|
};
|
|
4116
4116
|
/**
|
|
4117
4117
|
* The Valibot schemas the OpenAPI document writes once under `components.schemas`, by name, and
|