@andco/protocol 0.1.0-ti.1 → 0.1.0-ti.2

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.
@@ -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",
@@ -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 credit, 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.">]>;
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 credit, 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.">]>;
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 credit, 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.">]>;
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<{
@@ -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 credit, 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.")),
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.");
@@ -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").ApprovedUseTransfers, 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").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]>>;
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").ApprovedUseTransfers, 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<{
@@ -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 credit, 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.">]>;
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<{
@@ -650,6 +650,47 @@ declare const InvalidDestination_base: (abstract new (intentId?: string, message
650
650
  /** The destination of a transfer, or the account a deposit names, is not one the Grant admits. */
651
651
  export declare class InvalidDestination extends /* @__PURE__ */ InvalidDestination_base {
652
652
  }
653
+ declare const DestinationNotOwnAccount_base: (abstract new (intentId?: string, message?: string) => {
654
+ readonly error: "destination_not_own_account";
655
+ readonly hint?: string;
656
+ readonly data: {
657
+ intent_id?: string | undefined;
658
+ };
659
+ name: string;
660
+ message: string;
661
+ stack?: string;
662
+ cause?: unknown;
663
+ }) & {
664
+ readonly error: "destination_not_own_account";
665
+ readonly status: 422;
666
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
667
+ readonly intent_id: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "The Intent the refusal is about, when it was refused at its release rather than at its creation.">]>;
668
+ }, undefined>, v.DescriptionAction<{
669
+ intent_id?: string | undefined;
670
+ }, string>]>;
671
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): (abstract new (data: v.InferOutput<Data>, message?: string, hint?: string) => {
672
+ readonly error: Code;
673
+ readonly hint?: string;
674
+ readonly data: v.InferOutput<Data>;
675
+ name: string;
676
+ message: string;
677
+ stack?: string;
678
+ cause?: unknown;
679
+ }) & {
680
+ readonly error: Code;
681
+ readonly status: Status;
682
+ readonly data: Data;
683
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): /*elided*/ any;
684
+ };
685
+ };
686
+ /**
687
+ * The receiver of a transfer is not an account of the Grant's subject, and the only authority the
688
+ * Grant holds for a transfer is `bank_own_account_transfer`, which never moves money out of its
689
+ * holder. At creation nothing is created. A transfer that leaves its holder needs `bank_transfer`
690
+ * `create`.
691
+ */
692
+ export declare class DestinationNotOwnAccount extends /* @__PURE__ */ DestinationNotOwnAccount_base {
693
+ }
653
694
  declare const DepositDestinationAmbiguous_base: (abstract new (intentId?: string, message?: string) => {
654
695
  readonly error: "deposit_destination_ambiguous";
655
696
  readonly hint?: string;
@@ -3117,7 +3158,7 @@ export declare const createIntent: import("@orpc/contract").ProcedureContractBui
3117
3158
  server_time: string;
3118
3159
  created_at: string;
3119
3160
  authorization_url: string;
3120
- }, "Authoritative Project-facing state of an account closure. It carries no amount and no fee.">]>], undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof IdempotencyKeyNotAllowed, typeof ApprovedUseTransfers, typeof InvalidSignedInstruction, typeof InvalidToken, typeof ExpiredSignedInstruction, typeof InvalidOrigin, typeof InsufficientAuthorization, typeof AccountKeyOutOfGrant, typeof NotFound, typeof UnsupportedVersion, typeof ServerError, typeof IdempotencyConflict, typeof IntentInteractionRequired, typeof AccountKeyTaken, typeof BankAccountQuotaExceeded, typeof InvalidIntentState, typeof IntentExpired, typeof PayloadTooLarge, typeof UnsupportedMediaType, typeof DepositAmountOutOfBounds, typeof DepositDestinationAmbiguous, typeof AmountOutOfGrant, typeof InvalidSource, typeof InvalidDestination, typeof TransferSenderIdentityUnavailable, typeof UnsupportedBank, typeof BankConnectionUnavailable, typeof BankAccountNumberMissing, typeof BankAuthorizationDenied, typeof BankHolderWithoutAccount, typeof BankAccountLimitReached, typeof BankRefused, typeof InsufficientFunds, typeof BankRejected, typeof BankReviewRequired, typeof NotImplemented, typeof TemporarilyUnavailable]>>;
3161
+ }, "Authoritative Project-facing state of an account closure. It carries no amount and no fee.">]>], undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof IdempotencyKeyNotAllowed, typeof ApprovedUseTransfers, typeof InvalidSignedInstruction, typeof InvalidToken, typeof ExpiredSignedInstruction, typeof InvalidOrigin, typeof InsufficientAuthorization, typeof AccountKeyOutOfGrant, typeof NotFound, typeof UnsupportedVersion, typeof ServerError, typeof IdempotencyConflict, typeof IntentInteractionRequired, typeof AccountKeyTaken, typeof BankAccountQuotaExceeded, typeof InvalidIntentState, typeof IntentExpired, typeof PayloadTooLarge, typeof UnsupportedMediaType, typeof DepositAmountOutOfBounds, typeof DepositDestinationAmbiguous, typeof DestinationNotOwnAccount, typeof AmountOutOfGrant, typeof InvalidSource, typeof InvalidDestination, typeof TransferSenderIdentityUnavailable, typeof UnsupportedBank, typeof BankConnectionUnavailable, typeof BankAccountNumberMissing, typeof BankAuthorizationDenied, typeof BankHolderWithoutAccount, typeof BankAccountLimitReached, typeof BankRefused, typeof InsufficientFunds, typeof BankRejected, typeof BankReviewRequired, typeof NotImplemented, typeof TemporarilyUnavailable]>>;
3121
3162
  /** Reads one Intent created under the same exact OAuth Grant. */
3122
3163
  export declare const getIntent: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
3123
3164
  readonly intent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
@@ -1 +1 @@
1
- {"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../../src/rest/intents.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAc7B,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EAER,eAAe,EACf,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBrB;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,eAAe,CAAC,6BAS7D;gBACa,OAAO,CAAC,EAAE,MAAM;CAG7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,eAAe,CAAC,+BAS/D;gBACa,OAAO,CAAC,EAAE,MAAM;CAG7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,eAAe,CAAC,yBASzD;gBACa,OAAO,CAAC,EAAE,MAAM;CAG7B;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0aA4BR,CAAC;AAElB,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8PAuBA,CAAC"}
@@ -177,6 +177,14 @@ export class InvalidSource extends /* @__PURE__ */ intentRefusal("invalid_source
177
177
  /** The destination of a transfer, or the account a deposit names, is not one the Grant admits. */
178
178
  export class InvalidDestination extends /* @__PURE__ */ intentRefusal("invalid_destination", "The destination is not one the Grant admits.") {
179
179
  }
180
+ /**
181
+ * The receiver of a transfer is not an account of the Grant's subject, and the only authority the
182
+ * Grant holds for a transfer is `bank_own_account_transfer`, which never moves money out of its
183
+ * holder. At creation nothing is created. A transfer that leaves its holder needs `bank_transfer`
184
+ * `create`.
185
+ */
186
+ export class DestinationNotOwnAccount extends /* @__PURE__ */ intentRefusal("destination_not_own_account", "The receiver is not an account of the Grant's subject; a transfer between own accounts never leaves its holder.") {
187
+ }
180
188
  /**
181
189
  * A deposit named no `destination` and the `bank_deposit` Grant admits more than one account. Name
182
190
  * the account in `destination`; a new Grant is not needed.
@@ -457,13 +465,13 @@ export const createIntent = /* @__PURE__ */ oc
457
465
  method: "POST",
458
466
  path: "/intents",
459
467
  summary: "Create an intent under the exact OAuth Grant",
460
- description: "The same creation has three representations, and the content type picks between them. An `application/json` body is an Intent born waiting for an Approval. An `application/jwt` body is one Signed Instruction, sent as a compact JWS whose verified payload is `SignedAccountOpeningIntentClaims` or `SignedAccountClosureIntentClaims`, and every value the operation uses comes from those claims and none from the envelope carrying them. An `application/jose+json` body is a signed transfer with `approved: false`: a `SignedTransferEnvelope`, a JWS in the General JSON Serialization, whose payload is `SignedTransferClaims`. It creates a transfer Intent that waits for a decision and answers a TransferIntent with `transfer_id` null. It is verified as `POST /transfers` verifies a signed transfer, with the same rules for the `jti` (a UUID in lowercase, and the only idempotency-key), `exp`, the keys, the `sender` and the `receiver`; the `unusable_key` reason means that the key is registered, but AndCo could not load it to check this signature, so its person registers a new key and revokes this one, then you sign again. A repeat of the same envelope answers the same Intent, and another body under the same `jti` answers `409 idempotency_conflict`. A signed transfer with `approved: true` answers `400 approved_use_transfers` and nothing is recorded: its signature is the approval, so send it to `POST /transfers`. A signed account opening or closure with `approved: true` stays accepted here and is born approved. A string body sent as anything but `application/jwt` answers `415 unsupported_media_type`. A Signed Instruction that does not verify answers `400 invalid_signed_instruction` with its `reason`, and one whose `exp` passed `401 expired_signed_instruction`. A signed account Intent is born approved when the signing client's Grant holds the family's `approve` action (`bank_account`); otherwise it waits, like a proposal, for the person on the hosted screen or for `POST /intents/{intent_id}/approve` by a Grant that holds it. Opening and closing an account fail synchronously with `403 account_key_out_of_grant` when the account_key is outside the Grant's `accounts` patterns and with `409 account_key_taken` when the account_key names an account of the subject (always for a closed one; otherwise unless `upsert`). The new account's number arrives in the `account_opening.succeeded` event as `account: { id, accountKey, number, name }`. Once the request is valid and authorized (a malformed body is still `400 invalid_request` and a Grant without the permission still `403 insufficient_authorization`), an opening and a transfer between two accounts of the same holder work where the bank serves them: the answer is `201` with the Intent `requires_action` and its `authorization_url`, or, for a signed account Intent whose signer also holds the family's `approve`, the Intent born `approved`. Where the deployment's bank does not serve one, the same request answers `501 not_implemented` with `code: account_opening_not_implemented` or `code: own_account_transfer_not_implemented`; a closure always answers `501 not_implemented` with `code: account_closure_not_implemented`. Nothing is created in those cases. A subject without a bank connection to a company cannot open an account: `422 bank_connection_unavailable` with the `intent_id`. A signed account Intent born approved answers the refusals of `POST /intents/{intent_id}/approve`.",
468
+ description: "The same creation has three representations, and the content type picks between them. An `application/json` body is an Intent born waiting for an Approval. An `application/jwt` body is one Signed Instruction, sent as a compact JWS whose verified payload is `SignedAccountOpeningIntentClaims` or `SignedAccountClosureIntentClaims`, and every value the operation uses comes from those claims and none from the envelope carrying them. An `application/jose+json` body is a signed transfer with `approved: false`: a `SignedTransferEnvelope`, a JWS in the General JSON Serialization, whose payload is `SignedTransferClaims`. It creates a transfer Intent that waits for a decision and answers a TransferIntent with `transfer_id` null. It is verified as `POST /transfers` verifies a signed transfer, with the same rules for the `jti` (a UUID in lowercase, and the only idempotency-key), `exp`, the keys, the `sender` and the `receiver`; the `unusable_key` reason means that the key is registered, but AndCo could not load it to check this signature, so its person registers a new key and revokes this one, then you sign again. A repeat of the same envelope answers the same Intent, and another body under the same `jti` answers `409 idempotency_conflict`. A signed transfer with `approved: true` answers `400 approved_use_transfers` and nothing is recorded: its signature is the approval, so send it to `POST /transfers`. A signed account opening or closure with `approved: true` stays accepted here and is born approved. A string body sent as anything but `application/jwt` answers `415 unsupported_media_type`. A Signed Instruction that does not verify answers `400 invalid_signed_instruction` with its `reason`, and one whose `exp` passed `401 expired_signed_instruction`. A signed account Intent is born approved when the signing client's Grant holds the family's `approve` action (`bank_account`); otherwise it waits, like a proposal, for the person on the hosted screen or for `POST /intents/{intent_id}/approve` by a Grant that holds it. Opening and closing an account fail synchronously with `403 account_key_out_of_grant` when the account_key is outside the Grant's `accounts` patterns and with `409 account_key_taken` when the account_key names an account of the subject (always for a closed one; otherwise unless `upsert`). The new account's number arrives in the `account_opening.succeeded` event as `account: { id, accountKey, number, name }`. Once the request is valid and authorized (a malformed body is still `400 invalid_request` and a Grant without the permission still `403 insufficient_authorization`), an opening and a `bank_transfer` proposal between two accounts of the same holder work where the bank serves them: the answer is `201` with the Intent `requires_action` and its `authorization_url`, or, for a signed account Intent whose signer also holds the family's `approve`, the Intent born `approved`. A transfer that `bank_own_account_transfer` covers is released at once instead (below). Where the deployment's bank does not serve one, the same request answers `501 not_implemented` with `code: account_opening_not_implemented` or `code: own_account_transfer_not_implemented`; a closure always answers `501 not_implemented` with `code: account_closure_not_implemented`. Nothing is created in those cases. A subject without a bank connection to a company cannot open an account: `422 bank_connection_unavailable` with the `intent_id`. A signed account Intent born approved answers the refusals of `POST /intents/{intent_id}/approve`.\n\nA `transfer` proposal needs `bank_transfer` `create` or `bank_own_account_transfer` `create`. When the Grant holds `bank_own_account_transfer` `create` whose `accounts` cover the named `sender` and `receiver` (two different active accounts of the Grant's subject) and the amount is not `editable`, the answer is a TransferIntent born `approved` with `transfer_id` set: nobody decides it, and it is released at once with nobody present. Its outcome lives on the Transfer, which reads `processing` and then `succeeded` or `failed`, never on the Intent. The same `Idempotency-Key` never names both kinds of transfer (`409 idempotency_conflict`). Any other transfer is a `bank_transfer` proposal, bounded by that detail alone. A Grant that holds no `bank_transfer` `create` refuses what `bank_own_account_transfer` does not cover with nothing created: `422 destination_not_own_account` when the `receiver` is missing or is not an account of the subject, `422 invalid_source` when the `sender` is missing, unusable or outside `accounts`, `422 invalid_destination` when the `receiver` cannot receive (closed, another currency, the `sender` itself) or is outside `accounts`, and `400 invalid_request` with the detail `transfer_amount_not_editable` for an editable amount. Where the deployment's bank does not serve transfers between own accounts, `501 not_implemented` with `code: own_account_transfer_not_implemented`. If the release cannot go on because only a person can, the answer is `409 interaction_required` before anything is stored. If it fails after the Transfer was stored, the same request sent again releases that Transfer again and answers the same Intent. An approved Intent has no client cancel.",
461
469
  successStatus: 201,
462
470
  successDescription: "Intent created or returned from an idempotent retry",
463
471
  inputStructure: "detailed",
464
472
  spec: (operation) => servedAsSignedInstructionOrTransfer(withCanonicalHeaderNames(operation)),
465
473
  }))
466
- .errors(errors(InvalidRequest, IdempotencyKeyNotAllowed, ApprovedUseTransfers, InvalidSignedInstruction, InvalidToken, ExpiredSignedInstruction, InvalidOrigin, InsufficientAuthorization, AccountKeyOutOfGrant, NotFound, UnsupportedVersion, ServerError, IdempotencyConflict, IntentInteractionRequired, AccountKeyTaken, BankAccountQuotaExceeded, InvalidIntentState, IntentExpired, PayloadTooLarge, UnsupportedMediaType, DepositAmountOutOfBounds, DepositDestinationAmbiguous, ...releaseRefusals, NotImplemented, TemporarilyUnavailable))
474
+ .errors(errors(InvalidRequest, IdempotencyKeyNotAllowed, ApprovedUseTransfers, InvalidSignedInstruction, InvalidToken, ExpiredSignedInstruction, InvalidOrigin, InsufficientAuthorization, AccountKeyOutOfGrant, NotFound, UnsupportedVersion, ServerError, IdempotencyConflict, IntentInteractionRequired, AccountKeyTaken, BankAccountQuotaExceeded, InvalidIntentState, IntentExpired, PayloadTooLarge, UnsupportedMediaType, DepositAmountOutOfBounds, DepositDestinationAmbiguous, DestinationNotOwnAccount, ...releaseRefusals, NotImplemented, TemporarilyUnavailable))
467
475
  .input(v.object({
468
476
  headers: v.object({
469
477
  "idempotency-key": v.pipe(v.optional(v.pipe(v.string(), v.regex(/^[A-Za-z0-9._:-]{1,128}$/))), v.description("Required with `application/json`, and refused with `application/jwt` and `application/jose+json`, which answer `400 idempotency_key_not_allowed` when it arrives beside a signature: the idempotency key of a Signed Instruction is its own `jti`, and two candidates for one key is exactly the ambiguity that gets read the wrong way round. OpenAPI cannot make a header conditional on the media type, so it is published as optional rather than demanding what the server refuses.")),