@constructive-io/sdk 0.25.8 → 0.25.10
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/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -1866,6 +1866,320 @@ export interface IntervalFilter {
|
|
|
1866
1866
|
/** Greater than or equal to the specified value. */
|
|
1867
1867
|
greaterThanOrEqualTo?: IntervalInput;
|
|
1868
1868
|
}
|
|
1869
|
+
/** An input for mutations affecting `AppLimitCapsDefault` */
|
|
1870
|
+
export interface AppLimitCapsDefaultInput {
|
|
1871
|
+
id?: string;
|
|
1872
|
+
/** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
|
|
1873
|
+
name: string;
|
|
1874
|
+
/** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
|
|
1875
|
+
max?: string;
|
|
1876
|
+
}
|
|
1877
|
+
/** An input for mutations affecting `OrgLimitCapsDefault` */
|
|
1878
|
+
export interface OrgLimitCapsDefaultInput {
|
|
1879
|
+
id?: string;
|
|
1880
|
+
/** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
|
|
1881
|
+
name: string;
|
|
1882
|
+
/** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
|
|
1883
|
+
max?: string;
|
|
1884
|
+
}
|
|
1885
|
+
/** An input for mutations affecting `AppLimitCap` */
|
|
1886
|
+
export interface AppLimitCapInput {
|
|
1887
|
+
id?: string;
|
|
1888
|
+
/** Name identifier of the cap being overridden */
|
|
1889
|
+
name: string;
|
|
1890
|
+
/** Entity this cap override applies to */
|
|
1891
|
+
entityId: string;
|
|
1892
|
+
/** Override cap value for this entity */
|
|
1893
|
+
max?: string;
|
|
1894
|
+
}
|
|
1895
|
+
/** An input for mutations affecting `OrgLimitCap` */
|
|
1896
|
+
export interface OrgLimitCapInput {
|
|
1897
|
+
id?: string;
|
|
1898
|
+
/** Name identifier of the cap being overridden */
|
|
1899
|
+
name: string;
|
|
1900
|
+
/** Entity this cap override applies to */
|
|
1901
|
+
entityId: string;
|
|
1902
|
+
/** Override cap value for this entity */
|
|
1903
|
+
max?: string;
|
|
1904
|
+
}
|
|
1905
|
+
/** An input for mutations affecting `AppLimitDefault` */
|
|
1906
|
+
export interface AppLimitDefaultInput {
|
|
1907
|
+
id?: string;
|
|
1908
|
+
/** Name identifier of the limit this default applies to */
|
|
1909
|
+
name: string;
|
|
1910
|
+
/** Default maximum usage allowed for this limit */
|
|
1911
|
+
max?: string;
|
|
1912
|
+
/** Default soft limit threshold for warnings; NULL means no soft limit */
|
|
1913
|
+
softMax?: string;
|
|
1914
|
+
}
|
|
1915
|
+
/** An input for mutations affecting `AppLimitCredit` */
|
|
1916
|
+
export interface AppLimitCreditInput {
|
|
1917
|
+
id?: string;
|
|
1918
|
+
/** FK to default_limits — which limit definition this credit applies to */
|
|
1919
|
+
defaultLimitId: string;
|
|
1920
|
+
/** User this credit is for; NULL for aggregate entity-level credits */
|
|
1921
|
+
actorId?: string;
|
|
1922
|
+
/** Number of credits to grant (positive to add, negative to revoke) */
|
|
1923
|
+
amount: string;
|
|
1924
|
+
/** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
|
|
1925
|
+
creditType?: string;
|
|
1926
|
+
/** Optional reason for the credit grant (promo code, admin grant, etc.) */
|
|
1927
|
+
reason?: string;
|
|
1928
|
+
}
|
|
1929
|
+
/** An input for mutations affecting `AppLimitCreditCodeItem` */
|
|
1930
|
+
export interface AppLimitCreditCodeItemInput {
|
|
1931
|
+
id?: string;
|
|
1932
|
+
/** FK to credit_codes — which code this item belongs to */
|
|
1933
|
+
creditCodeId: string;
|
|
1934
|
+
/** FK to default_limits — which limit this item grants credits for */
|
|
1935
|
+
defaultLimitId: string;
|
|
1936
|
+
/** Number of credits this item grants per redemption */
|
|
1937
|
+
amount: string;
|
|
1938
|
+
/** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
|
|
1939
|
+
creditType?: string;
|
|
1940
|
+
}
|
|
1941
|
+
/** An input for mutations affecting `AppLimitCreditRedemption` */
|
|
1942
|
+
export interface AppLimitCreditRedemptionInput {
|
|
1943
|
+
id?: string;
|
|
1944
|
+
/** FK to credit_codes — which code is being redeemed */
|
|
1945
|
+
creditCodeId: string;
|
|
1946
|
+
/** Entity receiving the credits (personal org user_id or org entity_id) */
|
|
1947
|
+
entityId: string;
|
|
1948
|
+
/** Resolved billable organization via get_organization_id */
|
|
1949
|
+
organizationId?: string;
|
|
1950
|
+
/** Membership prefix identifying the entity kind (org, team, app) */
|
|
1951
|
+
entityType?: string;
|
|
1952
|
+
}
|
|
1953
|
+
/** An input for mutations affecting `OrgLimitDefault` */
|
|
1954
|
+
export interface OrgLimitDefaultInput {
|
|
1955
|
+
id?: string;
|
|
1956
|
+
/** Name identifier of the limit this default applies to */
|
|
1957
|
+
name: string;
|
|
1958
|
+
/** Default maximum usage allowed for this limit */
|
|
1959
|
+
max?: string;
|
|
1960
|
+
/** Default soft limit threshold for warnings; NULL means no soft limit */
|
|
1961
|
+
softMax?: string;
|
|
1962
|
+
}
|
|
1963
|
+
/** An input for mutations affecting `OrgLimitCredit` */
|
|
1964
|
+
export interface OrgLimitCreditInput {
|
|
1965
|
+
id?: string;
|
|
1966
|
+
/** FK to default_limits — which limit definition this credit applies to */
|
|
1967
|
+
defaultLimitId: string;
|
|
1968
|
+
/** User this credit is for; NULL for aggregate entity-level credits */
|
|
1969
|
+
actorId?: string;
|
|
1970
|
+
/** Entity this credit applies to; NULL for actor-only credits */
|
|
1971
|
+
entityId?: string;
|
|
1972
|
+
/** Resolved billable organization via get_organization_id */
|
|
1973
|
+
organizationId?: string;
|
|
1974
|
+
/** Membership prefix identifying the entity kind (org, team, app) */
|
|
1975
|
+
entityType?: string;
|
|
1976
|
+
/** Number of credits to grant (positive to add, negative to revoke) */
|
|
1977
|
+
amount: string;
|
|
1978
|
+
/** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
|
|
1979
|
+
creditType?: string;
|
|
1980
|
+
/** Optional reason for the credit grant (promo code, admin grant, etc.) */
|
|
1981
|
+
reason?: string;
|
|
1982
|
+
}
|
|
1983
|
+
/** An input for mutations affecting `AppLimitWarning` */
|
|
1984
|
+
export interface AppLimitWarningInput {
|
|
1985
|
+
id?: string;
|
|
1986
|
+
/** Limit name this warning applies to (must match a default_limits entry) */
|
|
1987
|
+
name: string;
|
|
1988
|
+
/** Threshold type: absolute (fixed count) or percentage (of max) */
|
|
1989
|
+
warningType: string;
|
|
1990
|
+
/** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
|
|
1991
|
+
thresholdValue: string;
|
|
1992
|
+
/** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
|
|
1993
|
+
taskIdentifier: string;
|
|
1994
|
+
}
|
|
1995
|
+
/** An input for mutations affecting `OrgLimitWarning` */
|
|
1996
|
+
export interface OrgLimitWarningInput {
|
|
1997
|
+
id?: string;
|
|
1998
|
+
/** Limit name this warning applies to (must match a default_limits entry) */
|
|
1999
|
+
name: string;
|
|
2000
|
+
/** Threshold type: absolute (fixed count) or percentage (of max) */
|
|
2001
|
+
warningType: string;
|
|
2002
|
+
/** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
|
|
2003
|
+
thresholdValue: string;
|
|
2004
|
+
/** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
|
|
2005
|
+
taskIdentifier: string;
|
|
2006
|
+
/** Per-entity override (NULL = scope default for all entities) */
|
|
2007
|
+
entityId?: string;
|
|
2008
|
+
}
|
|
2009
|
+
/** An input for mutations affecting `AppLimitCreditCode` */
|
|
2010
|
+
export interface AppLimitCreditCodeInput {
|
|
2011
|
+
id?: string;
|
|
2012
|
+
/** Human-readable credit code (case-insensitive, unique) */
|
|
2013
|
+
code: string;
|
|
2014
|
+
/** Maximum total redemptions allowed; NULL for unlimited */
|
|
2015
|
+
maxRedemptions?: number;
|
|
2016
|
+
/** Current number of redemptions (incremented by trigger on credit_redemptions) */
|
|
2017
|
+
currentRedemptions?: number;
|
|
2018
|
+
/** Expiration timestamp; NULL for no expiry */
|
|
2019
|
+
expiresAt?: string;
|
|
2020
|
+
}
|
|
2021
|
+
/** An input for mutations affecting `AppLimitEvent` */
|
|
2022
|
+
export interface AppLimitEventInput {
|
|
2023
|
+
createdAt?: string;
|
|
2024
|
+
/** Unique identifier for each limit event */
|
|
2025
|
+
id?: string;
|
|
2026
|
+
/** Limit name this event applies to */
|
|
2027
|
+
name?: string;
|
|
2028
|
+
/** User who triggered this event; NULL for system/aggregate events */
|
|
2029
|
+
actorId?: string;
|
|
2030
|
+
/** Entity this event applies to; NULL for app-level events */
|
|
2031
|
+
entityId?: string;
|
|
2032
|
+
/** Resolved billable organization via get_organization_id; NULL for app-level events */
|
|
2033
|
+
organizationId?: string;
|
|
2034
|
+
/** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
|
|
2035
|
+
entityType?: string;
|
|
2036
|
+
/** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
|
|
2037
|
+
eventType?: string;
|
|
2038
|
+
/** Change amount: positive for increment, negative for decrement */
|
|
2039
|
+
delta?: string;
|
|
2040
|
+
/** Usage count before this event */
|
|
2041
|
+
numBefore?: string;
|
|
2042
|
+
/** Usage count after this event */
|
|
2043
|
+
numAfter?: string;
|
|
2044
|
+
/** Max limit ceiling at the time of this event */
|
|
2045
|
+
maxAtEvent?: string;
|
|
2046
|
+
/** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
|
|
2047
|
+
reason?: string;
|
|
2048
|
+
}
|
|
2049
|
+
/** An input for mutations affecting `OrgLimitEvent` */
|
|
2050
|
+
export interface OrgLimitEventInput {
|
|
2051
|
+
createdAt?: string;
|
|
2052
|
+
/** Unique identifier for each limit event */
|
|
2053
|
+
id?: string;
|
|
2054
|
+
/** Limit name this event applies to */
|
|
2055
|
+
name?: string;
|
|
2056
|
+
/** User who triggered this event; NULL for system/aggregate events */
|
|
2057
|
+
actorId?: string;
|
|
2058
|
+
/** Entity this event applies to; NULL for app-level events */
|
|
2059
|
+
entityId?: string;
|
|
2060
|
+
/** Resolved billable organization via get_organization_id; NULL for app-level events */
|
|
2061
|
+
organizationId?: string;
|
|
2062
|
+
/** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
|
|
2063
|
+
entityType?: string;
|
|
2064
|
+
/** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
|
|
2065
|
+
eventType?: string;
|
|
2066
|
+
/** Change amount: positive for increment, negative for decrement */
|
|
2067
|
+
delta?: string;
|
|
2068
|
+
/** Usage count before this event */
|
|
2069
|
+
numBefore?: string;
|
|
2070
|
+
/** Usage count after this event */
|
|
2071
|
+
numAfter?: string;
|
|
2072
|
+
/** Max limit ceiling at the time of this event */
|
|
2073
|
+
maxAtEvent?: string;
|
|
2074
|
+
/** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
|
|
2075
|
+
reason?: string;
|
|
2076
|
+
}
|
|
2077
|
+
/** An input for mutations affecting `AppLimit` */
|
|
2078
|
+
export interface AppLimitInput {
|
|
2079
|
+
id?: string;
|
|
2080
|
+
/** Name identifier of the limit being tracked */
|
|
2081
|
+
name?: string;
|
|
2082
|
+
/** User whose usage is being tracked against this limit */
|
|
2083
|
+
actorId: string;
|
|
2084
|
+
/** Current usage count for this actor and limit */
|
|
2085
|
+
num?: string;
|
|
2086
|
+
/** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
|
|
2087
|
+
max?: string;
|
|
2088
|
+
/** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
|
|
2089
|
+
softMax?: string;
|
|
2090
|
+
/** Start of the current metering window; NULL means no time window */
|
|
2091
|
+
windowStart?: string;
|
|
2092
|
+
/** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
|
|
2093
|
+
windowDuration?: IntervalInput;
|
|
2094
|
+
/** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
|
|
2095
|
+
planMax?: string;
|
|
2096
|
+
/** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
|
|
2097
|
+
purchasedCredits?: string;
|
|
2098
|
+
/** Temporary credits for the current billing window. Resets to 0 on window expiry. */
|
|
2099
|
+
periodCredits?: string;
|
|
2100
|
+
/** Resolved billable organization via get_organization_id */
|
|
2101
|
+
organizationId?: string;
|
|
2102
|
+
/** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
|
|
2103
|
+
entityType?: string;
|
|
2104
|
+
}
|
|
2105
|
+
/** An interval of time that has passed where the smallest distinct unit is a second. */
|
|
2106
|
+
export interface IntervalInput {
|
|
2107
|
+
/**
|
|
2108
|
+
* A quantity of seconds. This is the only non-integer field, as all the other
|
|
2109
|
+
* fields will dump their overflow into a smaller unit of time. Intervals don’t
|
|
2110
|
+
* have a smaller unit than seconds.
|
|
2111
|
+
*/
|
|
2112
|
+
seconds?: number;
|
|
2113
|
+
/** A quantity of minutes. */
|
|
2114
|
+
minutes?: number;
|
|
2115
|
+
/** A quantity of hours. */
|
|
2116
|
+
hours?: number;
|
|
2117
|
+
/** A quantity of days. */
|
|
2118
|
+
days?: number;
|
|
2119
|
+
/** A quantity of months. */
|
|
2120
|
+
months?: number;
|
|
2121
|
+
/** A quantity of years. */
|
|
2122
|
+
years?: number;
|
|
2123
|
+
}
|
|
2124
|
+
/** An input for mutations affecting `OrgLimitAggregate` */
|
|
2125
|
+
export interface OrgLimitAggregateInput {
|
|
2126
|
+
id?: string;
|
|
2127
|
+
/** Name identifier of the aggregate limit being tracked */
|
|
2128
|
+
name?: string;
|
|
2129
|
+
/** Entity (org) whose aggregate usage is being tracked */
|
|
2130
|
+
entityId: string;
|
|
2131
|
+
/** Current aggregate usage count for this entity and limit */
|
|
2132
|
+
num?: string;
|
|
2133
|
+
/** Maximum allowed aggregate usage; negative means unlimited */
|
|
2134
|
+
max?: string;
|
|
2135
|
+
/** Soft limit threshold for warnings; NULL means no soft limit */
|
|
2136
|
+
softMax?: string;
|
|
2137
|
+
/** Start of the current metering window; NULL means no time window */
|
|
2138
|
+
windowStart?: string;
|
|
2139
|
+
/** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
|
|
2140
|
+
windowDuration?: IntervalInput;
|
|
2141
|
+
/** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
|
|
2142
|
+
planMax?: string;
|
|
2143
|
+
/** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
|
|
2144
|
+
purchasedCredits?: string;
|
|
2145
|
+
/** Temporary credits for the current billing window. Resets to 0 on window expiry. */
|
|
2146
|
+
periodCredits?: string;
|
|
2147
|
+
/** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */
|
|
2148
|
+
reserved?: string;
|
|
2149
|
+
/** Resolved billable organization via get_organization_id */
|
|
2150
|
+
organizationId?: string;
|
|
2151
|
+
/** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
|
|
2152
|
+
entityType?: string;
|
|
2153
|
+
}
|
|
2154
|
+
/** An input for mutations affecting `OrgLimit` */
|
|
2155
|
+
export interface OrgLimitInput {
|
|
2156
|
+
id?: string;
|
|
2157
|
+
/** Name identifier of the limit being tracked */
|
|
2158
|
+
name?: string;
|
|
2159
|
+
/** User whose usage is being tracked against this limit */
|
|
2160
|
+
actorId: string;
|
|
2161
|
+
/** Current usage count for this actor and limit */
|
|
2162
|
+
num?: string;
|
|
2163
|
+
/** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
|
|
2164
|
+
max?: string;
|
|
2165
|
+
/** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
|
|
2166
|
+
softMax?: string;
|
|
2167
|
+
/** Start of the current metering window; NULL means no time window */
|
|
2168
|
+
windowStart?: string;
|
|
2169
|
+
/** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
|
|
2170
|
+
windowDuration?: IntervalInput;
|
|
2171
|
+
/** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
|
|
2172
|
+
planMax?: string;
|
|
2173
|
+
/** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
|
|
2174
|
+
purchasedCredits?: string;
|
|
2175
|
+
/** Temporary credits for the current billing window. Resets to 0 on window expiry. */
|
|
2176
|
+
periodCredits?: string;
|
|
2177
|
+
entityId: string;
|
|
2178
|
+
/** Resolved billable organization via get_organization_id */
|
|
2179
|
+
organizationId?: string;
|
|
2180
|
+
/** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
|
|
2181
|
+
entityType?: string;
|
|
2182
|
+
}
|
|
1869
2183
|
/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
|
|
1870
2184
|
export interface AppLimitCreditFilter {
|
|
1871
2185
|
/** Filter by the object’s `id` field. */
|
|
@@ -1962,25 +2276,6 @@ export interface AppLimitCreditRedemptionFilter {
|
|
|
1962
2276
|
/** Filter by the object’s `creditCode` relation. */
|
|
1963
2277
|
creditCode?: AppLimitCreditCodeFilter;
|
|
1964
2278
|
}
|
|
1965
|
-
/** An interval of time that has passed where the smallest distinct unit is a second. */
|
|
1966
|
-
export interface IntervalInput {
|
|
1967
|
-
/**
|
|
1968
|
-
* A quantity of seconds. This is the only non-integer field, as all the other
|
|
1969
|
-
* fields will dump their overflow into a smaller unit of time. Intervals don’t
|
|
1970
|
-
* have a smaller unit than seconds.
|
|
1971
|
-
*/
|
|
1972
|
-
seconds?: number;
|
|
1973
|
-
/** A quantity of minutes. */
|
|
1974
|
-
minutes?: number;
|
|
1975
|
-
/** A quantity of hours. */
|
|
1976
|
-
hours?: number;
|
|
1977
|
-
/** A quantity of days. */
|
|
1978
|
-
days?: number;
|
|
1979
|
-
/** A quantity of months. */
|
|
1980
|
-
months?: number;
|
|
1981
|
-
/** A quantity of years. */
|
|
1982
|
-
years?: number;
|
|
1983
|
-
}
|
|
1984
2279
|
/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */
|
|
1985
2280
|
export interface UUIDFilter {
|
|
1986
2281
|
/** Is null (if `true` is specified) or is not null (if `false` is specified). */
|
package/modules/orm/index.d.ts
CHANGED
|
@@ -16,45 +16,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
|
16
16
|
import { UsersModuleModel } from './models/usersModule';
|
|
17
17
|
import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule';
|
|
18
18
|
import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
|
|
19
|
-
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
20
19
|
import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
|
|
20
|
+
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
21
21
|
import { RlsModuleModel } from './models/rlsModule';
|
|
22
22
|
import { BlueprintModel } from './models/blueprint';
|
|
23
23
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
24
24
|
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
25
25
|
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
|
|
26
|
-
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
27
26
|
import { SessionsModuleModel } from './models/sessionsModule';
|
|
28
|
-
import {
|
|
27
|
+
import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
29
28
|
import { MerkleStoreModuleModel } from './models/merkleStoreModule';
|
|
30
29
|
import { GraphModuleModel } from './models/graphModule';
|
|
31
|
-
import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
32
|
-
import { InvitesModuleModel } from './models/invitesModule';
|
|
33
30
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
34
|
-
import {
|
|
31
|
+
import { ConfigSecretsModuleModel } from './models/configSecretsModule';
|
|
32
|
+
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
35
33
|
import { RealtimeModuleModel } from './models/realtimeModule';
|
|
36
34
|
import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
|
|
35
|
+
import { FunctionInvocationModuleModel } from './models/functionInvocationModule';
|
|
36
|
+
import { FunctionModuleModel } from './models/functionModule';
|
|
37
|
+
import { InvitesModuleModel } from './models/invitesModule';
|
|
38
|
+
import { NamespaceModuleModel } from './models/namespaceModule';
|
|
37
39
|
import { ComputeLogModuleModel } from './models/computeLogModule';
|
|
38
40
|
import { InferenceLogModuleModel } from './models/inferenceLogModule';
|
|
39
41
|
import { StorageLogModuleModel } from './models/storageLogModule';
|
|
40
42
|
import { TransferLogModuleModel } from './models/transferLogModule';
|
|
41
|
-
import { DbUsageModuleModel } from './models/dbUsageModule';
|
|
42
|
-
import { NotificationsModuleModel } from './models/notificationsModule';
|
|
43
43
|
import { PlansModuleModel } from './models/plansModule';
|
|
44
|
-
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
45
|
-
import { BillingModuleModel } from './models/billingModule';
|
|
46
44
|
import { BillingProviderModuleModel } from './models/billingProviderModule';
|
|
47
|
-
import {
|
|
45
|
+
import { DbUsageModuleModel } from './models/dbUsageModule';
|
|
46
|
+
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
48
47
|
import { PermissionsModuleModel } from './models/permissionsModule';
|
|
48
|
+
import { NotificationsModuleModel } from './models/notificationsModule';
|
|
49
|
+
import { ProfilesModuleModel } from './models/profilesModule';
|
|
50
|
+
import { BillingModuleModel } from './models/billingModule';
|
|
49
51
|
import { RelationProvisionModel } from './models/relationProvision';
|
|
50
|
-
import { FunctionModuleModel } from './models/functionModule';
|
|
51
52
|
import { UserAuthModuleModel } from './models/userAuthModule';
|
|
52
53
|
import { AgentModuleModel } from './models/agentModule';
|
|
53
54
|
import { LimitsModuleModel } from './models/limitsModule';
|
|
54
55
|
import { MembershipsModuleModel } from './models/membershipsModule';
|
|
56
|
+
import { EntityTypeProvisionModel } from './models/entityTypeProvision';
|
|
55
57
|
import { StorageModuleModel } from './models/storageModule';
|
|
56
58
|
import { EventsModuleModel } from './models/eventsModule';
|
|
57
|
-
import { EntityTypeProvisionModel } from './models/entityTypeProvision';
|
|
58
59
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
59
60
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
60
61
|
export { QueryBuilder } from './query-builder';
|
|
@@ -103,45 +104,46 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
103
104
|
usersModule: UsersModuleModel;
|
|
104
105
|
webauthnCredentialsModule: WebauthnCredentialsModuleModel;
|
|
105
106
|
cryptoAddressesModule: CryptoAddressesModuleModel;
|
|
106
|
-
identityProvidersModule: IdentityProvidersModuleModel;
|
|
107
107
|
denormalizedTableField: DenormalizedTableFieldModel;
|
|
108
|
+
identityProvidersModule: IdentityProvidersModuleModel;
|
|
108
109
|
rlsModule: RlsModuleModel;
|
|
109
110
|
blueprint: BlueprintModel;
|
|
110
111
|
blueprintTemplate: BlueprintTemplateModel;
|
|
111
112
|
blueprintConstruction: BlueprintConstructionModel;
|
|
112
113
|
cryptoAuthModule: CryptoAuthModuleModel;
|
|
113
|
-
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
114
114
|
sessionsModule: SessionsModuleModel;
|
|
115
|
-
|
|
115
|
+
secureTableProvision: SecureTableProvisionModel;
|
|
116
116
|
merkleStoreModule: MerkleStoreModuleModel;
|
|
117
117
|
graphModule: GraphModuleModel;
|
|
118
|
-
secureTableProvision: SecureTableProvisionModel;
|
|
119
|
-
invitesModule: InvitesModuleModel;
|
|
120
118
|
databaseProvisionModule: DatabaseProvisionModuleModel;
|
|
121
|
-
|
|
119
|
+
configSecretsModule: ConfigSecretsModuleModel;
|
|
120
|
+
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
122
121
|
realtimeModule: RealtimeModuleModel;
|
|
123
122
|
webauthnAuthModule: WebauthnAuthModuleModel;
|
|
123
|
+
functionInvocationModule: FunctionInvocationModuleModel;
|
|
124
|
+
functionModule: FunctionModuleModel;
|
|
125
|
+
invitesModule: InvitesModuleModel;
|
|
126
|
+
namespaceModule: NamespaceModuleModel;
|
|
124
127
|
computeLogModule: ComputeLogModuleModel;
|
|
125
128
|
inferenceLogModule: InferenceLogModuleModel;
|
|
126
129
|
storageLogModule: StorageLogModuleModel;
|
|
127
130
|
transferLogModule: TransferLogModuleModel;
|
|
128
|
-
dbUsageModule: DbUsageModuleModel;
|
|
129
|
-
notificationsModule: NotificationsModuleModel;
|
|
130
131
|
plansModule: PlansModuleModel;
|
|
131
|
-
hierarchyModule: HierarchyModuleModel;
|
|
132
|
-
billingModule: BillingModuleModel;
|
|
133
132
|
billingProviderModule: BillingProviderModuleModel;
|
|
134
|
-
|
|
133
|
+
dbUsageModule: DbUsageModuleModel;
|
|
134
|
+
hierarchyModule: HierarchyModuleModel;
|
|
135
135
|
permissionsModule: PermissionsModuleModel;
|
|
136
|
+
notificationsModule: NotificationsModuleModel;
|
|
137
|
+
profilesModule: ProfilesModuleModel;
|
|
138
|
+
billingModule: BillingModuleModel;
|
|
136
139
|
relationProvision: RelationProvisionModel;
|
|
137
|
-
functionModule: FunctionModuleModel;
|
|
138
140
|
userAuthModule: UserAuthModuleModel;
|
|
139
141
|
agentModule: AgentModuleModel;
|
|
140
142
|
limitsModule: LimitsModuleModel;
|
|
141
143
|
membershipsModule: MembershipsModuleModel;
|
|
144
|
+
entityTypeProvision: EntityTypeProvisionModel;
|
|
142
145
|
storageModule: StorageModuleModel;
|
|
143
146
|
eventsModule: EventsModuleModel;
|
|
144
|
-
entityTypeProvision: EntityTypeProvisionModel;
|
|
145
147
|
query: {
|
|
146
148
|
resolveBlueprintField: (args: import("./query").ResolveBlueprintFieldVariables, options?: {
|
|
147
149
|
select?: Record<string, unknown>;
|
package/modules/orm/index.js
CHANGED
|
@@ -39,45 +39,46 @@ const rateLimitsModule_1 = require("./models/rateLimitsModule");
|
|
|
39
39
|
const usersModule_1 = require("./models/usersModule");
|
|
40
40
|
const webauthnCredentialsModule_1 = require("./models/webauthnCredentialsModule");
|
|
41
41
|
const cryptoAddressesModule_1 = require("./models/cryptoAddressesModule");
|
|
42
|
-
const identityProvidersModule_1 = require("./models/identityProvidersModule");
|
|
43
42
|
const denormalizedTableField_1 = require("./models/denormalizedTableField");
|
|
43
|
+
const identityProvidersModule_1 = require("./models/identityProvidersModule");
|
|
44
44
|
const rlsModule_1 = require("./models/rlsModule");
|
|
45
45
|
const blueprint_1 = require("./models/blueprint");
|
|
46
46
|
const blueprintTemplate_1 = require("./models/blueprintTemplate");
|
|
47
47
|
const blueprintConstruction_1 = require("./models/blueprintConstruction");
|
|
48
48
|
const cryptoAuthModule_1 = require("./models/cryptoAuthModule");
|
|
49
|
-
const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
|
|
50
49
|
const sessionsModule_1 = require("./models/sessionsModule");
|
|
51
|
-
const
|
|
50
|
+
const secureTableProvision_1 = require("./models/secureTableProvision");
|
|
52
51
|
const merkleStoreModule_1 = require("./models/merkleStoreModule");
|
|
53
52
|
const graphModule_1 = require("./models/graphModule");
|
|
54
|
-
const secureTableProvision_1 = require("./models/secureTableProvision");
|
|
55
|
-
const invitesModule_1 = require("./models/invitesModule");
|
|
56
53
|
const databaseProvisionModule_1 = require("./models/databaseProvisionModule");
|
|
57
|
-
const
|
|
54
|
+
const configSecretsModule_1 = require("./models/configSecretsModule");
|
|
55
|
+
const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
|
|
58
56
|
const realtimeModule_1 = require("./models/realtimeModule");
|
|
59
57
|
const webauthnAuthModule_1 = require("./models/webauthnAuthModule");
|
|
58
|
+
const functionInvocationModule_1 = require("./models/functionInvocationModule");
|
|
59
|
+
const functionModule_1 = require("./models/functionModule");
|
|
60
|
+
const invitesModule_1 = require("./models/invitesModule");
|
|
61
|
+
const namespaceModule_1 = require("./models/namespaceModule");
|
|
60
62
|
const computeLogModule_1 = require("./models/computeLogModule");
|
|
61
63
|
const inferenceLogModule_1 = require("./models/inferenceLogModule");
|
|
62
64
|
const storageLogModule_1 = require("./models/storageLogModule");
|
|
63
65
|
const transferLogModule_1 = require("./models/transferLogModule");
|
|
64
|
-
const dbUsageModule_1 = require("./models/dbUsageModule");
|
|
65
|
-
const notificationsModule_1 = require("./models/notificationsModule");
|
|
66
66
|
const plansModule_1 = require("./models/plansModule");
|
|
67
|
-
const hierarchyModule_1 = require("./models/hierarchyModule");
|
|
68
|
-
const billingModule_1 = require("./models/billingModule");
|
|
69
67
|
const billingProviderModule_1 = require("./models/billingProviderModule");
|
|
70
|
-
const
|
|
68
|
+
const dbUsageModule_1 = require("./models/dbUsageModule");
|
|
69
|
+
const hierarchyModule_1 = require("./models/hierarchyModule");
|
|
71
70
|
const permissionsModule_1 = require("./models/permissionsModule");
|
|
71
|
+
const notificationsModule_1 = require("./models/notificationsModule");
|
|
72
|
+
const profilesModule_1 = require("./models/profilesModule");
|
|
73
|
+
const billingModule_1 = require("./models/billingModule");
|
|
72
74
|
const relationProvision_1 = require("./models/relationProvision");
|
|
73
|
-
const functionModule_1 = require("./models/functionModule");
|
|
74
75
|
const userAuthModule_1 = require("./models/userAuthModule");
|
|
75
76
|
const agentModule_1 = require("./models/agentModule");
|
|
76
77
|
const limitsModule_1 = require("./models/limitsModule");
|
|
77
78
|
const membershipsModule_1 = require("./models/membershipsModule");
|
|
79
|
+
const entityTypeProvision_1 = require("./models/entityTypeProvision");
|
|
78
80
|
const storageModule_1 = require("./models/storageModule");
|
|
79
81
|
const eventsModule_1 = require("./models/eventsModule");
|
|
80
|
-
const entityTypeProvision_1 = require("./models/entityTypeProvision");
|
|
81
82
|
const query_1 = require("./query");
|
|
82
83
|
const mutation_1 = require("./mutation");
|
|
83
84
|
var client_2 = require("./client");
|
|
@@ -134,45 +135,46 @@ function createClient(config) {
|
|
|
134
135
|
usersModule: new usersModule_1.UsersModuleModel(client),
|
|
135
136
|
webauthnCredentialsModule: new webauthnCredentialsModule_1.WebauthnCredentialsModuleModel(client),
|
|
136
137
|
cryptoAddressesModule: new cryptoAddressesModule_1.CryptoAddressesModuleModel(client),
|
|
137
|
-
identityProvidersModule: new identityProvidersModule_1.IdentityProvidersModuleModel(client),
|
|
138
138
|
denormalizedTableField: new denormalizedTableField_1.DenormalizedTableFieldModel(client),
|
|
139
|
+
identityProvidersModule: new identityProvidersModule_1.IdentityProvidersModuleModel(client),
|
|
139
140
|
rlsModule: new rlsModule_1.RlsModuleModel(client),
|
|
140
141
|
blueprint: new blueprint_1.BlueprintModel(client),
|
|
141
142
|
blueprintTemplate: new blueprintTemplate_1.BlueprintTemplateModel(client),
|
|
142
143
|
blueprintConstruction: new blueprintConstruction_1.BlueprintConstructionModel(client),
|
|
143
144
|
cryptoAuthModule: new cryptoAuthModule_1.CryptoAuthModuleModel(client),
|
|
144
|
-
rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
|
|
145
145
|
sessionsModule: new sessionsModule_1.SessionsModuleModel(client),
|
|
146
|
-
|
|
146
|
+
secureTableProvision: new secureTableProvision_1.SecureTableProvisionModel(client),
|
|
147
147
|
merkleStoreModule: new merkleStoreModule_1.MerkleStoreModuleModel(client),
|
|
148
148
|
graphModule: new graphModule_1.GraphModuleModel(client),
|
|
149
|
-
secureTableProvision: new secureTableProvision_1.SecureTableProvisionModel(client),
|
|
150
|
-
invitesModule: new invitesModule_1.InvitesModuleModel(client),
|
|
151
149
|
databaseProvisionModule: new databaseProvisionModule_1.DatabaseProvisionModuleModel(client),
|
|
152
|
-
|
|
150
|
+
configSecretsModule: new configSecretsModule_1.ConfigSecretsModuleModel(client),
|
|
151
|
+
rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
|
|
153
152
|
realtimeModule: new realtimeModule_1.RealtimeModuleModel(client),
|
|
154
153
|
webauthnAuthModule: new webauthnAuthModule_1.WebauthnAuthModuleModel(client),
|
|
154
|
+
functionInvocationModule: new functionInvocationModule_1.FunctionInvocationModuleModel(client),
|
|
155
|
+
functionModule: new functionModule_1.FunctionModuleModel(client),
|
|
156
|
+
invitesModule: new invitesModule_1.InvitesModuleModel(client),
|
|
157
|
+
namespaceModule: new namespaceModule_1.NamespaceModuleModel(client),
|
|
155
158
|
computeLogModule: new computeLogModule_1.ComputeLogModuleModel(client),
|
|
156
159
|
inferenceLogModule: new inferenceLogModule_1.InferenceLogModuleModel(client),
|
|
157
160
|
storageLogModule: new storageLogModule_1.StorageLogModuleModel(client),
|
|
158
161
|
transferLogModule: new transferLogModule_1.TransferLogModuleModel(client),
|
|
159
|
-
dbUsageModule: new dbUsageModule_1.DbUsageModuleModel(client),
|
|
160
|
-
notificationsModule: new notificationsModule_1.NotificationsModuleModel(client),
|
|
161
162
|
plansModule: new plansModule_1.PlansModuleModel(client),
|
|
162
|
-
hierarchyModule: new hierarchyModule_1.HierarchyModuleModel(client),
|
|
163
|
-
billingModule: new billingModule_1.BillingModuleModel(client),
|
|
164
163
|
billingProviderModule: new billingProviderModule_1.BillingProviderModuleModel(client),
|
|
165
|
-
|
|
164
|
+
dbUsageModule: new dbUsageModule_1.DbUsageModuleModel(client),
|
|
165
|
+
hierarchyModule: new hierarchyModule_1.HierarchyModuleModel(client),
|
|
166
166
|
permissionsModule: new permissionsModule_1.PermissionsModuleModel(client),
|
|
167
|
+
notificationsModule: new notificationsModule_1.NotificationsModuleModel(client),
|
|
168
|
+
profilesModule: new profilesModule_1.ProfilesModuleModel(client),
|
|
169
|
+
billingModule: new billingModule_1.BillingModuleModel(client),
|
|
167
170
|
relationProvision: new relationProvision_1.RelationProvisionModel(client),
|
|
168
|
-
functionModule: new functionModule_1.FunctionModuleModel(client),
|
|
169
171
|
userAuthModule: new userAuthModule_1.UserAuthModuleModel(client),
|
|
170
172
|
agentModule: new agentModule_1.AgentModuleModel(client),
|
|
171
173
|
limitsModule: new limitsModule_1.LimitsModuleModel(client),
|
|
172
174
|
membershipsModule: new membershipsModule_1.MembershipsModuleModel(client),
|
|
175
|
+
entityTypeProvision: new entityTypeProvision_1.EntityTypeProvisionModel(client),
|
|
173
176
|
storageModule: new storageModule_1.StorageModuleModel(client),
|
|
174
177
|
eventsModule: new eventsModule_1.EventsModuleModel(client),
|
|
175
|
-
entityTypeProvision: new entityTypeProvision_1.EntityTypeProvisionModel(client),
|
|
176
178
|
query: (0, query_1.createQueryOperations)(client),
|
|
177
179
|
mutation: (0, mutation_1.createMutationOperations)(client),
|
|
178
180
|
};
|