@shopify/shop-minis-cli 0.0.155 → 0.0.156

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.
Files changed (64) hide show
  1. package/build/commands/proxies/apply.d.ts +3 -0
  2. package/build/commands/proxies/apply.js +53 -0
  3. package/build/commands/proxies/apply.js.map +1 -0
  4. package/build/commands/proxies/index.d.ts +2 -0
  5. package/build/commands/proxies/index.js +14 -0
  6. package/build/commands/proxies/index.js.map +1 -0
  7. package/build/commands/proxies/list.d.ts +2 -0
  8. package/build/commands/proxies/list.js +48 -0
  9. package/build/commands/proxies/list.js.map +1 -0
  10. package/build/commands/proxies/pull.d.ts +2 -0
  11. package/build/commands/proxies/pull.js +34 -0
  12. package/build/commands/proxies/pull.js.map +1 -0
  13. package/build/commands/secrets/delete.d.ts +2 -0
  14. package/build/commands/secrets/delete.js +53 -0
  15. package/build/commands/secrets/delete.js.map +1 -0
  16. package/build/commands/secrets/index.d.ts +2 -0
  17. package/build/commands/secrets/index.js +14 -0
  18. package/build/commands/secrets/index.js.map +1 -0
  19. package/build/commands/secrets/list.d.ts +2 -0
  20. package/build/commands/secrets/list.js +29 -0
  21. package/build/commands/secrets/list.js.map +1 -0
  22. package/build/commands/secrets/set.d.ts +2 -0
  23. package/build/commands/secrets/set.js +57 -0
  24. package/build/commands/secrets/set.js.map +1 -0
  25. package/build/data/gql-client.js +2 -0
  26. package/build/data/gql-client.js.map +1 -1
  27. package/build/data/proxies/proxies-list.d.ts +9 -0
  28. package/build/data/proxies/proxies-list.js +19 -0
  29. package/build/data/proxies/proxies-list.js.map +1 -0
  30. package/build/data/proxies/proxies-set.d.ts +5 -0
  31. package/build/data/proxies/proxies-set.js +18 -0
  32. package/build/data/proxies/proxies-set.js.map +1 -0
  33. package/build/data/proxies/types.d.ts +10 -0
  34. package/build/data/proxies/types.js +2 -0
  35. package/build/data/proxies/types.js.map +1 -0
  36. package/build/data/secrets/secret-delete.d.ts +12 -0
  37. package/build/data/secrets/secret-delete.js +20 -0
  38. package/build/data/secrets/secret-delete.js.map +1 -0
  39. package/build/data/secrets/secret-set.d.ts +11 -0
  40. package/build/data/secrets/secret-set.js +19 -0
  41. package/build/data/secrets/secret-set.js.map +1 -0
  42. package/build/data/secrets/secrets-list.d.ts +8 -0
  43. package/build/data/secrets/secrets-list.js +14 -0
  44. package/build/data/secrets/secrets-list.js.map +1 -0
  45. package/build/data/types/autogenerated/shop-minis-admin-api/gql.d.ts +36 -7
  46. package/build/data/types/autogenerated/shop-minis-admin-api/gql.js +5 -1
  47. package/build/data/types/autogenerated/shop-minis-admin-api/gql.js.map +1 -1
  48. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.d.ts +147 -45
  49. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +261 -48
  50. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -1
  51. package/build/index.js +4 -0
  52. package/build/index.js.map +1 -1
  53. package/build/schemas/manifest.schema.json +50 -0
  54. package/build/utils/minis-manifest.d.ts +2 -0
  55. package/build/utils/minis-manifest.js +8 -0
  56. package/build/utils/minis-manifest.js.map +1 -1
  57. package/build/utils/proxies.d.ts +11 -0
  58. package/build/utils/proxies.js +91 -0
  59. package/build/utils/proxies.js.map +1 -0
  60. package/package.json +3 -1
  61. package/scripts/graphql-codegen.ts +1 -0
  62. package/build/data/accept-invitation.d.ts +0 -4
  63. package/build/data/accept-invitation.js +0 -16
  64. package/build/data/accept-invitation.js.map +0 -1
@@ -11,9 +11,6 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
11
11
  * Therefore it is highly recommended to use the babel or swc plugin for production.
12
12
  */
13
13
  declare const documents: {
14
- '\n mutation AcceptInvitation($code: String!) {\n invitationAccept(code: $code) {\n token\n }\n }\n': DocumentNode<types.AcceptInvitationMutation, types.Exact<{
15
- code: string;
16
- }>>;
17
14
  '\n mutation CancelSubmission($reference: String!) {\n submissionCancel(reference: $reference) {\n submission {\n reference\n description\n status\n submittedAt\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': DocumentNode<types.CancelSubmissionMutation, types.Exact<{
18
15
  reference: string;
19
16
  }>>;
@@ -49,6 +46,22 @@ declare const documents: {
49
46
  '\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n': DocumentNode<types.MiniQuery, types.Exact<{
50
47
  [key: string]: never;
51
48
  }>>;
49
+ '\n query Proxies {\n proxies {\n allowedMethods\n appendedHeaders\n bodyJsonSchema\n targetUrlPattern\n userRateLimitInterval\n userRateLimitRequests\n }\n }\n': DocumentNode<types.ProxiesQuery, types.Exact<{
50
+ [key: string]: never;
51
+ }>>;
52
+ '\n mutation ProxiesSet($proxies: [ProxyInput!]!) {\n proxiesSet(proxies: $proxies) {\n proxies {\n targetUrlPattern\n }\n }\n }\n': DocumentNode<types.ProxiesSetMutation, types.Exact<{
53
+ proxies: types.ProxyInput | types.ProxyInput[];
54
+ }>>;
55
+ '\n mutation SecretDelete($key: String!) {\n secretDelete(key: $key) {\n userErrors {\n code\n field\n message\n }\n }\n }\n': DocumentNode<types.SecretDeleteMutation, types.Exact<{
56
+ key: string;
57
+ }>>;
58
+ '\n mutation SecretSet($key: String!, $secretValue: String!) {\n secretSet(key: $key, value: $secretValue) {\n secret {\n key\n }\n }\n }\n': DocumentNode<types.SecretSetMutation, types.Exact<{
59
+ key: string;
60
+ secretValue: string;
61
+ }>>;
62
+ '\n query Secrets {\n secrets {\n key\n }\n }\n': DocumentNode<types.SecretsQuery, types.Exact<{
63
+ [key: string]: never;
64
+ }>>;
52
65
  '\n mutation UserMetafieldDefinitionCreate(\n $definition: UserMetafieldDefinitionCreateInput!\n ) {\n userMetafieldDefinitionCreate(definition: $definition) {\n createdDefinition {\n description\n name\n key\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': DocumentNode<types.UserMetafieldDefinitionCreateMutation, types.Exact<{
53
66
  definition: types.UserMetafieldDefinitionCreateInput;
54
67
  }>>;
@@ -72,10 +85,6 @@ declare const documents: {
72
85
  * Please regenerate the types.
73
86
  */
74
87
  export declare function graphql(source: string): unknown;
75
- /**
76
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
77
- */
78
- export declare function graphql(source: '\n mutation AcceptInvitation($code: String!) {\n invitationAccept(code: $code) {\n token\n }\n }\n'): (typeof documents)['\n mutation AcceptInvitation($code: String!) {\n invitationAccept(code: $code) {\n token\n }\n }\n'];
79
88
  /**
80
89
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
81
90
  */
@@ -112,6 +121,26 @@ export declare function graphql(source: '\n mutation MiniUnlinkApp($appId: ID!)
112
121
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
113
122
  */
114
123
  export declare function graphql(source: '\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n'): (typeof documents)['\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n'];
124
+ /**
125
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
126
+ */
127
+ export declare function graphql(source: '\n query Proxies {\n proxies {\n allowedMethods\n appendedHeaders\n bodyJsonSchema\n targetUrlPattern\n userRateLimitInterval\n userRateLimitRequests\n }\n }\n'): (typeof documents)['\n query Proxies {\n proxies {\n allowedMethods\n appendedHeaders\n bodyJsonSchema\n targetUrlPattern\n userRateLimitInterval\n userRateLimitRequests\n }\n }\n'];
128
+ /**
129
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
130
+ */
131
+ export declare function graphql(source: '\n mutation ProxiesSet($proxies: [ProxyInput!]!) {\n proxiesSet(proxies: $proxies) {\n proxies {\n targetUrlPattern\n }\n }\n }\n'): (typeof documents)['\n mutation ProxiesSet($proxies: [ProxyInput!]!) {\n proxiesSet(proxies: $proxies) {\n proxies {\n targetUrlPattern\n }\n }\n }\n'];
132
+ /**
133
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
134
+ */
135
+ export declare function graphql(source: '\n mutation SecretDelete($key: String!) {\n secretDelete(key: $key) {\n userErrors {\n code\n field\n message\n }\n }\n }\n'): (typeof documents)['\n mutation SecretDelete($key: String!) {\n secretDelete(key: $key) {\n userErrors {\n code\n field\n message\n }\n }\n }\n'];
136
+ /**
137
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
138
+ */
139
+ export declare function graphql(source: '\n mutation SecretSet($key: String!, $secretValue: String!) {\n secretSet(key: $key, value: $secretValue) {\n secret {\n key\n }\n }\n }\n'): (typeof documents)['\n mutation SecretSet($key: String!, $secretValue: String!) {\n secretSet(key: $key, value: $secretValue) {\n secret {\n key\n }\n }\n }\n'];
140
+ /**
141
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
142
+ */
143
+ export declare function graphql(source: '\n query Secrets {\n secrets {\n key\n }\n }\n'): (typeof documents)['\n query Secrets {\n secrets {\n key\n }\n }\n'];
115
144
  /**
116
145
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
117
146
  */
@@ -11,7 +11,6 @@ import * as types from './graphql.js';
11
11
  * Therefore it is highly recommended to use the babel or swc plugin for production.
12
12
  */
13
13
  const documents = {
14
- '\n mutation AcceptInvitation($code: String!) {\n invitationAccept(code: $code) {\n token\n }\n }\n': types.AcceptInvitationDocument,
15
14
  '\n mutation CancelSubmission($reference: String!) {\n submissionCancel(reference: $reference) {\n submission {\n reference\n description\n status\n submittedAt\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CancelSubmissionDocument,
16
15
  '\n mutation CreateSubmission($description: String!, $uploadId: ID!) {\n submissionCreate(description: $description, uploadId: $uploadId) {\n submission {\n reference\n description\n status\n submittedAt\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CreateSubmissionDocument,
17
16
  '\n mutation CreateUpload(\n $filename: String!\n $fileSize: Int!\n $checksum: String!\n $mimeType: String!\n ) {\n submissionUploadCreate(\n input: {\n filename: $filename\n fileSize: $fileSize\n checksum: $checksum\n mimeType: $mimeType\n }\n ) {\n upload {\n url\n headers\n id\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CreateUploadDocument,
@@ -21,6 +20,11 @@ const documents = {
21
20
  '\n mutation MiniLinkApp(\n $appApiKey: String!\n $partnersAccessToken: String!\n $primary: Boolean\n ) {\n miniLinkApp(\n appApiKey: $appApiKey\n partnersAccessToken: $partnersAccessToken\n primary: $primary\n ) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.MiniLinkAppDocument,
22
21
  '\n mutation MiniUnlinkApp($appId: ID!) {\n miniUnlinkApp(appId: $appId) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.MiniUnlinkAppDocument,
23
22
  '\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n': types.MiniDocument,
23
+ '\n query Proxies {\n proxies {\n allowedMethods\n appendedHeaders\n bodyJsonSchema\n targetUrlPattern\n userRateLimitInterval\n userRateLimitRequests\n }\n }\n': types.ProxiesDocument,
24
+ '\n mutation ProxiesSet($proxies: [ProxyInput!]!) {\n proxiesSet(proxies: $proxies) {\n proxies {\n targetUrlPattern\n }\n }\n }\n': types.ProxiesSetDocument,
25
+ '\n mutation SecretDelete($key: String!) {\n secretDelete(key: $key) {\n userErrors {\n code\n field\n message\n }\n }\n }\n': types.SecretDeleteDocument,
26
+ '\n mutation SecretSet($key: String!, $secretValue: String!) {\n secretSet(key: $key, value: $secretValue) {\n secret {\n key\n }\n }\n }\n': types.SecretSetDocument,
27
+ '\n query Secrets {\n secrets {\n key\n }\n }\n': types.SecretsDocument,
24
28
  '\n mutation UserMetafieldDefinitionCreate(\n $definition: UserMetafieldDefinitionCreateInput!\n ) {\n userMetafieldDefinitionCreate(definition: $definition) {\n createdDefinition {\n description\n name\n key\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.UserMetafieldDefinitionCreateDocument,
25
29
  '\n mutation UserMetafieldDefinitionDelete($key: String!) {\n userMetafieldDefinitionDelete(identifier: {key: $key}) {\n deletedDefinition {\n key\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.UserMetafieldDefinitionDeleteDocument,
26
30
  '\n query UserMetafieldDefinitions {\n userMetafieldDefinitions {\n nodes {\n description\n name\n key\n type\n }\n }\n }\n': types.UserMetafieldDefinitionsDocument,
@@ -1 +1 @@
1
- {"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/data/types/autogenerated/shop-minis-admin-api/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,iHAAiH,EAC/G,KAAK,CAAC,wBAAwB;IAChC,wSAAwS,EACtS,KAAK,CAAC,wBAAwB;IAChC,mVAAmV,EACjV,KAAK,CAAC,wBAAwB;IAChC,+cAA+c,EAC7c,KAAK,CAAC,oBAAoB;IAC5B,wLAAwL,EACtL,KAAK,CAAC,kBAAkB;IAC1B,4SAA4S,EAC1S,KAAK,CAAC,mBAAmB;IAC3B,oYAAoY,EAClY,KAAK,CAAC,kBAAkB;IAC1B,ybAAyb,EACvb,KAAK,CAAC,mBAAmB;IAC3B,iRAAiR,EAC/Q,KAAK,CAAC,qBAAqB;IAC7B,wHAAwH,EACtH,KAAK,CAAC,YAAY;IACpB,qVAAqV,EACnV,KAAK,CAAC,qCAAqC;IAC7C,qQAAqQ,EACnQ,KAAK,CAAC,qCAAqC;IAC7C,0KAA0K,EACxK,KAAK,CAAC,gCAAgC;CACzC,CAAA;AA+FD,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;AACzC,CAAC"}
1
+ {"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/data/types/autogenerated/shop-minis-admin-api/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,wSAAwS,EACtS,KAAK,CAAC,wBAAwB;IAChC,mVAAmV,EACjV,KAAK,CAAC,wBAAwB;IAChC,+cAA+c,EAC7c,KAAK,CAAC,oBAAoB;IAC5B,wLAAwL,EACtL,KAAK,CAAC,kBAAkB;IAC1B,4SAA4S,EAC1S,KAAK,CAAC,mBAAmB;IAC3B,oYAAoY,EAClY,KAAK,CAAC,kBAAkB;IAC1B,ybAAyb,EACvb,KAAK,CAAC,mBAAmB;IAC3B,iRAAiR,EAC/Q,KAAK,CAAC,qBAAqB;IAC7B,wHAAwH,EACtH,KAAK,CAAC,YAAY;IACpB,uMAAuM,EACrM,KAAK,CAAC,eAAe;IACvB,4JAA4J,EAC1J,KAAK,CAAC,kBAAkB;IAC1B,oKAAoK,EAClK,KAAK,CAAC,oBAAoB;IAC5B,qKAAqK,EACnK,KAAK,CAAC,iBAAiB;IACzB,6DAA6D,EAC3D,KAAK,CAAC,eAAe;IACvB,qVAAqV,EACnV,KAAK,CAAC,qCAAqC;IAC7C,qQAAqQ,EACnQ,KAAK,CAAC,qCAAqC;IAC7C,0KAA0K,EACxK,KAAK,CAAC,gCAAgC;CACzC,CAAA;AAuHD,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;AACzC,CAAC"}
@@ -23,6 +23,8 @@ export type Scalars = {
23
23
  Decimal: any;
24
24
  /** An ISO 8601-encoded datetime */
25
25
  ISO8601DateTime: any;
26
+ /** Represents untyped JSON */
27
+ JSON: any;
26
28
  /**
27
29
  * Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
28
30
  *
@@ -74,6 +76,49 @@ export type AttributionField = {
74
76
  /** The value of the field. */
75
77
  value: Scalars['String'];
76
78
  };
79
+ /** Represents content in a Mini. */
80
+ export type Content = {
81
+ __typename?: 'Content';
82
+ /** Description of the content. */
83
+ description?: Maybe<Scalars['String']>;
84
+ /** External identifier for the content. */
85
+ externalId?: Maybe<Scalars['ID']>;
86
+ /** Image associated with the content. */
87
+ image: Image;
88
+ /** Products associated with the content. */
89
+ productIds: Array<Scalars['ID']>;
90
+ /** Public identifier for the content. */
91
+ publicId: Scalars['ID'];
92
+ /** Shareable URL for the content. */
93
+ shareableUrl: Scalars['URL'];
94
+ /** Title of the content. */
95
+ title: Scalars['String'];
96
+ };
97
+ /** Return type for the `contentCreate` mutation. */
98
+ export type ContentCreatePayload = {
99
+ __typename?: 'ContentCreatePayload';
100
+ /** The created content. */
101
+ content?: Maybe<Content>;
102
+ /** List of errors that occured while executing the mutation. */
103
+ userErrors: Array<ContentCreateUserError>;
104
+ };
105
+ /** A user or client error that could occur during the execution of the `contentCreate` mutation. */
106
+ export type ContentCreateUserError = {
107
+ __typename?: 'ContentCreateUserError';
108
+ /** Error code associated with the error. */
109
+ code: ContentCreateUserErrorCode;
110
+ /** Which input value this error came from. */
111
+ field?: Maybe<Array<Scalars['String']>>;
112
+ /** A description of the error. */
113
+ message: Scalars['String'];
114
+ };
115
+ /** Possible error codes that can be returned by ContentCreateUserError. */
116
+ export declare enum ContentCreateUserErrorCode {
117
+ /** Content with this external ID already exists. */
118
+ DuplicateExternalId = "DUPLICATE_EXTERNAL_ID",
119
+ /** Some products are not eligible for Shop. */
120
+ IneligibleProducts = "INELIGIBLE_PRODUCTS"
121
+ }
77
122
  /** This is a content creator that may appear next to a Mini entry point. */
78
123
  export type ContentCreator = {
79
124
  __typename?: 'ContentCreator';
@@ -924,6 +969,8 @@ export declare enum HttpRequestMethod {
924
969
  Delete = "DELETE",
925
970
  /** The GET method. */
926
971
  Get = "GET",
972
+ /** The PATCH method. */
973
+ Patch = "PATCH",
927
974
  /** The POST method. */
928
975
  Post = "POST",
929
976
  /** The PUT method. */
@@ -1050,29 +1097,6 @@ export type ImageInput = {
1050
1097
  /** The URL of the Shopify hosted image. */
1051
1098
  url: Scalars['URL'];
1052
1099
  };
1053
- /** Return type for the `invitationAccept` mutation. */
1054
- export type InvitationAcceptPayload = {
1055
- __typename?: 'InvitationAcceptPayload';
1056
- /** The API key token that was created. */
1057
- token?: Maybe<Scalars['String']>;
1058
- /** List of errors that occured while executing the mutation. */
1059
- userErrors: Array<InvitationAcceptUserError>;
1060
- };
1061
- /** A user or client error that could occur during the execution of the `invitationAccept` mutation. */
1062
- export type InvitationAcceptUserError = {
1063
- __typename?: 'InvitationAcceptUserError';
1064
- /** Error code associated with the error. */
1065
- code: InvitationAcceptUserErrorCode;
1066
- /** Which input value this error came from. */
1067
- field?: Maybe<Array<Scalars['String']>>;
1068
- /** A description of the error. */
1069
- message: Scalars['String'];
1070
- };
1071
- /** Possible error codes that can be returned by InvitationAcceptUserError. */
1072
- export declare enum InvitationAcceptUserErrorCode {
1073
- /** Error code when the invitation is not found. */
1074
- InvitationNotFound = "INVITATION_NOT_FOUND"
1075
- }
1076
1100
  /** A Link entry point to a Shop Mini. */
1077
1101
  export type LinkEntryPoint = EntryPoint & {
1078
1102
  __typename?: 'LinkEntryPoint';
@@ -1224,6 +1248,8 @@ export type MoneyV2 = {
1224
1248
  };
1225
1249
  export type Mutation = {
1226
1250
  __typename?: 'Mutation';
1251
+ /** Creates a new content. */
1252
+ contentCreate: ContentCreatePayload;
1227
1253
  /** Asynchronously deletes all entry points for the given shopDomain. Entry points created or updated after performing the mutation will not be deleted. */
1228
1254
  entryPointDeleteAll: EntryPointDeleteAllPayload;
1229
1255
  /** Deletes an entry point by using its ownerId. */
@@ -1236,8 +1262,6 @@ export type Mutation = {
1236
1262
  entryPointSetByOwner: EntryPointSetByOwnerPayload;
1237
1263
  /** Creates or updates entry point by setting a visibility rule. */
1238
1264
  entryPointSetByRule: EntryPointSetByRulePayload;
1239
- /** Swap an invitation code for an API key. */
1240
- invitationAccept: InvitationAcceptPayload;
1241
1265
  /** Creates a new Mini. */
1242
1266
  miniCreate: MiniCreatePayload;
1243
1267
  /** Links a Shopify app to a Mini. */
@@ -1267,6 +1291,13 @@ export type Mutation = {
1267
1291
  /** Verifies a user token. */
1268
1292
  userTokenVerify: UserTokenVerifyPayload;
1269
1293
  };
1294
+ export type MutationContentCreateArgs = {
1295
+ description?: InputMaybe<Scalars['String']>;
1296
+ externalId?: InputMaybe<Scalars['ID']>;
1297
+ imageUrl: Scalars['URL'];
1298
+ productIds?: InputMaybe<Array<Scalars['ID']>>;
1299
+ title: Scalars['String'];
1300
+ };
1270
1301
  export type MutationEntryPointDeleteAllArgs = {
1271
1302
  shopDomain: Scalars['String'];
1272
1303
  };
@@ -1297,9 +1328,6 @@ export type MutationEntryPointSetByRuleArgs = {
1297
1328
  shopDomain: Scalars['String'];
1298
1329
  visibilityRule: Scalars['String'];
1299
1330
  };
1300
- export type MutationInvitationAcceptArgs = {
1301
- code: Scalars['String'];
1302
- };
1303
1331
  export type MutationMiniCreateArgs = {
1304
1332
  name: Scalars['String'];
1305
1333
  organizationId: Scalars['ID'];
@@ -1463,9 +1491,11 @@ export type ProxiesSetPayload = {
1463
1491
  export type Proxy = {
1464
1492
  __typename?: 'Proxy';
1465
1493
  /** The methods that are allowed to be proxied. */
1466
- allowedMethods: Array<HttpRequestMethod>;
1494
+ allowedMethods?: Maybe<Array<HttpRequestMethod>>;
1467
1495
  /** A list of headers that will be appended to the request. Formatted as `Some-Key: Some Value`. */
1468
- appendedHeaders: Array<Scalars['String']>;
1496
+ appendedHeaders?: Maybe<Array<Scalars['String']>>;
1497
+ /** A JSON schema to match the request body against. */
1498
+ bodyJsonSchema?: Maybe<Scalars['JSON']>;
1469
1499
  /** A pattern for matching the target URL. */
1470
1500
  targetUrlPattern: Scalars['String'];
1471
1501
  /** The interval of the user rate limit in seconds. */
@@ -1476,9 +1506,11 @@ export type Proxy = {
1476
1506
  /** The information needed to create or update a proxy. */
1477
1507
  export type ProxyInput = {
1478
1508
  /** The methods that are allowed to be proxied. */
1479
- allowedMethods: Array<HttpRequestMethod>;
1509
+ allowedMethods?: InputMaybe<Array<HttpRequestMethod>>;
1480
1510
  /** A list of headers that will be appended to the request. Formatted as `Some-Key: Some Value`. */
1481
- appendedHeaders: Array<Scalars['String']>;
1511
+ appendedHeaders?: InputMaybe<Array<Scalars['String']>>;
1512
+ /** A JSON schema to match the request body against. */
1513
+ bodyJsonSchema?: InputMaybe<Scalars['JSON']>;
1482
1514
  /** A pattern for matching the target URL. */
1483
1515
  targetUrlPattern: Scalars['String'];
1484
1516
  /** The interval of the user rate limit in seconds. */
@@ -2039,16 +2071,6 @@ export type Warning = {
2039
2071
  /** Description of the warning. */
2040
2072
  message: Scalars['String'];
2041
2073
  };
2042
- export type AcceptInvitationMutationVariables = Exact<{
2043
- code: Scalars['String'];
2044
- }>;
2045
- export type AcceptInvitationMutation = {
2046
- __typename?: 'Mutation';
2047
- invitationAccept: {
2048
- __typename?: 'InvitationAcceptPayload';
2049
- token?: string | null;
2050
- };
2051
- };
2052
2074
  export type CancelSubmissionMutationVariables = Exact<{
2053
2075
  reference: Scalars['String'];
2054
2076
  }>;
@@ -2238,6 +2260,73 @@ export type MiniQuery = {
2238
2260
  developmentShopifyAppIds: Array<string>;
2239
2261
  } | null;
2240
2262
  };
2263
+ export type ProxiesQueryVariables = Exact<{
2264
+ [key: string]: never;
2265
+ }>;
2266
+ export type ProxiesQuery = {
2267
+ __typename?: 'Query';
2268
+ proxies: Array<{
2269
+ __typename?: 'Proxy';
2270
+ allowedMethods?: Array<HttpRequestMethod> | null;
2271
+ appendedHeaders?: Array<string> | null;
2272
+ bodyJsonSchema?: any | null;
2273
+ targetUrlPattern: string;
2274
+ userRateLimitInterval?: number | null;
2275
+ userRateLimitRequests?: number | null;
2276
+ }>;
2277
+ };
2278
+ export type ProxiesSetMutationVariables = Exact<{
2279
+ proxies: Array<ProxyInput> | ProxyInput;
2280
+ }>;
2281
+ export type ProxiesSetMutation = {
2282
+ __typename?: 'Mutation';
2283
+ proxiesSet: {
2284
+ __typename?: 'ProxiesSetPayload';
2285
+ proxies?: Array<{
2286
+ __typename?: 'Proxy';
2287
+ targetUrlPattern: string;
2288
+ }> | null;
2289
+ };
2290
+ };
2291
+ export type SecretDeleteMutationVariables = Exact<{
2292
+ key: Scalars['String'];
2293
+ }>;
2294
+ export type SecretDeleteMutation = {
2295
+ __typename?: 'Mutation';
2296
+ secretDelete: {
2297
+ __typename?: 'SecretDeletePayload';
2298
+ userErrors: Array<{
2299
+ __typename?: 'SecretDeleteUserError';
2300
+ code: SecretDeleteUserErrorCode;
2301
+ field?: Array<string> | null;
2302
+ message: string;
2303
+ }>;
2304
+ };
2305
+ };
2306
+ export type SecretSetMutationVariables = Exact<{
2307
+ key: Scalars['String'];
2308
+ secretValue: Scalars['String'];
2309
+ }>;
2310
+ export type SecretSetMutation = {
2311
+ __typename?: 'Mutation';
2312
+ secretSet: {
2313
+ __typename?: 'SecretSetPayload';
2314
+ secret?: {
2315
+ __typename?: 'Secret';
2316
+ key: string;
2317
+ } | null;
2318
+ };
2319
+ };
2320
+ export type SecretsQueryVariables = Exact<{
2321
+ [key: string]: never;
2322
+ }>;
2323
+ export type SecretsQuery = {
2324
+ __typename?: 'Query';
2325
+ secrets: Array<{
2326
+ __typename?: 'Secret';
2327
+ key: string;
2328
+ }>;
2329
+ };
2241
2330
  export type UserMetafieldDefinitionCreateMutationVariables = Exact<{
2242
2331
  definition: UserMetafieldDefinitionCreateInput;
2243
2332
  }>;
@@ -2294,9 +2383,6 @@ export type UserMetafieldDefinitionsQuery = {
2294
2383
  }>;
2295
2384
  };
2296
2385
  };
2297
- export declare const AcceptInvitationDocument: DocumentNode<AcceptInvitationMutation, Exact<{
2298
- code: Scalars['String'];
2299
- }>>;
2300
2386
  export declare const CancelSubmissionDocument: DocumentNode<CancelSubmissionMutation, Exact<{
2301
2387
  reference: Scalars['String'];
2302
2388
  }>>;
@@ -2332,6 +2418,22 @@ export declare const MiniUnlinkAppDocument: DocumentNode<MiniUnlinkAppMutation,
2332
2418
  export declare const MiniDocument: DocumentNode<MiniQuery, Exact<{
2333
2419
  [key: string]: never;
2334
2420
  }>>;
2421
+ export declare const ProxiesDocument: DocumentNode<ProxiesQuery, Exact<{
2422
+ [key: string]: never;
2423
+ }>>;
2424
+ export declare const ProxiesSetDocument: DocumentNode<ProxiesSetMutation, Exact<{
2425
+ proxies: Array<ProxyInput> | ProxyInput;
2426
+ }>>;
2427
+ export declare const SecretDeleteDocument: DocumentNode<SecretDeleteMutation, Exact<{
2428
+ key: Scalars['String'];
2429
+ }>>;
2430
+ export declare const SecretSetDocument: DocumentNode<SecretSetMutation, Exact<{
2431
+ key: Scalars['String'];
2432
+ secretValue: Scalars['String'];
2433
+ }>>;
2434
+ export declare const SecretsDocument: DocumentNode<SecretsQuery, Exact<{
2435
+ [key: string]: never;
2436
+ }>>;
2335
2437
  export declare const UserMetafieldDefinitionCreateDocument: DocumentNode<UserMetafieldDefinitionCreateMutation, Exact<{
2336
2438
  definition: UserMetafieldDefinitionCreateInput;
2337
2439
  }>>;